NCBI C++ ToolKit
|
Search Toolkit Book for CGenericPanel
#include <gui/widgets/edit/generic_panel.hpp>
Public Types | |
enum | { ID_CGENERICPANEL = 10350 , ID_RICHTEXTCTRL = 10363 , ID_GENERIC_REPORT_FIND = 10414 , ID_GENERIC_REPORT_FIND2 = 10415 , ID_GENERIC_REPORT_CLOSE = 10416 , ID_GENERIC_REPORT_CLOSE2 = 10417 , ID_GENERIC_REPORT_EXPORT = 10418 , ID_GENERIC_REPORT_TEXT_FIND = 10419 , ID_GENERIC_REPORT_TEXT_FIND2 = 10420 , ID_GEN_RPT_REFRESH = 10406 , ID_GEN_RPT_REFRESH2 = 10407 } |
Public Member Functions | |
CGenericPanel () | |
Constructors. More... | |
CGenericPanel (wxWindow *parent, IWorkbench *workbench=NULL, wxWindowID id=ID_CGENERICPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
CGenericPanel (wxWindow *parent, bool simple, IWorkbench *workbench=NULL, wxWindowID id=ID_CGENERICPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
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. More... | |
~CGenericPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnCloseButton (wxCommandEvent &event) |
void | OnGenericReportFindClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND More... | |
void | OnGenericReportFindClick2 (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND2 More... | |
void | OnGenRptRefreshClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GEN_RPT_REFRESH More... | |
void | OnGenRptRefreshClick2 (wxCommandEvent &event) |
void | OnGenericReportExportClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_EXPORT More... | |
void | SetHelpUrl (const wxString &url) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
int | GetFindMode () |
void | SetFindMode (int mode) |
void | SetLineSpacing (int spacing) |
void | SetText (const wxString &text) |
void | SetRefresh (IRefreshCntrl *refresh) |
void | RefreshData () |
void | SetWorkDir (const wxString &workDir) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
CGenTextCtrl * | m_RTCtrl |
wxTextCtrl * | m_FindText |
wxTextCtrl * | m_FindText2 |
wxButton * | m_RefreshBtn |
wxButton * | m_RefreshBtn2 |
wxChoice * | m_FindModeCtrl |
wxHyperlinkCtrl * | m_HelpButton |
Protected Attributes | |
IRefreshCntrl * | m_Refresh |
long | m_PrevFindPos |
string | m_PrevFindText |
Private Member Functions | |
void | SetFontAsTextPanel () |
Private Attributes | |
IWorkbench * | m_Workbench |
bool | m_move_to_top |
wxString | m_WorkDir |
bool | m_busy |
bool | m_Simple |
CGenericPanel class declaration
Definition at line 98 of file generic_panel.hpp.
anonymous enum |
Definition at line 182 of file generic_panel.hpp.
CGenericPanel::CGenericPanel | ( | ) |
Constructors.
CGenericPanel type definition
CGenericPanel event table definition
CGenericPanel constructors
Definition at line 73 of file generic_panel.cpp.
References Init().
CGenericPanel::CGenericPanel | ( | wxWindow * | parent, |
IWorkbench * | workbench = NULL , |
||
wxWindowID | id = ID_CGENERICPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 79 of file generic_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CGenericPanel::CGenericPanel | ( | wxWindow * | parent, |
bool | simple, | ||
IWorkbench * | workbench = NULL , |
||
wxWindowID | id = ID_CGENERICPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 87 of file generic_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CGenericPanel::~CGenericPanel | ( | ) |
Destructor.
CGenericPanel destructor
Definition at line 118 of file generic_panel.cpp.
References m_Refresh.
bool CGenericPanel::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.
CGenericPanel creator
Definition at line 99 of file generic_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CGenericPanel().
void CGenericPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CGenericPanel
Definition at line 151 of file generic_panel.cpp.
References _, ID_GEN_RPT_REFRESH, ID_GEN_RPT_REFRESH2, ID_GENERIC_REPORT_CLOSE, ID_GENERIC_REPORT_CLOSE2, ID_GENERIC_REPORT_EXPORT, ID_GENERIC_REPORT_FIND, ID_GENERIC_REPORT_FIND2, ID_GENERIC_REPORT_TEXT_FIND, ID_GENERIC_REPORT_TEXT_FIND2, ID_RICHTEXTCTRL, m_FindModeCtrl, m_FindText, m_FindText2, m_HelpButton, m_RefreshBtn, m_RefreshBtn2, m_RTCtrl, m_Simple, SetFontAsTextPanel(), SetLineSpacing(), strings, wxID_ANY, and wxT.
Referenced by Create().
wxBitmap CGenericPanel::GetBitmapResource | ( | const wxString & | name | ) |
|
inline |
Definition at line 163 of file generic_panel.hpp.
Referenced by CFeatureTblFr::SaveSettings(), and CGenericReportDlg::SaveSettings().
wxIcon CGenericPanel::GetIconResource | ( | const wxString & | name | ) |
void CGenericPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 130 of file generic_panel.cpp.
References m_busy, m_FindModeCtrl, m_FindText, m_FindText2, m_HelpButton, m_move_to_top, m_PrevFindPos, m_PrevFindText, m_Refresh, m_RefreshBtn, m_RefreshBtn2, m_RTCtrl, and NULL.
Referenced by CGenericPanel().
void CGenericPanel::OnCloseButton | ( | wxCommandEvent & | event | ) |
Definition at line 391 of file generic_panel.cpp.
void CGenericPanel::OnGenericReportExportClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_EXPORT
Definition at line 396 of file generic_panel.cpp.
References CFileExtensions::GetDialogFilter(), CFileExtensions::kAllFiles, m_RTCtrl, m_WorkDir, out(), and wxT.
void CGenericPanel::OnGenericReportFindClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND
Definition at line 334 of file generic_panel.cpp.
References NStr::eForwardSearch, NStr::Find(), NStr::IsBlank(), m_FindModeCtrl, m_FindText, m_PrevFindPos, m_PrevFindText, m_RTCtrl, CGenTextCtrl::ShowPosition(), text(), ToStdString(), and val.
void CGenericPanel::OnGenericReportFindClick2 | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GENERIC_REPORT_FIND2
Definition at line 362 of file generic_panel.cpp.
References NStr::eForwardSearch, NStr::Find(), NStr::IsBlank(), m_FindModeCtrl, m_FindText2, m_PrevFindPos, m_PrevFindText, m_RTCtrl, CGenTextCtrl::ShowPosition(), text(), ToStdString(), and val.
void CGenericPanel::OnGenRptRefreshClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_GEN_RPT_REFRESH
Definition at line 322 of file generic_panel.cpp.
References m_move_to_top, and RefreshData().
void CGenericPanel::OnGenRptRefreshClick2 | ( | wxCommandEvent & | event | ) |
Definition at line 328 of file generic_panel.cpp.
References m_move_to_top, and RefreshData().
void CGenericPanel::RefreshData | ( | ) |
Definition at line 308 of file generic_panel.cpp.
References m_busy, m_Refresh, and IRefreshCntrl::RefreshText().
Referenced by OnGenRptRefreshClick(), OnGenRptRefreshClick2(), CGenericReportDlg::RefreshData(), and CGenericReportDlgModal::RefreshData().
|
inline |
Definition at line 164 of file generic_panel.hpp.
Referenced by CFeatureTblFr::CreateControls(), CSubAnnotationPanel::CreateControls(), and CGenericReportDlg::LoadSettings().
|
private |
Definition at line 224 of file generic_panel.cpp.
References CTextPanel::GetFont(), CGuiRegistry::GetInstance(), and m_RTCtrl.
Referenced by CreateControls().
void CGenericPanel::SetHelpUrl | ( | const wxString & | url | ) |
Definition at line 218 of file generic_panel.cpp.
References m_HelpButton.
Referenced by CFeatureTblFr::CreateControls().
void CGenericPanel::SetLineSpacing | ( | int | spacing | ) |
Definition at line 262 of file generic_panel.cpp.
References m_RTCtrl.
Referenced by CreateControls(), and CGenericReportDlg::SetLineSpacing().
void CGenericPanel::SetRefresh | ( | IRefreshCntrl * | refresh | ) |
Definition at line 293 of file generic_panel.cpp.
References m_Refresh, m_RefreshBtn, and m_RefreshBtn2.
Referenced by CGenericReportDlg::SetRefresh(), and CGenericReportDlgModal::SetRefresh().
void CGenericPanel::SetText | ( | const wxString & | text | ) |
Definition at line 270 of file generic_panel.cpp.
References m_busy, m_move_to_top, m_RTCtrl, CGenTextCtrl::RestorePosition(), CGenTextCtrl::ShowPosition(), CGenTextCtrl::StorePosition(), and text().
Referenced by CSUCRefreshCntrl::OnError(), CFeatureTblFr::OnJobResult(), CSubAnnotationPanel::OnJobResult(), CSUCRefreshCntrl::OnSUCData(), CGenericReportDlg::SetText(), CGenericReportDlgModal::SetText(), CSubAnnotationPanel::TransferDataToWindow(), and CFeatureTblFr::x_RefreshTable().
|
inline |
Definition at line 180 of file generic_panel.hpp.
Referenced by CFeatureTblFr::SetWorkDir(), and CGenericReportDlg::SetWorkDir().
|
static |
|
private |
Definition at line 205 of file generic_panel.hpp.
Referenced by Init(), RefreshData(), and SetText().
wxChoice* CGenericPanel::m_FindModeCtrl |
Definition at line 171 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), OnGenericReportFindClick(), and OnGenericReportFindClick2().
wxTextCtrl* CGenericPanel::m_FindText |
Definition at line 167 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), and OnGenericReportFindClick().
wxTextCtrl* CGenericPanel::m_FindText2 |
Definition at line 168 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), and OnGenericReportFindClick2().
wxHyperlinkCtrl* CGenericPanel::m_HelpButton |
Definition at line 172 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), and SetHelpUrl().
|
private |
Definition at line 203 of file generic_panel.hpp.
Referenced by Init(), OnGenRptRefreshClick(), OnGenRptRefreshClick2(), and SetText().
|
protected |
Definition at line 198 of file generic_panel.hpp.
Referenced by Init(), OnGenericReportFindClick(), and OnGenericReportFindClick2().
|
protected |
Definition at line 199 of file generic_panel.hpp.
Referenced by Init(), OnGenericReportFindClick(), and OnGenericReportFindClick2().
|
protected |
Definition at line 197 of file generic_panel.hpp.
Referenced by Init(), RefreshData(), SetRefresh(), and ~CGenericPanel().
wxButton* CGenericPanel::m_RefreshBtn |
Definition at line 169 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), and SetRefresh().
wxButton* CGenericPanel::m_RefreshBtn2 |
Definition at line 170 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), and SetRefresh().
CGenTextCtrl* CGenericPanel::m_RTCtrl |
Definition at line 166 of file generic_panel.hpp.
Referenced by CreateControls(), Init(), OnGenericReportExportClick(), OnGenericReportFindClick(), OnGenericReportFindClick2(), SetFontAsTextPanel(), SetLineSpacing(), and SetText().
|
private |
Definition at line 206 of file generic_panel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 202 of file generic_panel.hpp.
|
private |
Definition at line 204 of file generic_panel.hpp.
Referenced by OnGenericReportExportClick().