NCBI C++ ToolKit
|
Search Toolkit Book for CPhyExportPage
#include "phy_export_page.hpp"
(Private to src/gui/packages/pkg_alignment
.)
Public Types | |
enum | { ID_CAGPPEXPORTPAGE = 10025 , ID_PANEL2 = 10027 , ID_CHOICE2 = 10029 , ID_TEXTCTRL4 = 10030 , ID_CHECKBOX15 = 10028 , ID_TEXTCTRL5 = 10031 , ID_BITMAPBUTTON1 = 10032 } |
Control identifiers. More... | |
Public Member Functions | |
CPhyExportPage () | |
Constructors. More... | |
CPhyExportPage (wxWindow *parent, wxWindowID id=ID_CAGPPEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CAGPPEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CPhyExportPage () | |
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 | OnButton2Click (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2 More... | |
CPhyExportParams & | GetData () |
Data access. More... | |
const CPhyExportParams & | GetData () const |
void | SetData (const CPhyExportParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetObjects (TConstScopedObjects *objects) |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
CObjectListWidget * | m_LocationSel |
CPhyExportParams | m_data |
The data edited by this window. More... | |
Private Attributes | |
string | m_RegPath |
std::unique_ptr< CSaveFileHelper > | m_SaveFile |
CPhyExportPage class declaration
Definition at line 66 of file phy_export_page.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CAGPPEXPORTPAGE | |
ID_PANEL2 | |
ID_CHOICE2 | |
ID_TEXTCTRL4 | |
ID_CHECKBOX15 | |
ID_TEXTCTRL5 | |
ID_BITMAPBUTTON1 |
Definition at line 131 of file phy_export_page.hpp.
CPhyExportPage::CPhyExportPage | ( | ) |
Constructors.
CPhyExportPage type definition
CPhyExportPage event table definition
CPhyExportPage constructors
Definition at line 89 of file phy_export_page.cpp.
References Init().
CPhyExportPage::CPhyExportPage | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAGPPEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 94 of file phy_export_page.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CPhyExportPage::~CPhyExportPage | ( | ) |
bool CPhyExportPage::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CAGPPEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CAgpPExportPage creator
Definition at line 105 of file phy_export_page.cpp.
References CreateControls().
Referenced by CPhyExportPage().
void CPhyExportPage::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CAgpPExportPage
Definition at line 149 of file phy_export_page.cpp.
References _, GetBitmapResource(), GetData(), ID_BITMAPBUTTON1, ID_CHOICE2, ID_PANEL2, ID_TEXTCTRL5, m_LocationSel, m_SaveFile, ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CPhyExportPage::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 215 of file phy_export_page.cpp.
Referenced by CreateControls().
|
inline |
Data access.
Definition at line 110 of file phy_export_page.hpp.
References m_data.
Referenced by CreateControls(), CPhyExporter::DoTransition(), TransferDataFromWindow(), and TransferDataToWindow().
|
inline |
Definition at line 111 of file phy_export_page.hpp.
References m_data.
wxIcon CPhyExportPage::GetIconResource | ( | const wxString & | name | ) |
void CPhyExportPage::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 137 of file phy_export_page.cpp.
References m_LocationSel, and NULL.
Referenced by CPhyExportPage().
|
virtual |
Implements IRegSettings.
Definition at line 275 of file phy_export_page.cpp.
Referenced by CPhyExporter::GetCurrentPanel().
void CPhyExportPage::OnButton2Click | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2
Definition at line 280 of file phy_export_page.cpp.
References _, _ASSERT, file_type, ID_CHOICE2, CFileExtensions::kNewick, CFileExtensions::kNexus, m_SaveFile, and NULL.
|
virtual |
Implements IRegSettings.
Definition at line 270 of file phy_export_page.cpp.
|
inline |
Definition at line 112 of file phy_export_page.hpp.
Referenced by CPhyExporter::GetCurrentPanel().
void CPhyExportPage::SetObjects | ( | TConstScopedObjects * | objects | ) |
Definition at line 197 of file phy_export_page.cpp.
References m_LocationSel, and CObjectListWidget::SetObjects().
Referenced by CPhyExporter::GetCurrentPanel().
Implements IRegSettings.
Definition at line 264 of file phy_export_page.cpp.
References m_RegPath.
Referenced by CPhyExporter::GetCurrentPanel().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 206 of file phy_export_page.cpp.
Referenced by CreateControls().
|
virtual |
Transfer data from the window.
Transfer data from the window
Definition at line 249 of file phy_export_page.cpp.
References _ASSERT, GetData(), CPhyExportParams::GetFileName(), ID_CHOICE2, m_SaveFile, and CPhyExportParams::SetFileFormat().
Referenced by CPhyExporter::DoTransition().
|
virtual |
Transfer data to the window.
Transfer data to the window
Definition at line 237 of file phy_export_page.cpp.
References GetData(), CPhyExportParams::GetFileFormat(), and ID_CHOICE2.
Referenced by CPhyExporter::GetCurrentPanel().
CPhyExportParams CPhyExportPage::m_data |
The data edited by this window.
Definition at line 129 of file phy_export_page.hpp.
CObjectListWidget* CPhyExportPage::m_LocationSel |
Definition at line 127 of file phy_export_page.hpp.
Referenced by CreateControls(), Init(), and SetObjects().
|
private |
Definition at line 143 of file phy_export_page.hpp.
Referenced by SetRegistryPath().
|
private |
Definition at line 145 of file phy_export_page.hpp.
Referenced by CreateControls(), OnButton2Click(), and TransferDataFromWindow().