NCBI C++ ToolKit
|
Search Toolkit Book for CSrcEditPanel
#include <gui/packages/pkg_sequence_edit/srcedit_panel.hpp>
Public Member Functions | |
CSrcEditPanel () | |
Constructors. More... | |
CSrcEditPanel (wxWindow *parent, wxWindowID id=10011, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10011, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CSrcEditPanel () | |
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... | |
CSrcEditParams & | GetData () |
Data access. More... | |
const CSrcEditParams & | GetData () const |
void | SetData (const CSrcEditParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetObjects (TConstScopedObjects *objects) |
objects::CSeq_entry_Handle | GetSeqEntryHandle () |
void | SetUndoManager (ICommandProccessor *cmdProccessor) |
CAlgoToolManagerParamsPanel implementation | |
void | RestoreDefaults () |
override in derived classes More... | |
IRegSettings interface implementation | |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
override in derived classes More... | |
![]() | |
virtual void | SetRegistryPath (const string ®_path) |
CAlgoToolManagerParamsPanel. More... | |
![]() | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
CObjectListWidget * | m_ObjectList |
TConstScopedObjects * | m_InputObjects |
CSrcEditParams | m_data |
The data edited by this window. More... | |
wxGrid * | m_Grid |
Private Attributes | |
ICommandProccessor * | m_CmdProccessor |
Additional Inherited Members | |
![]() | |
string | m_RegPath |
registry path to the settings More... | |
CSrcEditPanel class declaration
Definition at line 76 of file srcedit_panel.hpp.
CSrcEditPanel::CSrcEditPanel | ( | ) |
Constructors.
CSrcEditPanel type definition
CSrcEditPanel event table definition
CSrcEditPanel constructors
Definition at line 89 of file srcedit_panel.cpp.
References Init().
CSrcEditPanel::CSrcEditPanel | ( | wxWindow * | parent, |
wxWindowID | id = 10011 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 94 of file srcedit_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSrcEditPanel::~CSrcEditPanel | ( | ) |
bool CSrcEditPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10011 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CSrcEditPanel creator
Definition at line 105 of file srcedit_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSrcEditPanel(), and CSrcEditTool::x_CreateParamsPanelIfNeeded().
void CSrcEditPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CSrcEditPanel
Definition at line 148 of file srcedit_panel.cpp.
References _, ID_FOREIGN, ID_GRID, m_Grid, m_ObjectList, and wxID_ANY.
Referenced by Create().
wxBitmap CSrcEditPanel::GetBitmapResource | ( | const wxString & | name | ) |
|
inline |
Data access.
Definition at line 114 of file srcedit_panel.hpp.
References m_data.
Referenced by RestoreDefaults(), TransferDataFromWindow(), and CSrcEditTool::x_CreateLoadingJob().
|
inline |
Definition at line 115 of file srcedit_panel.hpp.
References m_data.
wxIcon CSrcEditPanel::GetIconResource | ( | const wxString & | name | ) |
objects::CSeq_entry_Handle CSrcEditPanel::GetSeqEntryHandle | ( | void | ) |
Definition at line 262 of file srcedit_panel.cpp.
References m_InputObjects, m_ObjectList, NON_CONST_ITERATE, CwxTableListCtrl::SelectAll(), and CObjectListWidget::SetObjects().
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
void CSrcEditPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 136 of file srcedit_panel.cpp.
References m_ObjectList, and NULL.
Referenced by CSrcEditPanel().
|
virtual |
Implements CAlgoToolManagerParamsPanel.
Definition at line 248 of file srcedit_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), kTableTag, CwxTableListCtrl::LoadTableSettings(), m_ObjectList, CAlgoToolManagerParamsPanel::m_RegPath, and CGuiRegistryUtil::MakeKey().
Referenced by CSrcEditTool::x_CreateParamsPanelIfNeeded().
|
virtual |
override in derived classes
Restores the default options for the panel
Implements CAlgoToolManagerParamsPanel.
Definition at line 335 of file srcedit_panel.cpp.
References GetData(), CSrcEditParams::Init(), and TransferDataToWindow().
|
virtual |
override in derived classes
Implements CAlgoToolManagerParamsPanel.
Definition at line 237 of file srcedit_panel.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kTableTag, m_ObjectList, CAlgoToolManagerParamsPanel::m_RegPath, CGuiRegistryUtil::MakeKey(), and CwxTableListCtrl::SaveTableSettings().
|
inline |
Definition at line 116 of file srcedit_panel.hpp.
Referenced by CSrcEditTool::x_CreateParamsPanelIfNeeded().
|
inline |
Definition at line 131 of file srcedit_panel.hpp.
References m_InputObjects.
Referenced by CSrcEditTool::x_CreateParamsPanelIfNeeded().
|
inline |
Definition at line 146 of file srcedit_panel.hpp.
References m_CmdProccessor.
|
static |
|
virtual |
Transfer data from the window.
Transfer data from the window
Definition at line 209 of file srcedit_panel.cpp.
References ApplySrcTableToSeqEntry(), cmd, GetData(), CObjectListWidget::GetSelection(), GetSeqEntryHandle(), CSeqTableGrid::GetValuesTable(), m_Grid, m_ObjectList, and wxT.
|
virtual |
Transfer data to the window.
Transfer data to the window
Definition at line 183 of file srcedit_panel.cpp.
References GetSeqEntryHandle(), GetSeqTableFromSeqEntry(), m_Grid, and NULL.
Referenced by RestoreDefaults().
|
private |
Definition at line 149 of file srcedit_panel.hpp.
Referenced by SetUndoManager().
CSrcEditParams CSrcEditPanel::m_data |
The data edited by this window.
Definition at line 143 of file srcedit_panel.hpp.
wxGrid* CSrcEditPanel::m_Grid |
Definition at line 144 of file srcedit_panel.hpp.
Referenced by CreateControls(), TransferDataFromWindow(), and TransferDataToWindow().
TConstScopedObjects* CSrcEditPanel::m_InputObjects |
Definition at line 141 of file srcedit_panel.hpp.
Referenced by GetSeqEntryHandle(), and SetObjects().
CObjectListWidget* CSrcEditPanel::m_ObjectList |
Definition at line 139 of file srcedit_panel.hpp.
Referenced by CreateControls(), GetSeqEntryHandle(), Init(), LoadSettings(), SaveSettings(), and TransferDataFromWindow().