NCBI C++ ToolKit
|
Search Toolkit Book for CFileLoadWizard
#include <gui/widgets/loaders/file_load_wizard.hpp>
Classes | |
class | CFilePage |
Public Member Functions | |
CFileLoadWizard () | |
CFileLoadWizard. More... | |
void | LoadFormats (const vector< string > &format_ids) |
void | SetWorkDir (const wxString &workDir) |
const vector< CIRef< IFileLoadPanelClient > > & | GetFormatManagers () const |
CFileLoadMRUList & | GetFileMRUList () |
void | SetFilenames (vector< wxString > &filenames) |
vector< wxString > | GetFilenames () const |
void | OnFormatChanged (int format) |
IOpenObjectsPanelClient interface implementation | |
virtual string | GetLabel () const |
virtual IExecuteUnit * | GetExecuteUnit () |
IToolWizard interface implementation | |
virtual void | SetParentWindow (wxWindow *parent) |
virtual IWizardPage * | GetFirstPage () |
Returns first options page (if any) of the tool to be shown in wizard dialog. More... | |
virtual IWizardPage * | GetOptionsPage () |
Returns page for tool options (long wizard path via "Options" button) More... | |
virtual void | SetPrevPage (IWizardPage *prevPage) |
Sets a wizard page which should show before the first page of the tool. More... | |
virtual void | SetNextPage (IWizardPage *nexPage) |
Sets a wizard page which should show after the last page of the tool. More... | |
IRegSettings interface implementation | |
virtual void | SetRegistryPath (const string &path) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Public Member Functions inherited from CObject | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
Public Member Functions inherited from CDebugDumpable | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
Public Member Functions inherited from IOpenObjectsPanelClient | |
virtual | ~IOpenObjectsPanelClient () |
Public Member Functions inherited from IToolWizard | |
virtual | ~IToolWizard () |
Public Member Functions inherited from IRegSettings | |
virtual | ~IRegSettings () |
Protected Member Functions | |
CFileLoadPanel * | x_GetFileSelectPanel () |
bool | x_CanLeavePage () |
IWizardPage * | x_GetNextPage () |
IWizardPage * | x_GetOptionsPage () |
bool | x_CheckFormatConflict (const vector< wxString > &filenames) |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Protected Attributes | |
wxWindow * | m_ParentWindow |
IWizardPage * | m_StartPage |
string | m_RegPath |
vector< CIRef< IFileLoadPanelClient > > | m_FormatManagers |
int | m_CurrFormat |
vector< wxString > | m_Filenames |
CFileLoadPanel * | m_FileSelectPanel |
CFileLoadMRUList | m_FileMRUList |
CFilePage | m_FileSelectPage |
wxString | m_WorkDir |
Additional Inherited Members | |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Static Public Member Functions inherited from CObject | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Definition at line 54 of file file_load_wizard.hpp.
CFileLoadWizard::CFileLoadWizard | ( | ) |
Definition at line 51 of file file_load_wizard.cpp.
|
virtual |
Reimplemented from IOpenObjectsPanelClient.
Definition at line 74 of file file_load_wizard.cpp.
References m_CurrFormat, and m_FormatManagers.
|
inline |
Definition at line 90 of file file_load_wizard.hpp.
References m_FileMRUList.
Referenced by CFileLoadPanel::x_FillMRUList().
|
inline |
Definition at line 94 of file file_load_wizard.hpp.
References m_Filenames.
|
virtual |
Returns first options page (if any) of the tool to be shown in wizard dialog.
Reimplemented from IToolWizard.
Definition at line 95 of file file_load_wizard.cpp.
References m_FileSelectPage, and x_GetFileSelectPanel().
|
inline |
Definition at line 89 of file file_load_wizard.hpp.
References m_FormatManagers.
Referenced by CFileLoadPanel::SetManager(), CFileLoadPanel::x_LoadMRUFile(), and CFileLoadPanel::x_SetCurrentFormat().
|
virtual |
Implements IOpenObjectsPanelClient.
Definition at line 69 of file file_load_wizard.cpp.
|
virtual |
Returns page for tool options (long wizard path via "Options" button)
Reimplemented from IToolWizard.
Definition at line 101 of file file_load_wizard.cpp.
References m_CurrFormat, and m_FormatManagers.
Definition at line 121 of file file_load_wizard.cpp.
References set< Key, Compare >::end(), set< Key, Compare >::find(), GetExtensionAsInterface(), i, set< Key, Compare >::insert(), and m_FormatManagers.
|
virtual |
Implements IRegSettings.
Definition at line 324 of file file_load_wizard.cpp.
References CGuiRegistry::GetInstance(), IFileLoadPanelClient::GetLabel(), CGuiRegistry::GetReadView(), CRegistryReadView::GetString(), CRegistryReadView::GetStringVec(), i, int, kMRUTag, kSelectedFormatTag, CFileLoadMRUList::LoadFromStrings(), IRegSettings::LoadSettings(), m_CurrFormat, m_FileMRUList, m_FormatManagers, and m_RegPath.
void CFileLoadWizard::OnFormatChanged | ( | int | format | ) |
Definition at line 156 of file file_load_wizard.cpp.
References CWizardDlg::eCmdUpdateButtons, format, m_CurrFormat, m_ParentWindow, and wxEVT_COMMAND_MENU_SELECTED.
Referenced by CFileLoadPanel::OnFormatListSelected(), x_GetFileSelectPanel(), and CFileLoadPanel::x_LoadMRUFile().
|
virtual |
Implements IRegSettings.
Definition at line 296 of file file_load_wizard.cpp.
References CGuiRegistry::GetInstance(), IFileLoadPanelClient::GetLabel(), CGuiRegistry::GetWriteView(), i, kMRUTag, kSelectedFormatTag, m_CurrFormat, m_FileMRUList, m_FormatManagers, m_RegPath, IRegSettings::SaveSettings(), CFileLoadMRUList::SaveToStrings(), and CRegistryWriteView::Set().
void CFileLoadWizard::SetFilenames | ( | vector< wxString > & | filenames | ) |
Definition at line 147 of file file_load_wizard.cpp.
References filenames, m_Filenames, m_FileSelectPanel, and CFileLoadPanel::SetFilenames().
|
virtual |
Sets a wizard page which should show after the last page of the tool.
Reimplemented from IToolWizard.
Definition at line 115 of file file_load_wizard.cpp.
References i, m_FormatManagers, and IToolWizard::SetNextPage().
|
virtual |
Implements IToolWizard.
Definition at line 87 of file file_load_wizard.cpp.
References i, m_FormatManagers, m_ParentWindow, and IToolWizard::SetParentWindow().
|
virtual |
Sets a wizard page which should show before the first page of the tool.
Reimplemented from IToolWizard.
Definition at line 109 of file file_load_wizard.cpp.
References i, m_FormatManagers, and IToolWizard::SetPrevPage().
Implements IRegSettings.
Definition at line 278 of file file_load_wizard.cpp.
References IFileLoadPanelClient::GetFileLoaderId(), i, m_FormatManagers, m_RegPath, and IRegSettings::SetRegistryPath().
void CFileLoadWizard::SetWorkDir | ( | const wxString & | workDir | ) |
Definition at line 134 of file file_load_wizard.cpp.
References i, m_FormatManagers, m_WorkDir, and CReportLoaderErrors::SetWorkDir().
|
protected |
Definition at line 163 of file file_load_wizard.cpp.
References CTimeMRUList< T >::Add(), filenames, IFileLoadPanelClient::GetFileLoaderId(), CFileLoadPanel::GetFilenames(), IFileLoadPanelClient::GetLabel(), CFileLoadPanel::GetSelectedFormat(), ITERATE, label, m_CurrFormat, m_FileMRUList, m_FileSelectPanel, m_FormatManagers, NcbiErrorBox(), CFileLoadPanel::OnActivatePanel(), IFileLoadPanelClient::SetFilenames(), ToWxString(), IFileLoadPanelClient::ValidateFilenames(), and x_CheckFormatConflict().
Referenced by CFileLoadWizard::CFilePage::CanLeavePage().
Definition at line 198 of file file_load_wizard.cpp.
References eCancel, eDialog_YesNoCancel, eIcon_Exclamation, eNo, Error(), CFormatGuess::eUnknown, filenames, CFormatGuess::GetFormatName(), CException::GetMsg(), CFormatGuess::GuessFormat(), i, LOG_POST, m_CurrFormat, m_FormatManagers, NcbiMessageBoxW(), and wxT.
Referenced by x_CanLeavePage().
|
protected |
Definition at line 257 of file file_load_wizard.cpp.
References m_CurrFormat, m_Filenames, m_FileSelectPanel, m_ParentWindow, m_WorkDir, max(), OnFormatChanged(), CFileLoadPanel::SelectFormat(), CFileLoadPanel::SetFilenames(), CFileLoadPanel::SetManager(), and CFileLoadPanel::SetWorkDir().
Referenced by GetFirstPage(), and CFileLoadWizard::CFilePage::GetPanel().
|
protected |
Definition at line 241 of file file_load_wizard.cpp.
References format, IToolWizard::GetFirstPage(), CFileLoadPanel::GetSelectedFormat(), m_FileSelectPanel, and m_FormatManagers.
Referenced by CFileLoadWizard::CFilePage::GetNextPage().
|
protected |
Definition at line 249 of file file_load_wizard.cpp.
References format, IToolWizard::GetOptionsPage(), CFileLoadPanel::GetSelectedFormat(), m_FileSelectPanel, and m_FormatManagers.
Referenced by CFileLoadWizard::CFilePage::GetOptionsPage().
|
protected |
Definition at line 130 of file file_load_wizard.hpp.
Referenced by GetExecuteUnit(), GetOptionsPage(), LoadSettings(), OnFormatChanged(), SaveSettings(), x_CanLeavePage(), x_CheckFormatConflict(), and x_GetFileSelectPanel().
|
protected |
Definition at line 134 of file file_load_wizard.hpp.
Referenced by GetFileMRUList(), LoadSettings(), SaveSettings(), and x_CanLeavePage().
|
protected |
Definition at line 132 of file file_load_wizard.hpp.
Referenced by GetFilenames(), SetFilenames(), and x_GetFileSelectPanel().
|
protected |
Definition at line 135 of file file_load_wizard.hpp.
Referenced by GetFirstPage().
|
protected |
Definition at line 133 of file file_load_wizard.hpp.
Referenced by SetFilenames(), x_CanLeavePage(), x_GetFileSelectPanel(), x_GetNextPage(), and x_GetOptionsPage().
|
protected |
Definition at line 129 of file file_load_wizard.hpp.
Referenced by GetExecuteUnit(), GetFormatManagers(), GetOptionsPage(), LoadFormats(), LoadSettings(), SaveSettings(), SetNextPage(), SetParentWindow(), SetPrevPage(), SetRegistryPath(), SetWorkDir(), x_CanLeavePage(), x_CheckFormatConflict(), x_GetNextPage(), and x_GetOptionsPage().
|
protected |
Definition at line 124 of file file_load_wizard.hpp.
Referenced by OnFormatChanged(), SetParentWindow(), and x_GetFileSelectPanel().
|
protected |
Definition at line 127 of file file_load_wizard.hpp.
Referenced by LoadSettings(), SaveSettings(), and SetRegistryPath().
|
protected |
Definition at line 125 of file file_load_wizard.hpp.
|
protected |
Definition at line 136 of file file_load_wizard.hpp.
Referenced by SetWorkDir(), and x_GetFileSelectPanel().