52 #ifndef VAPPLICATION_H
53 #define VAPPLICATION_H
55 #include "../vmisc/vabstractapplication.h"
56 #include "../options.h"
57 #include "../vwidgets/vmaingraphicsview.h"
58 #include "../vpatterndb/vtranslatevars.h"
67 #define qApp (static_cast<VApplication*>(VAbstractApplication::instance()))
79 static void NewSeamly2D(
const QString &fileName = QString());
80 virtual bool notify(QObject * receiver, QEvent *
event) Q_DECL_OVERRIDE;
96 #if defined(Q_OS_WIN) && defined(Q_CC_GNU)
97 static void DrMingw();
98 void CollectReports()
const;
108 virtual bool event(QEvent *e) Q_DECL_OVERRIDE;
111 #if defined(Q_OS_WIN) && defined(Q_CC_GNU)
112 void CleanGist()
const;
121 std::shared_ptr<QTextStream>
out;
123 #if defined(Q_OS_WIN) && defined(Q_CC_GNU)
124 static const QString GistFileName;
126 void CollectReport(
const QString &reportName)
const;
127 void SendReport(
const QString &reportName)
const;
128 QString ReadFileForSending(QFile &file)
const;
129 void ClearOldReports()
const;
130 void GatherLogs()
const;
The VApplication class reimplamentation QApplication class.
QString SeamlyMeFilePath() const
QTimer * getAutoSaveTimer() const
virtual void OpenSettings() Q_DECL_OVERRIDE
OpenSettings get acsses to application settings.
std::shared_ptr< QTextStream > out
QString LogDirPath() const
VSettings * Seamly2DSettings()
static void NewSeamly2D(const QString &fileName=QString())
NewSeamly2D start Seamly2D in new process, send path to pattern file in argument.
virtual bool notify(QObject *receiver, QEvent *event) Q_DECL_OVERRIDE
notify Reimplemented from QApplication::notify().
virtual ~VApplication() Q_DECL_OVERRIDE
virtual bool IsAppInGUIMode() const Q_DECL_OVERRIDE
IsAppInGUIMode little hack that allow to have access to application state from VAbstractApplication c...
std::shared_ptr< VLockGuard< QFile > > lockLog
virtual bool event(QEvent *e) Q_DECL_OVERRIDE
void ClearOldLogs() const
void setAutoSaveTimer(QTimer *value)
VApplication(int &argc, char **argv)
VApplication constructor.
bool CreateLogDir() const
virtual void InitTrVars() Q_DECL_OVERRIDE
const VCommandLinePtr CommandLine() const
static QStringList LabelLanguages()
virtual const VTranslateVars * TrVars() Q_DECL_OVERRIDE
std::shared_ptr< VCommandLine > VCommandLinePtr