NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
CPhyExportPage Class Reference

Search Toolkit Book for CPhyExportPage

#include "phy_export_page.hpp"
(Private to src/gui/packages/pkg_alignment.)

+ Inheritance diagram for CPhyExportPage:
+ Collaboration diagram for CPhyExportPage:

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...
 
CPhyExportParamsGetData ()
 Data access. More...
 
const CPhyExportParamsGetData () 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

CObjectListWidgetm_LocationSel
 
CPhyExportParams m_data
 The data edited by this window. More...
 

Private Attributes

string m_RegPath
 
std::unique_ptr< CSaveFileHelperm_SaveFile
 

Detailed Description

CPhyExportPage class declaration

Definition at line 66 of file phy_export_page.hpp.

Member Enumeration Documentation

◆ anonymous enum

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.

Constructor & Destructor Documentation

◆ CPhyExportPage() [1/2]

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() [2/2]

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::~CPhyExportPage ( )

Destructor.

CPhyExportPage destructor

Definition at line 126 of file phy_export_page.cpp.

Member Function Documentation

◆ Create()

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().

◆ CreateControls()

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().

◆ GetBitmapResource()

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().

◆ GetData() [1/2]

CPhyExportParams& CPhyExportPage::GetData ( void  )
inline

Data access.

Definition at line 110 of file phy_export_page.hpp.

References m_data.

Referenced by CreateControls(), CPhyExporter::DoTransition(), TransferDataFromWindow(), and TransferDataToWindow().

◆ GetData() [2/2]

const CPhyExportParams& CPhyExportPage::GetData ( void  ) const
inline

Definition at line 111 of file phy_export_page.hpp.

References m_data.

◆ GetIconResource()

wxIcon CPhyExportPage::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 224 of file phy_export_page.cpp.

◆ Init()

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().

◆ LoadSettings()

void CPhyExportPage::LoadSettings ( )
virtual

Implements IRegSettings.

Definition at line 275 of file phy_export_page.cpp.

Referenced by CPhyExporter::GetCurrentPanel().

◆ OnButton2Click()

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.

◆ SaveSettings()

void CPhyExportPage::SaveSettings ( ) const
virtual

Implements IRegSettings.

Definition at line 270 of file phy_export_page.cpp.

◆ SetData()

void CPhyExportPage::SetData ( const CPhyExportParams data)
inline

Definition at line 112 of file phy_export_page.hpp.

References data, and m_data.

Referenced by CPhyExporter::GetCurrentPanel().

◆ SetObjects()

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().

◆ SetRegistryPath()

void CPhyExportPage::SetRegistryPath ( const string path)
virtual

IRegSettings.

Implements IRegSettings.

Definition at line 264 of file phy_export_page.cpp.

References m_RegPath.

Referenced by CPhyExporter::GetCurrentPanel().

◆ ShowToolTips()

bool CPhyExportPage::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 206 of file phy_export_page.cpp.

Referenced by CreateControls().

◆ TransferDataFromWindow()

bool CPhyExportPage::TransferDataFromWindow ( )
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().

◆ TransferDataToWindow()

bool CPhyExportPage::TransferDataToWindow ( )
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().

Member Data Documentation

◆ m_data

CPhyExportParams CPhyExportPage::m_data

The data edited by this window.

Definition at line 129 of file phy_export_page.hpp.

Referenced by GetData(), and SetData().

◆ m_LocationSel

CObjectListWidget* CPhyExportPage::m_LocationSel

Definition at line 127 of file phy_export_page.hpp.

Referenced by CreateControls(), Init(), and SetObjects().

◆ m_RegPath

string CPhyExportPage::m_RegPath
private

Definition at line 143 of file phy_export_page.hpp.

Referenced by SetRegistryPath().

◆ m_SaveFile

std::unique_ptr<CSaveFileHelper> CPhyExportPage::m_SaveFile
private

Definition at line 145 of file phy_export_page.hpp.

Referenced by CreateControls(), OnButton2Click(), and TransferDataFromWindow().


The documentation for this class was generated from the following files:
Modified on Thu Jun 27 18:22:50 2024 by modify_doxy.py rev. 669887