NCBI C++ ToolKit
|
Search Toolkit Book for CFeatureTblFr
#include <gui/packages/pkg_sequence_edit/featuretbl_frame.hpp>
Public Member Functions | |
CFeatureTblFr () | |
Constructors. More... | |
CFeatureTblFr (wxWindow *parent, IWorkbench *workbench, wxWindowID id=ID_CFEATURETBLFR, const wxString &caption=_("Feature Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(700, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CFEATURETBLFR, const wxString &caption=_("Feature Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(700, 600), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX) |
~CFeatureTblFr () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnCloseWindow (wxCloseEvent &event) |
void | OnRefreshClick (wxCommandEvent &event) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetWorkDir (const wxString &workDir) |
CJobAdapter::IJobCallback interface implementation | |
virtual void | OnJobResult (CObject *result, CJobAdapter &adapter) |
virtual void | OnJobFailed (const string &, CJobAdapter &adapter) |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string ®_path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Public Member Functions inherited from CJobAdapter::IJobCallback | |
virtual | ~IJobCallback () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Private Types | |
enum | { ID_CFEATURETBLFR = 10454 , ID_FTBL_CHCKBX1 = 10455 , ID_FTBL_CHCKBX2 = 10456 , ID_FTBL_CHCKBX3 = 10457 , ID_FTBL_REFRESHBTN = 10458 , ID_FTBL_GENPANEL = 10459 } |
Control identifiers. More... | |
Private Member Functions | |
void | x_RefreshTable (const string &path=kEmptyStr) |
Private Attributes | |
wxCheckBox * | m_ProteinId |
wxCheckBox * | m_Source |
wxCheckBox * | m_ProteinFeats |
CGenericPanel * | m_GenericPanel |
IWorkbench * | m_Workbench |
CRef< CJobAdapter > | m_JobAdapter |
string | m_RegPath |
bool | m_ShowSources |
bool | m_ShowTranscriptId |
bool | m_ShowProteinFeats { false } |
int | m_FindMode |
CFeatureTblFr class declaration
Definition at line 61 of file featuretbl_frame.hpp.
|
private |
Control identifiers.
Enumerator | |
---|---|
ID_CFEATURETBLFR | |
ID_FTBL_CHCKBX1 | |
ID_FTBL_CHCKBX2 | |
ID_FTBL_CHCKBX3 | |
ID_FTBL_REFRESHBTN | |
ID_FTBL_GENPANEL |
Definition at line 147 of file featuretbl_frame.hpp.
CFeatureTblFr::CFeatureTblFr | ( | ) |
Constructors.
CFeatureTblFr type definition
CFeatureTblFr event table definition
CFeatureTblFr constructors
Definition at line 77 of file featuretbl_frame.cpp.
References Init().
CFeatureTblFr::CFeatureTblFr | ( | wxWindow * | parent, |
IWorkbench * | workbench, | ||
wxWindowID | id = ID_CFEATURETBLFR , |
||
const wxString & | caption = _("Feature Table") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(700, 600) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX |
||
) |
Definition at line 83 of file featuretbl_frame.cpp.
References Create(), Init(), NEditingStats::ReportUsage(), and ncbi::grid::netcache::search::fields::size.
CFeatureTblFr::~CFeatureTblFr | ( | ) |
Destructor.
CFeatureTblFr destructor
Definition at line 116 of file featuretbl_frame.cpp.
References CJobAdapter::Cancel(), m_JobAdapter, and SaveSettings().
bool CFeatureTblFr::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CFEATURETBLFR , |
||
const wxString & | caption = _("Feature Table") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(700, 600) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX |
||
) |
CFeatureTblFr creator
Definition at line 96 of file featuretbl_frame.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CFeatureTblFr().
void CFeatureTblFr::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CFeatureTblFr
Definition at line 149 of file featuretbl_frame.cpp.
References _, ID_FTBL_CHCKBX1, ID_FTBL_CHCKBX2, ID_FTBL_GENPANEL, ID_FTBL_REFRESHBTN, m_FindMode, m_GenericPanel, m_ProteinFeats, m_ProteinId, m_ShowProteinFeats, m_ShowSources, m_ShowTranscriptId, m_Source, m_Workbench, CGenericPanel::SetFindMode(), CGenericPanel::SetHelpUrl(), and x_RefreshTable().
Referenced by Create().
wxBitmap CFeatureTblFr::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 208 of file featuretbl_frame.cpp.
wxIcon CFeatureTblFr::GetIconResource | ( | const wxString & | name | ) |
void CFeatureTblFr::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 131 of file featuretbl_frame.cpp.
References LoadSettings(), m_FindMode, m_GenericPanel, m_ProteinFeats, m_ProteinId, m_Source, NULL, and SetRegistryPath().
Referenced by CFeatureTblFr().
|
virtual |
Implements IRegSettings.
Definition at line 255 of file featuretbl_frame.cpp.
References CRegistryReadView::GetBool(), CGuiRegistry::GetInstance(), CRegistryReadView::GetInt(), CGuiRegistry::GetReadView(), kCaseSensitive, kShowProteinFeats, kShowSources, kShowTranscriptID, m_FindMode, m_RegPath, m_ShowProteinFeats, m_ShowSources, and m_ShowTranscriptId.
Referenced by Init().
void CFeatureTblFr::OnCloseWindow | ( | wxCloseEvent & | event | ) |
Definition at line 274 of file featuretbl_frame.cpp.
|
virtual |
Implements CJobAdapter::IJobCallback.
Definition at line 419 of file featuretbl_frame.cpp.
References NcbiErrorBox().
|
virtual |
Implements CJobAdapter::IJobCallback.
Definition at line 409 of file featuretbl_frame.cpp.
References data, CJobAdapterResult< T >::GetData(), Info(), LOG_POST, m_GenericPanel, result, CGenericPanel::SetText(), and ToWxString().
void CFeatureTblFr::OnRefreshClick | ( | wxCommandEvent & | event | ) |
Definition at line 269 of file featuretbl_frame.cpp.
References x_RefreshTable().
|
virtual |
Implements IRegSettings.
Definition at line 240 of file featuretbl_frame.cpp.
References CGenericPanel::GetFindMode(), CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kCaseSensitive, kShowProteinFeats, kShowSources, kShowTranscriptID, m_GenericPanel, m_RegPath, m_ShowProteinFeats, m_ShowSources, m_ShowTranscriptId, and CRegistryWriteView::Set().
Referenced by ~CFeatureTblFr().
Implements IRegSettings.
Definition at line 235 of file featuretbl_frame.cpp.
References m_RegPath.
Referenced by Init().
void CFeatureTblFr::SetWorkDir | ( | const wxString & | workDir | ) |
Definition at line 189 of file featuretbl_frame.cpp.
References m_GenericPanel, and CGenericPanel::SetWorkDir().
Referenced by CEditingBtnsPanel::ShowFeatureTable(), and CSequenceEditingEventHandler::ShowFeatureTable().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 199 of file featuretbl_frame.cpp.
Definition at line 432 of file featuretbl_frame.cpp.
References CJobAdapter::Cancel(), IServiceLocator::GetServiceByType(), GetViewObjects(), input(), m_GenericPanel, m_JobAdapter, m_ProteinFeats, m_ProteinId, m_Source, m_Workbench, NcbiWarningBox(), CRef< C, Locker >::Reset(), s_Create5ColFeatTable(), CGenericPanel::SetText(), and ToWxString().
Referenced by CreateControls(), and OnRefreshClick().
|
private |
Definition at line 145 of file featuretbl_frame.hpp.
Referenced by CreateControls(), Init(), and LoadSettings().
|
private |
Definition at line 136 of file featuretbl_frame.hpp.
Referenced by CreateControls(), Init(), OnJobResult(), SaveSettings(), SetWorkDir(), and x_RefreshTable().
|
private |
Definition at line 140 of file featuretbl_frame.hpp.
Referenced by x_RefreshTable(), and ~CFeatureTblFr().
|
private |
Definition at line 135 of file featuretbl_frame.hpp.
Referenced by CreateControls(), Init(), and x_RefreshTable().
|
private |
Definition at line 133 of file featuretbl_frame.hpp.
Referenced by CreateControls(), Init(), and x_RefreshTable().
|
private |
Definition at line 141 of file featuretbl_frame.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().
Definition at line 144 of file featuretbl_frame.hpp.
Referenced by CreateControls(), LoadSettings(), and SaveSettings().
|
private |
Definition at line 142 of file featuretbl_frame.hpp.
Referenced by CreateControls(), LoadSettings(), and SaveSettings().
|
private |
Definition at line 143 of file featuretbl_frame.hpp.
Referenced by CreateControls(), LoadSettings(), and SaveSettings().
|
private |
Definition at line 134 of file featuretbl_frame.hpp.
Referenced by CreateControls(), Init(), and x_RefreshTable().
|
private |
Definition at line 138 of file featuretbl_frame.hpp.
Referenced by CreateControls(), and x_RefreshTable().