NCBI C++ ToolKit
|
Search Toolkit Book for CWindowMaskerPanel
#include <gui/packages/pkg_sequence/windowmasker_panel.hpp>
Classes | |
struct | SMaskerInfo |
Public Types | |
enum | { ID_CWINDOWMASKERPANEL = 10015 , ID_COBJECTLISTWIDGET = 10000 , ID_CHOICE7 = 10017 , ID_BUTTON5 = 10073 , ID_COMBOBOX2 = 10018 , ID_LOCALRUN = 10063 } |
Control identifiers. More... | |
enum | { ID_LOADING_TEXT = 10100 , ID_LOADING_PROGRESS = 10101 } |
typedef map< string, SMaskerInfo > | TMaskerPaths |
Public Member Functions | |
CWindowMaskerPanel () | |
Constructors. More... | |
CWindowMaskerPanel (wxWindow *parent, wxWindowID id=ID_CWINDOWMASKERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CWINDOWMASKERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CWindowMaskerPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
virtual bool | TransferDataToWindow () |
Transfer data to the window. More... | |
virtual bool | TransferDataFromWindow () |
Transfer data from the window. More... | |
void | OnWMDownload (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON5 More... | |
CWindowMaskerParams & | GetData () |
Data access. More... | |
const CWindowMaskerParams & | GetData () const |
void | SetData (const CWindowMaskerParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetObjects (TConstScopedObjects *objects) |
CTaxIdHelper::ICallback interface implementation | |
virtual void | TaxonsLoaded (bool local) |
CAlgoToolManagerParamsPanel implementation | |
void | RestoreDefaults () |
override in derived classes More... | |
IRegSettings interface implementation | |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
override in derived classes More... | |
Public Member Functions inherited from CAlgoToolManagerParamsPanel | |
virtual void | SetRegistryPath (const string ®_path) |
CAlgoToolManagerParamsPanel. More... | |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Public Member Functions inherited from CTaxIdHelper::ICallback | |
virtual | ~ICallback () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
CObjectListWidget * | m_ObjectList |
wxBoxSizer * | m_WMStaticBoxSizer |
wxStaticText * | m_WMStatic |
wxChoice * | m_WMTaxIds |
wxButton * | m_WMDownload |
CWindowMaskerParams | m_data |
The data edited by this window. More... | |
TConstScopedObjects * | m_InputObjects |
Static Public Attributes | |
static TMaskerPaths | sm_MaskerPaths |
Protected Member Functions | |
void | x_InitTaxons () |
void | x_ShowWM (bool show) |
Protected Attributes | |
CTaxIdHelper::CAutoDelete | m_AutoDelete |
Protected Attributes inherited from CAlgoToolManagerParamsPanel | |
string | m_RegPath |
registry path to the settings More... | |
Definition at line 59 of file windowmasker_panel.hpp.
typedef map<string, SMaskerInfo> CWindowMaskerPanel::TMaskerPaths |
Definition at line 166 of file windowmasker_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CWINDOWMASKERPANEL | |
ID_COBJECTLISTWIDGET | |
ID_CHOICE7 | |
ID_BUTTON5 | |
ID_COMBOBOX2 | |
ID_LOCALRUN |
Definition at line 130 of file windowmasker_panel.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_LOADING_TEXT | |
ID_LOADING_PROGRESS |
Definition at line 140 of file windowmasker_panel.hpp.
CWindowMaskerPanel::CWindowMaskerPanel | ( | ) |
Constructors.
CWindowMaskerPanel constructors
Definition at line 84 of file windowmasker_panel.cpp.
References Init().
CWindowMaskerPanel::CWindowMaskerPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CWINDOWMASKERPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 90 of file windowmasker_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CWindowMaskerPanel::~CWindowMaskerPanel | ( | ) |
bool CWindowMaskerPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CWINDOWMASKERPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CWindowMaskerPanel creator
Definition at line 102 of file windowmasker_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CWindowMaskerPanel(), and CWindowMaskerTool::x_CreateParamsPanelIfNeeded().
void CWindowMaskerPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CWindowMaskerPanel
Definition at line 149 of file windowmasker_panel.cpp.
References _, GetData(), ID_BUTTON5, ID_CHOICE7, ID_COBJECTLISTWIDGET, ID_COMBOBOX2, ID_LOADING_PROGRESS, ID_LOADING_TEXT, ID_LOCALRUN, m_ObjectList, m_WMDownload, m_WMStatic, m_WMStaticBoxSizer, m_WMTaxIds, and wxT.
Referenced by Create().
wxBitmap CWindowMaskerPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 225 of file windowmasker_panel.cpp.
|
inline |
Data access.
Definition at line 107 of file windowmasker_panel.hpp.
References m_data.
Referenced by CreateControls(), RestoreDefaults(), TaxonsLoaded(), TransferDataFromWindow(), CWindowMaskerTool::x_CreateLoadingJob(), x_InitTaxons(), and CWindowMaskerTool::x_ValidateParams().
|
inline |
Definition at line 108 of file windowmasker_panel.hpp.
References m_data.
wxIcon CWindowMaskerPanel::GetIconResource | ( | const wxString & | name | ) |
void CWindowMaskerPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 133 of file windowmasker_panel.cpp.
References m_ObjectList, m_WMDownload, m_WMStatic, m_WMStaticBoxSizer, m_WMTaxIds, and NULL.
Referenced by CWindowMaskerPanel().
|
virtual |
Implements CAlgoToolManagerParamsPanel.
Definition at line 265 of file windowmasker_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), kTableTag, CwxTableListCtrl::LoadTableSettings(), m_ObjectList, CAlgoToolManagerParamsPanel::m_RegPath, and CGuiRegistryUtil::MakeKey().
Referenced by CWindowMaskerTool::x_CreateParamsPanelIfNeeded().
void CWindowMaskerPanel::OnWMDownload | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON5
Definition at line 247 of file windowmasker_panel.cpp.
References CWinMaskerFileStorage::GetInstance(), CWinMaskerFileStorage::ShowOptionsDlg(), and x_InitTaxons().
|
virtual |
override in derived classes
Restores the default options for the panel
Implements CAlgoToolManagerParamsPanel.
Definition at line 357 of file windowmasker_panel.cpp.
References GetData(), CWindowMaskerParams::Init(), and TransferDataToWindow().
|
virtual |
override in derived classes
Implements CAlgoToolManagerParamsPanel.
Definition at line 255 of file windowmasker_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kTableTag, m_ObjectList, CAlgoToolManagerParamsPanel::m_RegPath, CGuiRegistryUtil::MakeKey(), and CwxTableListCtrl::SaveTableSettings().
|
inline |
Definition at line 109 of file windowmasker_panel.hpp.
Referenced by CWindowMaskerTool::x_CreateParamsPanelIfNeeded().
|
inline |
Definition at line 150 of file windowmasker_panel.hpp.
References m_InputObjects.
Referenced by CWindowMaskerTool::x_CreateParamsPanelIfNeeded().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 216 of file windowmasker_panel.cpp.
|
virtual |
Implements CTaxIdHelper::ICallback.
Definition at line 299 of file windowmasker_panel.cpp.
References CTaxIdHelper::FillControl(), GetData(), CTaxIdHelper::GetInstance(), GetTaxId(), local, m_WMTaxIds, and x_ShowWM().
|
virtual |
Transfer data from the window.
Transfer data from the window
Definition at line 322 of file windowmasker_panel.cpp.
References GetData(), CObjectListWidget::GetSelection(), int, m_ObjectList, m_WMTaxIds, CWindowMaskerParams::SetObjects(), CWindowMaskerParams::SetTaxId(), and wxT.
|
virtual |
Transfer data to the window.
Definition at line 279 of file windowmasker_panel.cpp.
References m_InputObjects, m_ObjectList, CwxTableListCtrl::SelectAll(), CObjectListWidget::SetObjects(), and x_InitTaxons().
Referenced by RestoreDefaults().
|
protected |
Definition at line 291 of file windowmasker_panel.cpp.
References GetData(), CTaxIdHelper::GetInstance(), GetTaxId(), m_WMTaxIds, and x_ShowWM().
Referenced by OnWMDownload(), and TransferDataToWindow().
|
protected |
Definition at line 306 of file windowmasker_panel.cpp.
References ID_LOADING_PROGRESS, ID_LOADING_TEXT, m_WMDownload, m_WMStatic, m_WMStaticBoxSizer, and m_WMTaxIds.
Referenced by TaxonsLoaded(), and x_InitTaxons().
|
protected |
Definition at line 173 of file windowmasker_panel.hpp.
CWindowMaskerParams CWindowMaskerPanel::m_data |
The data edited by this window.
Definition at line 128 of file windowmasker_panel.hpp.
TConstScopedObjects* CWindowMaskerPanel::m_InputObjects |
Definition at line 152 of file windowmasker_panel.hpp.
Referenced by SetObjects(), and TransferDataToWindow().
CObjectListWidget* CWindowMaskerPanel::m_ObjectList |
Definition at line 122 of file windowmasker_panel.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), TransferDataFromWindow(), and TransferDataToWindow().
wxButton* CWindowMaskerPanel::m_WMDownload |
Definition at line 126 of file windowmasker_panel.hpp.
Referenced by CreateControls(), Init(), and x_ShowWM().
wxStaticText* CWindowMaskerPanel::m_WMStatic |
Definition at line 124 of file windowmasker_panel.hpp.
Referenced by CreateControls(), Init(), and x_ShowWM().
wxBoxSizer* CWindowMaskerPanel::m_WMStaticBoxSizer |
Definition at line 123 of file windowmasker_panel.hpp.
Referenced by CreateControls(), Init(), and x_ShowWM().
wxChoice* CWindowMaskerPanel::m_WMTaxIds |
Definition at line 125 of file windowmasker_panel.hpp.
Referenced by CreateControls(), Init(), TaxonsLoaded(), TransferDataFromWindow(), x_InitTaxons(), and x_ShowWM().
|
static |
CWindowMaskerPanel event table definition
Definition at line 167 of file windowmasker_panel.hpp.