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


C++ AddPage函數代碼示例

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


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

示例1: DeleteAllPages

void CInfoSheet::SetInfoModePolygon(void)
{
  m_ModeID = INFO_MODE_POLYGON;
  DeleteAllPages();
  AddPage( &m_PgGlobal);
  //AddPage( &m_PgRenderingStatistics);
  AddPage( &m_PgPolygon);
  AddPage( &m_PgShadow);
  AddPage( &m_PgTexture);
  SoftSetActivePage( _iLastActivePgInPolygonMode);
}
開發者ID:AdamFlores,項目名稱:Serious-Engine,代碼行數:11,代碼來源:InfoSheet.cpp

示例2: QDialog

AddPodcastDialog::AddPodcastDialog(Application* app, QWidget* parent)
    : QDialog(parent),
      app_(app),
      ui_(new Ui_AddPodcastDialog),
      last_opml_path_(QDir::homePath()) {
  ui_->setupUi(this);
  ui_->details->SetApplication(app);
  ui_->results->SetExpandOnReset(false);
  ui_->results->SetAddOnDoubleClick(false);
  ui_->results_stack->setCurrentWidget(ui_->results_page);

  fader_ = new WidgetFadeHelper(ui_->details_scroll_area);

  connect(ui_->provider_list, SIGNAL(currentRowChanged(int)),
          SLOT(ChangePage(int)));
  connect(ui_->details, SIGNAL(LoadingFinished()), fader_, SLOT(StartFade()));
  connect(ui_->results, SIGNAL(doubleClicked(QModelIndex)),
          SLOT(PodcastDoubleClicked(QModelIndex)));

  // Create Add and Remove Podcast buttons
  add_button_ =
      new QPushButton(IconLoader::Load("list-add"), tr("Add Podcast"), this);
  add_button_->setEnabled(false);
  connect(add_button_, SIGNAL(clicked()), SLOT(AddPodcast()));
  ui_->button_box->addButton(add_button_, QDialogButtonBox::ActionRole);

  remove_button_ =
      new QPushButton(IconLoader::Load("list-remove"), tr("Unsubscribe"), this);
  remove_button_->setEnabled(false);
  connect(remove_button_, SIGNAL(clicked()), SLOT(RemovePodcast()));
  ui_->button_box->addButton(remove_button_, QDialogButtonBox::ActionRole);

  QPushButton* settings_button = new QPushButton(
      IconLoader::Load("configure"), tr("Configure podcasts..."), this);
  connect(settings_button, SIGNAL(clicked()), SLOT(OpenSettingsPage()));
  ui_->button_box->addButton(settings_button, QDialogButtonBox::ResetRole);

  // Create an Open OPML file button
  QPushButton* open_opml_button = new QPushButton(
      IconLoader::Load("document-open"), tr("Open OPML file..."), this);
  connect(open_opml_button, SIGNAL(clicked()), this, SLOT(OpenOPMLFile()));
  ui_->button_box->addButton(open_opml_button, QDialogButtonBox::ResetRole);

  // Add providers
  by_url_page_ = new AddPodcastByUrl(app, this);
  AddPage(by_url_page_);
  AddPage(new FixedOpmlPage(QUrl(kBbcOpmlUrl), tr("BBC Podcasts"),
                            QIcon(":providers/bbc.png"), app, this));
  AddPage(new GPodderTopTagsPage(app, this));
  AddPage(new GPodderSearchPage(app, this));
  AddPage(new ITunesSearchPage(app, this));

  ui_->provider_list->setCurrentRow(0);
}
開發者ID:aelzenaar,項目名稱:Clementine-weird-keys,代碼行數:54,代碼來源:addpodcastdialog.cpp

示例3: wxNotebook

