style cleanup; renamed ApplyNow button to Apply; removed strange dontTouchCheckBox

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40336 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV
2011-01-31 19:50:28 +00:00
parent 956f541d96
commit 8f25381cba
2 changed files with 11 additions and 16 deletions
@@ -39,6 +39,7 @@ NetworkSetupWindow::NetworkSetupWindow(const char *title)
BMenuField *profilesMenuField = new BMenuField("profiles_menu", BMenuField *profilesMenuField = new BMenuField("profiles_menu",
B_TRANSLATE("Profile:"), profilesPopup); B_TRANSLATE("Profile:"), profilesPopup);
profilesMenuField->SetFont(be_bold_font); profilesMenuField->SetFont(be_bold_font);
// ---- Settings section // ---- Settings section
@@ -49,12 +50,7 @@ NetworkSetupWindow::NetworkSetupWindow(const char *title)
BBox *bottomDivider = new BBox(B_EMPTY_STRING); BBox *bottomDivider = new BBox(B_EMPTY_STRING);
bottomDivider->SetBorder(B_PLAIN_BORDER); bottomDivider->SetBorder(B_PLAIN_BORDER);
BCheckBox *dontTouchCheckBox = new BCheckBox("dont_touch", fApplyButton = new BButton("apply", B_TRANSLATE("Apply"),
B_TRANSLATE("Prevent unwanted changes"),
new BMessage(DONT_TOUCH_MSG));
dontTouchCheckBox->SetValue(B_CONTROL_ON);
fApplyNowButton = new BButton("apply_now", B_TRANSLATE("Apply Now"),
new BMessage(APPLY_NOW_MSG)); new BMessage(APPLY_NOW_MSG));
fRevertButton = new BButton("revert", B_TRANSLATE("Revert"), fRevertButton = new BButton("revert", B_TRANSLATE("Revert"),
@@ -75,9 +71,8 @@ NetworkSetupWindow::NetworkSetupWindow(const char *title)
.Add(fPanel) .Add(fPanel)
.Add(bottomDivider) .Add(bottomDivider)
.AddGroup(B_HORIZONTAL, 5) .AddGroup(B_HORIZONTAL, 5)
.Add(dontTouchCheckBox)
.Add(fRevertButton) .Add(fRevertButton)
.Add(fApplyNowButton) .Add(fApplyButton)
.End() .End()
.SetInsets(10, 10, 10, 10) .SetInsets(10, 10, 10, 10)
); );
@@ -129,7 +124,7 @@ NetworkSetupWindow::MessageReceived(BMessage* msg)
is_default = (strcmp(name.Leaf(), "default") == 0); is_default = (strcmp(name.Leaf(), "default") == 0);
is_current = (strcmp(name.Leaf(), "current") == 0); is_current = (strcmp(name.Leaf(), "current") == 0);
fApplyNowButton->SetEnabled(!is_current); fApplyButton->SetEnabled(!is_current);
break; break;
} }
@@ -45,7 +45,7 @@ class NetworkSetupWindow : public BWindow
BButton* fHelpButton; BButton* fHelpButton;
BButton* fRevertButton; BButton* fRevertButton;
BButton* fApplyNowButton; BButton* fApplyButton;
BTabView* fPanel; BTabView* fPanel;
BView* fAddonView; BView* fAddonView;