-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathSettingsDialog.cpp
53 lines (42 loc) · 2.06 KB
/
SettingsDialog.cpp
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
49
50
51
52
53
//-----------------------------------------------------------------------------
// File: SettingsDialog.cpp
//-----------------------------------------------------------------------------
// Project: Kactus 2
// Author: Joni-Matti Maatta
// Date: 10.6.2011
//
// Description:
// Settings dialog.
//-----------------------------------------------------------------------------
#include "SettingsDialog.h"
#include "GeneralSettingsPage.h"
#include "CodeEditorSettingsPage.h"
#include "NamingPolicySettingsPage.h"
#include "PluginSettingsPage.h"
#include "FileTypeSettingsPage.h"
#include "k2envvariablesettingspage.h"
#include "ComponentEditorSettingsPage.h"
//-----------------------------------------------------------------------------
// Function: SettingsDialog()
//-----------------------------------------------------------------------------
SettingsDialog::SettingsDialog(QWidget* parent):
PropertyPageDialog(QSize(24, 24), 1, VIEW_LIST, APPLY_ALL, parent)
{
setWindowTitle(tr("Settings"));
addPage(QIcon(":icons/common/graphics/configuration.png"), tr("General"),
new GeneralSettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/naming-policy.png"), tr("Naming Policies"),
new NamingPolicySettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/settings-code_editor.png"), tr("Code Editor"),
new CodeEditorSettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/settings-visibilities.png"), tr("Component Editor Visibilities"),
new ComponentEditorSettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/settings-file_types.png"), tr("File Types"),
new FileTypeSettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/settings-plugins.png"), tr("Plugins"),
new PluginSettingsPage(settings_));
addPage(QIcon(":icons/common/graphics/settings-environment_vars.png"), tr("Environment variables"),
new K2EnvVariableSettingsPage(settings_));
finalizePages();
resize(sizeHint().width(), minimumHeight());
}