这篇教程C++ CreateGUIControls函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中CreateGUIControls函数的典型用法代码示例。如果您正苦于以下问题:C++ CreateGUIControls函数的具体用法?C++ CreateGUIControls怎么用?C++ CreateGUIControls使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了CreateGUIControls函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxDialogcDialogTeams::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) ); }}
开发者ID:segrax,项目名称:dunemaps,代码行数:28,
示例2: CreateGUIControlsupdatesNotificationForm::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);}
开发者ID:gszura,项目名称:wx-nfp,代码行数:7,
示例3: wxFramesettings_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();}
开发者ID:tvo,项目名称:springlobby,代码行数:30,
示例4: wxDialogcDialogReinforcement::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 ); }}
开发者ID:segrax,项目名称:dunemaps,代码行数:25,
示例5: wxPanelWorkspacePane::WorkspacePane(wxWindow *parent, const wxString &caption, wxAuiManager *mgr) : wxPanel(parent) , m_caption(caption) , m_mgr(mgr){ CreateGUIControls(); Connect();}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:8,
示例6: wxPanelOutputPane::OutputPane(wxWindow *parent, const wxString &caption): wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(400, 300)), m_caption(caption), m_canFocus(true), m_logTargetOld(NULL){ CreateGUIControls(); }
开发者ID:BackupTheBerlios,项目名称:codelite-svn,代码行数:8,
示例7: wxDialogVectorAddDialog::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;}
开发者ID:niraj-rayalla,项目名称:PhysicsHelper,代码行数:9,
示例8: wxPanelLogConfigWindow::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();}
开发者ID:crudelios,项目名称:dolphin,代码行数:9,
示例9: wxPanelpanelSearchResult::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"));}
开发者ID:segrax,项目名称:KiLLARMY,代码行数:9,
示例10: wxPanelDebuggerPane::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();}
开发者ID:stahta01,项目名称:codelite,代码行数:9,
示例11: wxDialogNumberChoiceDialog::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();}
开发者ID:kamciak,项目名称:Ryzyko,代码行数:9,
示例12: wxDialogCPHackSettings::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();}
开发者ID:Krude,项目名称:dolphin,代码行数:10,
示例13: wxArrayStringCenterOfMassAddDialog::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;}
开发者ID:niraj-rayalla,项目名称:PhysicsHelper,代码行数:10,
示例14: wxPanelWorkspacePane::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);}
开发者ID:stahta01,项目名称:codelite,代码行数:10,
示例15: wxPanelGFXDebuggerPanel::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();}
开发者ID:Catnips,项目名称:dolphin,代码行数:10,
示例16: CreateGUIControlsvoid settings_frame::buildGuiFromErrorPanel(){ notebook->DeletePage(0); //to be safe we'll try again if (abstract_panel::loadValuesIntoMap()) { CreateGUIControls(); initMenuBar(); }}
开发者ID:abma,项目名称:springlobby,代码行数:10,
示例17: wxPanelFileExplorer::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);}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:11,
示例18: wxDialogCPHackSettings::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();}
开发者ID:Zombiebest,项目名称:Dolphin,代码行数:12,
示例19: wxPanelOutputPane::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);}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:12,
示例20: wxPanelOutputPane::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);}
开发者ID:lpc1996,项目名称:codelite,代码行数:13,
示例21: wxDialogCConfigMain::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();}
开发者ID:spxtr,项目名称:dolphin,代码行数:13,
示例22: wxDialogNumberChoiceDialog::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(); }}
开发者ID:kamciak,项目名称:Ryzyko,代码行数:13,
示例23: wxFrameMainFrame::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;}
开发者ID:jncraton,项目名称:rep2ai,代码行数:13,
示例24: wxPanelCNotesPanel::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();}
开发者ID:valiyuneski,项目名称:wxquickrun,代码行数:14,
示例25: wxPanelOutputTabWindow::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);}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:14,
示例26: wxPanelcPanelSurface::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();}
开发者ID:segrax,项目名称:dunemaps,代码行数:14,
示例27: wxPanelCLogWindow::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);}
开发者ID:DigidragonZX,项目名称:dolphin,代码行数:14,
示例28: wxPanelCLogWindow::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);}
开发者ID:Anti-Ultimate,项目名称:dolphin,代码行数:15,
示例29: CreateGUIControlsvoid 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!")); }}
开发者ID:Mailaender,项目名称:springlobby,代码行数:15,
注:本文中的CreateGUIControls函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ CreateGenesisBlock函数代码示例 C++ CreateGLWindow函数代码示例 |