//==============================================================================
browsers::browserTAB::browserTAB(wxWindow *parent, wxWindowID id,const 
   wxPoint& pos, const wxSize& size, long style) : 
                                 wxNotebook(parent, id, pos, size, style) {
   _TDTstruct = new TDTbrowser(this, tui::ID_TPD_CELLTREE);
   AddPage(_TDTstruct, wxT("Cells"));
   _TDTlayers = new layerbrowser(this, tui::ID_TPD_LAYERS);
   AddPage(_TDTlayers, wxT("Layers"));
   _GDSstruct = NULL;
   _tellParser = NULL;
   Browsers = this;
}
開發者ID:BackupTheBerlios,項目名稱:toped-svn,代碼行數:12,代碼來源:browsers.cpp

示例4: m_bCentered

COptionsWizard::COptionsWizard ( HWND hWndParent ) :
    CPropertySheetImpl<COptionsWizard> ( 0U, 0, hWndParent ),
    m_bCentered(false)
{
    SetWizardMode();

    AddPage ( m_pgIntro );
    AddPage ( m_pgBkcolor );
    AddPage ( m_pgBkpicture );
    AddPage ( m_pgFinish );
}
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:11,代碼來源:OptionsWizard.cpp

示例5: CMFCPropertySheet

CSetupSheet::CSetupSheet(CWnd* lpParentWnd)
	: CMFCPropertySheet(_T("參數設置"), lpParentWnd)
{
	SetLook(CMFCPropertySheet::PropSheetLook_OutlookBar);
	SetIconsList(IDB_SETUP_SHEET, 32);

	AddPage(&m_pageNetworkTest);
	AddPage(&m_pageEchoTest);
	AddPage(&m_pageDeviceTest);
	AddPage(&m_pageSetup);
}
開發者ID:KnicknackCadillac,項目名稱:AgoraDemo,代碼行數:11,代碼來源:SetupSheet.cpp

示例6: AfxGetApp

void Sheet::AddControlPages()
{
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
    m_psh.dwFlags |= PSP_USEHICON;
    m_psh.dwFlags &= ~PSH_HASHELP;  // Lose the Help button
    m_psh.hIcon = m_hIcon;

    AddPage(&m_Basic);
    AddPage(&m_NodeOperations);
    AddPage(&m_MultiPages);
    AddPage(&m_Watches) ;
}
開發者ID:Zekom,項目名稱:tracetool,代碼行數:12,代碼來源:Sheet.cpp

示例7: AddPage

int KGSFXModelViewSheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (KGPropertySheet::OnCreate(lpCreateStruct) == -1)
        return -1;

    AddPage(&m_pageModelView, m_pageModelView.IDD);
    AddPage(&m_pageTex, m_pageTex.IDD);
    AddPage(&m_pageSockBone, m_pageSockBone.IDD);
    AddPage(&m_pageGlobPage, m_pageGlobPage.IDD);

    return 0;
}
開發者ID:viticm,項目名稱:pap2,代碼行數:12,代碼來源:KGSFXModelPane.cpp

示例8: AddPage

CNetSettingPropertySheet::CNetSettingPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	
	AddPage(&page_Info);
	AddPage(&page_Wifi);
	AddPage(&page_NetAdapter);
	//AddPage(&page_Profile);
	AddPage(&page_Setting);
	AddPage(&page_Tools);

}
開發者ID:NemProjects,項目名稱:WLAN,代碼行數:12,代碼來源:NetSettingPropertySheet.cpp

示例9: CSetMainPage

void CSettings::AddPropPages()
{
    m_pMainPage = new CSetMainPage();
    m_pColorPage = new CSetColorPage();

    AddPage(m_pMainPage);
    AddPage(m_pColorPage);

    // remove the "apply" button: changes show only after the settings dialog
    // is closed, so the OK button is enough and the "apply" button only
    // confuses users.
    m_psh.dwFlags |= PSH_NOAPPLYNOW;
}
開發者ID:YueLinHo,項目名稱:TortoiseSvn,代碼行數:13,代碼來源:Settings.cpp

示例10: AddPage

CPropSheet::CPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	m_nAlreaySettingPageIndex = 0;
	AddPage(&m_PropStep1);//0
	//AddPage(&m_PropStep2);
	//AddPage(&m_PropStep3);	
	//AddPage(&m_PropStep3Rpt);
	AddPage(&m_PropStep4);  //1
	AddPage(&m_PropStep5); //2,lzy2014.9.12
	AddPage(&m_PropStep6);//3
	
}
開發者ID:iloveghq,項目名稱:Otdr_v1,代碼行數:13,代碼來源:PropSheet.cpp

示例11: CPropertySheet

//--------------------------------------------------------------------------------
CMainPropSheet::CMainPropSheet(UINT nIDCaption, COutputConfig* pConfig,
								CHL7InputDaemonInitList* pInputConfig)
		: CPropertySheet(nIDCaption, NULL, 0)
		, m_page1(pConfig)
		, m_page2(pConfig, pInputConfig)
		, m_page3(pConfig)
		, m_page4(pConfig)
	{
	AddPage(&m_page1);
	AddPage(&m_page2);
	AddPage(&m_page3);
	AddPage(&m_page4);
	}
開發者ID:richschonthal,項目名稱:HL7,代碼行數:14,代碼來源:MainPropSheet.cpp

示例12: CPropertySheet

COptionsDlg::COptionsDlg(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	: CPropertySheet(nIDCaption, pParentWnd, iSelectPage),
	m_oi(m_Defaults),
	m_EngineDlg(m_oi),
	m_ViewDlg(m_oi),
	m_MidiDlg(m_oi)
{
	m_psh.dwFlags |= PSH_NOAPPLYNOW;
	AddPage(&m_EngineDlg);
	AddPage(&m_ViewDlg);
	AddPage(&m_MidiDlg);
	m_CurPage = 0;
}
開發者ID:victimofleisure,項目名稱:FFRend,代碼行數:13,代碼來源:OptionsDlg.cpp

示例13: IcqWindow

CGroupCreateWizard::CGroupCreateWizard()
: IcqWindow(WIN_GROUP_CREATE_WIZARD)
{
	SetWizardMode();
	m_psh.dwFlags |= PSH_USEHICON;
	m_psh.hIcon = getApp()->m_hIcon;

	AddPage(&typePage);
	AddPage(&basicPage);
	AddPage(&finishPage);

	Create();
}
開發者ID:bugou,項目名稱:test,代碼行數:13,代碼來源:GroupCreateWizard.cpp

示例14: CQuestionnaireQuestionPage

CQuestionnaireSettings::CQuestionnaireSettings(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage, bool bEditNewQuestion)
    :CPropertySheet(nIDCaption, pParentWnd, iSelectPage) {
    m_pQuestionnaireQuestionPage = new CQuestionnaireQuestionPage();
    AddPage(m_pQuestionnaireQuestionPage);

    m_pQuestionnaireOptionPage = new CQuestionnaireOptionPage();
    AddPage(m_pQuestionnaireOptionPage);

    m_pQuestionnaireButtonPage = new CQuestionnaireButtonPage();
    AddPage(m_pQuestionnaireButtonPage);

    m_bEditNewQuestion = bEditNewQuestion;
}
開發者ID:identity0815,項目名稱:os45,代碼行數:13,代碼來源:QuestionnaireSettings.cpp

示例15: AddPage

void DlgPropSheet::AddPropPages() {
	m_pSessionDlg = new CSessionDlg;
	m_pOptionsDlg = new COptionsDlg;
	m_pDisplayDlg = new CDisplayDlg;
	m_pAboutDlg  = new CAboutPage;
	
	AddPage(m_pSessionDlg);
	AddPage(m_pOptionsDlg);
	AddPage(m_pDisplayDlg);
	AddPage(m_pAboutDlg);
	
	SetActivePage(m_nLastTab);
}
開發者ID:coolshou,項目名稱:NetPerSec,代碼行數:13,代碼來源:DlgPropSheet.cpp


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