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

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)
 

Detailed Description

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.

Member Enumeration Documentation

◆ EFileType

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.

Member Function Documentation

◆ AppendDefaultExtension()

void CFileExtensions::AppendDefaultExtension ( EFileType  fileType,
wxString &  path 
)
static

Definition at line 205 of file file_extensions.cpp.

References GetDefaultExtension(), and wxT.

Referenced by CSaveFileHelper::ShowSaveDialog().

◆ GetDefaultExtension()

wxString CFileExtensions::GetDefaultExtension ( EFileType  fileType)
static

Definition at line 195 of file file_extensions.cpp.

References sGetExtensions().

Referenced by AppendDefaultExtension().

◆ GetDialogFilter()

wxString CFileExtensions::GetDialogFilter ( EFileType  fileType)
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().

◆ GetExtensions()

wxString CFileExtensions::GetExtensions ( EFileType  fileType)
static

Definition at line 188 of file file_extensions.cpp.

References sBuildFilter(), and sGetExtensions().

Referenced by GetDialogFilter().

◆ GetLabel()

wxString CFileExtensions::GetLabel ( EFileType  fileType)
static

◆ RecognizeExtension()

bool CFileExtensions::RecognizeExtension ( EFileType  fileType,
const wxString &  extension 
)
static

The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:05:53 2024 by modify_doxy.py rev. 669887