본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
SettingsDialog.h
1#pragma once
2
3#include "gdkqt/QtGdkExport.h"
4
5#include "app/AppSettings.h"
6
7#include <QDialog>
8
9class QComboBox;
10class QCheckBox;
11class QDialogButtonBox;
12class QEvent;
13class QTabWidget;
14class QShowEvent;
15class QLabel;
16class QLineEdit;
17class QListWidget;
18class QPushButton;
19class QSpinBox;
20
21namespace GdkQt {
22struct AppSettings;
23}
24
33class QT_GDK_API SettingsDialog final : public QDialog
34{
35 Q_OBJECT
36
37public:
40 explicit SettingsDialog(QWidget* parent = nullptr);
41
48 enum class Page {
49 General,
50 Styles,
51 Resources,
52 Attributes,
53 Snap,
54 Log,
55 Update,
56 Map
57 };
58
62 void setCurrentPage(Page page);
63
76
77private:
78 void showEvent(QShowEvent* event) override;
79 void changeEvent(QEvent* event) override;
80 void retranslateUi();
81 void addStyleDirectory();
82 void removeSelectedStyleDirectories();
83 void moveSelectedStyleDirectory(int delta);
84 QStringList styleDirectories() const;
85 void setStyleDirectories(const QStringList& directories);
86 void addStyleResourceDirectory();
87 void removeSelectedStyleResourceDirectories();
88 void moveSelectedStyleResourceDirectory(int delta);
89 QStringList styleResourceDirectories() const;
90 void setStyleResourceDirectories(const QStringList& directories);
91
92 QTabWidget* m_tabs = nullptr;
93 QWidget* m_attributeGroup = nullptr;
94 QWidget* m_snapGroup = nullptr;
95 QWidget* m_generalGroup = nullptr;
96 QLabel* m_languageLabel = nullptr;
97 QComboBox* m_languageCombo = nullptr;
98 QLabel* m_selectionRadiusLabel = nullptr;
99 QSpinBox* m_selectionRadiusSpin = nullptr;
100 QLabel* m_selectionOperationLabel = nullptr;
101 QComboBox* m_selectionOperationCombo = nullptr;
102 QLabel* m_attributeTableBulkSelectionLimitLabel = nullptr;
103 QSpinBox* m_attributeTableBulkSelectionLimitSpin = nullptr;
104 QLabel* m_attributeTableMapSelectionLimitLabel = nullptr;
105 QSpinBox* m_attributeTableMapSelectionLimitSpin = nullptr;
106 QLabel* m_zoomLimitLabel = nullptr;
107 QSpinBox* m_zoomLimitSpin = nullptr;
108 QLabel* m_locateLimitLabel = nullptr;
109 QSpinBox* m_locateLimitSpin = nullptr;
110 QLabel* m_snapToleranceLabel = nullptr;
111 QSpinBox* m_snapToleranceSpin = nullptr;
112 QLabel* m_snapLayerScopeLabel = nullptr;
113 QComboBox* m_snapLayerScopeCombo = nullptr;
114 QWidget* m_logGroup = nullptr;
115 QLabel* m_logEnabledLabel = nullptr;
116 QCheckBox* m_logEnabledCheck = nullptr;
117 QLabel* m_logLevelLabel = nullptr;
118 QComboBox* m_logLevelCombo = nullptr;
119 QLabel* m_logModeLabel = nullptr;
120 QComboBox* m_logModeCombo = nullptr;
121 QLabel* m_fileLogLabel = nullptr;
122 QCheckBox* m_fileLogCheck = nullptr;
123 QWidget* m_updateGroup = nullptr;
124 QLabel* m_updateUrlLabel = nullptr;
125 QLineEdit* m_updateUrlEdit = nullptr;
126 QLabel* m_checkUpdatesLabel = nullptr;
127 QCheckBox* m_checkUpdatesOnStartupCheck = nullptr;
128 QWidget* m_styleGroup = nullptr;
129 QListWidget* m_styleDirectoryList = nullptr;
130 QPushButton* m_addStyleButton = nullptr;
131 QPushButton* m_removeStyleButton = nullptr;
132 QPushButton* m_upStyleButton = nullptr;
133 QPushButton* m_downStyleButton = nullptr;
134 QWidget* m_styleResourceGroup = nullptr;
135 QListWidget* m_styleResourceDirectoryList = nullptr;
136 QPushButton* m_addStyleResourceButton = nullptr;
137 QPushButton* m_removeStyleResourceButton = nullptr;
138 QPushButton* m_upStyleResourceButton = nullptr;
139 QPushButton* m_downStyleResourceButton = nullptr;
140 QDialogButtonBox* m_buttons = nullptr;
141 QStringList m_symbolDirectories;
142};
void setSettings(const GdkQt::AppSettings &settings)
대화상자의 입력 위젯을 설정 값으로 채웁니다.
GdkQt::AppSettings settings() const
입력 위젯의 현재 값으로 설정을 만듭니다.
void setCurrentPage(Page page)
지정한 설정 위치의 탭을 엽니다.
Page
setCurrentPage로 열 설정 위치입니다.
정의 SettingsDialog.h:48
SettingsDialog(QWidget *parent=nullptr)
설정 대화상자를 만듭니다.
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의 AppSettings.h:15
응용 프로그램 설정 값 묶음입니다.
정의 AppSettings.h:23