diff options
| author | Tannin <devnull@localhost> | 2013-08-17 08:49:36 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-08-17 08:49:36 +0200 |
| commit | 78c4178f2a70bb55bd761efc92d58b8ac0e3747b (patch) | |
| tree | 9b82bba2f0eeb1ac94e15f80773d947034179ff0 /src/mainwindow.h | |
| parent | 7d79e3ad1e8a710e836e1cd44106a610e6d2a049 (diff) | |
- plugins that failed to load are now reported as problems
- some wording fixes in the tutorial
- updated proxyPython to a modified interface
Diffstat (limited to 'src/mainwindow.h')
| -rw-r--r-- | src/mainwindow.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index d7d0a8e7..b70defbe 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -59,9 +59,10 @@ class QToolButton; class ModListSortProxy; class ModListGroupCategoriesProxy; -class MainWindow : public QMainWindow, public MOBase::IOrganizer +class MainWindow : public QMainWindow, public MOBase::IOrganizer, public MOBase::IPluginDiagnose { Q_OBJECT + Q_INTERFACES(MOBase::IPluginDiagnose) public: explicit MainWindow(const QString &exeName, QSettings &initSettings, QWidget *parent = 0); @@ -109,6 +110,12 @@ public: virtual QString resolvePath(const QString &fileName) const; virtual MOBase::IDownloadManager *downloadManager(); + virtual std::vector<unsigned int> activeProblems() const; + virtual QString shortDescription(unsigned int key) const; + virtual QString fullDescription(unsigned int key) const; + virtual bool hasGuidedFix(unsigned int key) const; + virtual void startGuidedFix(unsigned int key) const; + void addPrimaryCategoryCandidates(QMenu *primaryCategoryMenu, ModInfo::Ptr info); void saveArchiveList(); @@ -236,6 +243,10 @@ private: private: + static const unsigned int PROBLEM_PLUGINSNOTLOADED = 1; + +private: + Ui::MainWindow *ui; MOBase::TutorialControl m_Tutorial; @@ -300,6 +311,7 @@ private: MOBase::IGameInfo *m_GameInfo; std::vector<MOBase::IPluginDiagnose*> m_DiagnosisPlugins; + std::vector<QString> m_UnloadedPlugins; private slots: |
