28 #ifndef _MACRO_ERROR_DLG_H_
29 #define _MACRO_ERROR_DLG_H_
33 #include <wx/dialog.h>
36 class wxHyperlinkCtrl;
37 class wxHyperlinkEvent;
47 #define SYMBOL_CMACROERRORDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
48 #define SYMBOL_CMACROERRORDLG_TITLE _("Macro Error")
49 #define SYMBOL_CMACROERRORDLG_IDNAME ID_CMACROERRORDLG
50 #define SYMBOL_CMACROERRORDLG_SIZE wxSize(400, 300)
51 #define SYMBOL_CMACROERRORDLG_POSITION wxDefaultPosition
80 bool Create( wxWindow* parent,
94 void CreateControls();
97 void SetMessage(
const string &message);
98 void SetReport(
const string &report);
99 void SetData(
const string &
data);
104 void OnErrorDetalsClicked( wxHyperlinkEvent& event );
107 void OnDataDetailsClicked( wxHyperlinkEvent& event );
110 void OnFeedbackButtonClick( wxCommandEvent& event );
117 wxBitmap GetBitmapResource(
const wxString& name );
120 wxIcon GetIconResource(
const wxString& name );
124 static bool ShowToolTips();
135 ID_CMACROERRORDLG = 10000,
136 wxID_ERROR_STATIC = 10003,
137 ID_ERROR_DETALS_HYPERLINKCTRL = 10001,
138 ID_ERROR_DETAILS_TEXTCTRL = 10002,
139 ID_DATA_DETAILS_HYPERLINKCTRL = 10003,
140 ID_DATA_DETAILS_TEXTCTRL = 10004,
141 ID_FEEDBACK_BUTTON = 10005
147 const macro::CMacroDataException* x_FindDataException(
const CException &
error)
const;
class CMacroExecException
wxTextCtrl * m_DataDetailsCtrl
wxHyperlinkCtrl * m_ErrorDetailsLink
wxStaticText * m_ErrorTextCtrl
wxTextCtrl * m_ErrorDetailsCtrl
wxHyperlinkCtrl * m_DataDetailsLink
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_GUIWIDGETS_DATA_EXPORT
Defines to provide correct exporting from DLLs in Windows.
#define SYMBOL_CMACROERRORDLG_SIZE
#define SYMBOL_CMACROERRORDLG_TITLE
#define SYMBOL_CMACROERRORDLG_IDNAME
#define SYMBOL_CMACROERRORDLG_POSITION
#define SYMBOL_CMACROERRORDLG_STYLE
const struct ncbi::grid::netcache::search::fields::SIZE size