35 #include <wx/stdpaths.h>
42 return wxDialog::Show(show);
54 REPORT_USAGE(
"submission_wizard", .Add(
"action_name", action_name));
60 void ReportUsage(
const wxString& dialog_name,
const string& action_name)
63 .Add(
"action_name", action_name));
73 if (macro.empty())
return;
77 const string doc_dir =
ToStdString(stdp.GetDocumentsDir());
83 LOG_POST(
Error <<
"Cannot create directory '" << macro_dir <<
"'");
90 ostr << macro << endl;
106 .Add(
"file", filename)
107 .Add(
"action", action));
virtual bool Show(bool show=1)
Report opening events in dialogs used in the editing package.
std::ofstream out("events_result.xml")
main entry point for tests
#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)
virtual bool Exists(void) const
Check if directory "dirname" exists.
static string ConcatPathEx(const string &first, const string &second)
Concatenate two parts of the path for any OS.
bool Create(TCreateFlags flags=fCreate_Default) const
Create the directory using "dirname" passed in the constructor.
string GetLabel(const CSeq_id &id)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
const TYPE & Get(const CNamedParameterList *param)
void ReportUsage(const wxString &dialog_name)
Report opening & accepting events in the editing package.
void ReportSubWizardUsage(const string &action_name)
Report usage of the submission wizard dialog.
void SaveScriptFromLibrary(const string ¯o)
Save macro obtained from the library.
void ReportUsage(const wxString &dialog_name, const string &action_name)
Report events in the macro_flow_editor and in the macro_editor.
void SaveScriptCreated(const string ¯o)
Save macro created by the editor.
void ReportMacroToBeUpdated(const string &username, const string &filename, const string &action)
Report attempt to update a local macro script.
void SaveScriptToFile(const string ¯o, const string &filename)
Save macro to a file.
void ReportMacroExecution()
Report when a macro is executed.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
#define REPORT_USAGE(event, args)
Convenience macro to log usage statisitics.
string ToStdString(const wxString &s)