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

Search Toolkit Book for CExportTableDlg

#include <gui/packages/pkg_sequence_edit/export_table.hpp>

+ Inheritance diagram for CExportTableDlg:
+ Collaboration diagram for CExportTableDlg:

Public Member Functions

 CExportTableDlg ()
 Constructors. More...
 
 CExportTableDlg (wxWindow *parent, objects::CSeq_entry_Handle seh, wxWindowID id=ID_EXPORT_TABLE_DLG, const wxString &caption=_("Export Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_EXPORT_TABLE_DLG, const wxString &caption=_("Export Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CExportTableDlg ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SaveTable (const wxString &workDir=wxEmptyString)
 
void SaveTableFile (wxWindow *parent, wxString &save_file_dir, wxString &save_file_name, const list< map< string, string > > &table, const set< string > &columns)
 
- Public Member Functions inherited from CReportEditingDialog
virtual bool Show (bool show=1)
 Report opening events in dialogs used in the editing package. More...
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 
static void RemoveEmptyColsAndRows (CRef< CSeq_table > values_table)
 

Private Types

enum  {
  ID_EXPORT_TABLE_DLG = 12100 , ID_EXPTABLE_CHKBOX1 , ID_EXPTABLE_LISTBOX , ID_EXPTABLE_RADBTN1 ,
  ID_EXPTABLE_RADBTN2 , ID_EXPTABLE_RADBTN3 , ID_EXPTABLE_RADBTN4 , ID_EXPTABLE_RADBTN5 ,
  ID_EXPTABLE_RADBTN6 , ID_EXPTABLE_RADBTN7 , ID_EXPTABLE_CHKBOX2
}
 

Private Member Functions

void AddBioSource (const CBioSource &biosource)
 
void GetDesc (const CSeq_entry &se)
 
void FindBioSource (objects::CSeq_entry_Handle tse)
 
void AddDeflinesToTable (list< map< string, string > > &table, set< string > &columns)
 
void AddCdsGeneMrnaTable (list< map< string, string > > &table, set< string > &columns)
 
void AddFeaturesToTable (list< map< string, string > > &table, set< string > &columns)
 
void AddPubsToTable (list< map< string, string > > &table, set< string > &columns)
 
void AddDblinkToTable (list< map< string, string > > &table, set< string > &columns)
 
void AddRnaToTable (list< map< string, string > > &table, set< string > &columns)
 
void AddSourceToTable (list< map< string, string > > &table, set< string > &columns)
 
void RunExcel (wxString FileName)
 

Private Attributes

objects::CSeq_entry_Handle m_TopSeqEntry
 
wxCheckBox * m_SourceCheck
 
wxCheckBox * m_ExcelCheck
 
wxRadioButton * m_NoneRB
 
wxRadioButton * m_FeatureRB
 
wxRadioButton * m_CdsGeneProtRB
 
wxRadioButton * m_RnaRB
 
wxRadioButton * m_PubRB
 
wxRadioButton * m_DbLinkRB
 
wxRadioButton * m_DeflineRB
 
wxListBox * m_SourceChoice
 
set< stringm_source_choices
 
wxString m_SaveFileDir
 
wxString m_SaveFileName
 

Detailed Description

Definition at line 74 of file export_table.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ID_EXPORT_TABLE_DLG 
ID_EXPTABLE_CHKBOX1 
ID_EXPTABLE_LISTBOX 
ID_EXPTABLE_RADBTN1 
ID_EXPTABLE_RADBTN2 
ID_EXPTABLE_RADBTN3 
ID_EXPTABLE_RADBTN4 
ID_EXPTABLE_RADBTN5 
ID_EXPTABLE_RADBTN6 
ID_EXPTABLE_RADBTN7 
ID_EXPTABLE_CHKBOX2 

Definition at line 130 of file export_table.hpp.

Constructor & Destructor Documentation

◆ CExportTableDlg() [1/2]

CExportTableDlg::CExportTableDlg ( )

Constructors.

Definition at line 79 of file export_table.cpp.

References Init().

◆ CExportTableDlg() [2/2]

CExportTableDlg::CExportTableDlg ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
wxWindowID  id = ID_EXPORT_TABLE_DLG,
const wxString &  caption = _("Export Table"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CExportTableDlg()

CExportTableDlg::~CExportTableDlg ( )

Destructor.

Definition at line 110 of file export_table.cpp.

Member Function Documentation

◆ AddBioSource()

void CExportTableDlg::AddBioSource ( const CBioSource biosource)
private

◆ AddCdsGeneMrnaTable()

void CExportTableDlg::AddCdsGeneMrnaTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddDblinkToTable()

void CExportTableDlg::AddDblinkToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddDeflinesToTable()

void CExportTableDlg::AddDeflinesToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddFeaturesToTable()

void CExportTableDlg::AddFeaturesToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddPubsToTable()

void CExportTableDlg::AddPubsToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddRnaToTable()

void CExportTableDlg::AddRnaToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ AddSourceToTable()

void CExportTableDlg::AddSourceToTable ( list< map< string, string > > &  table,
set< string > &  columns 
)
private

◆ Create()

bool CExportTableDlg::Create ( wxWindow *  parent,
wxWindowID  id = ID_EXPORT_TABLE_DLG,
const wxString &  caption = _("Export Table"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

Definition at line 94 of file export_table.cpp.

References CreateControls(), and ncbi::grid::netcache::search::fields::size.

Referenced by CExportTableDlg().

◆ CreateControls()

void CExportTableDlg::CreateControls ( )

◆ FindBioSource()

void CExportTableDlg::FindBioSource ( objects::CSeq_entry_Handle  tse)
private

◆ GetBitmapResource()

wxBitmap CExportTableDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 198 of file export_table.cpp.

◆ GetDesc()

void CExportTableDlg::GetDesc ( const CSeq_entry se)
private

◆ GetIconResource()

wxIcon CExportTableDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 209 of file export_table.cpp.

◆ Init()

void CExportTableDlg::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 119 of file export_table.cpp.

References m_ExcelCheck, and NULL.

Referenced by CExportTableDlg().

◆ RemoveEmptyColsAndRows()

void CExportTableDlg::RemoveEmptyColsAndRows ( CRef< CSeq_table values_table)
static

◆ RunExcel()

void CExportTableDlg::RunExcel ( wxString  FileName)
private

Definition at line 988 of file export_table.cpp.

References wxT.

Referenced by SaveTable().

◆ SaveTable()

void CExportTableDlg::SaveTable ( const wxString &  workDir = wxEmptyString)

◆ SaveTableFile()

void CExportTableDlg::SaveTableFile ( wxWindow *  parent,
wxString &  save_file_dir,
wxString &  save_file_name,
const list< map< string, string > > &  table,
const set< string > &  columns 
)

Definition at line 929 of file export_table.cpp.

References _, columns, CCSVExporter::Field(), CCSVExporter::NewRow(), out(), row, table, and wxT.

Referenced by SaveTable().

◆ ShowToolTips()

bool CExportTableDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 189 of file export_table.cpp.

Member Data Documentation

◆ m_CdsGeneProtRB

wxRadioButton * CExportTableDlg::m_CdsGeneProtRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_DbLinkRB

wxRadioButton * CExportTableDlg::m_DbLinkRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_DeflineRB

wxRadioButton * CExportTableDlg::m_DeflineRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_ExcelCheck

wxCheckBox * CExportTableDlg::m_ExcelCheck
private

Definition at line 124 of file export_table.hpp.

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

◆ m_FeatureRB

wxRadioButton * CExportTableDlg::m_FeatureRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_NoneRB

wxRadioButton* CExportTableDlg::m_NoneRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls().

◆ m_PubRB

wxRadioButton * CExportTableDlg::m_PubRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_RnaRB

wxRadioButton * CExportTableDlg::m_RnaRB
private

Definition at line 125 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_SaveFileDir

wxString CExportTableDlg::m_SaveFileDir
private

Definition at line 128 of file export_table.hpp.

Referenced by SaveTable().

◆ m_SaveFileName

wxString CExportTableDlg::m_SaveFileName
private

Definition at line 128 of file export_table.hpp.

Referenced by SaveTable().

◆ m_source_choices

set<string> CExportTableDlg::m_source_choices
private

Definition at line 127 of file export_table.hpp.

Referenced by AddBioSource(), AddSourceToTable(), and CreateControls().

◆ m_SourceCheck

wxCheckBox* CExportTableDlg::m_SourceCheck
private

Definition at line 124 of file export_table.hpp.

Referenced by CreateControls(), and SaveTable().

◆ m_SourceChoice

wxListBox* CExportTableDlg::m_SourceChoice
private

Definition at line 126 of file export_table.hpp.

Referenced by AddSourceToTable(), and CreateControls().

◆ m_TopSeqEntry

objects::CSeq_entry_Handle CExportTableDlg::m_TopSeqEntry
private

The documentation for this class was generated from the following files:
Modified on Wed Jun 12 11:14:10 2024 by modify_doxy.py rev. 669887