本文整理汇总了C++中CSkinSimple::GetHelpButton方法的典型用法代码示例。如果您正苦于以下问题:C++ CSkinSimple::GetHelpButton方法的具体用法?C++ CSkinSimple::GetHelpButton怎么用?C++ CSkinSimple::GetHelpButton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSkinSimple
的用法示例。
在下文中一共展示了CSkinSimple::GetHelpButton方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateComponent
void CProjectsComponent::CreateComponent()
{
Freeze();
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxASSERT(pSkinSimple);
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
//Set Background color
SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
//Static content in my Projects section
// add project button
wxToolTip *ttAddProject = new wxToolTip(_("Volunteer for any or all of 30+ projects in many areas of science"));
btnAddProj=new wxBitmapButton(
this,
ID_WIZARDATTACH,
*pSkinSimple->GetAttachProjectButton()->GetBitmap(),
wxPoint(214,7),
wxSize(81,18),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetAttachProjectButton()->GetBitmapClicked() != NULL ) {
btnAddProj->SetBitmapSelected(
*pSkinSimple->GetAttachProjectButton()->GetBitmapClicked()
);
}
btnAddProj->SetToolTip(ttAddProject);
// syncronize button, hidden by default.
wxToolTip *ttSynchronize = new wxToolTip(_("Synchronize projects with account manager system"));
btnSynchronize=new wxBitmapButton(
this,
ID_WIZARDUPDATE,
*pSkinSimple->GetSynchronizeButton()->GetBitmap(),
wxPoint(214,7),
wxSize(81,18),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetSynchronizeButton()->GetBitmapClicked() != NULL ) {
btnSynchronize->SetBitmapSelected(
*pSkinSimple->GetSynchronizeButton()->GetBitmapClicked()
);
}
btnSynchronize->SetToolTip(ttSynchronize);
btnSynchronize->Show(false);
/// Help
wxToolTip *ttHelp = new wxToolTip(_("Get help with BOINC"));
btnHelp=new wxBitmapButton(
this,
ID_SIMPLE_HELP,
*pSkinSimple->GetHelpButton()->GetBitmap(),
wxPoint(300,7),
wxSize(
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetHelpButton()->GetBitmapClicked() != NULL ) {
btnHelp->SetBitmapSelected(
*pSkinSimple->GetHelpButton()->GetBitmapClicked()
);
}
btnHelp->SetToolTip(ttHelp);
/// Line
lnMyProjTop = new CTransparentStaticLine(this, wxID_ANY, wxPoint(29,29),wxSize(292,1));
lnMyProjTop->SetLineColor(pSkinSimple->GetStaticLineColor());
//// Arrow Btns
btnArwLeft = new wxBitmapButton(
this,
-1,
*pSkinSimple->GetLeftArrowButton()->GetBitmap(),
wxPoint(29,47),
wxSize(20,20),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetLeftArrowButton()->GetBitmapClicked() != NULL ) {
btnArwLeft->SetBitmapSelected(*pSkinSimple->GetLeftArrowButton()->GetBitmapClicked());
}
btnArwLeft->Show(false);//on creation this one is always false
btnArwRight = new wxBitmapButton(
this,
-1,
*pSkinSimple->GetRightArrowButton()->GetBitmap(),
wxPoint(301,47),
wxSize(20,20),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetRightArrowButton()->GetBitmapClicked() != NULL ) {
btnArwRight->SetBitmapSelected(*pSkinSimple->GetRightArrowButton()->GetBitmapClicked());
}
btnArwRight->Show(false);
//
//.........这里部分代码省略.........
示例2: CreateControls
//.........这里部分代码省略.........
wxBitmapButton* itemButton1 = new wxBitmapButton(
this,
ID_COPYAll,
*pSkinSimple->GetCopyAllButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetCopyAllButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetCopyAllButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetCopyAllButton()->GetBitmapClicked() != NULL ) {
itemButton1->SetBitmapSelected(*pSkinSimple->GetCopyAllButton()->GetBitmapClicked());
}
itemButton1->SetHelpText(
_("Copy all the messages to the clipboard.")
);
#if wxUSE_TOOLTIPS
itemButton1->SetToolTip(
_("Copy all the messages to the clipboard.")
);
#endif
itemBoxSizer4->Add(itemButton1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxBitmapButton* itemButton2 = new wxBitmapButton(
this,
ID_COPYSELECTED,
*pSkinSimple->GetCopyButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetCopyButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetCopyButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetCopyButton()->GetBitmapClicked() != NULL ) {
itemButton2->SetBitmapSelected(*pSkinSimple->GetCopyButton()->GetBitmapClicked());
}
itemButton2->SetHelpText(
#ifdef __WXMAC__
_("Copy the selected messages to the clipboard. You can select multiple messages by holding down the shift or command key while clicking on messages.")
#else
_("Copy the selected messages to the clipboard. You can select multiple messages by holding down the shift or control key while clicking on messages.")
#endif
);
#if wxUSE_TOOLTIPS
itemButton2->SetToolTip(
#ifdef __WXMAC__
_("Copy the selected messages to the clipboard. You can select multiple messages by holding down the shift or command key while clicking on messages.")
#else
_("Copy the selected messages to the clipboard. You can select multiple messages by holding down the shift or control key while clicking on messages.")
#endif
);
#endif
itemBoxSizer4->Add(itemButton2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#endif
wxBitmapButton* itemBitmapButton44 = new wxBitmapButton(
this,
wxID_OK,
*pSkinSimple->GetCloseButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetCloseButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetCloseButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetCloseButton()->GetBitmapClicked() != NULL ) {
itemBitmapButton44->SetBitmapSelected(*pSkinSimple->GetCloseButton()->GetBitmapClicked());
}
itemBoxSizer4->Add(itemBitmapButton44, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#ifndef __WXMSW__
#ifdef __WXMAC__
wxBitmapButton* itemButton45 = new wxBitmapButton(
this,
ID_SIMPLE_HELP,
*pSkinSimple->GetHelpButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetHelpButton()->GetBitmapClicked() != NULL ) {
itemButton45->SetBitmapSelected(*pSkinSimple->GetHelpButton()->GetBitmapClicked());
}
#ifdef wxUSE_TOOLTIPS
itemButton45->SetToolTip(new wxToolTip(_("Get help with BOINC")));
#endif
itemBoxSizer4->Add(itemButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#else
wxContextHelpButton* itemButton45 = new wxContextHelpButton(this);
itemBoxSizer4->Add(itemButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#endif
#endif
}
示例3: ReskinInterface
void CProjectsComponent::ReskinInterface()
{
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxASSERT(pSkinSimple);
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
//Set Background color only
SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
//right button
btnArwRight->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnArwRight->SetBitmapLabel(*(pSkinSimple->GetRightArrowButton()->GetBitmap()));
btnArwRight->SetBitmapSelected(*(pSkinSimple->GetRightArrowButton()->GetBitmapClicked()));
//left button
btnArwLeft->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnArwLeft->SetBitmapLabel(*(pSkinSimple->GetLeftArrowButton()->GetBitmap()));
btnArwLeft->SetBitmapSelected(*(pSkinSimple->GetLeftArrowButton()->GetBitmapClicked()));
// add project btn
btnAddProj->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnAddProj->SetBitmapLabel(*(pSkinSimple->GetAttachProjectButton()->GetBitmap()));
btnAddProj->SetBitmapSelected(*(pSkinSimple->GetAttachProjectButton()->GetBitmapClicked()));
// synchronize btn
btnSynchronize->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnSynchronize->SetBitmapLabel(*(pSkinSimple->GetSynchronizeButton()->GetBitmap()));
btnSynchronize->SetBitmapSelected(*(pSkinSimple->GetSynchronizeButton()->GetBitmapClicked()));
// help btn
btnHelp->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnHelp->SetBitmapLabel(*(pSkinSimple->GetHelpButton()->GetBitmap()));
btnHelp->SetBitmapSelected(*(pSkinSimple->GetHelpButton()->GetBitmapClicked()));
// messages btn
btnMessages->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnMessages->SetBitmapLabel(*(pSkinSimple->GetMessagesLink()->GetBitmap()));
btnMessages->SetBitmapSelected(*(pSkinSimple->GetMessagesLink()->GetBitmap()));
// alert messages btn
btnAlertMessages->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnAlertMessages->SetBitmapLabel(*(pSkinSimple->GetMessagesAlertLink()->GetBitmap()));
btnAlertMessages->SetBitmapSelected(*(pSkinSimple->GetMessagesAlertLink()->GetBitmap()));
// pause btn
btnPause->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnPause->SetBitmapLabel(*(pSkinSimple->GetSuspendLink()->GetBitmap()));
btnPause->SetBitmapSelected(*(pSkinSimple->GetSuspendLink()->GetBitmap()));
// resume btn
btnResume->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnResume->SetBitmapLabel(*(pSkinSimple->GetResumeLink()->GetBitmap()));
btnResume->SetBitmapSelected(*(pSkinSimple->GetResumeLink()->GetBitmap()));
// preferences btn
btnPreferences->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnPreferences->SetBitmapLabel(*(pSkinSimple->GetPreferencesLink()->GetBitmap()));
btnPreferences->SetBitmapSelected(*(pSkinSimple->GetPreferencesLink()->GetBitmap()));
// advance view btn
btnAdvancedView->SetBackgroundColour(*pSkinSimple->GetBackgroundImage()->GetBackgroundColor());
btnAdvancedView->SetBitmapLabel(*(pSkinSimple->GetAdvancedLink()->GetBitmap()));
btnAdvancedView->SetBitmapSelected(*(pSkinSimple->GetAdvancedLink()->GetBitmap()));
//set line colors
lnMyProjTop->SetLineColor(pSkinSimple->GetStaticLineColor());
lnMyProjBtm->SetLineColor(pSkinSimple->GetStaticLineColor());
// spacers
i_spacer1->LoadImage(*(pSkinSimple->GetSpacerImage()->GetBitmap()));
i_spacer2->LoadImage(*(pSkinSimple->GetSpacerImage()->GetBitmap()));
i_spacer2->LoadImage(*(pSkinSimple->GetSpacerImage()->GetBitmap()));
// Rebuild stat menus and reload icons
for(int m = 0; m < (int)m_statProjects.size(); m++){
StatImageLoader *i_statImage = m_statProjects.at(m);
i_statImage->LoadImage();
i_statImage->RebuildMenu();
}
}
示例4: CreateControls
//.........这里部分代码省略.........
wxBoxSizer* itemBoxSizer38 = new wxBoxSizer(wxHORIZONTAL);
itemFlexGridSizer15->Add(itemBoxSizer38, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 0);
m_WorkWhileOnBatteryCtrl = new wxCheckBox( itemDialog1, ID_WORKWHILEONBATTERY, _T(""), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
m_WorkWhileOnBatteryCtrl->SetValue(false);
m_WorkWhileOnBatteryCtrl->Enable(false);
itemBoxSizer38->Add(m_WorkWhileOnBatteryCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);
CTransparentStaticText* itemStaticText40 = new CTransparentStaticText( itemDialog1, wxID_ANY, _("Do work after idle for:"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
itemStaticText40->SetFont(wxFont(SMALL_FONT, wxSWISS, wxNORMAL, wxNORMAL, false, _T("Arial")));
itemStaticText40->Wrap(250);
itemFlexGridSizer15->Add(itemStaticText40, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
wxBoxSizer* itemBoxSizer41 = new wxBoxSizer(wxHORIZONTAL);
itemFlexGridSizer15->Add(itemBoxSizer41, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 0);
wxString* m_WorkWhenIdleCtrlStrings = NULL;
m_WorkWhenIdleCtrl = new wxComboBox( itemDialog1, ID_WORKWHENIDLE, _T(""), wxDefaultPosition, wxSize(-1, -1), 0, m_WorkWhenIdleCtrlStrings, wxCB_READONLY );
m_WorkWhenIdleCtrl->Enable(false);
itemBoxSizer41->Add(m_WorkWhenIdleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);
CTransparentStaticText* itemStaticText43 = new CTransparentStaticText( itemDialog1, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 );
itemStaticText43->SetFont(wxFont(SMALL_FONT, wxSWISS, wxNORMAL, wxNORMAL, false, _T("Arial")));
itemBoxSizer41->Add(itemStaticText43, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxADJUST_MINSIZE, 5);
wxBoxSizer* itemBoxSizer44 = new wxBoxSizer(wxHORIZONTAL);
itemBoxSizer2->Add(itemBoxSizer44, 0, wxALIGN_RIGHT|wxALL, 5);
wxBitmapButton* itemBitmapButton44 = new wxBitmapButton(
itemDialog1,
wxID_OK,
*pSkinSimple->GetSaveButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetSaveButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetSaveButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetSaveButton()->GetBitmapClicked() != NULL ) {
itemBitmapButton44->SetBitmapSelected(*pSkinSimple->GetSaveButton()->GetBitmapClicked());
}
itemBoxSizer44->Add(itemBitmapButton44, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
wxBitmapButton* itemBitmapButton45 = new wxBitmapButton(
itemDialog1,
wxID_CANCEL,
*pSkinSimple->GetCancelButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetCancelButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetCancelButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetCancelButton()->GetBitmapClicked() != NULL ) {
itemBitmapButton45->SetBitmapSelected(*pSkinSimple->GetCancelButton()->GetBitmapClicked());
}
itemBoxSizer44->Add(itemBitmapButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#ifndef __WXMSW__
#ifdef __WXMAC__
wxBitmapButton* itemButton46 = new wxBitmapButton(
this,
ID_SIMPLE_HELP,
*pSkinSimple->GetHelpButton()->GetBitmap(),
wxDefaultPosition,
wxSize(
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetWidth(),
(*pSkinSimple->GetHelpButton()->GetBitmap()).GetHeight()
),
wxBU_AUTODRAW
);
if ( pSkinSimple->GetHelpButton()->GetBitmapClicked() != NULL ) {
itemButton46->SetBitmapSelected(*pSkinSimple->GetHelpButton()->GetBitmapClicked());
}
#ifdef wxUSE_TOOLTIPS
itemButton46->SetToolTip(new wxToolTip(_("Get help with BOINC")));
#endif
itemBoxSizer44->Add(itemButton46, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#else
wxContextHelpButton* itemButton45 = new wxContextHelpButton(this);
itemBoxSizer44->Add(itemButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
#endif
#endif
// Set validators
m_SkinSelectorCtrl->SetValidator( wxGenericValidator(& m_strSkinSelector) );
m_CustomizePreferencesCtrl->SetValidator( wxGenericValidator(& m_bCustomizedPreferences) );
m_WorkBetweenBeginCtrl->SetValidator( wxGenericValidator(& m_strWorkBetweenBegin) );
m_WorkBetweenEndCtrl->SetValidator( wxGenericValidator(& m_strWorkBetweenEnd) );
m_ConnectBetweenBeginCtrl->SetValidator( wxGenericValidator(& m_strConnectBetweenBegin) );
m_ConnectBetweenEndCtrl->SetValidator( wxGenericValidator(& m_strConnectBetweenEnd) );
m_MaxDiskUsageCtrl->SetValidator( wxGenericValidator(& m_strMaxDiskUsage) );
m_MaxCPUUsageCtrl->SetValidator( wxGenericValidator(& m_strMaxCPUUsage) );
m_WorkWhileOnBatteryCtrl->SetValidator( wxGenericValidator(& m_bWorkWhileOnBattery) );
m_WorkWhenIdleCtrl->SetValidator( wxGenericValidator(& m_strWorkWhenIdle) );
////@end CPanelPreferences content construction
}