NCBI C++ ToolKit
|
Search Toolkit Book for CAgpExportPage
#include "agp_export_page.hpp"
(Private to src/gui/packages/pkg_sequence
.)
Public Types | |
enum | { ID_CAGPPEXPORTPAGE = 10025 , ID_PANEL2 = 10027 , ID_CHOICE2 = 10029 , ID_TEXTCTRL4 = 10030 , ID_CHECKBOX15 = 10028 , ID_TEXTCTRL5 = 10031 , ID_BITMAPBUTTON5 = 10022 } |
Control identifiers. More... | |
Public Member Functions | |
CAgpExportPage () | |
Constructors. More... | |
CAgpExportPage (wxWindow *parent, wxWindowID id=ID_CAGPPEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CAGPPEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CAgpExportPage () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
virtual void | SetRegistryPath (const string &path) |
IRegSettings. More... | |
virtual void | SaveSettings () const |
virtual void | LoadSettings () |
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 | OnSelectFileClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON5 More... | |
CAgpExportParams & | GetData () |
Data access. More... | |
const CAgpExportParams & | GetData () const |
void | SetData (const CAgpExportParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetObjects (TRelatedObjectsMap *objects) |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
CObjectListWidgetSel * | m_LocationSel |
CAgpExportParams | m_data |
The data edited by this window. More... | |
Private Attributes | |
string | m_RegPath |
std::unique_ptr< CSaveFileHelper > | m_SaveFile |
CAgpExportPage class declaration
Definition at line 66 of file agp_export_page.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CAGPPEXPORTPAGE | |
ID_PANEL2 | |
ID_CHOICE2 | |
ID_TEXTCTRL4 | |
ID_CHECKBOX15 | |
ID_TEXTCTRL5 | |
ID_BITMAPBUTTON5 |
Definition at line 131 of file agp_export_page.hpp.
CAgpExportPage::CAgpExportPage | ( | ) |
Constructors.
CAgpExportPage type definition
CAgpExportPage event table definition
CAgpExportPage constructors
Definition at line 88 of file agp_export_page.cpp.
References Init().
CAgpExportPage::CAgpExportPage | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAGPPEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 93 of file agp_export_page.cpp.
CAgpExportPage::~CAgpExportPage | ( | ) |
bool CAgpExportPage::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAGPPEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CAgpPExportPage creator
Definition at line 104 of file agp_export_page.cpp.
References CreateControls().
Referenced by CAgpExportPage().
void CAgpExportPage::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CAgpPExportPage
Definition at line 148 of file agp_export_page.cpp.
References _, GetBitmapResource(), GetData(), ID_BITMAPBUTTON5, ID_CHECKBOX15, ID_CHOICE2, ID_PANEL2, ID_TEXTCTRL4, ID_TEXTCTRL5, m_LocationSel, m_SaveFile, CObjectListWidgetSel::SetTitle(), ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CAgpExportPage::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 232 of file agp_export_page.cpp.
Referenced by CreateControls().
|
inline |
Data access.
Definition at line 110 of file agp_export_page.hpp.
References m_data.
Referenced by CreateControls(), CAgpExporter::DoTransition(), TransferDataFromWindow(), and TransferDataToWindow().
|
inline |
Definition at line 111 of file agp_export_page.hpp.
References m_data.
wxIcon CAgpExportPage::GetIconResource | ( | const wxString & | name | ) |
void CAgpExportPage::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 136 of file agp_export_page.cpp.
References m_LocationSel, and NULL.
Referenced by CAgpExportPage().
|
virtual |
Implements IRegSettings.
Definition at line 296 of file agp_export_page.cpp.
References CObjectListWidgetSel::LoadSettings(), and m_LocationSel.
Referenced by CAgpExporter::GetCurrentPanel().
void CAgpExportPage::OnSelectFileClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON5
Definition at line 301 of file agp_export_page.cpp.
References _ASSERT, CFileExtensions::kAGP, and m_SaveFile.
|
virtual |
Implements IRegSettings.
Definition at line 291 of file agp_export_page.cpp.
References m_LocationSel, and CObjectListWidgetSel::SaveSettings().
Referenced by CAgpExporter::SaveSettings().
|
inline |
Definition at line 112 of file agp_export_page.hpp.
Referenced by CAgpExporter::GetCurrentPanel().
void CAgpExportPage::SetObjects | ( | TRelatedObjectsMap * | objects | ) |
Definition at line 212 of file agp_export_page.cpp.
References _ASSERT, m_LocationSel, and CObjectListWidgetSel::SetObjects().
Referenced by CAgpExporter::GetCurrentPanel().
Implements IRegSettings.
Definition at line 285 of file agp_export_page.cpp.
References kLocationList, m_LocationSel, m_RegPath, and CObjectListWidgetSel::SetRegistryPath().
Referenced by CAgpExporter::GetCurrentPanel().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 223 of file agp_export_page.cpp.
Referenced by CreateControls().
|
virtual |
Transfer data from the window.
Transfer data from the window
Definition at line 266 of file agp_export_page.cpp.
References _ASSERT, GetData(), CAgpExportParams::GetFileName(), CObjectListWidgetSel::GetSelection(), ID_CHOICE2, m_data, CAgpExportParams::m_GapType, m_LocationSel, m_SaveFile, CAgpExportParams::m_SeqLoc, and ToStdString().
Referenced by CAgpExporter::DoTransition().
|
virtual |
Transfer data to the window.
Transfer data to the window
Definition at line 254 of file agp_export_page.cpp.
References GetData(), ID_CHOICE2, and ToWxString().
Referenced by CAgpExporter::GetCurrentPanel().
CAgpExportParams CAgpExportPage::m_data |
The data edited by this window.
Definition at line 129 of file agp_export_page.hpp.
Referenced by GetData(), SetData(), and TransferDataFromWindow().
CObjectListWidgetSel* CAgpExportPage::m_LocationSel |
Definition at line 127 of file agp_export_page.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), SaveSettings(), SetObjects(), SetRegistryPath(), and TransferDataFromWindow().
|
private |
Definition at line 143 of file agp_export_page.hpp.
Referenced by SetRegistryPath().
|
private |
Definition at line 144 of file agp_export_page.hpp.
Referenced by CreateControls(), OnSelectFileClick(), and TransferDataFromWindow().