forked from mirror/openmw-tes3mp
81 lines
1.7 KiB
C++
81 lines
1.7 KiB
C++
|
#ifndef DATAFILESPAGE_H
|
||
|
#define DATAFILESPAGE_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include <QModelIndex>
|
||
|
#include "utils/profilescombobox.hpp"
|
||
|
#include <components/files/collections.hpp>
|
||
|
|
||
|
|
||
|
class QTableView;
|
||
|
class QSortFilterProxyModel;
|
||
|
class QSettings;
|
||
|
class QAction;
|
||
|
class QToolBar;
|
||
|
class QMenu;
|
||
|
class ProfilesComboBox;
|
||
|
class DataFilesModel;
|
||
|
|
||
|
class TextInputDialog;
|
||
|
class DataFilesList;
|
||
|
|
||
|
namespace Files { struct ConfigurationManager; }
|
||
|
|
||
|
class DataFilesPage : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
DataFilesPage(Files::ConfigurationManager& cfg, QWidget *parent = 0);
|
||
|
|
||
|
ProfilesComboBox *mProfilesComboBox;
|
||
|
|
||
|
void writeConfig(QString profile = QString());
|
||
|
bool showDataFilesWarning();
|
||
|
bool setupDataFiles();
|
||
|
|
||
|
public slots:
|
||
|
void profileChanged(const QString &previous, const QString ¤t);
|
||
|
void profileRenamed(const QString &previous, const QString ¤t);
|
||
|
void updateOkButton(const QString &text);
|
||
|
|
||
|
// Action slots
|
||
|
void newProfile();
|
||
|
void deleteProfile();
|
||
|
// void moveUp();
|
||
|
// void moveDown();
|
||
|
// void moveTop();
|
||
|
// void moveBottom();
|
||
|
|
||
|
private:
|
||
|
DataFilesList *mDataFilesList;
|
||
|
|
||
|
QToolBar *mProfileToolBar;
|
||
|
|
||
|
QAction *mNewProfileAction;
|
||
|
QAction *mDeleteProfileAction;
|
||
|
|
||
|
// QAction *mMoveUpAction;
|
||
|
// QAction *mMoveDownAction;
|
||
|
// QAction *mMoveTopAction;
|
||
|
// QAction *mMoveBottomAction;
|
||
|
|
||
|
Files::ConfigurationManager &mCfgMgr;
|
||
|
Files::PathContainer mDataDirs;
|
||
|
Files::PathContainer mDataLocal;
|
||
|
|
||
|
QSettings *mLauncherConfig;
|
||
|
|
||
|
TextInputDialog *mNewProfileDialog;
|
||
|
|
||
|
// const QStringList checkedPlugins();
|
||
|
// const QStringList selectedMasters();
|
||
|
|
||
|
void createActions();
|
||
|
void setupConfig();
|
||
|
void readConfig();
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|