diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
| commit | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/transfersavesdialog.h | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Revert "Applied clang-format on source"
This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
Diffstat (limited to 'src/transfersavesdialog.h')
| -rw-r--r-- | src/transfersavesdialog.h | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/src/transfersavesdialog.h b/src/transfersavesdialog.h index 81c44f57..dee41c72 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 "profile.h"
#include "tutorabledialog.h"
+#include "profile.h"
class QListWidget;
#include <QObject>
@@ -29,72 +29,73 @@ class QPushButton; #include <QString>
class QWidget;
-#include <map>
#include <memory>
+#include <map>
#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& currentText);
+ void on_globalCharacterList_currentTextChanged(const QString ¤tText);
- void on_localCharacterList_currentTextChanged(const QString& currentText);
+ void on_localCharacterList_currentTextChanged(const QString ¤tText);
- 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
|
