Example #1
0
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);
}
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);
}
Example #3
0
//==============================================================================
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;
}
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 );
}
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);
}
Example #6
0
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) ;
}
Example #7
0
void CxDlgPropertySheetSqlWizard::SetCategoryUpdate()
{
	int i, nPages = GetPageCount();
	for (i=1; i<nPages; i++)
	{
		RemovePage (1);
	}
	SetCategory(SQLW_UPDATE);
	AddPage(&m_PageUpdate1);
	AddPage(&m_PageUpdate2);
	AddPage(&m_PageUpdate3);
}
Example #8
0
void CxDlgPropertySheetSqlWizard::SetCategorySelect()
{
	int i, nPages = GetPageCount();
	for (i=1; i<nPages; i++)
	{
		RemovePage (1);
	}
	SetCategory(SQLW_SELECT);
	AddPage(&m_PageSelect1);
	AddPage(&m_PageSelect2);
	AddPage(&m_PageSelect3);
}
Example #9
0
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;
}
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);

}
Example #11
0
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;
}
Example #12
0
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
	
}
Example #13
0
CPropSheet::CPropSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	m_nAlreaySettingPageIndex = 0;

	AddPage(&m_PropStep1);  //0, 选择每页报表输出的文件数
	//AddPage(&m_PropStep2);
	//AddPage(&m_PropStep3);	//1, 无用
	//AddPage(&m_PropStep3Rpt);  //2,无用
	AddPage(&m_PropStep4);  //1,
	AddPage(&m_PropStep5); //2,lzy2014.9.12
	AddPage(&m_PropStep6);  //3
}
Example #14
0
//--------------------------------------------------------------------------------
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);
	}
Example #15
0
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;
}
Example #16
0
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();
}
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;
}
Example #18
0
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);
}
CClientConfigPropertySheet::CClientConfigPropertySheet(CWnd* pParentWnd)
: CIBASheet(IDS_CLIENTSET, pParentWnd)
{
	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	SetLook(CIBASheet::PropSheetLook_List);

	AddPage(&m_CommonConfig);
	AddPage(&m_BundleTimePage);
	AddPage(&m_UnlockPage);

	EnableVisualManagerStyle();
}
Example #20
0
CFrmPreferences::CFrmPreferences()
{
	AddPage(&m_wndCalPag);
	AddPage(&m_wndDrawPag);
	AddPage(&m_wndPointPag);
	AddPage(&m_wndStylePag);
	//{{AFX_DATA_INIT(CFrmPreferences)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	m_bMove=false;//窗口是否移动
}
CPluginWizardSheet::CPluginWizardSheet(CWnd* pWndParent)
	 : CPropertySheet(IDS_PROPSHT_CAPTION2, pWndParent)
{
	// Add all of the property pages here.  Note that
	// the order that they appear in here will be
	// the order they appear in on screen.  By default,
	// the first page of the set is the active one.
	// One way to make a different property page the 
	// active one is to call SetActivePage().

	AddPage(&m_Page1);
	AddPage(&m_Page2);
	AddPage(&m_Page3);
	AddPage(&m_Page4);
	AddPage(&m_Page5);
	AddPage(&m_Page6);
	AddPage(&m_Page7);
	AddPage(&m_Page8);

  // in case we forget to change them ...

  m_Page1.m_doc = NULL;
  m_Page1.m_pPage2 = &m_Page2;
  m_Page2.m_doc = NULL;
  m_Page3.m_doc = NULL;
  m_Page4.m_doc = NULL;
  m_Page5.m_doc = NULL;
  m_Page6.m_doc = NULL;
  m_Page7.m_doc = NULL;
  m_Page8.m_doc = NULL;

}
/**
 * CProjectWizardDialog
 *
 */
