當前位置: 首頁>>代碼示例>>C++>>正文


C++ CreateGUIControls函數代碼示例

本文整理匯總了C++中CreateGUIControls函數的典型用法代碼示例。如果您正苦於以下問題:C++ CreateGUIControls函數的具體用法?C++ CreateGUIControls怎麽用?C++ CreateGUIControls使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了CreateGUIControls函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: wxDialog

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) );
	}

}
開發者ID:segrax,項目名稱:dunemaps,代碼行數:28,代碼來源:dialogTeams.cpp

示例2: CreateGUIControls

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);
}
開發者ID:gszura,項目名稱:wx-nfp,代碼行數:7,代碼來源:updatesNotificationForm.cpp

示例3: wxFrame

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();
}
開發者ID:tvo,項目名稱:springlobby,代碼行數:30,代碼來源:frame.cpp

示例4: wxDialog

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 );
	}
}
開發者ID:segrax,項目名稱:dunemaps,代碼行數:25,代碼來源:dialogReinforcement.cpp

示例5: wxPanel

WorkspacePane::WorkspacePane(wxWindow *parent, const wxString &caption, wxAuiManager *mgr)
    : wxPanel(parent)
    , m_caption(caption)
    , m_mgr(mgr)
{
    CreateGUIControls();
    Connect();
}
開發者ID:AndrianDTR,項目名稱:codelite,代碼行數:8,代碼來源:workspace_pane.cpp

示例6: wxPanel

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();	
}
開發者ID:BackupTheBerlios,項目名稱:codelite-svn,代碼行數:8,代碼來源:output_pane.cpp

示例7: wxDialog

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;
}
開發者ID:niraj-rayalla,項目名稱:PhysicsHelper,代碼行數:9,代碼來源:VectorAddDialog.cpp

示例8: wxPanel

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();
}
開發者ID:crudelios,項目名稱:dolphin,代碼行數:9,代碼來源:LogConfigWindow.cpp

示例9: wxPanel

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"));
}
開發者ID:segrax,項目名稱:KiLLARMY,代碼行數:9,代碼來源:panelSearchResult.cpp

示例10: wxPanel

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();
}
開發者ID:stahta01,項目名稱:codelite,代碼行數:9,代碼來源:debuggerpane.cpp

示例11: wxDialog

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();
}
開發者ID:kamciak,項目名稱:Ryzyko,代碼行數:9,代碼來源:NumberChoiceDialog.cpp

示例12: wxDialog

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();
}
開發者ID:Krude,項目名稱:dolphin,代碼行數:10,代碼來源:PHackSettings.cpp

示例13: wxArrayString

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;
}
開發者ID:niraj-rayalla,項目名稱:PhysicsHelper,代碼行數:10,代碼來源:CenterOfMassAddDialog.cpp

示例14: wxPanel

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);
}
開發者ID:stahta01,項目名稱:codelite,代碼行數:10,代碼來源:workspace_pane.cpp

示例15: wxPanel

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();
}
開發者ID:Catnips,項目名稱:dolphin,代碼行數:10,代碼來源:DebuggerPanel.cpp


注:本文中的CreateGUIControls函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。