src/preferences Code formatting
* No functional change code formatting changes only Change-Id: Id861adea9266a9ccbf9925d36e4a2bad85b640b7 Reviewed-on: https://review.haiku-os.org/c/895 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
79456ebd5b
commit
d9b872d03c
@ -113,7 +113,7 @@ LookAndFeelSettingsView::LookAndFeelSettingsView(const char* name)
|
||||
// control layout
|
||||
BLayoutBuilder::Grid<>(this, B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
||||
.Add(fDecorMenuField->CreateLabelLayoutItem(), 0, 0)
|
||||
.Add(fDecorMenuField->CreateMenuBarLayoutItem(), 1, 0)
|
||||
.Add(fDecorMenuField->CreateMenuBarLayoutItem(), 1, 0)
|
||||
.Add(fDecorInfoButton, 2, 0)
|
||||
.Add(scrollBarLabel, 0, 1)
|
||||
.Add(arrowStyleBox, 1, 1)
|
||||
|
@ -281,10 +281,10 @@ InquiryPanel::MessageReceived(BMessage* message)
|
||||
((DeviceListItem*)fRemoteList->ItemAt(retrievalIndex))
|
||||
->SetDevice((BluetoothDevice*) fDiscoveryAgent
|
||||
->RetrieveDevices(0).ItemAt(retrievalIndex));
|
||||
fRemoteList->InvalidateItem(retrievalIndex);
|
||||
fRemoteList->InvalidateItem(retrievalIndex);
|
||||
|
||||
retrievalIndex++;
|
||||
labelPlaced = false;
|
||||
retrievalIndex++;
|
||||
labelPlaced = false;
|
||||
}
|
||||
|
||||
BMessageRunner::StartSending(fMessenger, fRetrieveMessage, 500000, 1);
|
||||
|
@ -58,18 +58,18 @@ CalibWin::CalibWin(BRect frame,const char *title, window_look look,
|
||||
|
||||
// Adding object
|
||||
fBox->AddChild(fStringView3);
|
||||
|
||||
|
||||
fView->AddChild(fButton3);
|
||||
fView->AddChild(fButton4);
|
||||
fView->AddChild(fBox);
|
||||
|
||||
|
||||
fView->AddChild(fStringView4);
|
||||
fView->AddChild(fStringView5);
|
||||
fView->AddChild(fStringView6);
|
||||
fView->AddChild(fStringView7);
|
||||
fView->AddChild(fStringView8);
|
||||
fView->AddChild(fStringView9);
|
||||
|
||||
|
||||
fView->AddChild(fButton5);
|
||||
fView->AddChild(fButton6);
|
||||
fView->AddChild(fButton7);
|
||||
@ -78,8 +78,8 @@ CalibWin::CalibWin(BRect frame,const char *title, window_look look,
|
||||
fView->AddChild(fButton10);
|
||||
fView->AddChild(fButton11);
|
||||
fView->AddChild(fButton12);
|
||||
|
||||
AddChild(fView);
|
||||
|
||||
AddChild(fView);
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,9 +24,9 @@ MessageWin::MessageWin(BRect parentFrame, const char *title,
|
||||
fBox->SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||
fBox->SetLowColor(fBox->ViewColor());
|
||||
|
||||
// Rects for the text view
|
||||
BRect outside(fBox->Bounds());
|
||||
outside.InsetBy(10, 10);
|
||||
// Rects for the text view
|
||||
BRect outside(fBox->Bounds());
|
||||
outside.InsetBy(10, 10);
|
||||
BRect insider(outside);
|
||||
insider.OffsetTo(B_ORIGIN);
|
||||
|
||||
@ -37,7 +37,7 @@ MessageWin::MessageWin(BRect parentFrame, const char *title,
|
||||
|
||||
fBox->AddChild(fText);
|
||||
AddChild(fBox);
|
||||
|
||||
|
||||
/* Relocate the window to the center of what its being given */
|
||||
ResizeTo(parentFrame.Width(), floor(parentFrame.Height() / 3));
|
||||
MoveBy(0, floor(parentFrame.Height() / 2 - (parentFrame.Height()/3) / 2 ));
|
||||
@ -47,10 +47,10 @@ MessageWin::MessageWin(BRect parentFrame, const char *title,
|
||||
|
||||
void MessageWin::SetText(const char* str)
|
||||
{
|
||||
Lock();
|
||||
fText->SetText(str);
|
||||
fText->Flush();
|
||||
Unlock();
|
||||
Lock();
|
||||
fText->SetText(str);
|
||||
fText->Flush();
|
||||
Unlock();
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,11 +18,11 @@
|
||||
|
||||
|
||||
enum BNetworkInterfaceType {
|
||||
B_NETWORK_INTERFACE_TYPE_WIFI = 'wifi',
|
||||
B_NETWORK_INTERFACE_TYPE_ETHERNET = 'ethr',
|
||||
B_NETWORK_INTERFACE_TYPE_DIAL_UP = 'dial',
|
||||
B_NETWORK_INTERFACE_TYPE_VPN = 'nvpn',
|
||||
B_NETWORK_INTERFACE_TYPE_OTHER = 'othe',
|
||||
B_NETWORK_INTERFACE_TYPE_WIFI = 'wifi',
|
||||
B_NETWORK_INTERFACE_TYPE_ETHERNET = 'ethr',
|
||||
B_NETWORK_INTERFACE_TYPE_DIAL_UP = 'dial',
|
||||
B_NETWORK_INTERFACE_TYPE_VPN = 'nvpn',
|
||||
B_NETWORK_INTERFACE_TYPE_OTHER = 'othe',
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user