NCBI C++ ToolKit
|
Search Toolkit Book for CProjectSelectorDlg
#include <gui/core/project_selector_dlg.hpp>
Public Types | |
enum | { ID_CPROJECTSELECTORDLG = 10011 , ID_COBJECTLISTWIDGET = 10000 , ID_PANEL1 = 10013 } |
Public Member Functions | |
CProjectSelectorDlg () | |
CProjectSelectorDlg (wxWindow *parent, wxWindowID id=ID_CPROJECTSELECTORDLG, const wxString &caption=_("Project Selector Dialog"), 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_CPROJECTSELECTORDLG, const wxString &caption=_("Project Selector Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
~CProjectSelectorDlg () | |
void | Init () |
void | CreateControls () |
bool | TransferDataToWindow () |
bool | TransferDataFromWindow () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | SetProjectService (CProjectService *prj_srv) |
void | SetObjects (TConstScopedObjects &objects) |
void | GetParams (SProjectSelectorParams ¶ms) const |
![]() | |
CDialog () | |
virtual void | InitDialog () |
virtual void | EndModal (int retCode) |
virtual void | SetRegistryPath (const string &path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
wxBoxSizer * | m_Sizer |
CObjectListWidget * | m_List |
CProjectSelectorPanel * | m_ProjectSelPanel |
Protected Member Functions | |
virtual void | x_LoadSettings (const CRegistryReadView &view) |
override these functions in derived classes More... | |
virtual void | x_SaveSettings (CRegistryWriteView view) const |
![]() | |
void | x_CorrectDisplay (wxRect &rc) |
move to the parent display More... | |
Protected Attributes | |
CProjectService * | m_ProjectService |
TConstScopedObjects * | m_Objects |
SProjectSelectorParams | m_Params |
![]() | |
string | m_RegPath |
Definition at line 66 of file project_selector_dlg.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CPROJECTSELECTORDLG | |
ID_COBJECTLISTWIDGET | |
ID_PANEL1 |
Definition at line 104 of file project_selector_dlg.hpp.
CProjectSelectorDlg::CProjectSelectorDlg | ( | ) |
Definition at line 64 of file project_selector_dlg.cpp.
References Init().
CProjectSelectorDlg::CProjectSelectorDlg | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPROJECTSELECTORDLG , |
||
const wxString & | caption = _("Project Selector Dialog") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 70 of file project_selector_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CProjectSelectorDlg::~CProjectSelectorDlg | ( | ) |
Definition at line 95 of file project_selector_dlg.cpp.
bool CProjectSelectorDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPROJECTSELECTORDLG , |
||
const wxString & | caption = _("Project Selector Dialog") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 78 of file project_selector_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CProjectSelectorDlg().
void CProjectSelectorDlg::CreateControls | ( | ) |
Definition at line 112 of file project_selector_dlg.cpp.
References _, ID_COBJECTLISTWIDGET, ID_PANEL1, SProjectSelectorParams::m_EnableDecideLater, m_List, m_Params, m_ProjectSelPanel, m_Sizer, CProjectSelectorPanel::SetSimpleMode(), and wxID_ANY.
Referenced by Create().
wxBitmap CProjectSelectorDlg::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 186 of file project_selector_dlg.cpp.
wxIcon CProjectSelectorDlg::GetIconResource | ( | const wxString & | name | ) |
Definition at line 196 of file project_selector_dlg.cpp.
void CProjectSelectorDlg::GetParams | ( | SProjectSelectorParams & | params | ) | const |
Definition at line 173 of file project_selector_dlg.cpp.
References CProjectSelectorPanel::GetParams(), and m_ProjectSelPanel.
Referenced by CSelectProjectOptions::x_ShowSelectProjectDialog().
void CProjectSelectorDlg::Init | ( | void | ) |
Definition at line 102 of file project_selector_dlg.cpp.
References m_List, m_ProjectSelPanel, m_Sizer, and NULL.
Referenced by CProjectSelectorDlg().
void CProjectSelectorDlg::SetObjects | ( | TConstScopedObjects & | objects | ) |
Definition at line 160 of file project_selector_dlg.cpp.
References SProjectSelectorParams::m_EnableCreateSeparate, m_List, m_Objects, m_Params, and CObjectListWidget::SetObjects().
Referenced by CSelectProjectOptions::x_ShowSelectProjectDialog().
void CProjectSelectorDlg::SetProjectService | ( | CProjectService * | prj_srv | ) |
Definition at line 153 of file project_selector_dlg.cpp.
References m_ProjectSelPanel, m_ProjectService, and CProjectSelectorPanel::SetProjectService().
Referenced by CSelectProjectOptions::x_ShowSelectProjectDialog().
|
static |
Definition at line 180 of file project_selector_dlg.cpp.
bool CProjectSelectorDlg::TransferDataFromWindow | ( | ) |
Definition at line 221 of file project_selector_dlg.cpp.
References m_ProjectSelPanel, and CProjectSelectorPanel::TransferDataFromWindow().
bool CProjectSelectorDlg::TransferDataToWindow | ( | ) |
Definition at line 206 of file project_selector_dlg.cpp.
References m_Objects, m_Params, m_ProjectSelPanel, m_ProjectService, SProjectSelectorParams::SelectProjectByObjects(), CProjectSelectorPanel::SetParams(), and CProjectSelectorPanel::TransferDataToWindow().
|
protectedvirtual |
override these functions in derived classes
Reimplemented from CDialog.
Definition at line 239 of file project_selector_dlg.cpp.
References CRegistryReadView::GetReadView(), kTableTag, CwxTableListCtrl::LoadTableSettings(), and m_List.
|
protectedvirtual |
Reimplemented from CDialog.
Definition at line 232 of file project_selector_dlg.cpp.
References CRegistryWriteView::GetWriteView(), kTableTag, m_List, and CwxTableListCtrl::SaveTableSettings().
CObjectListWidget* CProjectSelectorDlg::m_List |
Definition at line 102 of file project_selector_dlg.hpp.
Referenced by CreateControls(), Init(), SetObjects(), x_LoadSettings(), and x_SaveSettings().
|
protected |
Definition at line 124 of file project_selector_dlg.hpp.
Referenced by SetObjects(), and TransferDataToWindow().
|
protected |
Definition at line 125 of file project_selector_dlg.hpp.
Referenced by CreateControls(), SetObjects(), and TransferDataToWindow().
CProjectSelectorPanel* CProjectSelectorDlg::m_ProjectSelPanel |
Definition at line 103 of file project_selector_dlg.hpp.
Referenced by CreateControls(), GetParams(), Init(), SetProjectService(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 123 of file project_selector_dlg.hpp.
Referenced by SetProjectService(), and TransferDataToWindow().
wxBoxSizer* CProjectSelectorDlg::m_Sizer |
Definition at line 101 of file project_selector_dlg.hpp.
Referenced by CreateControls(), and Init().