1 #ifndef GUI_WIDGETS_FEEDBACK___FEEDBACK_WIZARD__HPP
2 #define GUI_WIDGETS_FEEDBACK___FEEDBACK_WIZARD__HPP
41 #include "wx/wizard.h"
42 #include "wx/valgen.h"
43 #include "wx/valtext.h"
73 const string&
GetDescr()
const {
return m_Descr; }
101 #define SYMBOL_CFEEDBACKWIZARD_IDNAME ID_CFEEDBACKWIZARD
111 DECLARE_EVENT_TABLE()
128 void CreateControls();
140 wxBitmap GetBitmapResource(
const wxString& name );
143 wxIcon GetIconResource(
const wxString& name );
147 static bool ShowToolTips();
152 ID_CFEEDBACKWIZARD = 10000
161 void SetProblemDescription(
const char* description);
174 DECLARE_EVENT_TABLE()
183 bool Create( wxWizard* parent );
192 void CreateControls();
197 void OnOptOutClick( wxCommandEvent& event );
207 wxBitmap GetBitmapResource(
const wxString& name );
210 wxIcon GetIconResource(
const wxString& name );
214 static bool ShowToolTips();
221 ID_WIZARDPAGE1 = 10001,
234 DECLARE_EVENT_TABLE()
243 bool Create( wxWizard* parent );
252 void CreateControls();
257 void OnWizardpagePolicyChanging( wxWizardEvent& event );
260 void OnAcknowledgePolicy( wxCommandEvent& event );
267 wxBitmap GetBitmapResource(
const wxString& name );
270 wxIcon GetIconResource(
const wxString& name );
274 static bool ShowToolTips();
280 ID_WIZARDPAGE2 = 10002,
282 ID_ACKNOWLEDGE = 10004
294 DECLARE_EVENT_TABLE()
303 bool Create( wxWizard* parent );
312 void CreateControls();
317 void OnProblemPageChanging( wxWizardEvent& event );
320 void OnEmailCtrlTextUpdated( wxCommandEvent& event );
323 void OnSendAnonymously( wxCommandEvent& event );
345 wxBitmap GetBitmapResource(
const wxString& name );
348 wxIcon GetIconResource(
const wxString& name );
352 static bool ShowToolTips();
366 ID_WIZARDPAGE3 = 10005,
367 ID_EMAILCTRL = 10006,
369 ID_DESCRCTRL = 10007,
370 ID_CHECK_SENDLOG = 10008,
371 ID_CHECK_SUBSCRIBE = 10019
383 DECLARE_EVENT_TABLE()
392 bool Create( wxWizard* parent );
401 void CreateControls();
403 void OnShow(wxShowEvent& event);
418 wxBitmap GetBitmapResource(
const wxString& name );
421 wxIcon GetIconResource(
const wxString& name );
425 static bool ShowToolTips();
433 ID_WIZARDPAGE4 = 10009,
447 DECLARE_EVENT_TABLE()
456 bool Create( wxWizard* parent );
465 void CreateControls();
470 void OnWizardpageSubmitChanged( wxWizardEvent& event );
477 wxBitmap GetBitmapResource(
const wxString& name );
480 wxIcon GetIconResource(
const wxString& name );
484 static bool ShowToolTips();
489 ID_WIZARDPAGE5 = 10012,
class CFeedbackReport serves as a data model for all pages and coordinates the submission of a report
void SetDescr(const string &str)
void SetEmailAddr(const string &str)
const string & GetDescr() const
const string & GetSysInfo() const
void SetSubscribe(bool b)
const string & GetEmailAddr() const
void SetSysInfo(const string &str)
bool GetIncludeLog() const
void SetIncludeLog(bool b)
bool GetSubscribe() const
wxCheckBox * m_AcceptPolicy
void SetEMail(wxString value)
wxString GetEMail() const
bool GetSendAnonymously() const
bool GetIncludeLog() const
wxCheckBox * m_SendAnonymouslyCtrl
void SetIncludeLog(bool value)
wxString GetProblemDescr() const
void SetProblemDescr(wxString value)
void SetSubscribe(bool value)
void SetSendAnonymously(bool value)
bool GetSubscribe() const
void SetIncludeSysInfo(bool value)
wxString GetSysInfo() const
bool GetIncludeSysInfo() const
void SetSysInfo(wxString value)
void SetOptOut(bool value)
#define SYMBOL_CFEEDBACKWIZARD_IDNAME
static const char * str(char *buf, int n)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
void Run(void)
Enter the main loop.
#define NCBI_GUIWIDGETS_FEEDBACK_EXPORT
Defines to provide correct exporting from DLLs in Windows.
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.