CProjectWizardDialog::CProjectWizardDialog (CProjectWizardData* pData)
: CPropertySheet (_T (""), AfxGetMainWnd (), 0),
  m_pageResource (this, pData),
  m_pageLibraries (this, pData, IDS_LIBSPAGE_CAPTION),
  m_pageNames (this, pData),
  m_pageProperties (this, pData, IDS_PROPSPAGE_CAPTION)
{
    AddPage (&m_pageResource);
    AddPage (&m_pageLibraries);
    AddPage (&m_pageNames);
    AddPage (&m_pageProperties);

    SetWizardMode ();
}
COptionsPropertySheet::COptionsPropertySheet(CWnd* pWndParent) :
	CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
{
	// Add all of the property pages here.  Note that
	// the order that they appear in here will be
	// the order they appear in on screen.  By default,
	// the first page of the set is the active one.
	// One way to make a different property page the 
	// active one is to call SetActivePage().

	AddPage(&m_Page1);
	AddPage(&m_Page2);
	AddPage(&m_Page3);
}
CConvertWizardSheet::CConvertWizardSheet() :
    mLockedMem(sizeof(SecureString)),
    CPropertySheet(GetCommonString(kPGPdiskConvertWizSheetTitleString),
                   NULL, 0)
{
    try
    {
        // Make sure our locked memory initialized correctly.
        mInitErr = mLockedMem.mInitErr;

        // Construct the secure string object.
        if (mInitErr.IsntError())
        {
            mPassphrase = new (mLockedMem.GetPtr()) SecureString;	// <new.h>
            mPassphrase->ClearString();
        }

        // Did our pages initialize correctly?
        if (mInitErr.IsntError())
        {
            mInitErr = mConvertPage.mInitErr;
        }

        if (mInitErr.IsntError())
        {
            mInitErr = mRandomDataPage.mInitErr;
        }

        if (mInitErr.IsntError())
        {
            mConvertPage.mParentConvertWiz		= this;
            mDonePage.mParentConvertWiz			= this;
            mIntroPage.mParentConvertWiz		= this;
            mRandomDataPage.mParentConvertWiz	= this;

            AddPage(&mIntroPage);
            AddPage(&mRandomDataPage);
            AddPage(&mConvertPage);
            AddPage(&mDonePage);

            // Exorcise the big help button.
            m_psh.dwFlags &= ~PSH_HASHELP;
        }
    }
    catch (CMemoryException *ex)
    {
        mInitErr = DualErr(kPGDMinorError_OutOfMemory);
        ex->Delete();
    }
}
Example #25
0
CGroupSearchWizard::CGroupSearchWizard()
: IcqWindow(WIN_GROUP_SEARCH_WIZARD)
{
	SetWizardMode();
	m_psh.dwFlags |= PSH_USEHICON;
	m_psh.hIcon = getApp()->m_hIcon;

	AddPage(&modePage);
	AddPage(&typePage);
	AddPage(&resultPage);
	AddPage(&finishPage);

	Create();
}
Example #26
0
COptionsDlg::COptionsDlg(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage),
	COptionsInfo(m_DefaultState),
#pragma warning(push)
#pragma warning(disable : 4355)	// 'this' used in base member initializer list
	m_GeneralDlg(*this),	// passing reference to our COptionsInfo base class
	m_DocumentDlg(*this),
	m_NavigateDlg(*this),
	m_EngineDlg(*this),
	m_PaletteDlg(*this),
	m_NetworkDlg(*this),
	m_DisplayDlg(*this),
	m_MidiDlg(*this)
#pragma warning(pop)
{
	ReadState();
	m_psh.dwFlags |= PSH_NOAPPLYNOW;
	AddPage(&m_GeneralDlg);
	AddPage(&m_DocumentDlg);
	AddPage(&m_NavigateDlg);
	AddPage(&m_EngineDlg);
	AddPage(&m_PaletteDlg);
	AddPage(&m_NetworkDlg);
	AddPage(&m_DisplayDlg);
	AddPage(&m_MidiDlg);
	m_CurPage = 0;
}
Example #27
0
void CWPDS_Sheet::Init(fsWPDSettings *wpds, BOOL bGeneralPage, fsWebPageDownloader* wpd, bool bUsedAsSetDefaults)
{
	if (bGeneralPage)
		AddPage (&m_general);

	m_general.m_wpds = m_webpages.m_wpds = m_files.m_wpds = m_images.m_wpds = wpds;
	m_general.m_wpd = wpd;

	m_webpages.m_bUsedAsSetDefaults = bUsedAsSetDefaults;

	AddPage (&m_webpages);
	AddPage (&m_images);
	AddPage (&m_files);
}
Example #28
0
CPropSheet::CPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
    AddPage(new CPostInst());
	AddPage(new Summary());
	SetWizardMode();
    m_psh.dwFlags=(m_psh.dwFlags&(~PSH_HASHELP));
	m_psh.dwFlags |= PSH_WIZARD97|PSH_HEADER|PSH_USEHBMHEADER|PSH_WATERMARK ;

	m_psh.pszbmWatermark = MAKEINTRESOURCE(101);
	m_psh.hbmHeader = NULL;

	m_psh.hInstance = AfxGetInstanceHandle();
}
COptionsPropertySheet::COptionsPropertySheet(CWnd* pWndParent)
	 : CPropertySheet(IDS_OPTIONS_PROPSHT_CAPTION, pWndParent)
{
	// Add all of the property pages here.  Note that
	// the order that they appear in here will be
	// the order they appear in on screen.  By default,
	// the first page of the set is the active one.
	// One way to make a different property page the 
	// active one is to call SetActivePage().

	m_psh.dwFlags |= PSH_NOAPPLYNOW;

	AddPage(&m_PageGeneral);
	AddPage(&m_PageOther);
}
void CImportWizardPropertySheet::Init()
{
	AddPage(&m_pageManagers);
	AddPage(&m_pageProgress);
	AddPage(&m_pageResult);
	m_psh.dwFlags &= ~PSH_HASHELP;
	m_pageManagers.m_psp.dwFlags &= ~PSP_HASHELP;
	m_pageProgress.m_psp.dwFlags &= ~PSP_HASHELP;
	m_pageResult.m_psp.dwFlags &= ~PSP_HASHELP;
	m_pageManagers.Init(&m_imImportManager);
	m_pageProgress.Init(&m_imImportManager);
	m_pageResult.Init(&m_imImportManager);

	SetWizardMode();
}