summaryrefslogtreecommitdiff
path: root/src/categoryimportdialog.h
blob: bfc2eee4944c3b600c633739b2aec5e733a6c303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef CATEGORYIMPORTDIALOG_H
#define CATEGORYIMPORTDIALOG_H

#include <QDialog>

namespace Ui
{
class CategoryImportDialog;
}

/**
 * @brief Dialog that allows users to configure mod categories
 **/
class CategoryImportDialog : public QDialog
{
  Q_OBJECT

public:
  enum ImportStrategy
  {
    None,
    Overwrite,
    Merge
  };

public:
  explicit CategoryImportDialog(QWidget* parent = 0);
  ~CategoryImportDialog();

  ImportStrategy strategy();
  bool assign();
  bool remap();

public slots:
  void accepted();
  void rejected();
  void on_strategyClicked(QAbstractButton* button);
  void on_assignOptionClicked(bool clicked);

private:
  Ui::CategoryImportDialog* ui;
};

#endif  // CATEGORYIMPORTDIALOG_H