diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/transfersavesdialog.h | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/transfersavesdialog.h')
| -rw-r--r-- | src/transfersavesdialog.h | 81 |
1 files changed, 40 insertions, 41 deletions
diff --git a/src/transfersavesdialog.h b/src/transfersavesdialog.h index dee41c72..81c44f57 100644 --- a/src/transfersavesdialog.h +++ b/src/transfersavesdialog.h @@ -20,8 +20,8 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #ifndef TRANSFERSAVESDIALOG_H
#define TRANSFERSAVESDIALOG_H
-#include "tutorabledialog.h"
#include "profile.h"
+#include "tutorabledialog.h"
class QListWidget;
#include <QObject>
@@ -29,73 +29,72 @@ class QPushButton; #include <QString>
class QWidget;
-#include <memory>
#include <map>
+#include <memory>
#include <vector>
-namespace Ui { class TransferSavesDialog; }
-namespace MOBase { class IPluginGame; }
-namespace MOBase { class ISaveGame; }
+namespace Ui {
+class TransferSavesDialog;
+}
+namespace MOBase {
+class IPluginGame;
+}
+namespace MOBase {
+class ISaveGame;
+}
class TransferSavesDialog : public MOBase::TutorableDialog {
- Q_OBJECT
+ Q_OBJECT
public:
- explicit TransferSavesDialog(const Profile &profile,
- MOBase::IPluginGame const *gamePlugin,
- QWidget *parent = 0);
- ~TransferSavesDialog();
+ explicit TransferSavesDialog(const Profile& profile, MOBase::IPluginGame const* gamePlugin, QWidget* parent = 0);
+ ~TransferSavesDialog();
private slots:
- void on_moveToLocalBtn_clicked();
+ void on_moveToLocalBtn_clicked();
- void on_doneButton_clicked();
+ void on_doneButton_clicked();
- void on_globalCharacterList_currentTextChanged(const QString ¤tText);
+ void on_globalCharacterList_currentTextChanged(const QString& currentText);
- void on_localCharacterList_currentTextChanged(const QString ¤tText);
+ void on_localCharacterList_currentTextChanged(const QString& currentText);
- void on_copyToLocalBtn_clicked();
+ void on_copyToLocalBtn_clicked();
- void on_moveToGlobalBtn_clicked();
+ void on_moveToGlobalBtn_clicked();
- void on_copyToGlobalBtn_clicked();
+ void on_copyToGlobalBtn_clicked();
private:
- enum OverwriteMode { OVERWRITE_ASK, OVERWRITE_YES, OVERWRITE_NO };
+ enum OverwriteMode { OVERWRITE_ASK, OVERWRITE_YES, OVERWRITE_NO };
private:
- void refreshGlobalCharacters();
- void refreshLocalCharacters();
- void refreshGlobalSaves();
- void refreshLocalSaves();
- bool testOverwrite(OverwriteMode &overwriteMode,
- const QString &destinationFile);
+ void refreshGlobalCharacters();
+ void refreshLocalCharacters();
+ void refreshGlobalSaves();
+ void refreshLocalSaves();
+ bool testOverwrite(OverwriteMode& overwriteMode, const QString& destinationFile);
private:
- Ui::TransferSavesDialog *ui;
+ Ui::TransferSavesDialog* ui;
- Profile m_Profile;
+ Profile m_Profile;
- MOBase::IPluginGame const *m_GamePlugin;
+ MOBase::IPluginGame const* m_GamePlugin;
- typedef std::unique_ptr<MOBase::ISaveGame const> SaveListItem;
- typedef std::vector<SaveListItem> SaveList;
- typedef std::map<QString, SaveList> SaveCollection;
- SaveCollection m_GlobalSaves;
- SaveCollection m_LocalSaves;
+ typedef std::unique_ptr<MOBase::ISaveGame const> SaveListItem;
+ typedef std::vector<SaveListItem> SaveList;
+ typedef std::map<QString, SaveList> SaveCollection;
+ SaveCollection m_GlobalSaves;
+ SaveCollection m_LocalSaves;
- void refreshSaves(SaveCollection &saveCollection, const QString &savedir);
- void refreshCharacters(SaveCollection const &saveCollection,
- QListWidget *charList, QPushButton *copy,
- QPushButton *move);
+ void refreshSaves(SaveCollection& saveCollection, const QString& savedir);
+ void refreshCharacters(SaveCollection const& saveCollection, QListWidget* charList, QPushButton* copy,
+ QPushButton* move);
- bool transferCharacters(
- QString const &character, char const *message, SaveList &saves,
- QString const &dest,
- const std::function<bool(const QString &, const QString &)> &method,
- char const *errmsg);
+ bool transferCharacters(QString const& character, char const* message, SaveList& saves, QString const& dest,
+ const std::function<bool(const QString&, const QString&)>& method, char const* errmsg);
};
#endif // TRANSFERSAVESDIALOG_H
|
