Differential D1784 Diff 10061 ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.cpp
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasDialog.cpp
/* Copyright (C) 2009 Wildfire Games. | /* Copyright (C) 2019 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 36 Lines | AtlasDialog::AtlasDialog(wxWindow* parent, const wxString& title, const wxSize& size) | ||||
m_MainPanel = new wxPanel(this); | m_MainPanel = new wxPanel(this); | ||||
mainSizer->Add(m_MainPanel, wxSizerFlags().Proportion(1).Expand().Border(wxLEFT|wxRIGHT, 5)); | mainSizer->Add(m_MainPanel, wxSizerFlags().Proportion(1).Expand().Border(wxLEFT|wxRIGHT, 5)); | ||||
// ------------------------------------------------------------------------- | // ------------------------------------------------------------------------- | ||||
mainSizer->Add(new wxStaticLine(this, -1), wxSizerFlags().Expand().Border(wxALL, 5)); | mainSizer->Add(new wxStaticLine(this, -1), wxSizerFlags().Expand().Border(wxALL, 5)); | ||||
wxBoxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL); | wxBoxSizer* buttonSizer = new wxBoxSizer(wxHORIZONTAL); | ||||
mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Align(wxALIGN_RIGHT).Border(wxALL, 5)); | mainSizer->Add(buttonSizer, wxSizerFlags().Expand().Border(wxALL, 5)); | ||||
buttonSizer->Add(new wxButton(this, wxID_OK, _("OK")), wxSizerFlags().Border(wxRIGHT, 25)); | buttonSizer->Add(new wxButton(this, wxID_OK, _("OK")), wxSizerFlags().Border(wxRIGHT, 25)); | ||||
buttonSizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), wxSizerFlags().Border(wxRIGHT, 5)); | buttonSizer->Add(new wxButton(this, wxID_CANCEL, _("Cancel")), wxSizerFlags().Border(wxRIGHT, 5)); | ||||
////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////// | ||||
// Set up handlers for Ctrl+Z, Ctrl+Y (undo/redo), since dialogs don't | // Set up handlers for Ctrl+Z, Ctrl+Y (undo/redo), since dialogs don't | ||||
// have any menu entries for them (since they don't have menus at all). | // have any menu entries for them (since they don't have menus at all). | ||||
Show All 18 Lines |
Wildfire Games · Phabricator