m_FileSelectPanel(
NULL),
56m_FileSelectPage(*this)
71 return "File Import";
124ids.
insert(format_ids.begin(), format_ids.end());
125vector< CIRef<IFileLoadPanelClientFactory> > fileFormats;
128 for(
size_t i= 0;
i< fileFormats.size(); ++
i) {
129 if(ids.
find(fileFormats[
i]->GetFileLoaderId()) != ids.
end())
181 NcbiErrorBox(
"The file(s) cannot be opened with this file format manager!");
212 if(detected_fmt_name.empty())
213detected_fmt_name =
"No name";
216 if(!manager->RecognizeFormat(detected_fmt)) {
217 boolfound_mgr =
false;
221 if(current_manager->RecognizeFormat(detected_fmt)) {
222 constwxFormatString kFormatConflictMsg =
"Detected data format '%s' doesn't appear to match the format you selected.\n" 223 "Are you sure you want to load your data as '%s'? Click 'Yes' to proceed or click 'No' to process the data as '%s'";
304 stringselectedLabel;
307selectedLabel = manager.
GetLabel();
312vector<string> values;
336vector<string> values;
348 stringmgr_label = manager.
GetLabel();
349 if(mgr_label == sel_fmt_label)
void LoadFromStrings(const vector< string > &values)
void SaveToStrings(vector< string > &values) const
void SetWorkDir(const wxString &workDir)
void SetManager(CFileLoadWizard *manager)
void SelectFormat(int format)
void GetFilenames(vector< wxString > &filenames) const
void SetFilenames(const vector< wxString > &filenames)
virtual wxPanel * GetPanel()
CFileLoadWizard & m_Manager
CFileLoadWizard()
CFileLoadWizard.
vector< wxString > m_Filenames
CFilePage m_FileSelectPage
CFileLoadPanel * m_FileSelectPanel
CFileLoadMRUList m_FileMRUList
vector< CIRef< IFileLoadPanelClient > > m_FormatManagers
virtual void SaveSettings() const
wxWindow * m_ParentWindow
virtual void SetParentWindow(wxWindow *parent)
bool x_CheckFormatConflict(const vector< wxString > &filenames)
virtual void LoadSettings()
void SetWorkDir(const wxString &workDir)
IWizardPage * x_GetOptionsPage()
void OnFormatChanged(int format)
virtual void SetNextPage(IWizardPage *nexPage)
Sets a wizard page which should show after the last page of the tool.
void LoadFormats(const vector< string > &format_ids)
virtual IWizardPage * GetOptionsPage()
Returns page for tool options (long wizard path via "Options" button)
void SetFilenames(vector< wxString > &filenames)
virtual void SetPrevPage(IWizardPage *prevPage)
Sets a wizard page which should show before the first page of the tool.
CFileLoadPanel * x_GetFileSelectPanel()
virtual void SetRegistryPath(const string &path)
IWizardPage * x_GetNextPage()
virtual string GetLabel() const
virtual IWizardPage * GetFirstPage()
Returns first options page (if any) of the tool to be shown in wizard dialog.
virtual IExecuteUnit * GetExecuteUnit()
Class implements different ad-hoc unreliable file format identifications.
EFormat
The formats are checked in the same order as declared here.
@ eUnknown
unknown format
EFormat GuessFormat(EMode)
static const char * GetFormatName(EFormat format)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
string GetString(const string &key, const string &default_val=kEmptyStr) const
void GetStringVec(const string &key, vector< string > &val) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
void SetWorkDir(const wxString &workDir)
void Add(T elem, time_t time=0)
virtual bool ValidateFilenames(const vector< wxString > &filenames)=0
checks given filenames and returns true if the manager can handle them, otherwise - shows an error me...
virtual void SetFilenames(const vector< wxString > &filenames)=0
initilize the manager with the given filenames
virtual string GetLabel() const =0
virtual string GetFileLoaderId() const =0
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SaveSettings() const =0
virtual void LoadSettings()=0
virtual void SetRegistryPath(const string &path)=0
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
const_iterator end() const
static const char * kSelectedFormatTag
static const char * kMRUTag
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
const string & GetMsg(void) const
Get message string.
void GetExtensionAsInterface(const string &ext_point_id, vector< CIRef< I > > &interfaces)
GetExtensionAsInterface() is a helper function that extracts all extensions implementing the specifie...
void NcbiErrorBox(const string &message, const string &title="Error")
specialized Message Box function for reporting critical errors
EDialogReturnValue NcbiMessageBoxW(const wxString &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const wxString &title=wxT("Error"), EDialogTextMode text_mode=eRaw)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ifstream CNcbiIfstream
Portable alias for ifstream.
static const char label[]
unsigned int
A callback function used to compare two keys in a database.
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
wxEVT_COMMAND_MENU_SELECTED
wxString ToWxString(const string &s)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4