Adjusted padding in Mount settings panel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38857 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,6 +38,7 @@ All rights reserved.
|
|||||||
#include <Box.h>
|
#include <Box.h>
|
||||||
#include <Button.h>
|
#include <Button.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
|
#include <ControlLook.h>
|
||||||
#include <CheckBox.h>
|
#include <CheckBox.h>
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
#include <LayoutBuilder.h>
|
#include <LayoutBuilder.h>
|
||||||
@@ -100,17 +101,17 @@ AutomountSettingsPanel::AutomountSettingsPanel(BMessage* settings,
|
|||||||
BBox("", B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP, B_NO_BORDER),
|
BBox("", B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE_JUMP, B_NO_BORDER),
|
||||||
fTarget(target)
|
fTarget(target)
|
||||||
{
|
{
|
||||||
const float spacing = 8;
|
const float spacing = be_control_look->DefaultItemSpacing();
|
||||||
|
|
||||||
// "Automatic Disk Mounting" group
|
// "Automatic Disk Mounting" group
|
||||||
|
|
||||||
BBox* autoMountBox = new BBox("autoMountBox", B_WILL_DRAW | B_FRAME_EVENTS
|
BBox* autoMountBox = new BBox("autoMountBox", B_WILL_DRAW | B_FRAME_EVENTS
|
||||||
| B_PULSE_NEEDED | B_NAVIGABLE_JUMP);
|
| B_PULSE_NEEDED | B_NAVIGABLE_JUMP);
|
||||||
autoMountBox->SetLabel(B_TRANSLATE("Automatic disk mounting"));
|
autoMountBox->SetLabel(B_TRANSLATE("Automatic disk mounting"));
|
||||||
BGroupLayout* autoMountLayout = new BGroupLayout(B_VERTICAL, spacing);
|
BGroupLayout* autoMountLayout = new BGroupLayout(B_VERTICAL, 0);
|
||||||
autoMountBox->SetLayout(autoMountLayout);
|
autoMountBox->SetLayout(autoMountLayout);
|
||||||
autoMountLayout->SetInsets(spacing,
|
autoMountLayout->SetInsets(spacing,
|
||||||
autoMountBox->InnerFrame().top + spacing, spacing, spacing);
|
autoMountBox->InnerFrame().top + spacing / 2, spacing, spacing);
|
||||||
|
|
||||||
fScanningDisabledCheck = new BRadioButton("scanningOff",
|
fScanningDisabledCheck = new BRadioButton("scanningOff",
|
||||||
B_TRANSLATE("Don't automount"),
|
B_TRANSLATE("Don't automount"),
|
||||||
@@ -127,10 +128,10 @@ AutomountSettingsPanel::AutomountSettingsPanel(BMessage* settings,
|
|||||||
BBox* bootMountBox = new BBox("", B_WILL_DRAW | B_FRAME_EVENTS
|
BBox* bootMountBox = new BBox("", B_WILL_DRAW | B_FRAME_EVENTS
|
||||||
| B_PULSE_NEEDED | B_NAVIGABLE_JUMP);
|
| B_PULSE_NEEDED | B_NAVIGABLE_JUMP);
|
||||||
bootMountBox->SetLabel(B_TRANSLATE("Disk mounting during boot"));
|
bootMountBox->SetLabel(B_TRANSLATE("Disk mounting during boot"));
|
||||||
BGroupLayout* bootMountLayout = new BGroupLayout(B_VERTICAL, spacing);
|
BGroupLayout* bootMountLayout = new BGroupLayout(B_VERTICAL, 0);
|
||||||
bootMountBox->SetLayout(bootMountLayout);
|
bootMountBox->SetLayout(bootMountLayout);
|
||||||
bootMountLayout->SetInsets(spacing,
|
bootMountLayout->SetInsets(spacing,
|
||||||
bootMountBox->InnerFrame().top + spacing, spacing, spacing);
|
bootMountBox->InnerFrame().top + spacing / 2, spacing, spacing);
|
||||||
|
|
||||||
fInitialDontMountCheck = new BRadioButton("initialNone",
|
fInitialDontMountCheck = new BRadioButton("initialNone",
|
||||||
B_TRANSLATE("Only the boot disk"),
|
B_TRANSLATE("Only the boot disk"),
|
||||||
@@ -184,12 +185,11 @@ AutomountSettingsPanel::AutomountSettingsPanel(BMessage* settings,
|
|||||||
.End()
|
.End()
|
||||||
.Add(new BSeparatorView(B_HORIZONTAL/*, B_FANCY_BORDER*/))
|
.Add(new BSeparatorView(B_HORIZONTAL/*, B_FANCY_BORDER*/))
|
||||||
.AddGroup(B_HORIZONTAL, spacing)
|
.AddGroup(B_HORIZONTAL, spacing)
|
||||||
.SetInsets(spacing, spacing, spacing, spacing)
|
.SetInsets(0, spacing, spacing, spacing)
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(fMountAllNow)
|
.Add(fMountAllNow)
|
||||||
.Add(fDone);
|
.Add(fDone);
|
||||||
|
|
||||||
|
|
||||||
// Apply the settings
|
// Apply the settings
|
||||||
|
|
||||||
bool result;
|
bool result;
|
||||||
|
|||||||
Reference in New Issue
Block a user