diff options
| author | Tannin <devnull@localhost> | 2013-10-16 19:32:59 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-10-16 19:32:59 +0200 |
| commit | 1bf3cc585e28516f4ff6c9edf720fa9d290f47c2 (patch) | |
| tree | f981154230527dff90a8907de0cf235ffc665179 /src/mainwindow.h | |
| parent | f22bb9d6a6249e6789353903d9e51318ce8340af (diff) | |
- nmm importer now also transfers category, endorsement state and lastest version information
- nmm importer should now always determine the correct nexus id
- nmm importer will now correctly restore overwritten files for imported mods
Diffstat (limited to 'src/mainwindow.h')
| -rw-r--r-- | src/mainwindow.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index fab850cf..8a34d16a 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -50,6 +50,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "savegameinfowidgetgamebryo.h" #include <guessedvalue.h> #include <directoryentry.h> +#include <boost/signals2.hpp> namespace Ui { class MainWindow; @@ -59,12 +60,33 @@ class QToolButton; class ModListSortProxy; class ModListGroupCategoriesProxy; + class MainWindow : public QMainWindow, public MOBase::IOrganizer, public MOBase::IPluginDiagnose { Q_OBJECT Q_INTERFACES(MOBase::IPluginDiagnose) public: + + struct SignalCombinerAnd + { + typedef bool result_type; + template<typename InputIterator> + bool operator()(InputIterator first, InputIterator last) const + { + while (first != last) { + if (!(*first)) { + return false; + } + ++first; + } + return true; + } + }; + + typedef boost::signals2::signal<bool (const QString&), SignalCombinerAnd> SignalAboutToRunApplication; + +public: explicit MainWindow(const QString &exeName, QSettings &initSettings, QWidget *parent = 0); ~MainWindow(); @@ -115,7 +137,7 @@ public: virtual QStringList findFiles(const QString &path, const std::function<bool(const QString &)> &filter) const; virtual MOBase::IDownloadManager *downloadManager(); virtual HANDLE startApplication(const QString &executable, const QStringList &args = QStringList(), const QString &cwd = "", const QString &profile = ""); - virtual bool onAboutToRun(const boost::function<bool(const QString&)> &func); + virtual bool onAboutToRun(const std::function<bool(const QString&)> &func); virtual std::vector<unsigned int> activeProblems() const; virtual QString shortDescription(unsigned int key) const; @@ -157,7 +179,6 @@ signals: void styleChanged(const QString &styleFile); - void modListDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); protected: |
