NCBI C++ ToolKit
|
Search Toolkit Book for CAsnExportPage
#include "asn_export_page.hpp"
(Private to src/gui/core
.)
Public Types | |
enum | { ID_CASNEXPORTPAGE = 10036 , ID_PANEL2 = 10037 , ID_RADIOBOX3 = 10039 , ID_TEXTCTRL6 = 10054 , ID_BITMAPBUTTON = 10055 } |
Public Member Functions | |
CAsnExportPage () | |
CAsnExportPage (wxWindow *parent, wxWindowID id=ID_CASNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CASNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL) |
~CAsnExportPage () | |
void | Init () |
virtual void | SetRegistryPath (const string &path) |
IRegSettings. More... | |
virtual void | SaveSettings () const |
virtual void | LoadSettings () |
void | CreateControls () |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | OnSelectFileClick (wxCommandEvent &event) |
CAsnExportParams & | GetData () |
const CAsnExportParams & | GetData () const |
void | SetData (const CAsnExportParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
CObjectListWidget * | m_ObjectSel |
wxTextCtrl * | m_FileNameCtrl |
CAsnExportParams | m_data |
Private Attributes | |
string | m_RegPath |
std::unique_ptr< CSaveFileHelper > | m_SaveFile |
CAsnExportPage class declaration
Definition at line 72 of file asn_export_page.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CASNEXPORTPAGE | |
ID_PANEL2 | |
ID_RADIOBOX3 | |
ID_TEXTCTRL6 | |
ID_BITMAPBUTTON |
Definition at line 122 of file asn_export_page.hpp.
CAsnExportPage::CAsnExportPage | ( | ) |
Definition at line 68 of file asn_export_page.cpp.
References Init().
CAsnExportPage::CAsnExportPage | ( | wxWindow * | parent, |
wxWindowID | id = ID_CASNEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 73 of file asn_export_page.cpp.
CAsnExportPage::~CAsnExportPage | ( | ) |
Definition at line 94 of file asn_export_page.cpp.
bool CAsnExportPage::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CASNEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 79 of file asn_export_page.cpp.
References CreateControls().
Referenced by CAsnExportPage().
void CAsnExportPage::CreateControls | ( | ) |
Definition at line 108 of file asn_export_page.cpp.
References _, GetBitmapResource(), GetData(), ID_BITMAPBUTTON, ID_PANEL2, ID_RADIOBOX3, ID_TEXTCTRL6, m_FileNameCtrl, m_ObjectSel, m_SaveFile, ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CAsnExportPage::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 156 of file asn_export_page.cpp.
Referenced by CreateControls().
|
inline |
Definition at line 107 of file asn_export_page.hpp.
References m_data.
Referenced by CreateControls(), CAsnExporter::DoTransition(), and TransferDataFromWindow().
|
inline |
Definition at line 108 of file asn_export_page.hpp.
References m_data.
wxIcon CAsnExportPage::GetIconResource | ( | const wxString & | name | ) |
Definition at line 160 of file asn_export_page.cpp.
void CAsnExportPage::Init | ( | void | ) |
Definition at line 100 of file asn_export_page.cpp.
References m_FileNameCtrl, m_ObjectSel, and NULL.
Referenced by CAsnExportPage().
|
virtual |
Implements IRegSettings.
Definition at line 218 of file asn_export_page.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), kObjectList, CwxTableListCtrl::LoadTableSettings(), m_ObjectSel, m_RegPath, and CGuiRegistryUtil::MakeKey().
Referenced by CAsnExporter::GetCurrentPanel().
void CAsnExportPage::OnSelectFileClick | ( | wxCommandEvent & | event | ) |
Definition at line 231 of file asn_export_page.cpp.
References _ASSERT, CFileExtensions::kASN, and m_SaveFile.
|
virtual |
Implements IRegSettings.
Definition at line 208 of file asn_export_page.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kObjectList, m_ObjectSel, m_RegPath, CGuiRegistryUtil::MakeKey(), and CwxTableListCtrl::SaveTableSettings().
Referenced by CAsnExporter::SaveSettings().
|
inline |
Definition at line 109 of file asn_export_page.hpp.
Referenced by CAsnExporter::GetCurrentPanel().
Implements IRegSettings.
Definition at line 203 of file asn_export_page.cpp.
References m_RegPath.
Referenced by CAsnExporter::GetCurrentPanel().
|
static |
Definition at line 152 of file asn_export_page.cpp.
Referenced by CreateControls().
|
virtual |
Definition at line 179 of file asn_export_page.cpp.
References _ASSERT, GetData(), CAsnExportParams::GetFileName(), CObjectListWidget::GetSelection(), ID_PANEL2, CAsnExportParams::m_Objects, m_ObjectSel, m_SaveFile, and wxT.
Referenced by CAsnExporter::DoTransition().
|
virtual |
Definition at line 169 of file asn_export_page.cpp.
References m_data, CAsnExportParams::m_Objects, m_ObjectSel, CwxTableListCtrl::SelectAll(), and CObjectListWidget::SetObjects().
Referenced by CAsnExporter::GetCurrentPanel().
CAsnExportParams CAsnExportPage::m_data |
Definition at line 121 of file asn_export_page.hpp.
Referenced by GetData(), SetData(), and TransferDataToWindow().
wxTextCtrl* CAsnExportPage::m_FileNameCtrl |
Definition at line 120 of file asn_export_page.hpp.
Referenced by CreateControls(), and Init().
CObjectListWidget* CAsnExportPage::m_ObjectSel |
Definition at line 119 of file asn_export_page.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 132 of file asn_export_page.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().
|
private |
Definition at line 133 of file asn_export_page.hpp.
Referenced by CreateControls(), OnSelectFileClick(), and TransferDataFromWindow().