: m_Workbench(0), m_Simple(
false)
80: m_Workbench(workbench), m_Simple(
false)
88: m_Workbench(workbench), m_Simple(simple)
102wxPanel::Create( parent,
id, pos,
size, style );
106GetSizer()->SetSizeHints(
this);
155wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
156itemDialog1->SetSizer(itemBoxSizer2);
158wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxHORIZONTAL);
159itemBoxSizer2->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
163 strings.Add(
_(
"Do not match case"));
165itemBoxSizer5->Add(
m_FindModeCtrl, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
169itemBoxSizer5->Add(
m_FindText2, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
171wxBitmapButton* itemButton9 =
newwxBitmapButton(itemDialog1,
ID_GENERIC_REPORT_FIND2, wxArtProvider::GetBitmap(
wxT(
"text_panel::search")));
172itemBoxSizer5->Add(itemButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
176itemBoxSizer5->Add(
m_RefreshBtn2, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
178wxButton* itemButton10 =
newwxButton(itemDialog1,
ID_GENERIC_REPORT_CLOSE2,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0);
179itemBoxSizer5->Add(itemButton10, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
181itemBoxSizer5->AddStretchSpacer();
182wxButton* itemButton11 =
newwxButton(itemDialog1,
ID_GENERIC_REPORT_EXPORT,
_(
"Export..."), wxDefaultPosition, wxDefaultSize, 0);
183itemBoxSizer5->Add(itemButton11, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
190itemBoxSizer2->Add(
m_RTCtrl, 1, wxGROW|wxALL, 5);
193wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
194itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);
197itemBoxSizer4->Add(
m_FindText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
199wxBitmapButton* itemButton5 =
newwxBitmapButton(itemDialog1,
ID_GENERIC_REPORT_FIND, wxArtProvider::GetBitmap(
wxT(
"text_panel::search")));
200itemBoxSizer4->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
203itemBoxSizer4->Add(
m_RefreshBtn, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
205wxButton* itemButton8 =
newwxButton(itemDialog1,
ID_GENERIC_REPORT_CLOSE,
_(
"Close"), wxDefaultPosition, wxDefaultSize, 0);
206itemBoxSizer4->Add(itemButton8, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
208 m_HelpButton=
newwxHyperlinkCtrl( itemDialog1, wxID_HELP,
_(
"Help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
209 m_HelpButton->SetForegroundColour(wxColour(192, 192, 192));
210itemBoxSizer4->Add(
m_HelpButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
227 m_RTCtrl->SetInitialSize(wxSize(800*font.GetPointSize()/10,400));
264wxTextAttr attr(
m_RTCtrl->GetDefaultStyle());
265attr.SetLineSpacing(spacing);
353 if(
val!= string::npos) {
381 if(
val!= string::npos) {
393GetParent()->Destroy();
398wxFileDialog dlg(
this,
wxT(
"Select a file"),
m_WorkDir,
wxT(
""),
400wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
402 if(dlg.ShowModal() != wxID_OK)
405wxString path = dlg.GetPath();
406 if(!path.IsEmpty()) {
445 if(event.GetActive())
470wxTextCtrl::ShowPosition(pos);
476 event.StopPropagation();
static wxString GetDialogFilter(EFileType fileType)
void OnKillFocus(wxFocusEvent &event)
void OnScrollWinTop(wxScrollWinEvent &event)
void OnScroll(wxScrollWinEvent &event)
void ShowPosition(long pos)
void OnSetFocus(wxFocusEvent &event)
void OnActivate(wxActivateEvent &event)
void OnIdle(wxIdleEvent &)
void OnSetChildFocus(wxChildFocusEvent &event)
void OnGenericReportExportClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_EXPORT
void OnGenericReportFindClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND
void SetHelpUrl(const wxString &url)
@ ID_GENERIC_REPORT_CLOSE2
@ ID_GENERIC_REPORT_FIND2
@ ID_GENERIC_REPORT_CLOSE
@ ID_GENERIC_REPORT_TEXT_FIND2
@ ID_GENERIC_REPORT_EXPORT
@ ID_GENERIC_REPORT_TEXT_FIND
bool Create(wxWindow *parent, wxWindowID id=ID_CGENERICPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void SetText(const wxString &text)
void OnGenRptRefreshClick2(wxCommandEvent &event)
void OnCloseButton(wxCommandEvent &event)
void SetFontAsTextPanel()
void OnGenericReportFindClick2(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND2
~CGenericPanel()
Destructor.
void SetRefresh(IRefreshCntrl *refresh)
wxChoice * m_FindModeCtrl
void SetLineSpacing(int spacing)
static bool ShowToolTips()
Should we show tooltips?
void OnGenRptRefreshClick(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GEN_RPT_REFRESH
void CreateControls()
Creates the controls and sizers.
wxHyperlinkCtrl * m_HelpButton
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void Init()
Initialises member variables.
CGenericPanel()
Constructors.
IRefreshCntrl * m_Refresh
static CGuiRegistry & GetInstance()
access the application-wide singleton
static wxFont GetFont(int size)
virtual void RefreshText(CGenericPanel *text)=0
IWorkbench is the central interface in the application framework.
std::ofstream out("events_result.xml")
main entry point for tests
static const char *const strings[]
#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 bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
ECase
Which type of string comparison.
@ eForwardSearch
Search in a forward direction.
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