NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CGenericPanel Class Reference

Search Toolkit Book for CGenericPanel

#include <gui/widgets/edit/generic_panel.hpp>

+ Inheritance diagram for CGenericPanel:
+ Collaboration diagram for CGenericPanel:

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

CGenTextCtrlm_RTCtrl
 
wxTextCtrl * m_FindText
 
wxTextCtrl * m_FindText2
 
wxButton * m_RefreshBtn
 
wxButton * m_RefreshBtn2
 
wxChoice * m_FindModeCtrl
 
wxHyperlinkCtrl * m_HelpButton
 

Protected Attributes

IRefreshCntrlm_Refresh
 
long m_PrevFindPos
 
string m_PrevFindText
 

Private Member Functions

void SetFontAsTextPanel ()
 

Private Attributes

IWorkbenchm_Workbench
 
bool m_move_to_top
 
wxString m_WorkDir
 
bool m_busy
 
bool m_Simple
 

Detailed Description

CGenericPanel class declaration

Definition at line 98 of file generic_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CGENERICPANEL 
ID_RICHTEXTCTRL 
ID_GENERIC_REPORT_FIND 
ID_GENERIC_REPORT_FIND2 
ID_GENERIC_REPORT_CLOSE 
ID_GENERIC_REPORT_CLOSE2 
ID_GENERIC_REPORT_EXPORT 
ID_GENERIC_REPORT_TEXT_FIND 
ID_GENERIC_REPORT_TEXT_FIND2 
ID_GEN_RPT_REFRESH 
ID_GEN_RPT_REFRESH2 

Definition at line 182 of file generic_panel.hpp.

Constructor & Destructor Documentation

◆ CGenericPanel() [1/3]

CGenericPanel::CGenericPanel ( )

Constructors.

CGenericPanel type definition

CGenericPanel event table definition

CGenericPanel constructors

Definition at line 73 of file generic_panel.cpp.

References Init().

◆ CGenericPanel() [2/3]

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() [3/3]

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::~CGenericPanel ( )

Destructor.

CGenericPanel destructor

Definition at line 118 of file generic_panel.cpp.

References m_Refresh.

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

void CGenericPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CGenericPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 245 of file generic_panel.cpp.

◆ GetFindMode()

int CGenericPanel::GetFindMode ( )
inline

◆ GetIconResource()

wxIcon CGenericPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 255 of file generic_panel.cpp.

◆ Init()

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().

◆ OnCloseButton()

void CGenericPanel::OnCloseButton ( wxCommandEvent &  event)

Definition at line 391 of file generic_panel.cpp.

◆ OnGenericReportExportClick()

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.

◆ OnGenericReportFindClick()

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.

◆ OnGenericReportFindClick2()

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.

◆ OnGenRptRefreshClick()

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().

◆ OnGenRptRefreshClick2()

void CGenericPanel::OnGenRptRefreshClick2 ( wxCommandEvent &  event)

Definition at line 328 of file generic_panel.cpp.

References m_move_to_top, and RefreshData().

◆ RefreshData()

void CGenericPanel::RefreshData ( )

◆ SetFindMode()

void CGenericPanel::SetFindMode ( int  mode)
inline

◆ SetFontAsTextPanel()

void CGenericPanel::SetFontAsTextPanel ( )
private

Definition at line 224 of file generic_panel.cpp.

References CTextPanel::GetFont(), CGuiRegistry::GetInstance(), and m_RTCtrl.

Referenced by CreateControls().

◆ SetHelpUrl()

void CGenericPanel::SetHelpUrl ( const wxString &  url)

Definition at line 218 of file generic_panel.cpp.

References m_HelpButton.

Referenced by CFeatureTblFr::CreateControls().

◆ SetLineSpacing()

void CGenericPanel::SetLineSpacing ( int  spacing)

Definition at line 262 of file generic_panel.cpp.

References m_RTCtrl.

Referenced by CreateControls(), and CGenericReportDlg::SetLineSpacing().

◆ SetRefresh()

void CGenericPanel::SetRefresh ( IRefreshCntrl refresh)

◆ SetText()

void CGenericPanel::SetText ( const wxString &  text)

◆ SetWorkDir()

void CGenericPanel::SetWorkDir ( const wxString &  workDir)
inline

Definition at line 180 of file generic_panel.hpp.

Referenced by CFeatureTblFr::SetWorkDir(), and CGenericReportDlg::SetWorkDir().

◆ ShowToolTips()

bool CGenericPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 236 of file generic_panel.cpp.

Member Data Documentation

◆ m_busy

bool CGenericPanel::m_busy
private

Definition at line 205 of file generic_panel.hpp.

Referenced by Init(), RefreshData(), and SetText().

◆ m_FindModeCtrl

wxChoice* CGenericPanel::m_FindModeCtrl

◆ m_FindText

wxTextCtrl* CGenericPanel::m_FindText

Definition at line 167 of file generic_panel.hpp.

Referenced by CreateControls(), Init(), and OnGenericReportFindClick().

◆ m_FindText2

wxTextCtrl* CGenericPanel::m_FindText2

Definition at line 168 of file generic_panel.hpp.

Referenced by CreateControls(), Init(), and OnGenericReportFindClick2().

◆ m_HelpButton

wxHyperlinkCtrl* CGenericPanel::m_HelpButton

Definition at line 172 of file generic_panel.hpp.

Referenced by CreateControls(), Init(), and SetHelpUrl().

◆ m_move_to_top

bool CGenericPanel::m_move_to_top
private

Definition at line 203 of file generic_panel.hpp.

Referenced by Init(), OnGenRptRefreshClick(), OnGenRptRefreshClick2(), and SetText().

◆ m_PrevFindPos

long CGenericPanel::m_PrevFindPos
protected

Definition at line 198 of file generic_panel.hpp.

Referenced by Init(), OnGenericReportFindClick(), and OnGenericReportFindClick2().

◆ m_PrevFindText

string CGenericPanel::m_PrevFindText
protected

Definition at line 199 of file generic_panel.hpp.

Referenced by Init(), OnGenericReportFindClick(), and OnGenericReportFindClick2().

◆ m_Refresh

IRefreshCntrl* CGenericPanel::m_Refresh
protected

Definition at line 197 of file generic_panel.hpp.

Referenced by Init(), RefreshData(), SetRefresh(), and ~CGenericPanel().

◆ m_RefreshBtn

wxButton* CGenericPanel::m_RefreshBtn

Definition at line 169 of file generic_panel.hpp.

Referenced by CreateControls(), Init(), and SetRefresh().

◆ m_RefreshBtn2

wxButton* CGenericPanel::m_RefreshBtn2

Definition at line 170 of file generic_panel.hpp.

Referenced by CreateControls(), Init(), and SetRefresh().

◆ m_RTCtrl

CGenTextCtrl* CGenericPanel::m_RTCtrl

◆ m_Simple

bool CGenericPanel::m_Simple
private

Definition at line 206 of file generic_panel.hpp.

Referenced by CreateControls().

◆ m_Workbench

IWorkbench* CGenericPanel::m_Workbench
private

Definition at line 202 of file generic_panel.hpp.

◆ m_WorkDir

wxString CGenericPanel::m_WorkDir
private

Definition at line 204 of file generic_panel.hpp.

Referenced by OnGenericReportExportClick().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:09 2024 by modify_doxy.py rev. 669887