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

Search Toolkit Book for CFlatFileExportPage

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

+ Inheritance diagram for CFlatFileExportPage:
+ Collaboration diagram for CFlatFileExportPage:

Public Types

enum  {
  ID_CFLATFILEEXPORTPAGE = 10046 , ID_PANEL3 = 10047 , ID_CHOICE3 = 10048 , ID_TEXTCTRL7 = 10049 ,
  ID_BITMAPBUTTON4 = 10020
}
 Control identifiers. More...
 

Public Member Functions

 CFlatFileExportPage ()
 Constructors. More...
 
 CFlatFileExportPage (wxWindow *parent, wxWindowID id=ID_CFLATFILEEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CFLATFILEEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CFlatFileExportPage ()
 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 TransferDataFromWindow ()
 Transfer data from the window. More...
 
void OnSelectFileClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON4 More...
 
CFlatFileExportParamsGetData ()
 Data access. More...
 
const CFlatFileExportParamsGetData () const
 
void SetData (const CFlatFileExportParams &data)
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetObjects (map< string, TConstScopedObjects > *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
 
CFlatFileExportParams m_data
 The data edited by this window. More...
 

Private Attributes

string m_RegPath
 
std::unique_ptr< CSaveFileHelperm_SaveFile
 

Detailed Description

CFlatFileExportPage class declaration

Definition at line 69 of file flatfile_export_page.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CFLATFILEEXPORTPAGE 
ID_PANEL3 
ID_CHOICE3 
ID_TEXTCTRL7 
ID_BITMAPBUTTON4 

Definition at line 131 of file flatfile_export_page.hpp.

Constructor & Destructor Documentation

◆ CFlatFileExportPage() [1/2]

CFlatFileExportPage::CFlatFileExportPage ( )

Constructors.

CFlatFileExportPage type definition

CFlatFileExportPage event table definition

CFlatFileExportPage constructors

Definition at line 82 of file flatfile_export_page.cpp.

References Init().

◆ CFlatFileExportPage() [2/2]

CFlatFileExportPage::CFlatFileExportPage ( wxWindow *  parent,
wxWindowID  id = ID_CFLATFILEEXPORTPAGE,
const wxPoint &  pos = wxDefaultPosition,
long  style = wxTAB_TRAVERSAL 
)

Definition at line 87 of file flatfile_export_page.cpp.

References Create(), and Init().

◆ ~CFlatFileExportPage()

CFlatFileExportPage::~CFlatFileExportPage ( )

Destructor.

CFlatFileExportPage destructor

Definition at line 119 of file flatfile_export_page.cpp.

Member Function Documentation

◆ Create()

bool CFlatFileExportPage::Create ( wxWindow *  parent,
wxWindowID  id = ID_CFLATFILEEXPORTPAGE,
const wxPoint &  pos = wxDefaultPosition,
long  style = wxTAB_TRAVERSAL 
)

Creation.

CFlatFileExportPage creator

Definition at line 98 of file flatfile_export_page.cpp.

References CreateControls().

Referenced by CFlatFileExportPage().

◆ CreateControls()

void CFlatFileExportPage::CreateControls ( )

Creates the controls and sizers.

Control creation for CFlatFileExportPage

Definition at line 142 of file flatfile_export_page.cpp.

References _, GetBitmapResource(), GetData(), ID_BITMAPBUTTON4, ID_CHOICE3, ID_PANEL3, ID_TEXTCTRL7, m_LocationSel, m_SaveFile, CObjectListWidgetSel::SetTitle(), ShowToolTips(), and wxT.

Referenced by Create().

◆ GetBitmapResource()

wxBitmap CFlatFileExportPage::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 210 of file flatfile_export_page.cpp.

Referenced by CreateControls().

◆ GetData() [1/2]

CFlatFileExportParams& CFlatFileExportPage::GetData ( void  )
inline

Data access.

Definition at line 110 of file flatfile_export_page.hpp.

References m_data.

Referenced by CreateControls(), CFlatFileExporter::DoTransition(), and TransferDataFromWindow().

◆ GetData() [2/2]

const CFlatFileExportParams& CFlatFileExportPage::GetData ( void  ) const
inline

Definition at line 111 of file flatfile_export_page.hpp.

References m_data.

◆ GetIconResource()

wxIcon CFlatFileExportPage::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 219 of file flatfile_export_page.cpp.

◆ Init()

void CFlatFileExportPage::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 130 of file flatfile_export_page.cpp.

References m_LocationSel, and NULL.

Referenced by CFlatFileExportPage().

◆ LoadSettings()

void CFlatFileExportPage::LoadSettings ( )
virtual

◆ OnSelectFileClick()

void CFlatFileExportPage::OnSelectFileClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BITMAPBUTTON4

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON4

Definition at line 249 of file flatfile_export_page.cpp.

References _ASSERT, CFileExtensions::kGenBank, and m_SaveFile.

◆ SaveSettings()

void CFlatFileExportPage::SaveSettings ( ) const
virtual

◆ SetData()

void CFlatFileExportPage::SetData ( const CFlatFileExportParams data)
inline

Definition at line 112 of file flatfile_export_page.hpp.

References data, and m_data.

Referenced by CFlatFileExporter::GetCurrentPanel().

◆ SetObjects()

void CFlatFileExportPage::SetObjects ( map< string, TConstScopedObjects > *  objects)

◆ SetRegistryPath()

void CFlatFileExportPage::SetRegistryPath ( const string path)
virtual

◆ ShowToolTips()

bool CFlatFileExportPage::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 201 of file flatfile_export_page.cpp.

Referenced by CreateControls().

◆ TransferDataFromWindow()

bool CFlatFileExportPage::TransferDataFromWindow ( )
virtual

Transfer data from the window.

Transfer data from the window

Definition at line 232 of file flatfile_export_page.cpp.

References _ASSERT, GetData(), CFlatFileExportParams::GetFileName(), CObjectListWidgetSel::GetSelection(), m_data, m_LocationSel, m_SaveFile, and CFlatFileExportParams::m_SeqLoc.

Referenced by CFlatFileExporter::DoTransition().

Member Data Documentation

◆ m_data

CFlatFileExportParams CFlatFileExportPage::m_data

The data edited by this window.

Definition at line 129 of file flatfile_export_page.hpp.

Referenced by GetData(), SetData(), and TransferDataFromWindow().

◆ m_LocationSel

CObjectListWidgetSel* CFlatFileExportPage::m_LocationSel

◆ m_RegPath

string CFlatFileExportPage::m_RegPath
private

Definition at line 141 of file flatfile_export_page.hpp.

Referenced by SetRegistryPath().

◆ m_SaveFile

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

The documentation for this class was generated from the following files:
Modified on Mon May 20 04:59:03 2024 by modify_doxy.py rev. 669887