40 #include <wx/button.h>
42 #include <wx/hyperlink.h>
45 DEFINE_EVENT_TYPE(CEVT_WIZARD_DLG_EVENT)
77 bool CWizardDlg::Create( wxWindow* parent, wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
80 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
81 CDialog::Create( parent,
id, caption, pos,
size, style );
86 GetSizer()->SetSizeHints(
this);
115 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
116 itemCDialog1->SetSizer(itemBoxSizer2);
118 wxStaticLine* itemStaticLine3 =
new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
119 itemBoxSizer2->Add(itemStaticLine3, 0, wxGROW|wxALL, 5);
124 m_Help =
new wxHyperlinkCtrl( itemCDialog1,
ID_HELP_LINK,
_(
"Help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
125 m_Help->SetForegroundColour(wxColour(192, 192, 192));
135 m_BackBtn =
new wxButton( itemCDialog1, wxID_BACKWARD,
_(
"&Back"), wxDefaultPosition, wxDefaultSize, 0 );
138 m_NextBtn =
new wxButton( itemCDialog1, wxID_FORWARD,
_(
"&Forward"), wxDefaultPosition, wxDefaultSize, 0 );
144 wxButton* itemButton11 =
new wxButton( itemCDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
145 m_ButtonsSizer->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5);
157 m_Help->Show(!url.IsEmpty());
177 if (panel->GetParent() !=
this) {
178 panel->Reparent(
this);
181 if (panel->GetContainingSizer() != GetSizer()) {
182 GetSizer()->Insert(0, panel, 1, wxEXPAND | wxALL, 5);
virtual void EndModal(int retCode)
virtual void CreatePages()
void SetCurrentPage(IWizardPage *page)
void OnForwardClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_FORWARD
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnButtonOptionsClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_OPTIONS
wxBoxSizer * m_ButtonsSizer
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CWIZARDDLG, const wxString &caption=_("WizardDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
void OnUpdateButtons(wxCommandEvent &)
void OnBackwardClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_BACKWARD
IWizardPage * m_CurrentPage
void SetHelpUrl(const wxString &url)
virtual IWizardPage * GetPrevPage()=0
virtual IWizardPage * GetOptionsPage()=0
virtual IWizardPage * GetNextPage()=0
virtual wxPanel * GetPanel()=0
virtual bool CanLeavePage(bool forward)=0
static DLIST_TYPE *DLIST_NAME() prev(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
static DLIST_TYPE *DLIST_NAME() next(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN