NCBI C++ ToolKit
|
Search Toolkit Book for CFileExtensions
Class CFileExtensions Helper class to provide info on particular (biological content) file types To be used in File dialogs. More...
#include <gui/widgets/wx/file_extensions.hpp>
Public Types | |
enum | EFileType { kFileTypeStart , kAllFiles = kFileTypeStart , kASN , kFASTA , kGenBank , kAGP , kNewick , kNexus , kTree , kGFF , kGTF , kVCF , kBED , kWIG , kTxt , kTable , k5Column , kTextAlign , kPSL , kFileTypeEnd = kTextAlign } |
Static Public Member Functions | |
static wxString | GetLabel (EFileType fileType) |
static wxString | GetExtensions (EFileType fileType) |
static wxString | GetDefaultExtension (EFileType fileType) |
static void | AppendDefaultExtension (EFileType fileType, wxString &path) |
static wxString | GetDialogFilter (EFileType fileType) |
static bool | RecognizeExtension (EFileType fileType, const wxString &extension) |
Class CFileExtensions Helper class to provide info on particular (biological content) file types To be used in File dialogs.
Definition at line 45 of file file_extensions.hpp.
Enumerator | |
---|---|
kFileTypeStart | |
kAllFiles | |
kASN | |
kFASTA | |
kGenBank | |
kAGP | |
kNewick | |
kNexus | |
kTree | |
kGFF | |
kGTF | |
kVCF | |
kBED | |
kWIG | |
kTxt | |
kTable | |
k5Column | |
kTextAlign | |
kPSL | |
kFileTypeEnd |
Definition at line 48 of file file_extensions.hpp.
|
static |
Definition at line 205 of file file_extensions.cpp.
References GetDefaultExtension(), and wxT.
Referenced by CSaveFileHelper::ShowSaveDialog().
|
static |
Definition at line 195 of file file_extensions.cpp.
References sGetExtensions().
Referenced by AppendDefaultExtension().
|
static |
Definition at line 220 of file file_extensions.cpp.
References GetExtensions(), GetLabel(), and wxT.
Referenced by CUpdateAlign::apply(), CLoadStructComments::apply(), CLoadSecondaryAccessions::apply(), CSequenceEditingEventHandler::ExportStructuredCommentsTable(), CSubmissionWizard::ExportTemplate(), CFileAutoLoader::GetFormatWildcard(), CASNFormatLoadManager::GetFormatWildcard(), CTableFileLoadManager::GetFormatWildcard(), CGBFlatFileLoadManager::GetFormatWildcard(), CQualTableLoadManager::GetFormatWildcard(), CPhyLoader::GetFormatWildcard(), CPslLoadManager::GetFormatWildcard(), CRMLoader::GetFormatWildcard(), CTextAlignLoaderManager::GetFormatWildcard(), C5ColLoadManager::GetFormatWildcard(), CAgpLoader::GetFormatWildcard(), CBedLoadManager::GetFormatWildcard(), CColumnarVCFLoaderManager::GetFormatWildcard(), CFASTAFormatLoadManager::GetFormatWildcard(), CGffLoadManager::GetFormatWildcard(), CVCFLoaderManager::GetFormatWildcard(), CWigLoadManager::GetFormatWildcard(), CAuthorNamesContainer::ImportAuthorsFromFile(), CSubmissionWizard::ImportTemplate(), CEditObjViewDlg::OnExport(), CEditObjViewDlgModal::OnExport(), CEditingBtnsPanel::OnExportBtnClick(), CSubmitBlockDlg::OnExportBtnClick(), CJobResultsDlg::OnExportClick(), CAlignmentAssistant::OnExportCont(), CAlignmentAssistant::OnExportInter(), CSuspectProductRulesEditor::OnFileAdd(), CSuspectProductRulesEditor::OnFileLoad(), CIndexerAppModeExtension::OnFileOpen(), CSuspectProductRulesEditor::OnFileSaveAs(), CGenericPanel::OnGenericReportExportClick(), CEditObjViewDlg::OnImport(), CEditObjViewDlgModal::OnImport(), CAuthorNamesPanel::OnImportAuthorsAffiliationHyperlinkClicked(), CEditingBtnsPanel::OnImportBtnClick(), CAdjustFeaturesForGaps::OnMakeReport(), CEditMacroDlg::OnPrintClick(), CEditMacroDlg::OnPrintParallelClick(), CSubPrep_panel::OnSaveBtnClick(), CTableXformPanel::OnSaveImportParmsClick(), CSuspectProductRulesEditor::OnShowDiffs(), CUpdateSeq_Input::ReadSingleUpdateSequence(), CUpdateMultipleSeq_Input::ReadUpdSeqs_FromFile(), CEditingBtnsPanel::SaveASN1File(), CSequenceEditingEventHandler::SaveASN1File(), CSequenceEditingEventHandler::SaveDescriptors(), CSubmissionWizard::SaveFile(), CSequenceEditingEventHandler::SaveSubmissionFile(), SrcEditDialog::SaveTableFile(), SaveTableFile(), CSaveFileHelper::ShowSaveDialog(), CSmartFileTextToolbar::x_AskForFileName(), and CUpdateAlign::x_MapNonPresentIDs().
|
static |
Definition at line 188 of file file_extensions.cpp.
References sBuildFilter(), and sGetExtensions().
Referenced by GetDialogFilter().
|
static |
Definition at line 145 of file file_extensions.cpp.
References k5Column, kAGP, kAllFiles, kASN, kBED, kFASTA, kGenBank, kGFF, kGTF, kNewick, kNexus, kPSL, kTable, kTextAlign, kTree, kTxt, kVCF, kWIG, and wxT.
Referenced by C5ColLoadManager::C5ColLoadManager(), CGffLoadManager::CGffLoadManager(), CPslLoadManager::CPslLoadManager(), CTextAlignLoaderManager::CTextAlignLoaderManager(), and GetDialogFilter().
Definition at line 226 of file file_extensions.cpp.
References kAllFiles, and sGetExtensions().
Referenced by CASNFormatLoadManager::RecognizeFormat(), CTableFileLoadManager::RecognizeFormat(), CGBFlatFileLoadManager::RecognizeFormat(), CQualTableLoadManager::RecognizeFormat(), CPhyLoader::RecognizeFormat(), CPslLoadManager::RecognizeFormat(), CRMLoader::RecognizeFormat(), CTextAlignLoaderManager::RecognizeFormat(), C5ColLoadManager::RecognizeFormat(), CAgpLoader::RecognizeFormat(), CColumnarVCFLoaderManager::RecognizeFormat(), CFASTAFormatLoadManager::RecognizeFormat(), CGffLoadManager::RecognizeFormat(), and CVCFLoaderManager::RecognizeFormat().