diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-21 21:04:45 -0500 |
|---|---|---|
| committer | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-21 21:04:45 -0500 |
| commit | 7c900bb1c86406669119a71bbbe156fedc8341cd (patch) | |
| tree | 14fb3a459081f703e9eed98d4d6206a79249456f /src/categoryimportdialog.h | |
| parent | d2e48ed72e3526c08580d5c4b3531778267532c5 (diff) | |
Add new dialog for category import
- Merge or replace strategies
- Nexus mappings are optional
- If mappings are applied, remapping is optional
Diffstat (limited to 'src/categoryimportdialog.h')
| -rw-r--r-- | src/categoryimportdialog.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/categoryimportdialog.h b/src/categoryimportdialog.h new file mode 100644 index 00000000..bfc2eee4 --- /dev/null +++ b/src/categoryimportdialog.h @@ -0,0 +1,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 |
