cDialogTeams::cDialogTeams(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); vector<cTeam*> *teams = g_DuneEngine->scenarioGet()->teamsGet(); vector<cTeam*>::iterator teamIT; for( teamIT = teams->begin(); teamIT != teams->end(); ++teamIT ) { cTeam *team = (*teamIT); string mode = g_DuneEngine->resourcesGet()->aiModeGet(team->aiModeGet()); string type = g_DuneEngine->resourcesGet()->movementNameGet(team->movementTypeGet()); stringstream unk1, maxUnits; unk1 << team->unk1Get(); maxUnits << team->unitsMaxGet(); int i = WxListCtrl1->InsertItem( WxListCtrl1->GetItemCount(), wxString(team->houseGet()->houseDataGet()->houseName.c_str(), wxConvUTF8) ); WxListCtrl1->SetItem( i, 1, wxString(mode.c_str(), wxConvUTF8) ); WxListCtrl1->SetItem( i, 2, wxString(type.c_str(), wxConvUTF8) ); WxListCtrl1->SetItem( i, 3, wxString(unk1.str().c_str(), wxConvUTF8) ); WxListCtrl1->SetItem( i, 4, wxString(maxUnits.str().c_str(), wxConvUTF8) ); } }
updatesNotificationForm::updatesNotificationForm(wxWindow* parent, configClass *config, wxString newAppSetupFileUrl,wxWindowID id,const wxPoint& pos,const wxSize& size) { m_parent = parent; m_config = config; m_newAppSetupFileUrl = newAppSetupFileUrl; CreateGUIControls(parent, id); }
settings_frame::settings_frame(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& pa_size) : wxFrame(parent, id, title, position, pa_size), WindowAttributesPickle( _T("SETTINGSFRAME"), this, wxSize( DEFSETT_SW_WIDTH, DEFSETT_SW_HEIGHT ) ) { alreadyCalled = false; parentWindow = parent; if ( !usync().IsLoaded() ) usync().ReloadUnitSyncLib(); notebook = new wxNotebook(this, ID_OPTIONS, wxPoint(0,0),TAB_SIZE, wxNB_TOP|wxNB_NOPAGETHEME); notebook->SetFont(wxFont(8, wxSWISS, wxNORMAL,wxNORMAL, false, _T("Tahoma"))); settingsIcon = new wxIcon(springsettings_xpm); if (abstract_panel::loadValuesIntoMap()) { CreateGUIControls(); initMenuBar(); } else { notebook->AddPage(new PathOptionPanel(notebook,this),_("Error!")); SetTitle(_T("SpringSettings")); } SetIcon(*settingsIcon); Layout(); Center(); }
cDialogReinforcement::cDialogReinforcement(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); mCancel = false; for( int i = eHouse_Harkonnen; i < eHouse_End; ++i ) { cHouse *house = g_DuneEngine->houseGet( (eHouse) i ); mChoiceHouse->Insert( wxString(house->houseDataGet()->houseName.c_str(), wxConvUTF8), i ); } for( int i = 0; i < 18; ++i ) { string unit = g_DuneEngine->resourcesGet()->unitGet(i)->Name; mChoiceUnit->Insert( wxString(unit.c_str(), wxConvUTF8), i ); } for( int i = 0; i < 8; ++i ) { string dir = g_DuneEngine->resourcesGet()->directionGet( i ); mChoiceDirection->Insert( wxString(dir.c_str(), wxConvUTF8), i ); } }
WorkspacePane::WorkspacePane(wxWindow *parent, const wxString &caption, wxAuiManager *mgr) : wxPanel(parent) , m_caption(caption) , m_mgr(mgr) { CreateGUIControls(); Connect(); }
OutputPane::OutputPane(wxWindow *parent, const wxString &caption) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(400, 300)) , m_caption(caption) , m_canFocus(true) , m_logTargetOld(NULL) { CreateGUIControls(); }
VectorAddDialog::VectorAddDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); theta = 0.0; phi = 0.0; length = 0.0; }
LogConfigWindow::LogConfigWindow(wxWindow* parent, CLogWindow *log_window, wxWindowID id) : wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("Log Configuration")) , m_LogWindow(log_window), enableAll(true) { SetMinSize(wxSize(100, 100)); m_LogManager = LogManager::GetInstance(); CreateGUIControls(); LoadSettings(); }
CPatchAddEdit::CPatchAddEdit(int _selection, std::vector<PatchEngine::Patch>* _onFrame, wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style), onFrame(_onFrame), selection(_selection) { CreateGUIControls(selection); Bind(wxEVT_BUTTON, &CPatchAddEdit::SavePatchData, this, wxID_OK); }
panelSearchResult::panelSearchResult(guiMainApp *mainApp, size_t searchID, wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxPanel(parent, id, position, size, style, title) { CreateGUIControls(); _mainApp = mainApp; _searchID = searchID; treeResults->AddRoot( wxT("Results")); }
DebuggerPane::DebuggerPane(wxWindow* parent, const wxString& caption, wxAuiManager* mgr) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(400, 300)) , m_caption(caption) , m_initDone(false) , m_mgr(mgr) { EventNotifier::Get()->Bind(wxEVT_EDITOR_CONFIG_CHANGED, &DebuggerPane::OnSettingsChanged, this); CreateGUIControls(); }
NumberChoiceDialog::NumberChoiceDialog(Controller & ctrl, unsigned min, unsigned max, unsigned start_region, unsigned end_region,wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style), ctrl(ctrl) { this->min=min; this->max=max; this->start_region=start_region; this->end_region=end_region; CreateGUIControls(); }
CPHackSettings::CPHackSettings(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); std::string _iniFilename = File::GetSysDirectory() + GAMESETTINGS_DIR DIR_SEP "PH_PRESETS.ini"; PHPresetsIni.Load(_iniFilename); PHPresetsIni.SortSections(); LoadPHackData(); }
CenterOfMassAddDialog::CenterOfMassAddDialog(wxWindow *parent, wxArrayString (*getObjectNames)(void), wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); GetObjectNames = getObjectNames; isSingleObject = true; useCustomName = false; }
WorkspacePane::WorkspacePane(wxWindow* parent, const wxString& caption, wxAuiManager* mgr) : wxPanel(parent) , m_caption(caption) , m_mgr(mgr) { CreateGUIControls(); EventNotifier::Get()->Bind(wxEVT_INIT_DONE, &WorkspacePane::OnInitDone, this); EventNotifier::Get()->Bind(wxEVT_EDITOR_CONFIG_CHANGED, &WorkspacePane::OnSettingsChanged, this); EventNotifier::Get()->Bind(wxEVT_SHOW_WORKSPACE_TAB, &WorkspacePane::OnToggleWorkspaceTab, this); }
GFXDebuggerPanel::GFXDebuggerPanel(wxWindow *parent, wxWindowID id, const wxPoint &position, const wxSize& size, long style, const wxString &title) : wxPanel(parent, id, position, size, style, title) { g_pdebugger = this; CreateGUIControls(); LoadSettings(); }
void settings_frame::buildGuiFromErrorPanel() { notebook->DeletePage(0); //to be safe we'll try again if (abstract_panel::loadValuesIntoMap()) { CreateGUIControls(); initMenuBar(); } }
FileExplorer::FileExplorer(wxWindow *parent, const wxString &caption) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(250, 300)) , m_caption(caption) , m_isLinkedToEditor(false) { long link(1); EditorConfigST::Get()->GetLongValue(wxT("LinkFileExplorerToEditor"), link); m_isLinkedToEditor = link ? true : false; CreateGUIControls(); m_themeHelper = new ThemeHandlerHelper(this); }
CPHackSettings::CPHackSettings(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { CreateGUIControls(); std::string _iniFilename; _iniFilename = File::GetUserPath(D_GAMECONFIG_IDX) + "PH_PRESETS.ini"; PHPresetsIni.Load(_iniFilename.c_str()); //PHPresetsIni.SortSections(); //PHPresetsIni.Save(_iniFilename.c_str()); LoadPHackData(); }
OutputPane::OutputPane(wxWindow *parent, const wxString &caption) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(200, 250)) , m_caption(caption) , m_logTargetOld(NULL) , m_buildInProgress(false) { CreateGUIControls(); EventNotifier::Get()->Connect ( wxEVT_EDITOR_CLICKED , wxCommandEventHandler ( OutputPane::OnEditorFocus ), NULL, this ); EventNotifier::Get()->Connect ( wxEVT_BUILD_STARTED , clBuildEventHandler ( OutputPane::OnBuildStarted ), NULL, this ); EventNotifier::Get()->Connect ( wxEVT_BUILD_ENDED , clBuildEventHandler ( OutputPane::OnBuildEnded ), NULL, this ); SetSize(-1, 250); }
OutputPane::OutputPane(wxWindow* parent, const wxString& caption) : wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(200, 250)) , m_caption(caption) , m_buildInProgress(false) { CreateGUIControls(); EventNotifier::Get()->Connect(wxEVT_EDITOR_CLICKED, wxCommandEventHandler(OutputPane::OnEditorFocus), NULL, this); EventNotifier::Get()->Connect(wxEVT_BUILD_STARTED, clBuildEventHandler(OutputPane::OnBuildStarted), NULL, this); EventNotifier::Get()->Connect(wxEVT_BUILD_ENDED, clBuildEventHandler(OutputPane::OnBuildEnded), NULL, this); EventNotifier::Get()->Bind(wxEVT_EDITOR_CONFIG_CHANGED, &OutputPane::OnSettingsChanged, this); EventNotifier::Get()->Bind(wxEVT_SHOW_OUTPUT_TAB, &OutputPane::OnToggleTab, this); SetSize(-1, 250); }
CConfigMain::CConfigMain(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style) { // Control refreshing of the ISOs list m_refresh_game_list_on_close = false; Bind(wxEVT_CLOSE_WINDOW, &CConfigMain::OnClose, this); Bind(wxEVT_BUTTON, &CConfigMain::OnOk, this, wxID_OK); Bind(wxDOLPHIN_CFG_REFRESH_LIST, &CConfigMain::OnSetRefreshGameListOnClose, this); CreateGUIControls(); }
NumberChoiceDialog::NumberChoiceDialog(Controller & ctrl, unsigned min, unsigned max, unsigned start_region, unsigned end_region, bool optional, wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxDialog(parent, id, title, position, size, style), ctrl(ctrl) { _optional = optional; this->min=min; this->max=max; this->start_region=start_region; this->end_region=end_region; CreateGUIControls(); if(!_optional){ WxBitmapButton2->Disable(); } }
MainFrame::MainFrame(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) : wxFrame(parent, id, title, position, size, style) { /** * Constructor for the Main frame. */ CreateGUIControls(); replayFilename = ""; playerSelected = false; replayOpen = false; replay = NULL; rep2ai = NULL; }
CNotesPanel::CNotesPanel(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxPanel(parent, id, pos, size, style, name) , m_pButtonAdd(NULL) , m_pButtonDelete(NULL) , m_pButtonCopy(NULL) , m_pButtonSave(NULL) , m_pButtonPrevious(NULL) , m_pButtonNext(NULL) , m_pTextCtrlNote(NULL) , m_pComboBoxNoteID(NULL) { SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT)); CreateGUIControls(); }
OutputTabWindow::OutputTabWindow(wxWindow *parent, wxWindowID id, const wxString &name) : wxPanel(parent, id) , m_name(name) , m_tb(NULL) , m_sci(NULL) , m_outputScrolls(true) , m_autoAppear(true) { CreateGUIControls(); wxTheApp->Connect(wxID_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(OutputTabWindow::OnEdit), NULL, this); wxTheApp->Connect(wxID_SELECTALL, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(OutputTabWindow::OnEdit), NULL, this); wxTheApp->Connect(wxID_COPY, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(OutputTabWindow::OnEditUI), NULL, this); wxTheApp->Connect(wxID_SELECTALL, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(OutputTabWindow::OnEditUI), NULL, this); }
cPanelSurface::cPanelSurface(wxWindow *parent, wxWindowID id, const wxPoint &position, const wxSize& size) : wxPanel(parent, id, position, size, wxFRAME_NO_TASKBAR | wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)) { mScale = 2; mMouseX = mMouseY = 0; mTimer = 0; mMapCell = 0; mMouseIgnore = false; CreateGUIControls(); menuOrdersBuild(); }
CLogWindow::CLogWindow(CFrame *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxPanel(parent, id, pos, size, style, name) , x(0), y(0), winpos(0) , Parent(parent), m_ignoreLogTimer(false), m_LogAccess(true) , m_Log(nullptr), m_cmdline(nullptr), m_FontChoice(nullptr) { m_LogManager = LogManager::GetInstance(); CreateGUIControls(); m_LogTimer = new wxTimer(this, IDTM_UPDATELOG); m_LogTimer->Start(UPDATETIME); }
CLogWindow::CLogWindow(CFrame* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxPanel(parent, id, pos, size, style, name), x(0), y(0), winpos(0), Parent(parent), m_LogAccess(true), m_Log(nullptr), m_cmdline(nullptr), m_FontChoice(nullptr) { Bind(wxEVT_TIMER, &CLogWindow::OnLogTimer, this); m_LogManager = LogManager::GetInstance(); m_LogManager->RegisterListener(LogListener::LOG_WINDOW_LISTENER, this); CreateGUIControls(); m_LogTimer.SetOwner(this); m_LogTimer.Start(UPDATE_TIME_MS); }
void settings_frame::buildGuiFromErrorPanel() { notebook->DeletePage(0); //to be safe we'll try again if (abstract_panel::loadValuesIntoMap()) { CreateGUIControls(); initMenuBar(); } else { notebook->AddPage(new PathOptionPanel(notebook,this),_("Error!")); } }