(parent,
id, caption, pos,
size, style);
72 bool CJobResultsDlg::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
75SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
76wxDialog::Create( parent,
id, caption, pos,
size, style );
81GetSizer()->SetSizeHints(
this);
105wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
106itemDialog1->SetSizer(itemBoxSizer2);
108wxHtmlWindow* itemHtmlWindow3 =
newwxHtmlWindow( itemDialog1,
ID_HTMLWINDOW1, wxDefaultPosition, itemDialog1->ConvertDialogToPixels(wxSize(350, 200)), wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER|wxHSCROLL|wxVSCROLL );
109itemBoxSizer2->Add(itemHtmlWindow3, 1, wxGROW|wxALL, 5);
111wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxHORIZONTAL);
112itemBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
114wxButton* itemButton11 =
newwxButton(itemDialog1,
ID_JOB_RESULTS_DLG_EXPORT,
_(
"Export..."), wxDefaultPosition, wxDefaultSize, 0);
115itemBoxSizer5->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
117itemBoxSizer5->AddStretchSpacer();
119wxButton* itemButton4 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0 );
120itemBoxSizer5->Add(itemButton4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
124wxHtmlWindow* htmlWnd = (wxHtmlWindow*)FindWindow(
ID_HTMLWINDOW1);
125 if(htmlWnd) htmlWnd->SetPage(
m_HTML);
151wxFileDialog dlg(
this,
wxT(
"Select a file"),
m_WorkDir,
wxT(
""),
153wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
155 if(dlg.ShowModal() != wxID_OK)
158wxString 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)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4