NCBI C++ ToolKit
|
Search Toolkit Book for CClustalwToolPanel
#include "clustalw_tool_panel.hpp"
(Private to src/gui/packages/pkg_alignment
.)
Public Types | |
enum | { ID_CCLUSTALWPANEL = 10050 , ID_PANEL = 10051 , ID_CHECKBOX12 = 10053 , ID_TEXTCTRL11 = 10052 , ID_TEXTCTRL12 = 10055 , ID_BITMAPBUTTON1 = 10056 } |
Public Member Functions | |
CClustalwToolPanel () | |
CClustalwToolPanel (wxWindow *parent, wxWindowID id=ID_CCLUSTALWPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool visible=true) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CCLUSTALWPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool visible=true) |
~CClustalwToolPanel () | |
void | Init () |
void | CreateControls () |
virtual bool | TransferDataFromWindow () |
void | OnClustalWPathClick (wxCommandEvent &event) |
CClustalwToolParams & | GetData () |
const CClustalwToolParams & | GetData () const |
void | SetData (const CClustalwToolParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | SetObjects (map< string, TConstScopedObjects > *objects) |
CAlgoToolManagerParamsPanel implementation | |
void | RestoreDefaults () |
override in derived classes More... | |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string &path) |
CAlgoToolManagerParamsPanel. More... | |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
override in derived classes More... | |
IRegSettings interface implementation | |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
CObjectListWidgetSel * | m_LocationSel |
CClustalwToolParams | m_data |
Additional Inherited Members | |
Protected Attributes inherited from CAlgoToolManagerParamsPanel | |
string | m_RegPath |
registry path to the settings More... | |
CClustalwToolPanel class declaration
Definition at line 73 of file clustalw_tool_panel.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CCLUSTALWPANEL | |
ID_PANEL | |
ID_CHECKBOX12 | |
ID_TEXTCTRL11 | |
ID_TEXTCTRL12 | |
ID_BITMAPBUTTON1 |
Definition at line 126 of file clustalw_tool_panel.hpp.
CClustalwToolPanel::CClustalwToolPanel | ( | ) |
Definition at line 68 of file clustalw_tool_panel.cpp.
References Init().
CClustalwToolPanel::CClustalwToolPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CCLUSTALWPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL , |
||
bool | visible = true |
||
) |
Definition at line 73 of file clustalw_tool_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CClustalwToolPanel::~CClustalwToolPanel | ( | ) |
Definition at line 98 of file clustalw_tool_panel.cpp.
bool CClustalwToolPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CCLUSTALWPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL , |
||
bool | visible = true |
||
) |
Definition at line 79 of file clustalw_tool_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CClustalwToolPanel(), and CClustalwTool::GetMaxPanel().
void CClustalwToolPanel::CreateControls | ( | ) |
Definition at line 111 of file clustalw_tool_panel.cpp.
References _, CObjectListWidgetSel::EnableGroups(), GetBitmapResource(), GetData(), ID_BITMAPBUTTON1, ID_CHECKBOX12, ID_PANEL, ID_TEXTCTRL11, ID_TEXTCTRL12, m_LocationSel, CObjectListWidgetSel::SetDefaultSelection(), CObjectListWidgetSel::SetDoSelectAll(), CObjectListWidgetSel::SetTitle(), CObjectListWidgetSel::ShowNuclProtButtons(), ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CClustalwToolPanel::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 174 of file clustalw_tool_panel.cpp.
Referenced by CreateControls().
|
inline |
Definition at line 110 of file clustalw_tool_panel.hpp.
References m_data.
Referenced by CreateControls(), RestoreDefaults(), TransferDataFromWindow(), and CClustalwTool::x_CreateLoadingJob().
|
inline |
Definition at line 111 of file clustalw_tool_panel.hpp.
References m_data.
wxIcon CClustalwToolPanel::GetIconResource | ( | const wxString & | name | ) |
Definition at line 178 of file clustalw_tool_panel.cpp.
void CClustalwToolPanel::Init | ( | void | ) |
Definition at line 104 of file clustalw_tool_panel.cpp.
References m_LocationSel, and NULL.
Referenced by CClustalwToolPanel().
|
virtual |
Implements CAlgoToolManagerParamsPanel.
Definition at line 210 of file clustalw_tool_panel.cpp.
References CObjectListWidgetSel::LoadSettings(), and m_LocationSel.
Referenced by CClustalwTool::x_CreateParamsPanelIfNeeded().
void CClustalwToolPanel::OnClustalWPathClick | ( | wxCommandEvent & | event | ) |
Definition at line 215 of file clustalw_tool_panel.cpp.
References _ASSERT, ID_TEXTCTRL12, and wxT.
|
virtual |
override in derived classes
Restores the default options for the panel
Implements CAlgoToolManagerParamsPanel.
Definition at line 234 of file clustalw_tool_panel.cpp.
References GetData(), and CClustalwToolParams::Init().
|
virtual |
override in derived classes
Implements CAlgoToolManagerParamsPanel.
Definition at line 205 of file clustalw_tool_panel.cpp.
References m_LocationSel, and CObjectListWidgetSel::SaveSettings().
|
inline |
Definition at line 112 of file clustalw_tool_panel.hpp.
Referenced by CClustalwTool::x_CreateParamsPanelIfNeeded().
void CClustalwToolPanel::SetObjects | ( | map< string, TConstScopedObjects > * | objects | ) |
Definition at line 165 of file clustalw_tool_panel.cpp.
References m_LocationSel, and CObjectListWidgetSel::SetObjects().
Referenced by CClustalwTool::x_CreateParamsPanelIfNeeded().
Reimplemented from CAlgoToolManagerParamsPanel.
Definition at line 199 of file clustalw_tool_panel.cpp.
References kLocationSel, m_LocationSel, CAlgoToolManagerParamsPanel::m_RegPath, and CObjectListWidgetSel::SetRegistryPath().
Referenced by CClustalwTool::x_CreateParamsPanelIfNeeded().
|
static |
Definition at line 170 of file clustalw_tool_panel.cpp.
Referenced by CreateControls().
|
virtual |
Definition at line 187 of file clustalw_tool_panel.cpp.
References GetData(), CObjectListWidgetSel::GetSelection(), m_LocationSel, and CClustalwToolParams::SetObjects().
CClustalwToolParams CClustalwToolPanel::m_data |
Definition at line 125 of file clustalw_tool_panel.hpp.
CObjectListWidgetSel* CClustalwToolPanel::m_LocationSel |
Definition at line 124 of file clustalw_tool_panel.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), SetObjects(), SetRegistryPath(), and TransferDataFromWindow().