From f55baadfeb6245899497cd472f65f23e905481b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Dec 2017 06:12:48 +0300 Subject: Remove default parameters from containerplacer. --- src/gui/widgets/tabs/debugwindowtabs.cpp | 60 ++++++++++++++++---------------- src/gui/widgets/tabs/setup_colors.cpp | 32 ++++++++--------- src/gui/widgets/tabs/setup_input.cpp | 10 +++--- src/gui/widgets/tabs/setup_joystick.cpp | 12 +++---- src/gui/widgets/tabs/setup_relations.cpp | 12 +++---- src/gui/widgets/tabs/setup_theme.cpp | 50 +++++++++++++------------- src/gui/widgets/tabs/setup_video.cpp | 24 ++++++------- 7 files changed, 100 insertions(+), 100 deletions(-) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/debugwindowtabs.cpp b/src/gui/widgets/tabs/debugwindowtabs.cpp index 6199fccca..67eb10a1d 100644 --- a/src/gui/widgets/tabs/debugwindowtabs.cpp +++ b/src/gui/widgets/tabs/debugwindowtabs.cpp @@ -131,16 +131,16 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) : mFPSText = _("%d FPS (Software)"); #endif // USE_OPENGL - place(0, 0, mFPSLabel, 2); - place(0, 1, mLPSLabel, 2); - place(0, 2, mMusicFileLabel, 2); - place(0, 3, mMapLabel, 2); - place(0, 4, mMapNameLabel, 2); - place(0, 5, mMinimapLabel, 2); - place(0, 6, mXYLabel, 2); - place(0, 7, mTileMouseLabel, 2); - place(0, 8, mParticleCountLabel, 2); - place(0, 9, mMapActorCountLabel, 2); + place(0, 0, mFPSLabel, 2, 1); + place(0, 1, mLPSLabel, 2, 1); + place(0, 2, mMusicFileLabel, 2, 1); + place(0, 3, mMapLabel, 2, 1); + place(0, 4, mMapNameLabel, 2, 1); + place(0, 5, mMinimapLabel, 2, 1); + place(0, 6, mXYLabel, 2, 1); + place(0, 7, mTileMouseLabel, 2, 1); + place(0, 8, mParticleCountLabel, 2, 1); + place(0, 9, mMapActorCountLabel, 2, 1); #ifdef USE_OPENGL #if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) \ || defined(DEBUG_BIND_TEXTURE) @@ -151,15 +151,15 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) : mTexturesLabel = new Label(this, strprintf("%s %s", // TRANSLATORS: debug window label _("Textures count:"), "?")); - place(0, n, mTexturesLabel, 2); + place(0, n, mTexturesLabel, 2, 1); n ++; #endif // DEBUG_OPENGL_LEAKS #ifdef DEBUG_DRAW_CALLS - place(0, n, mDrawCallsLabel, 2); + place(0, n, mDrawCallsLabel, 2, 1); n ++; #endif // DEBUG_DRAW_CALLS #ifdef DEBUG_BIND_TEXTURE - place(0, n, mBindsLabel, 2); + place(0, n, mBindsLabel, 2, 1); #endif // DEBUG_BIND_TEXTURE #endif // USE_OPENGL @@ -308,20 +308,20 @@ TargetDebugTab::TargetDebugTab(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mTargetLabel, 2); - place(0, 1, mTargetIdLabel, 2); - place(0, 2, mTargetTypeLabel, 2); - place(0, 3, mTargetLevelLabel, 2); - place(0, 4, mTargetRaceLabel, 2); - place(0, 5, mAttackDelayLabel, 2); - place(0, 6, mTargetPartyLabel, 2); - place(0, 7, mTargetGuildLabel, 2); - place(0, 8, mMinHitLabel, 2); - place(0, 9, mMaxHitLabel, 2); - place(0, 10, mCriticalHitLabel, 2); - place(0, 11, mKarmaLabel, 2); - place(0, 12, mMannerLabel, 2); - place(0, 13, mEffectsLabel, 2); + place(0, 0, mTargetLabel, 2, 1); + place(0, 1, mTargetIdLabel, 2, 1); + place(0, 2, mTargetTypeLabel, 2, 1); + place(0, 3, mTargetLevelLabel, 2, 1); + place(0, 4, mTargetRaceLabel, 2, 1); + place(0, 5, mAttackDelayLabel, 2, 1); + place(0, 6, mTargetPartyLabel, 2, 1); + place(0, 7, mTargetGuildLabel, 2, 1); + place(0, 8, mMinHitLabel, 2, 1); + place(0, 9, mMaxHitLabel, 2, 1); + place(0, 10, mCriticalHitLabel, 2, 1); + place(0, 11, mKarmaLabel, 2, 1); + place(0, 12, mMannerLabel, 2, 1); + place(0, 13, mEffectsLabel, 2, 1); place.getCell().matchColWidth(0, 0); place = h.getPlacer(0, 1); @@ -459,9 +459,9 @@ NetDebugTab::NetDebugTab(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mPingLabel, 2); - place(0, 1, mInPackets1Label, 2); - place(0, 2, mOutPackets1Label, 2); + place(0, 0, mPingLabel, 2, 1); + place(0, 1, mInPackets1Label, 2, 1); + place(0, 2, mOutPackets1Label, 2, 1); place.getCell().matchColWidth(0, 0); place = h.getPlacer(0, 1); diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index f6f8dc386..cdbda9415 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -177,22 +177,22 @@ Setup_Colors::Setup_Colors(const Widget2 *const widget) : ContainerPlacer place = h.getPlacer(0, 0); place(0, 0, mScroll, 6, 6).setPadding(2); - place(0, 6, mPreviewBox, 6).setPadding(2); - place(0, 7, mGradTypeLabel, 3); - place(3, 7, mGradTypeSlider); - place(4, 7, mGradTypeText, 2).setPadding(1); - place(0, 8, mRedLabel, 3); - place(3, 8, mRedSlider); - place(5, 8, mRedText).setPadding(1); - place(0, 9, mGreenLabel, 3); - place(3, 9, mGreenSlider); - place(5, 9, mGreenText).setPadding(1); - place(0, 10, mBlueLabel, 3); - place(3, 10, mBlueSlider); - place(5, 10, mBlueText).setPadding(1); - place(0, 11, mGradDelayLabel, 3); - place(3, 11, mGradDelaySlider); - place(5, 11, mGradDelayText).setPadding(1); + place(0, 6, mPreviewBox, 6, 1).setPadding(2); + place(0, 7, mGradTypeLabel, 3, 1); + place(3, 7, mGradTypeSlider, 1, 1); + place(4, 7, mGradTypeText, 2, 1).setPadding(1); + place(0, 8, mRedLabel, 3, 1); + place(3, 8, mRedSlider, 1, 1); + place(5, 8, mRedText, 1, 1).setPadding(1); + place(0, 9, mGreenLabel, 3, 1); + place(3, 9, mGreenSlider, 1, 1); + place(5, 9, mGreenText, 1, 1).setPadding(1); + place(0, 10, mBlueLabel, 3, 1); + place(3, 10, mBlueSlider, 1, 1); + place(5, 10, mBlueText, 1, 1).setPadding(1); + place(0, 11, mGradDelayLabel, 3, 1); + place(3, 11, mGradDelaySlider, 1, 1); + place(5, 11, mGradDelayText, 1, 1).setPadding(1); mGradTypeText->setCaption(""); diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp index ec03b0591..016163d77 100644 --- a/src/gui/widgets/tabs/setup_input.cpp +++ b/src/gui/widgets/tabs/setup_input.cpp @@ -118,12 +118,12 @@ Setup_Input::Setup_Input(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mTabs, 5); + place(0, 0, mTabs, 5, 1); place(0, 1, mScrollArea, 5, 5).setPadding(2); - place(0, 6, mResetKeysButton); - place(2, 6, mAssignKeyButton); - place(3, 6, mUnassignKeyButton); - place(4, 6, mDefaultButton); + place(0, 6, mResetKeysButton, 1, 1); + place(2, 6, mAssignKeyButton, 1, 1); + place(3, 6, mUnassignKeyButton, 1, 1); + place(4, 6, mDefaultButton, 1, 1); int width = 600; if (config.getIntValue("screenwidth") >= 730) diff --git a/src/gui/widgets/tabs/setup_joystick.cpp b/src/gui/widgets/tabs/setup_joystick.cpp index 84cd60521..12fd49b23 100644 --- a/src/gui/widgets/tabs/setup_joystick.cpp +++ b/src/gui/widgets/tabs/setup_joystick.cpp @@ -87,12 +87,12 @@ Setup_Joystick::Setup_Joystick(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mJoystickEnabled); - place(0, 1, mNamesDropDown); - place(0, 2, mUseInactiveCheckBox); - place(0, 3, mDetectButton); - place(0, 4, mCalibrateLabel); - place(0, 5, mCalibrateButton); + place(0, 0, mJoystickEnabled, 1, 1); + place(0, 1, mNamesDropDown, 1, 1); + place(0, 2, mUseInactiveCheckBox, 1, 1); + place(0, 3, mDetectButton, 1, 1); + place(0, 4, mCalibrateLabel, 1, 1); + place(0, 5, mCalibrateButton, 1, 1); setDimension(Rect(0, 0, 365, 75)); } diff --git a/src/gui/widgets/tabs/setup_relations.cpp b/src/gui/widgets/tabs/setup_relations.cpp index d81774694..fa182bccc 100644 --- a/src/gui/widgets/tabs/setup_relations.cpp +++ b/src/gui/widgets/tabs/setup_relations.cpp @@ -129,13 +129,13 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mPlayerTitleTable, 6); + place(0, 0, mPlayerTitleTable, 6, 1); place(0, 1, mPlayerScrollArea, 6, 4).setPadding(2); - place(0, 5, mDeleteButton); - place(3, 5, ignore_action_label, 1); - place(4, 5, mIgnoreActionChoicesBox, 2).setPadding(2); - place(3, 6, mDefaultTrading, 3); - place(3, 7, mDefaultWhisper, 3); + place(0, 5, mDeleteButton, 1, 1); + place(3, 5, ignore_action_label, 1, 1); + place(4, 5, mIgnoreActionChoicesBox, 2, 1).setPadding(2); + place(3, 6, mDefaultTrading, 3, 1); + place(3, 7, mDefaultWhisper, 3, 1); playerRelations.addListener(this); diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp index 47cbb2b92..e8baed86f 100644 --- a/src/gui/widgets/tabs/setup_theme.cpp +++ b/src/gui/widgets/tabs/setup_theme.cpp @@ -184,33 +184,33 @@ Setup_Theme::Setup_Theme(const Widget2 *const widget) : LayoutHelper h(this); ContainerPlacer place = h.getPlacer(0, 0); - place(0, 0, mThemeLabel, 5); - place(0, 1, mLangLabel, 5); - place(0, 2, mFontSizeLabel, 5); - place(0, 3, mNpcFontSizeLabel, 5); - place(0, 4, mFontLabel, 5); - place(0, 5, mBoldFontLabel, 5); - place(0, 6, mParticleFontLabel, 5); - place(0, 7, mHelpFontLabel, 5); - place(0, 8, mSecureFontLabel, 5); - place(0, 9, mNpcFontLabel, 5); - place(0, 10, mJapanFontLabel, 5); - place(0, 11, mChinaFontLabel, 5); + place(0, 0, mThemeLabel, 5, 1); + place(0, 1, mLangLabel, 5, 1); + place(0, 2, mFontSizeLabel, 5, 1); + place(0, 3, mNpcFontSizeLabel, 5, 1); + place(0, 4, mFontLabel, 5, 1); + place(0, 5, mBoldFontLabel, 5, 1); + place(0, 6, mParticleFontLabel, 5, 1); + place(0, 7, mHelpFontLabel, 5, 1); + place(0, 8, mSecureFontLabel, 5, 1); + place(0, 9, mNpcFontLabel, 5, 1); + place(0, 10, mJapanFontLabel, 5, 1); + place(0, 11, mChinaFontLabel, 5, 1); - place(6, 0, mThemeDropDown, 10); - place(6, 1, mLangDropDown, 10); - place(6, 2, mFontSizeDropDown, 10); - place(6, 3, mNpcFontSizeDropDown, 10); - place(6, 4, mFontDropDown, 10); - place(6, 5, mBoldFontDropDown, 10); - place(6, 6, mParticleFontDropDown, 10); - place(6, 7, mHelpFontDropDown, 10); - place(6, 8, mSecureFontDropDown, 10); - place(6, 9, mNpcFontDropDown, 10); - place(6, 10, mJapanFontDropDown, 10); - place(6, 11, mChinaFontDropDown, 10); + place(6, 0, mThemeDropDown, 10, 1); + place(6, 1, mLangDropDown, 10, 1); + place(6, 2, mFontSizeDropDown, 10, 1); + place(6, 3, mNpcFontSizeDropDown, 10, 1); + place(6, 4, mFontDropDown, 10, 1); + place(6, 5, mBoldFontDropDown, 10, 1); + place(6, 6, mParticleFontDropDown, 10, 1); + place(6, 7, mHelpFontDropDown, 10, 1); + place(6, 8, mSecureFontDropDown, 10, 1); + place(6, 9, mNpcFontDropDown, 10, 1); + place(6, 10, mJapanFontDropDown, 10, 1); + place(6, 11, mChinaFontDropDown, 10, 1); - place(17, 0, mInfoButton, 1); + place(17, 0, mInfoButton, 1, 1); int size = mainGraphics->mWidth - 10; const int maxWidth = mFontSize * 30 + 290; diff --git a/src/gui/widgets/tabs/setup_video.cpp b/src/gui/widgets/tabs/setup_video.cpp index 17f74bf83..26e97b19a 100644 --- a/src/gui/widgets/tabs/setup_video.cpp +++ b/src/gui/widgets/tabs/setup_video.cpp @@ -169,27 +169,27 @@ Setup_Video::Setup_Video(const Widget2 *const widget) : ContainerPlacer place = h.getPlacer(0, 0); place(0, 0, scrollArea, 1, 5).setPadding(2); - place(0, 5, mOpenGLDropDown, 1); + place(0, 5, mOpenGLDropDown, 1, 1); - place(1, 0, mFsCheckBox, 2); + place(1, 0, mFsCheckBox, 2, 1); - place(1, 1, mCustomCursorCheckBox, 3); + place(1, 1, mCustomCursorCheckBox, 3, 1); - place(1, 2, mEnableResizeCheckBox, 2); - place(1, 3, mNoFrameCheckBox, 2); + place(1, 2, mEnableResizeCheckBox, 2, 1); + place(1, 3, mNoFrameCheckBox, 2, 1); #ifdef USE_SDL2 - place(1, 4, mAllowHighDPICheckBox, 2); + place(1, 4, mAllowHighDPICheckBox, 2, 1); #endif // USE_SDL2 - place(0, 6, mFpsSlider); - place(1, 6, mFpsCheckBox).setPadding(3); - place(2, 6, mFpsLabel).setPadding(1); + place(0, 6, mFpsSlider, 1, 1); + place(1, 6, mFpsCheckBox, 1, 1).setPadding(3); + place(2, 6, mFpsLabel, 1, 1).setPadding(1); - place(0, 7, mAltFpsSlider); - place(1, 7, mAltFpsLabel).setPadding(3); + place(0, 7, mAltFpsSlider, 1, 1); + place(1, 7, mAltFpsLabel, 1, 1).setPadding(3); #if !defined(ANDROID) && !defined(__APPLE__) && !defined(__native_client__) - place(0, 8, mDetectButton); + place(0, 8, mDetectButton, 1, 1); #else // !defined(ANDROID) && !defined(__APPLE__) && // !defined(__native_client__) mNoFrameCheckBox->setEnabled(false); -- cgit v1.2.3-60-g2f50