forked from gildor2/UEViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingsDialog.h
48 lines (38 loc) · 926 Bytes
/
SettingsDialog.h
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
45
46
47
48
#ifndef __SETTINGS_DIALOG_H__
#define __SETTINGS_DIALOG_H__
#include "UmodelSettings.h"
class UISettingsDialog : public UIBaseDialog
{
public:
enum OptionsKind
{
OPT_Full,
OPT_Export,
OPT_Save,
};
UISettingsDialog(CUmodelSettings& settings, OptionsKind kind = OPT_Full);
bool Show();
static bool ShowExportOptions(CUmodelSettings& settings)
{
if (!settings.bShowExportOptions)
return true;
UISettingsDialog dialog(settings, OPT_Export);
return dialog.Show();
}
static bool ShowSavePackagesOptions(CUmodelSettings& settings)
{
if (!settings.bShowSaveOptions)
return true;
UISettingsDialog dialog(settings, OPT_Save);
return dialog.Show();
}
protected:
OptionsKind Kind;
CUmodelSettings* OptRef;
CUmodelSettings Opt;
virtual void InitUI();
UIElement& MakeExportOptions();
UIElement& MakeSavePackagesOptions();
UIElement& MakeUIOptions();
};
#endif // __SETTINGS_DIALOG_H__