mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 10:09:48 +00:00
Got the Data Files tab to use the new model
This commit is contained in:
parent
4174d3c235
commit
5773676986
3 changed files with 395 additions and 866 deletions
File diff suppressed because it is too large
Load diff
|
@ -8,19 +8,15 @@
|
||||||
|
|
||||||
#include "combobox.hpp"
|
#include "combobox.hpp"
|
||||||
|
|
||||||
class QTableWidget;
|
class QTableView;
|
||||||
class QStandardItemModel;
|
|
||||||
class QItemSelection;
|
|
||||||
class QItemSelectionModel;
|
|
||||||
class QSortFilterProxyModel;
|
class QSortFilterProxyModel;
|
||||||
class QStringListModel;
|
|
||||||
class QSettings;
|
class QSettings;
|
||||||
class QAction;
|
class QAction;
|
||||||
class QToolBar;
|
class QToolBar;
|
||||||
class QMenu;
|
class QMenu;
|
||||||
class PluginsModel;
|
|
||||||
class PluginsView;
|
|
||||||
class ComboBox;
|
class ComboBox;
|
||||||
|
class DataFilesModel;
|
||||||
|
|
||||||
|
|
||||||
namespace Files { struct ConfigurationManager; }
|
namespace Files { struct ConfigurationManager; }
|
||||||
|
|
||||||
|
@ -37,7 +33,6 @@ public:
|
||||||
bool setupDataFiles();
|
bool setupDataFiles();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
|
||||||
void setCheckState(QModelIndex index);
|
void setCheckState(QModelIndex index);
|
||||||
|
|
||||||
void filterChanged(const QString filter);
|
void filterChanged(const QString filter);
|
||||||
|
@ -46,37 +41,34 @@ public slots:
|
||||||
|
|
||||||
// Action slots
|
// Action slots
|
||||||
void newProfile();
|
void newProfile();
|
||||||
void copyProfile();
|
|
||||||
void deleteProfile();
|
void deleteProfile();
|
||||||
void moveUp();
|
// void moveUp();
|
||||||
void moveDown();
|
// void moveDown();
|
||||||
void moveTop();
|
// void moveTop();
|
||||||
void moveBottom();
|
// void moveBottom();
|
||||||
void check();
|
void check();
|
||||||
void uncheck();
|
void uncheck();
|
||||||
void refresh();
|
void refresh();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTableWidget *mMastersWidget;
|
DataFilesModel *mMastersModel;
|
||||||
PluginsView *mPluginsTable;
|
DataFilesModel *mPluginsModel;
|
||||||
|
|
||||||
QStandardItemModel *mDataFilesModel;
|
|
||||||
PluginsModel *mPluginsModel;
|
|
||||||
|
|
||||||
QSortFilterProxyModel *mPluginsProxyModel;
|
QSortFilterProxyModel *mPluginsProxyModel;
|
||||||
QItemSelectionModel *mPluginsSelectModel;
|
|
||||||
|
QTableView *mMastersTable;
|
||||||
|
QTableView *mPluginsTable;
|
||||||
|
|
||||||
QToolBar *mProfileToolBar;
|
QToolBar *mProfileToolBar;
|
||||||
QMenu *mContextMenu;
|
QMenu *mContextMenu;
|
||||||
|
|
||||||
QAction *mNewProfileAction;
|
QAction *mNewProfileAction;
|
||||||
QAction *mCopyProfileAction;
|
|
||||||
QAction *mDeleteProfileAction;
|
QAction *mDeleteProfileAction;
|
||||||
|
|
||||||
QAction *mMoveUpAction;
|
// QAction *mMoveUpAction;
|
||||||
QAction *mMoveDownAction;
|
// QAction *mMoveDownAction;
|
||||||
QAction *mMoveTopAction;
|
// QAction *mMoveTopAction;
|
||||||
QAction *mMoveBottomAction;
|
// QAction *mMoveBottomAction;
|
||||||
QAction *mCheckAction;
|
QAction *mCheckAction;
|
||||||
QAction *mUncheckAction;
|
QAction *mUncheckAction;
|
||||||
|
|
||||||
|
@ -86,17 +78,12 @@ private:
|
||||||
|
|
||||||
QSettings *mLauncherConfig;
|
QSettings *mLauncherConfig;
|
||||||
|
|
||||||
const QStringList checkedPlugins();
|
// const QStringList checkedPlugins();
|
||||||
const QStringList selectedMasters();
|
// const QStringList selectedMasters();
|
||||||
|
|
||||||
void addDataFiles(Files::Collections &fileCollections, const QString &encoding);
|
|
||||||
void addPlugins(const QModelIndex &index);
|
|
||||||
void removePlugins(const QModelIndex &index);
|
|
||||||
void uncheckPlugins();
|
|
||||||
void createActions();
|
void createActions();
|
||||||
void setupConfig();
|
void setupConfig();
|
||||||
void readConfig();
|
void readConfig();
|
||||||
void scrollToSelection();
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
#include <components/esm/esm_reader.hpp>
|
#include <components/esm/esmreader.hpp>
|
||||||
|
|
||||||
#include "esm/esmfile.hpp"
|
#include "esm/esmfile.hpp"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue