35 #include <wx/button.h>
37 #include <wx/filedlg.h>
38 #include <wx/textbuf.h>
72 bool CJobResultsDlg::Create( wxWindow* parent, wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
75 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
76 wxDialog::Create( parent,
id, caption, pos,
size, style );
81 GetSizer()->SetSizeHints(
this);
105 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
106 itemDialog1->SetSizer(itemBoxSizer2);
108 wxHtmlWindow* itemHtmlWindow3 =
new wxHtmlWindow( itemDialog1,
ID_HTMLWINDOW1, wxDefaultPosition, itemDialog1->ConvertDialogToPixels(wxSize(350, 200)), wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );
109 itemBoxSizer2->Add(itemHtmlWindow3, 1, wxGROW|wxALL, 5);
111 wxBoxSizer* itemBoxSizer5 =
new wxBoxSizer(wxHORIZONTAL);
112 itemBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
114 wxButton* itemButton11 =
new wxButton(itemDialog1,
ID_JOB_RESULTS_DLG_EXPORT,
_(
"Export..."), wxDefaultPosition, wxDefaultSize, 0);
115 itemBoxSizer5->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
117 itemBoxSizer5->AddStretchSpacer();
119 wxButton* itemButton4 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
120 itemBoxSizer5->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
124 wxHtmlWindow* htmlWnd = (wxHtmlWindow*)FindWindow(
ID_HTMLWINDOW1);
125 if (htmlWnd) htmlWnd->SetPage(
m_HTML);
153 wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
155 if (dlg.ShowModal() != wxID_OK)
158 wxString path = dlg.GetPath();
159 if (!path.IsEmpty()) {
static wxString GetDialogFilter(EFileType fileType)
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnExportClick(wxCommandEvent &event)
bool Create(wxWindow *parent, wxWindowID id=10049, const wxString &caption=_("Job Results"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
static bool ShowToolTips()
std::ofstream out("events_result.xml")
main entry point for tests
static string StripHTML(const string &str)
Strip all HTML code from a string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
#define ID_JOB_RESULTS_DLG_EXPORT
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)