From 60e26d38ee6f1ebe0d8992fb8cfc04d9f1f577f7 Mon Sep 17 00:00:00 2001
From: "Stephen A. Imhoff" <clockwork-muse@outlook.com>
Date: Sun, 29 May 2016 15:04:18 +0900
Subject: [PATCH] Remove ignored flags.
---
source/tools/atlas/AtlasUI/CustomControls/MapDialog/MapDialog.cpp | 2 +-
.../tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp | 4 ++--
.../atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp | 8 ++++----
.../tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.cpp | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/source/tools/atlas/AtlasUI/CustomControls/MapDialog/MapDialog.cpp b/source/tools/atlas/AtlasUI/CustomControls/MapDialog/MapDialog.cpp
index f5eab4f..a56ee3f 100644
a
|
b
|
MapDialog::MapDialog(wxWindow* parent, MapDialogType type, const wxIcon& icon)
|
95 | 95 | |
96 | 96 | wxSizer* filenameSizer = new wxBoxSizer(wxHORIZONTAL); |
97 | 97 | filenameSizer->AddSpacer(10); |
98 | | filenameSizer->Add(new wxStaticText(this, wxID_ANY, _("Map name: ")), wxSizerFlags().Align(wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL)); |
| 98 | filenameSizer->Add(new wxStaticText(this, wxID_ANY, _("Map name: ")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL)); |
99 | 99 | wxTextCtrl* filename = new wxTextCtrl(this, ID_MapDialogFilename, wxEmptyString); |
100 | 100 | if (m_Type == MAPDIALOG_OPEN) |
101 | 101 | filename->Disable(); |
diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Player/Player.cpp
index c99200d..bbaf307 100644
a
|
b
|
public:
|
201 | 201 | wxChoice* teamCtrl = new wxChoice(this, wxID_ANY); |
202 | 202 | boxSizer->Add(new DefaultCheckbox(this, ID_DefaultTeam, teamCtrl), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL)); |
203 | 203 | boxSizer->AddSpacer(5); |
204 | | boxSizer->Add(new wxStaticText(this, wxID_ANY, _("Team")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); |
| 204 | boxSizer->Add(new wxStaticText(this, wxID_ANY, _("Team")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL)); |
205 | 205 | boxSizer->AddSpacer(5); |
206 | 206 | teamCtrl->Append(_("None")); |
207 | 207 | teamCtrl->Append(_T("1")); |
… |
… |
PlayerSettingsControl::PlayerSettingsControl(wxWindow* parent, ScenarioEditor& s
|
560 | 560 | SetSizer(sizer); |
561 | 561 | |
562 | 562 | wxBoxSizer* boxSizer = new wxBoxSizer(wxHORIZONTAL); |
563 | | boxSizer->Add(new wxStaticText(this, wxID_ANY, _("Num players")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); |
| 563 | boxSizer->Add(new wxStaticText(this, wxID_ANY, _("Num players")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL)); |
564 | 564 | wxSpinCtrl* numPlayersSpin = new wxSpinCtrl(this, ID_NumPlayers, wxEmptyString, wxDefaultPosition, wxSize(40, -1)); |
565 | 565 | numPlayersSpin->SetValue(MAX_NUM_PLAYERS); |
566 | 566 | numPlayersSpin->SetRange(1, MAX_NUM_PLAYERS); |
diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp
index 2c2287a..d6a935b 100644
a
|
b
|
public:
|
119 | 119 | wxImage img(qry.preview->imageWidth, qry.preview->imageHeight, buf); |
120 | 120 | |
121 | 121 | wxStaticBitmap* bitmap = new wxStaticBitmap(this, wxID_ANY, wxBitmap(img), wxDefaultPosition, wxSize(qry.preview->imageWidth, qry.preview->imageHeight), wxBORDER_SIMPLE); |
122 | | m_Sizer->Add(bitmap, wxSizerFlags(1).Align(wxALIGN_CENTRE)); |
| 122 | m_Sizer->Add(bitmap, wxSizerFlags(1).Align(wxALIGN_CENTER)); |
123 | 123 | m_Sizer->Add(label, wxSizerFlags().Expand()); |
124 | 124 | |
125 | 125 | // We have to force the sidebar to layout manually |
… |
… |
TerrainSidebar::TerrainSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebar
|
232 | 232 | m_PassabilityChoice = new wxChoice(this, ID_Passability, wxDefaultPosition, wxDefaultSize, defaultChoices); |
233 | 233 | m_PassabilityChoice->SetSelection(0); |
234 | 234 | |
235 | | visSizer->Add(new wxStaticText(this, wxID_ANY, _("Passability")), wxSizerFlags().Align(wxALIGN_CENTER|wxALIGN_RIGHT)); |
| 235 | visSizer->Add(new wxStaticText(this, wxID_ANY, _("Passability")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT)); |
236 | 236 | visSizer->Add(Tooltipped(m_PassabilityChoice, |
237 | 237 | _("View passability classes")), wxSizerFlags().Expand()); |
238 | 238 | |
239 | | visSizer->Add(new wxStaticText(this, wxID_ANY, _("Priorities")), wxSizerFlags().Align(wxALIGN_CENTER|wxALIGN_RIGHT)); |
| 239 | visSizer->Add(new wxStaticText(this, wxID_ANY, _("Priorities")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT)); |
240 | 240 | visSizer->Add(Tooltipped(new wxCheckBox(this, ID_ShowPriorities, _("")), |
241 | 241 | _("Show terrain texture priorities"))); |
242 | 242 | } |
… |
… |
public:
|
390 | 390 | wxSizer* imageSizer = new wxBoxSizer(wxVERTICAL); |
391 | 391 | imageSizer->Add(button, wxSizerFlags().Center()); |
392 | 392 | imageSizer->Add(label, wxSizerFlags().Proportion(1).Center()); |
393 | | m_ItemSizer->Add(imageSizer, wxSizerFlags().Expand().Center()); |
| 393 | m_ItemSizer->Add(imageSizer, wxSizerFlags().Center()); |
394 | 394 | } |
395 | 395 | |
396 | 396 | m_ScrolledPanel->Fit(); |
diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/Brushes.cpp
index 9a159f7..4874087 100644
a
|
b
|
void Brush::CreateUI(wxWindow* parent, wxSizer* sizer)
|
244 | 244 | // TODO: These are yucky |
245 | 245 | wxFlexGridSizer* spinnerSizer = new wxFlexGridSizer(2, 5, 5); |
246 | 246 | spinnerSizer->AddGrowableCol(1); |
247 | | spinnerSizer->Add(new wxStaticText(parent, wxID_ANY, _("Size")), wxSizerFlags().Align(wxALIGN_CENTER|wxALIGN_RIGHT)); |
| 247 | spinnerSizer->Add(new wxStaticText(parent, wxID_ANY, _("Size")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT)); |
248 | 248 | spinnerSizer->Add(new BrushSizeCtrl(parent, *this), wxSizerFlags().Expand()); |
249 | | spinnerSizer->Add(new wxStaticText(parent, wxID_ANY, _("Strength")), wxSizerFlags().Align(wxALIGN_CENTER|wxALIGN_RIGHT)); |
| 249 | spinnerSizer->Add(new wxStaticText(parent, wxID_ANY, _("Strength")), wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT)); |
250 | 250 | spinnerSizer->Add(new BrushStrengthCtrl(parent, *this), wxSizerFlags().Expand()); |
251 | 251 | sizer->Add(spinnerSizer, wxSizerFlags().Expand()); |
252 | 252 | } |