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

Search Toolkit Book for CAgpExportPage

#include "agp_export_page.hpp"
(Private to src/gui/packages/pkg_sequence.)

+ Inheritance diagram for CAgpExportPage:
+ Collaboration diagram for CAgpExportPage:

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

CObjectListWidgetSelm_LocationSel
 
CAgpExportParams m_data
 The data edited by this window. More...
 

Private Attributes

string m_RegPath
 
std::unique_ptr< CSaveFileHelperm_SaveFile
 

Detailed Description

CAgpExportPage class declaration

Definition at line 66 of file agp_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_BITMAPBUTTON5 

Definition at line 131 of file agp_export_page.hpp.

Constructor & Destructor Documentation

◆ CAgpExportPage() [1/2]

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

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.

References Create(), and Init().

◆ ~CAgpExportPage()

CAgpExportPage::~CAgpExportPage ( )

Destructor.

CAgpExportPage destructor

Definition at line 125 of file agp_export_page.cpp.

Member Function Documentation

◆ Create()

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

◆ CreateControls()

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

◆ GetBitmapResource()

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

◆ GetData() [1/2]

CAgpExportParams& CAgpExportPage::GetData ( void  )
inline

Data access.

Definition at line 110 of file agp_export_page.hpp.

References m_data.

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

◆ GetData() [2/2]

const CAgpExportParams& CAgpExportPage::GetData ( void  ) const
inline

Definition at line 111 of file agp_export_page.hpp.

References m_data.

◆ GetIconResource()

wxIcon CAgpExportPage::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 241 of file agp_export_page.cpp.

◆ Init()

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

◆ LoadSettings()

void CAgpExportPage::LoadSettings ( )
virtual

Implements IRegSettings.

Definition at line 296 of file agp_export_page.cpp.

References CObjectListWidgetSel::LoadSettings(), and m_LocationSel.

Referenced by CAgpExporter::GetCurrentPanel().

◆ OnSelectFileClick()

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.

◆ SaveSettings()

void CAgpExportPage::SaveSettings ( ) const
virtual

Implements IRegSettings.

Definition at line 291 of file agp_export_page.cpp.

References m_LocationSel, and CObjectListWidgetSel::SaveSettings().

Referenced by CAgpExporter::SaveSettings().

◆ SetData()

void CAgpExportPage::SetData ( const CAgpExportParams data)
inline

Definition at line 112 of file agp_export_page.hpp.

References data, and m_data.

Referenced by CAgpExporter::GetCurrentPanel().

◆ SetObjects()

void CAgpExportPage::SetObjects ( TRelatedObjectsMap objects)

◆ SetRegistryPath()

void CAgpExportPage::SetRegistryPath ( const string path)
virtual

◆ ShowToolTips()

bool CAgpExportPage::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 223 of file agp_export_page.cpp.

Referenced by CreateControls().

◆ TransferDataFromWindow()

bool CAgpExportPage::TransferDataFromWindow ( )
virtual

◆ TransferDataToWindow()

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

Member Data Documentation

◆ m_data

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

◆ m_LocationSel

CObjectListWidgetSel* CAgpExportPage::m_LocationSel

◆ m_RegPath

string CAgpExportPage::m_RegPath
private

Definition at line 143 of file agp_export_page.hpp.

Referenced by SetRegistryPath().

◆ m_SaveFile

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

Definition at line 144 of file agp_export_page.hpp.

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


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:34 2024 by modify_doxy.py rev. 669887