1 #ifndef DATAFILESPAGE_H
2 #define DATAFILESPAGE_H
4 #include "ui_datafilespage.h"
83 void setProfile (
int index,
bool savePrevious);
84 void setProfile (
const QString &previous,
const QString ¤t,
bool savePrevious);
87 void addProfile (
const QString &profile,
bool setAsCurrent);
120 bool success =
false;
130 file.setFile (dir.absoluteFilePath (
mFile));
132 success = file.exists();
136 return file.absoluteFilePath();
143 QStringList
filesInProfile(
const QString& profileName, PathIterator& pathIterator);
QString path()
Definition: datafilespage.hpp:118
Config::GameSettings & mGameSettings
Definition: datafilespage.hpp:71
QString findFirstPath(const QString &file)
Definition: datafilespage.hpp:107
static const struct @2 signals[]
Definition: contentselector.hpp:13
void addProfile(const QString &profile, bool setAsCurrent)
Definition: datafilespage.cpp:240
QAbstractItemModel * profilesModel() const
Definition: datafilespage.cpp:150
void buildView()
Definition: datafilespage.cpp:45
bool showDeleteMessageBox(const QString &text)
Definition: datafilespage.cpp:296
static const char * mDefaultContentListName
Content List that is always present.
Definition: datafilespage.hpp:63
QStringList::ConstIterator mCitBegin
Definition: datafilespage.hpp:95
TextInputDialog * mProfileDialog
Definition: datafilespage.hpp:67
void on_newProfileAction_triggered()
Definition: datafilespage.cpp:223
Definition: configurationmanager.hpp:20
Definition: datafilespage.hpp:91
int profilesIndex() const
Definition: datafilespage.cpp:155
Files::ConfigurationManager & mCfgMgr
Definition: datafilespage.hpp:69
void checkForDefaultProfile()
Definition: datafilespage.cpp:287
QString findNextPath()
Definition: datafilespage.hpp:114
void slotProfileRenamed(const QString &previous, const QString ¤t)
Definition: datafilespage.cpp:200
Config::LauncherSettings & mLauncherSettings
Definition: datafilespage.hpp:72
QStringList::ConstIterator mCitCurrent
Definition: datafilespage.hpp:94
Definition: profilescombobox.hpp:11
void setProfile(int index, bool savePrevious)
Definition: datafilespage.cpp:160
void updateOkButton(const QString &text)
Definition: datafilespage.cpp:274
Definition: datafilespage.hpp:25
void saveSettings(const QString &profile="")
Definition: datafilespage.cpp:124
DataFilesPage(Files::ConfigurationManager &cfg, Config::GameSettings &gameSettings, Config::LauncherSettings &launcherSettings, QWidget *parent=0)
Definition: datafilespage.cpp:26
QString mFilePath
Definition: datafilespage.hpp:97
void signalProfileChanged(int index)
bool loadSettings()
Definition: datafilespage.cpp:73
Definition: launchersettings.hpp:9
void setPluginsCheckstates(Qt::CheckState state)
void populateFileViews(const QString &contentModelName)
Definition: datafilespage.cpp:90
Definition: textinputdialog.hpp:12
ContentSelectorView::ContentSelector * mSelector
Definition: datafilespage.hpp:29
void slotProfileChanged(int index)
Definition: datafilespage.cpp:214
QStringList filesInProfile(const QString &profileName, PathIterator &pathIterator)
Definition: datafilespage.cpp:108
QStringList::ConstIterator mCitEnd
Definition: datafilespage.hpp:93
Ui::DataFilesPage ui
Definition: datafilespage.hpp:30
void removeProfile(const QString &profile)
Definition: datafilespage.cpp:145
void slotProfileDeleted(const QString &item)
Definition: datafilespage.cpp:189
void on_deleteProfileAction_triggered()
Definition: datafilespage.cpp:252
QString mFile
Definition: datafilespage.hpp:96
void slotProfileChangedByUser(const QString &previous, const QString ¤t)
Definition: datafilespage.cpp:194
PathIterator(const QStringList &list)
Definition: datafilespage.hpp:100
QString mDataLocal
Definition: datafilespage.hpp:76
QString mPreviousProfile
Definition: datafilespage.hpp:74
Definition: gamesettings.hpp:20