* Really, there is absolutely no need to pass the default argument to an
optional parameter... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41349 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,9 +23,11 @@
|
||||
#include <View.h>
|
||||
#include <Window.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "BFS_Initialize_Parameter"
|
||||
|
||||
|
||||
static uint32 MSG_BLOCK_SIZE = 'blsz';
|
||||
static uint32 MSG_NAME_CHANGED = 'nmch';
|
||||
|
||||
@@ -121,8 +123,7 @@ InitializeBFSEditor::_CreateViewControls()
|
||||
blocksizeMenu->AddItem(new BMenuItem(
|
||||
B_TRANSLATE("8192 (Mostly large files)"), message));
|
||||
|
||||
fBlockSizeMF = new BMenuField(B_TRANSLATE("Blocksize:"), blocksizeMenu,
|
||||
NULL);
|
||||
fBlockSizeMF = new BMenuField(B_TRANSLATE("Blocksize:"), blocksizeMenu);
|
||||
defaultItem->SetMarked(true);
|
||||
|
||||
fUseIndicesCB = new BCheckBox(B_TRANSLATE("Enable query support"), NULL);
|
||||
|
||||
@@ -85,9 +85,8 @@ GIFView::GIFView(const char *name)
|
||||
}
|
||||
fColorCount256MI = fColorCountMI[7];
|
||||
|
||||
fPaletteMF = new BMenuField(B_TRANSLATE("Palette"), fPaletteM, NULL);
|
||||
|
||||
fColorCountMF = new BMenuField(B_TRANSLATE("Colors"), fColorCountM, NULL);
|
||||
fPaletteMF = new BMenuField(B_TRANSLATE("Palette"), fPaletteM);
|
||||
fColorCountMF = new BMenuField(B_TRANSLATE("Colors"), fColorCountM);
|
||||
|
||||
// check boxes
|
||||
fUseDitheringCB = new BCheckBox(B_TRANSLATE("Use dithering"),
|
||||
|
||||
@@ -510,7 +510,7 @@ public:
|
||||
mMenu->AddItem(new BMenuItem(B_TRANSLATE("RGB 5:6:5 16 bits "
|
||||
"big-endian"), CSMessage(B_RGB16)));
|
||||
mField = new BMenuField(B_TRANSLATE("Input Color Space"),
|
||||
mMenu, NULL);
|
||||
mMenu);
|
||||
mField->SetViewColor(ViewColor());
|
||||
SelectColorSpace(g_settings.out_space);
|
||||
BMessage * msg = new BMessage(CHANGE_ASCII);
|
||||
|
||||
@@ -131,8 +131,7 @@ TIFFView::TIFFView(const char *name, uint32 flags,
|
||||
// TODO ? - strip encoding is not implemented in libTIFF for this compression
|
||||
// add_menu_item(menu, COMPRESSION_JP2000, "JPEG2000", currentCompression);
|
||||
|
||||
fCompressionMF = new BMenuField(B_TRANSLATE("Use Compression:"), menu,
|
||||
NULL);
|
||||
fCompressionMF = new BMenuField(B_TRANSLATE("Use Compression:"), menu);
|
||||
|
||||
// Build the layout
|
||||
SetLayout(new BGroupLayout(B_VERTICAL));
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
#define B_TRANSLATE_CONTEXT "ConfigView"
|
||||
|
||||
|
||||
static const uint32 kMsgQuality = 'qlty';
|
||||
static const uint32 kMsgPreset = 'prst';
|
||||
static const uint32 kMsgMethod = 'metd';
|
||||
@@ -97,7 +98,7 @@ ConfigView::ConfigView(TranslatorSettings* settings, uint32 flags)
|
||||
preset++;
|
||||
}
|
||||
BMenuField* presetsField = new BMenuField(B_TRANSLATE("Output preset:"),
|
||||
fPresetsMenu, NULL);
|
||||
fPresetsMenu);
|
||||
|
||||
fQualitySlider = new BSlider("quality", B_TRANSLATE("Output quality:"),
|
||||
new BMessage(kMsgQuality), 0, 100, B_HORIZONTAL, B_BLOCK_THUMB);
|
||||
|
||||
@@ -688,7 +688,7 @@ VideoWindow::_BuildCaptureControls()
|
||||
fImageFormatMenu->ItemAt(0)->SetMarked(true);
|
||||
|
||||
fImageFormatSelector = new BMenuField("Format", B_TRANSLATE("Format:"),
|
||||
fImageFormatMenu, NULL);
|
||||
fImageFormatMenu);
|
||||
|
||||
// capture rate
|
||||
fCaptureRateMenu = new BPopUpMenu(B_TRANSLATE("Capture Rate Menu"));
|
||||
@@ -701,7 +701,7 @@ VideoWindow::_BuildCaptureControls()
|
||||
fCaptureRateMenu->SetTargetForItems(this);
|
||||
fCaptureRateMenu->FindItem(fCaptureRateSetting->Value())->SetMarked(true);
|
||||
fCaptureRateSelector = new BMenuField("Rate", B_TRANSLATE("Rate:"),
|
||||
fCaptureRateMenu, NULL);
|
||||
fCaptureRateMenu);
|
||||
|
||||
BLayoutBuilder::Grid<>(controlsLayout)
|
||||
.AddTextControl(fFileName, 0, 0)
|
||||
@@ -721,7 +721,7 @@ VideoWindow::_BuildCaptureControls()
|
||||
fUploadClientMenu->SetTargetForItems(this);
|
||||
fUploadClientMenu->FindItem(fUploadClientSetting->Value())->SetMarked(true);
|
||||
fUploadClientSelector = new BMenuField("UploadClient", NULL,
|
||||
fUploadClientMenu, NULL);
|
||||
fUploadClientMenu);
|
||||
|
||||
fFtpSetupBox->SetLabel(B_TRANSLATE("Output"));
|
||||
// this doesn't work with the layout manager
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2009 Ankur Sethi <get.me.ankur@gmail.com>
|
||||
* Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de.
|
||||
* Copyright 2004-2011, Axel Dörfler, axeld@pinc-software.de.
|
||||
* All rights reserved. Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -42,11 +42,11 @@ OpenWindow::OpenWindow()
|
||||
if (BMenuItem *item = fDevicesMenu->ItemAt(0))
|
||||
item->SetMarked(true);
|
||||
|
||||
BMenuField *field = new BMenuField(B_TRANSLATE("Examine device:"), fDevicesMenu,
|
||||
NULL);
|
||||
BMenuField *field = new BMenuField(B_TRANSLATE("Examine device:"),
|
||||
fDevicesMenu);
|
||||
|
||||
BButton *probeDeviceButton = new BButton("device", B_TRANSLATE("Probe device"),
|
||||
new BMessage(kMsgProbeDevice));
|
||||
BButton *probeDeviceButton = new BButton("device",
|
||||
B_TRANSLATE("Probe device"), new BMessage(kMsgProbeDevice));
|
||||
probeDeviceButton->MakeDefault(true);
|
||||
|
||||
BButton *probeFileButton = new BButton("file",
|
||||
@@ -56,7 +56,6 @@ OpenWindow::OpenWindow()
|
||||
BButton *cancelButton = new BButton("cancel", B_TRANSLATE("Cancel"),
|
||||
new BMessage(B_QUIT_REQUESTED));
|
||||
|
||||
|
||||
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
||||
|
||||
AddChild(BGridLayoutBuilder(8, 8)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008-20010 Haiku Inc. All rights reserved.
|
||||
* Copyright 2008-20011 Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*
|
||||
* Authors:
|
||||
@@ -247,7 +247,7 @@ CreateParamsPanel::_CreateViewControls(BPartition* parent, off_t offset,
|
||||
}
|
||||
|
||||
fTypeMenuField = new BMenuField(B_TRANSLATE("Partition type:"),
|
||||
fTypePopUpMenu, NULL);
|
||||
fTypePopUpMenu);
|
||||
|
||||
const float spacing = be_control_look->DefaultItemSpacing();
|
||||
BGroupLayout* layout = new BGroupLayout(B_VERTICAL, spacing);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* All rights reserved. Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "InstallerWindow.h"
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -183,11 +184,11 @@ InstallerWindow::InstallerWindow()
|
||||
true, false);
|
||||
|
||||
fSrcMenuField = new BMenuField("srcMenuField",
|
||||
B_TRANSLATE("Install from:"), fSrcMenu, NULL);
|
||||
B_TRANSLATE("Install from:"), fSrcMenu);
|
||||
fSrcMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
fDestMenuField = new BMenuField("destMenuField", B_TRANSLATE("Onto:"),
|
||||
fDestMenu, NULL);
|
||||
fDestMenu);
|
||||
fDestMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
fPackagesSwitch = new PaneSwitch("options_button");
|
||||
|
||||
+15
-20
@@ -181,34 +181,32 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
||||
int32 layoutRow = 0;
|
||||
|
||||
fButtonBarMenu = _BuildButtonBarMenu(*buttonBar);
|
||||
menu = new BMenuField("bar", B_TRANSLATE("Button bar:"),
|
||||
fButtonBarMenu, NULL);
|
||||
menu = new BMenuField("bar", B_TRANSLATE("Button bar:"), fButtonBarMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
|
||||
fFontMenu = _BuildFontMenu(font);
|
||||
menu = new BMenuField("font", B_TRANSLATE("Font:"),
|
||||
fFontMenu, NULL);
|
||||
menu = new BMenuField("font", B_TRANSLATE("Font:"), fFontMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
|
||||
fSizeMenu = _BuildSizeMenu(font);
|
||||
menu = new BMenuField("size", B_TRANSLATE("Size:"), fSizeMenu, NULL);
|
||||
menu = new BMenuField("size", B_TRANSLATE("Size:"), fSizeMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
|
||||
fColoredQuotesMenu = _BuildColoredQuotesMenu(fColoredQuotes);
|
||||
menu = new BMenuField("cquotes", B_TRANSLATE("Colored quotes:"),
|
||||
fColoredQuotesMenu, NULL);
|
||||
fColoredQuotesMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
|
||||
fSpellCheckStartOnMenu = _BuildSpellCheckStartOnMenu(fSpellCheckStartOn);
|
||||
menu = new BMenuField("spellCheckStartOn",
|
||||
B_TRANSLATE("Initial spell check mode:"),
|
||||
fSpellCheckStartOnMenu, NULL);
|
||||
fSpellCheckStartOnMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
|
||||
fAutoMarkReadMenu = _BuildAutoMarkReadMenu(fAutoMarkRead);
|
||||
menu = new BMenuField("autoMarkRead",
|
||||
B_TRANSLATE("Automatically mark mail as read:"),
|
||||
fAutoMarkReadMenu, NULL);
|
||||
fAutoMarkReadMenu);
|
||||
add_menu_to_layout(menu, interfaceLayout, layoutRow);
|
||||
// Mail Accounts
|
||||
|
||||
@@ -216,12 +214,12 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
||||
|
||||
fAccountMenu = _BuildAccountMenu(fAccount);
|
||||
menu = new BMenuField("account", B_TRANSLATE("Default account:"),
|
||||
fAccountMenu, NULL);
|
||||
fAccountMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
fReplyToMenu = _BuildReplyToMenu(fReplyTo);
|
||||
menu = new BMenuField("replyTo", B_TRANSLATE("Reply account:"),
|
||||
fReplyToMenu, NULL);
|
||||
fReplyToMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
// Mail Contents
|
||||
@@ -232,7 +230,7 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
||||
fReplyPreamble->SetAlignment(B_ALIGN_RIGHT, B_ALIGN_LEFT);
|
||||
|
||||
fReplyPreambleMenu = _BuildReplyPreambleMenu();
|
||||
menu = new BMenuField("replyPreamble", NULL, fReplyPreambleMenu, NULL);
|
||||
menu = new BMenuField("replyPreamble", NULL, fReplyPreambleMenu);
|
||||
menu->SetExplicitMaxSize(BSize(27, B_SIZE_UNSET));
|
||||
|
||||
mailLayout->AddItem(fReplyPreamble->CreateLabelLayoutItem(), 0, layoutRow);
|
||||
@@ -243,28 +241,25 @@ TPrefsWindow::TPrefsWindow(BRect rect, BFont* font, int32* level, bool* wrap,
|
||||
|
||||
fSignatureMenu = _BuildSignatureMenu(*sig);
|
||||
menu = new BMenuField("sig", B_TRANSLATE("Auto signature:"),
|
||||
fSignatureMenu, NULL);
|
||||
fSignatureMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
fEncodingMenu = _BuildEncodingMenu(fEncoding);
|
||||
menu = new BMenuField("enc", B_TRANSLATE("Encoding:"),
|
||||
fEncodingMenu, NULL);
|
||||
menu = new BMenuField("enc", B_TRANSLATE("Encoding:"), fEncodingMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
fWarnUnencodableMenu = _BuildWarnUnencodableMenu(fWarnUnencodable);
|
||||
menu = new BMenuField("warnUnencodable", B_TRANSLATE("Warn unencodable:"),
|
||||
fWarnUnencodableMenu, NULL);
|
||||
fWarnUnencodableMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
fWrapMenu = _BuildWrapMenu(*wrap);
|
||||
menu = new BMenuField("wrap", B_TRANSLATE("Text wrapping:"),
|
||||
fWrapMenu, NULL);
|
||||
menu = new BMenuField("wrap", B_TRANSLATE("Text wrapping:"), fWrapMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
fAttachAttributesMenu = _BuildAttachAttributesMenu(*attachAttributes);
|
||||
menu = new BMenuField("attachAttributes",
|
||||
B_TRANSLATE("Attach attributes:"),
|
||||
fAttachAttributesMenu, NULL);
|
||||
menu = new BMenuField("attachAttributes", B_TRANSLATE("Attach attributes:"),
|
||||
fAttachAttributesMenu);
|
||||
add_menu_to_layout(menu, mailLayout, layoutRow);
|
||||
|
||||
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* All rights reserved. Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include "AntialiasingSettingsView.h"
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -87,7 +88,7 @@ AntialiasingSettingsView::AntialiasingSettingsView(const char* name)
|
||||
// antialiasing menu
|
||||
_BuildAntialiasingMenu();
|
||||
fAntialiasingMenuField = new BMenuField("antialiasing",
|
||||
B_TRANSLATE("Antialiasing type:"), fAntialiasingMenu, NULL);
|
||||
B_TRANSLATE("Antialiasing type:"), fAntialiasingMenu);
|
||||
|
||||
// "average weight" in subpixel filtering
|
||||
fAverageWeightControl = new BSlider("averageWeightControl",
|
||||
@@ -102,7 +103,7 @@ AntialiasingSettingsView::AntialiasingSettingsView(const char* name)
|
||||
// hinting menu
|
||||
_BuildHintingMenu();
|
||||
fHintingMenuField = new BMenuField("hinting", B_TRANSLATE("Glyph hinting:"),
|
||||
fHintingMenu, NULL);
|
||||
fHintingMenu);
|
||||
|
||||
#ifdef DISABLE_HINTING_CONTROL
|
||||
fHintingMenuField->SetEnabled(false);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2009, Haiku.
|
||||
* Copyright 2001-2011, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -99,12 +99,11 @@ FontSelectionView::FontSelectionView(const char* name,
|
||||
fFontsMenu = new BPopUpMenu("font menu");
|
||||
|
||||
// font menu
|
||||
fFontsMenuField = new BMenuField("fonts", label, fFontsMenu, NULL);
|
||||
fFontsMenuField = new BMenuField("fonts", label, fFontsMenu);
|
||||
fFontsMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// size menu
|
||||
fSizesMenuField = new BMenuField("size", B_TRANSLATE("Size:"),
|
||||
fSizesMenu, NULL);
|
||||
fSizesMenuField = new BMenuField("size", B_TRANSLATE("Size:"), fSizesMenu);
|
||||
fSizesMenuField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// preview
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
//
|
||||
// Copyright (c) 2003, OpenBeOS
|
||||
//
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// by the OpenBeOS license.
|
||||
//
|
||||
//
|
||||
// File: MediaViews.cpp
|
||||
// Author: Sikosis, Jérôme Duval
|
||||
// Description: Media Preferences
|
||||
// Created : June 25, 2003
|
||||
//
|
||||
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
/*
|
||||
* Copyright 2003-2011, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Sikosis
|
||||
* Jérôme Duval
|
||||
*/
|
||||
|
||||
|
||||
#include "MediaViews.h"
|
||||
|
||||
#include <AutoDeleter.h>
|
||||
@@ -268,10 +264,10 @@ AudioSettingsView::AudioSettingsView()
|
||||
BGridView* defaultsGridView = new BGridView();
|
||||
|
||||
BMenuField* inputMenuField = new BMenuField("inputMenuField",
|
||||
B_TRANSLATE("Audio input:"), InputMenu(), NULL);
|
||||
B_TRANSLATE("Audio input:"), InputMenu());
|
||||
|
||||
BMenuField* outputMenuField = new BMenuField("outputMenuField",
|
||||
B_TRANSLATE("Audio output:"), OutputMenu(), NULL);
|
||||
B_TRANSLATE("Audio output:"), OutputMenu());
|
||||
|
||||
BLayoutBuilder::Grid<>(defaultsGridView)
|
||||
.SetInsets(B_USE_DEFAULT_SPACING, 0, B_USE_DEFAULT_SPACING,
|
||||
@@ -372,7 +368,7 @@ AudioSettingsView::_MakeChannelMenu()
|
||||
fChannelMenu = new BPopUpMenu(B_TRANSLATE("<none>"));
|
||||
fChannelMenu->SetLabelFromMarked(true);
|
||||
BMenuField* channelMenuField = new BMenuField("channelMenuField",
|
||||
B_TRANSLATE("Channel:"), fChannelMenu, NULL);
|
||||
B_TRANSLATE("Channel:"), fChannelMenu);
|
||||
return channelMenuField;
|
||||
}
|
||||
|
||||
@@ -495,10 +491,10 @@ VideoSettingsView::VideoSettingsView()
|
||||
BGridView* defaultsGridView = new BGridView();
|
||||
|
||||
BMenuField* inputMenuField = new BMenuField("inputMenuField",
|
||||
B_TRANSLATE("Video input:"), InputMenu(), NULL);
|
||||
B_TRANSLATE("Video input:"), InputMenu());
|
||||
|
||||
BMenuField* outputMenuField = new BMenuField("outputMenuField",
|
||||
B_TRANSLATE("Video output:"), OutputMenu(), NULL);
|
||||
B_TRANSLATE("Video output:"), OutputMenu());
|
||||
|
||||
BLayoutBuilder::Grid<>(defaultsGridView)
|
||||
.SetInsets(B_USE_DEFAULT_SPACING, 0, B_USE_DEFAULT_SPACING,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2009 Haiku Inc. All rights reserved.
|
||||
* Copyright 2003-2011 Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -9,6 +9,7 @@
|
||||
* Brecht Machiels (brecht@mos6581.org)
|
||||
*/
|
||||
|
||||
|
||||
#include "SettingsView.h"
|
||||
|
||||
#include <Bitmap.h>
|
||||
@@ -81,7 +82,7 @@ SettingsView::SettingsView(MouseSettings &settings)
|
||||
new BMessage(kMsgMouseType)));
|
||||
|
||||
BMenuField *fTypeField = new BMenuField(B_TRANSLATE("Mouse type:"),
|
||||
fTypeMenu, NULL);
|
||||
fTypeMenu);
|
||||
fTypeField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// Create the "Double-click speed slider...
|
||||
@@ -136,7 +137,7 @@ SettingsView::SettingsView(MouseSettings &settings)
|
||||
}
|
||||
|
||||
BMenuField *fFocusField = new BMenuField(B_TRANSLATE("Focus mode:"),
|
||||
fFocusMenu, NULL);
|
||||
fFocusMenu);
|
||||
fFocusField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// Add the "Focus follows mouse mode" pop up menu
|
||||
@@ -158,7 +159,7 @@ SettingsView::SettingsView(MouseSettings &settings)
|
||||
}
|
||||
|
||||
BMenuField *fFocusFollowsMouseField = new BMenuField(
|
||||
"Focus follows mouse mode:", fFocusFollowsMouseMenu, NULL);
|
||||
"Focus follows mouse mode:", fFocusFollowsMouseMenu);
|
||||
fFocusFollowsMouseField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
// Add the "Click-through" check box
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2009, Haiku.
|
||||
* Copyright 2001-2011, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -200,7 +200,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
fAllWorkspacesItem->SetMarked(true);
|
||||
|
||||
BMenuField* workspaceMenuField = new BMenuField("WorkspaceMenu", NULL,
|
||||
popUpMenu, NULL);
|
||||
popUpMenu);
|
||||
workspaceMenuField->ResizeToPreferred();
|
||||
|
||||
// box on the left with workspace count and monitor view
|
||||
@@ -283,7 +283,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
fMonitorView->SetMaxResolution(maxWidth, maxHeight);
|
||||
|
||||
fResolutionField = new BMenuField("ResolutionMenu",
|
||||
B_TRANSLATE("Resolution:"), fResolutionMenu, NULL);
|
||||
B_TRANSLATE("Resolution:"), fResolutionMenu);
|
||||
|
||||
fColorsMenu = new BPopUpMenu("colors", true, false);
|
||||
|
||||
@@ -303,7 +303,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
}
|
||||
|
||||
fColorsField = new BMenuField("ColorsMenu", B_TRANSLATE("Colors:"),
|
||||
fColorsMenu, NULL);
|
||||
fColorsMenu);
|
||||
|
||||
fRefreshMenu = new BPopUpMenu("refresh rate", true, true);
|
||||
|
||||
@@ -349,7 +349,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
}
|
||||
|
||||
fRefreshField = new BMenuField("RefreshMenu", B_TRANSLATE("Refresh rate:"),
|
||||
fRefreshMenu, NULL);
|
||||
fRefreshMenu);
|
||||
|
||||
if (_IsVesa())
|
||||
fRefreshField->Hide();
|
||||
@@ -381,7 +381,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
}
|
||||
|
||||
fCombineField = new BMenuField("CombineMenu",
|
||||
B_TRANSLATE("Combine displays:"), fCombineMenu, NULL);
|
||||
B_TRANSLATE("Combine displays:"), fCombineMenu);
|
||||
|
||||
if (!multiMonSupport)
|
||||
fCombineField->Hide();
|
||||
@@ -399,7 +399,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
fSwapDisplaysMenu->AddItem(new BMenuItem(B_TRANSLATE("yes"), message));
|
||||
|
||||
fSwapDisplaysField = new BMenuField("SwapMenu",
|
||||
B_TRANSLATE("Swap displays:"), fSwapDisplaysMenu, NULL);
|
||||
B_TRANSLATE("Swap displays:"), fSwapDisplaysMenu);
|
||||
|
||||
if (!multiMonSupport)
|
||||
fSwapDisplaysField->Hide();
|
||||
@@ -419,7 +419,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
message));
|
||||
|
||||
fUseLaptopPanelField = new BMenuField("UseLaptopPanel",
|
||||
B_TRANSLATE("Use laptop panel:"), fUseLaptopPanelMenu, NULL);
|
||||
B_TRANSLATE("Use laptop panel:"), fUseLaptopPanelMenu);
|
||||
|
||||
if (!useLaptopPanelSupport)
|
||||
fUseLaptopPanelField->Hide();
|
||||
@@ -442,7 +442,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||
}
|
||||
|
||||
fTVStandardField = new BMenuField("tv standard",
|
||||
B_TRANSLATE("Video format:"), fTVStandardMenu, NULL);
|
||||
B_TRANSLATE("Video format:"), fTVStandardMenu);
|
||||
fTVStandardField->SetAlignment(B_ALIGN_RIGHT);
|
||||
|
||||
if (!tvStandardSupport || i == 0)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2009, Haiku. All rights reserved.
|
||||
* Copyright 2002-2011, Haiku. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -153,7 +153,7 @@ ConfigWindow::ConfigWindow(config_setup_kind kind, Printer* defaultPrinter,
|
||||
BPopUpMenu* menu = new BPopUpMenu(B_TRANSLATE("Select a printer"));
|
||||
SetupPrintersMenu(menu);
|
||||
|
||||
fPrinters = new BMenuField(B_TRANSLATE("Printer:"), menu, NULL);
|
||||
fPrinters = new BMenuField(B_TRANSLATE("Printer:"), menu);
|
||||
|
||||
// page format button
|
||||
fPageSetup = AddPictureButton(panel, dummyRect, "Paper setup",
|
||||
|
||||
Reference in New Issue
Block a user