(
"\" has been opened. Please choose a different filename.");
74wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
87m_TaskName("Load Project"),
89m_ProjectService(srv),
90m_AddToMRU(add_to_mru),
172 if(abs_path.StartsWith(
wxT(
"http://")) || abs_path.StartsWith(
wxT(
"https://")) || abs_path.StartsWith(
wxT(
"ftp://"))) {
176fileName = wxFileName(abs_path).GetFullName();
179 m_Descr=
"Loading project: "+ fileName;
187 for(
auto&& fold_it : folder.
SetFolders()) {
193 for(
auto&& item_it : folder.
SetItems()) {
194 if(item_it->IsSetItem() && item_it->GetItem().IsOther()) {
195 auto& other = item_it->SetItem().SetOther();
198 size_tpos = other.GetType().find(
":");
211 return "Project cannot be loaded as it is not compatible with the current version of Genome Workbench. " 212 "Please reload data from the .vcf file.";
219 return "Project cannot be loaded as it is not compatible with the current version of Genome Workbench. " 220 "Please reload data from the .vcf file.";
252 if(!
msg.empty()) {
267 if(!mru_path.empty()) {
274items.push_back(item);
284wxString
msg=
wxT(
"Cannot load project \"") + prj_filename;
285 msg+=
wxT(
"\". Would you like to specify a different filename?");
311 msg=
wxT(
"Project \"") + abs_path;
341 "CProjectLoadingTask::OnAppJobNotification() - unknown or invalid Job ID " 377 ERR_POST(
"CAppJobTask::OnAppJobNotification() - unknown or invalid Job ID "<< job_id);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAppJobNotification Notification send by CAppJobEventTranslator.
CAppTask - default implementation of IAppTask, use it as a base class for custom tasks.
CEventHandler * m_Listener
string m_Descr
task description
CEvent - generic event implementation TODO TODO - Attachments.
void SetFileName(const wxString &filename)
IAppJob * CreateLoadJob(const wxString &fileName)
wxString GetFileName() const
static void PrefetchSeqDescr(IServiceLocator *serviceLocator, const vector< CRef< objects::CProjectItem > > &items)
void OnAppJobProgress(CEvent *event)
CProjectService * m_ProjectService
IAppJob::EJobState m_JobState
objects::CGBProjectHandle::TId TProjectId
void OnAppJobNotification(CEvent *event)
functions below handle notifications from the IAppJob
virtual ~CProjectLoadingTask()
virtual void CancelBackgrounded()
make a request to cancel backgrounded task (not called for foreground tasks)
static SWFileDlgData sm_ProjectDlgData
static data structures for File dialogs
virtual ETaskState Run()
execute the task, this function is called on the main UI thread if a task needs to execute in backgro...
CProjectService - a service providing API for operations with Workspaces and Projects.
void RemoveProject(CGBDocument &doc)
IServiceLocator * GetServiceLocator()
CRef< objects::CGBWorkspace > GetGBWorkspace()
void AddToProjectWorkspaceMRUList(const wxString &path)
vector< TItemRef > TItems
Template class for iteration on objects of class C.
static string s_GetPreviousVersion()
static string s_GetCurrentVersion(bool format_only=false)
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
ETaskState
List of task states defining the task management FSM.
@ eCanceled
canceled by Task Manager
@ eBackgrounded
task is executing in background
@ eFailed
failed during execution
@ eCompleted
successfully finished
@ eInitial
has not been executed yet
static CAppJobDispatcher & GetInstance()
EDialogReturnValue NcbiMessageBoxW(const wxString &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const wxString &title=wxT("Error"), EDialogTextMode text_mode=eRaw)
int NcbiFileBrowser(SFileDlgData &data, wxWindow *parent=NULL)
show wxFileDialog and returns
void Post(CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
Handles an event asynchronously (process and/or dispatch).
bool DeleteJob(TJobID job_id)
when a Job is deleted the listener is not notified
TJobID StartJob(IAppJob &job, const string &engine_name, IEngineParams *params=NULL)
Starts a Job on the specified engine in "passive mode" - no notifications or progress reports will be...
wxString GetFilename() const
EDialogReturnValue NcbiMessageBox(const string &message, TDialogType type=eDialog_Ok, EDialogIcon icon=eIcon_Exclamation, const string &title="Error", EDialogTextMode text_mode=eRaw)
CConstIRef< IAppJobProgress > GetProgress() const
returns non-null pointer only if notification type is eProgress
#define END_EVENT_MAP()
Ends definition of Command Map.
#define BEGIN_EVENT_MAP(thisClass, baseClass)
Begins definition of Command Map for CEventHandler-derived class.
TJobState GetState() const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static SIZE_TYPE FindNoCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
Find the pattern in the specified range of a string using a case insensitive search.
static void TruncateSpacesInPlace(string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string (in-place)
static bool StartsWith(const CTempString str, const CTempString start, ECase use_case=eCase)
Check if a string starts with a specified prefix value.
@ eNocase
Case insensitive compare.
TFolders & SetFolders(void)
Assign a value to Folders data member.
bool IsSetFolders(void) const
Check if a value has been assigned to Folders data member.
bool IsSetItems(void) const
Check if a value has been assigned to Items data member.
TItems & SetItems(void)
Assign a value to Items data member.
EDialogReturnValue
enumerated return values for dialog boxes, starting from 1 to undermine attempts to cast it "bool"
bool ConvertFromPreviousVCFModel(objects::CAbstractProjectItem &prj_item, const string &version)
const string version
version string
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
static const wxChar * kAlreadyExist
CProjectLoadingTask.
static string s_TestVCFData(CProjectFolder &folder)
const wxChar * kPRJ_Wildcard
ON_EVENT(CAppJobNotification, CAppJobNotification::eStateChanged, &CProjectLoadingTask::OnAppJobNotification) ON_EVENT(CAppJobNotification
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
wxString ToWxString(const string &s)
string FnToStdString(const wxString &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