NCBI C++ ToolKit
|
Search Toolkit Book for CFastaAlignExportPage
#include "fasta_align_export_page.hpp"
(Private to src/gui/packages/pkg_alignment
.)
Public Types | |
enum | { ID_CFASTAALIGNEXPORTPAGE = 10051 , ID_PANEL4 = 10077 , ID_TEXTCTRL14 = 10078 , ID_BITMAPBUTTON = 10079 } |
Public Member Functions | |
CFastaAlignExportPage () | |
CFastaAlignExportPage (wxWindow *parent, wxWindowID id=ID_CFASTAALIGNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CFASTAALIGNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
~CFastaAlignExportPage () | |
void | Init () |
virtual void | SetRegistryPath (const string &path) |
IRegSettings. More... | |
virtual void | SaveSettings () const |
virtual void | LoadSettings () |
void | CreateControls () |
virtual bool | TransferDataFromWindow () |
void | SetObjects (TConstScopedObjects &objects) |
void | OnObjectSelected (wxListEvent &event) |
void | OnFileNameEdited (wxKeyEvent &event) |
void | OnSelectFileClick (wxCommandEvent &event) |
CFastaAlignExportParams & | GetData () |
const CFastaAlignExportParams & | GetData () const |
void | SetData (const CFastaAlignExportParams &data) |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
CObjectListWidget * | m_ObjectSel |
CFastaAlignExportParams | m_data |
Private Member Functions | |
void | x_SanitizePath (wxString &path) |
Private Attributes | |
string | m_RegPath |
bool | m_FileSelected |
std::unique_ptr< CSaveFileHelper > | m_SaveFile |
CFastaAlignExportPage class declaration
Definition at line 78 of file fasta_align_export_page.hpp.
anonymous enum |
Enumerator | |
---|---|
ID_CFASTAALIGNEXPORTPAGE | |
ID_PANEL4 | |
ID_TEXTCTRL14 | |
ID_BITMAPBUTTON |
Definition at line 130 of file fasta_align_export_page.hpp.
CFastaAlignExportPage::CFastaAlignExportPage | ( | ) |
Definition at line 72 of file fasta_align_export_page.cpp.
References Init().
CFastaAlignExportPage::CFastaAlignExportPage | ( | wxWindow * | parent, |
wxWindowID | id = ID_CFASTAALIGNEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 78 of file fasta_align_export_page.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CFastaAlignExportPage::~CFastaAlignExportPage | ( | ) |
Definition at line 101 of file fasta_align_export_page.cpp.
bool CFastaAlignExportPage::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CFASTAALIGNEXPORTPAGE , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 85 of file fasta_align_export_page.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CFastaAlignExportPage().
void CFastaAlignExportPage::CreateControls | ( | ) |
Definition at line 114 of file fasta_align_export_page.cpp.
References _, CObjectListWidget::DisableMultipleSelection(), GetBitmapResource(), GetData(), ID_BITMAPBUTTON, ID_PANEL4, ID_TEXTCTRL14, m_ObjectSel, m_SaveFile, NULL, OnFileNameEdited(), ShowToolTips(), and wxT.
Referenced by Create().
wxBitmap CFastaAlignExportPage::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 155 of file fasta_align_export_page.cpp.
Referenced by CreateControls().
|
inline |
Definition at line 116 of file fasta_align_export_page.hpp.
References m_data.
Referenced by CreateControls(), CFastaAlignExporter::DoTransition(), OnObjectSelected(), and TransferDataFromWindow().
|
inline |
Definition at line 117 of file fasta_align_export_page.hpp.
References m_data.
wxIcon CFastaAlignExportPage::GetIconResource | ( | const wxString & | name | ) |
Definition at line 159 of file fasta_align_export_page.cpp.
void CFastaAlignExportPage::Init | ( | void | ) |
Definition at line 107 of file fasta_align_export_page.cpp.
References m_ObjectSel, and NULL.
Referenced by CFastaAlignExportPage().
|
virtual |
Definition at line 257 of file fasta_align_export_page.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), kObjectList, CwxTableListCtrl::LoadTableSettings(), m_ObjectSel, m_RegPath, and CGuiRegistryUtil::MakeKey().
Referenced by CFastaAlignExporter::GetCurrentPanel().
void CFastaAlignExportPage::OnFileNameEdited | ( | wxKeyEvent & | event | ) |
Definition at line 277 of file fasta_align_export_page.cpp.
References m_FileSelected.
Referenced by CreateControls().
void CFastaAlignExportPage::OnObjectSelected | ( | wxListEvent & | event | ) |
Definition at line 210 of file fasta_align_export_page.cpp.
References Get(), GetData(), CObjectListWidget::GetSelection(), label, m_FileSelected, m_ObjectSel, CFastaAlignExportParams::SetFileName(), and x_SanitizePath().
void CFastaAlignExportPage::OnSelectFileClick | ( | wxCommandEvent & | event | ) |
Definition at line 270 of file fasta_align_export_page.cpp.
References _ASSERT, CFileExtensions::kFASTA, m_FileSelected, and m_SaveFile.
|
virtual |
Definition at line 247 of file fasta_align_export_page.cpp.
References CGuiRegistry::GetInstance(), CGuiRegistry::GetWriteView(), kObjectList, m_ObjectSel, m_RegPath, CGuiRegistryUtil::MakeKey(), and CwxTableListCtrl::SaveTableSettings().
Referenced by CFastaAlignExporter::SaveSettings().
|
inline |
Definition at line 118 of file fasta_align_export_page.hpp.
Referenced by CFastaAlignExporter::GetCurrentPanel().
void CFastaAlignExportPage::SetObjects | ( | TConstScopedObjects & | objects | ) |
Definition at line 190 of file fasta_align_export_page.cpp.
References m_ObjectSel, CwxTableListCtrl::SelectAll(), and CObjectListWidget::SetObjects().
Referenced by CFastaAlignExporter::GetCurrentPanel().
Definition at line 242 of file fasta_align_export_page.cpp.
References m_RegPath.
Referenced by CFastaAlignExporter::GetCurrentPanel().
|
static |
Definition at line 151 of file fasta_align_export_page.cpp.
Referenced by CreateControls().
|
virtual |
Definition at line 168 of file fasta_align_export_page.cpp.
References _ASSERT, GetData(), CFastaAlignExportParams::GetFileName(), CObjectListWidget::GetSelection(), ID_PANEL4, m_ObjectSel, m_SaveFile, CFastaAlignExportParams::SetObject(), and wxT.
Referenced by CFastaAlignExporter::DoTransition().
|
private |
Definition at line 199 of file fasta_align_export_page.cpp.
References remove().
Referenced by OnObjectSelected().
CFastaAlignExportParams CFastaAlignExportPage::m_data |
Definition at line 129 of file fasta_align_export_page.hpp.
|
private |
Definition at line 143 of file fasta_align_export_page.hpp.
Referenced by OnFileNameEdited(), OnObjectSelected(), and OnSelectFileClick().
CObjectListWidget* CFastaAlignExportPage::m_ObjectSel |
Definition at line 128 of file fasta_align_export_page.hpp.
Referenced by CreateControls(), Init(), LoadSettings(), OnObjectSelected(), SaveSettings(), SetObjects(), and TransferDataFromWindow().
|
private |
Definition at line 142 of file fasta_align_export_page.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().
|
private |
Definition at line 144 of file fasta_align_export_page.hpp.
Referenced by CreateControls(), OnSelectFileClick(), and TransferDataFromWindow().