33
44#include < entities/cloudconnection.h>
55#include < entities/notefolder.h>
6- #include < entities/script.h>
76
87#include " masterdialog.h"
8+ #include " widgets/settings/mcpserversettingswidget.h"
9+ #include " widgets/settings/notefoldersettingswidget.h"
10+ #include " widgets/settings/panelssettingswidget.h"
11+ #include " widgets/settings/scriptingsettingswidget.h"
912
1013namespace Ui {
1114class SettingsDialog ;
@@ -20,7 +23,6 @@ class QTreeWidget;
2023class QLineEdit ;
2124class QStatusBar ;
2225class QButtonGroup ;
23- class Script ;
2426class QCheckBox ;
2527class NoteFolder ;
2628class QSplitter ;
@@ -103,55 +105,12 @@ class SettingsDialog : public MasterDialog {
103105
104106 void on_setExternalEditorPathToolButton_clicked ();
105107
106- void on_noteFolderListWidget_currentItemChanged (QListWidgetItem *current,
107- QListWidgetItem *previous);
108-
109- void on_noteFolderAddButton_clicked ();
110-
111- void on_noteFolderRemoveButton_clicked ();
112-
113- void on_noteFolderNameLineEdit_editingFinished ();
114-
115- void on_noteFolderRemotePathLineEdit_editingFinished ();
116-
117- void on_noteFolderLocalPathButton_clicked ();
118-
119- void on_noteFolderActiveCheckBox_stateChanged (int arg1);
120-
121- void on_noteFolderRemotePathButton_clicked ();
122-
123- void on_noteFolderRemotePathTreeWidget_currentItemChanged (QTreeWidgetItem *current,
124- QTreeWidgetItem *previous);
125-
126- void on_useOwnCloudPathButton_clicked ();
127-
128- void addLocalScript ();
129-
130- void on_scriptRemoveButton_clicked ();
131-
132- void on_scriptPathButton_clicked ();
133-
134- void on_scriptListWidget_currentItemChanged (QListWidgetItem *current,
135- QListWidgetItem *previous);
136-
137- void on_scriptNameLineEdit_editingFinished ();
138-
139- void on_scriptSearchLineEdit_textChanged (const QString &arg1);
140-
141- void on_scriptValidationButton_clicked ();
142-
143- void on_scriptReloadEngineButton_clicked ();
144-
145108 void on_addCustomNoteFileExtensionButton_clicked ();
146109
147110 void on_removeCustomNoteFileExtensionButton_clicked ();
148111
149112 void on_defaultNoteFileExtensionListWidget_itemChanged (QListWidgetItem *item);
150113
151- void on_noteFolderShowSubfoldersCheckBox_toggled (bool checked);
152-
153- void on_noteFolderAllSubfoldersCheckBox_toggled (bool checked);
154-
155114 void on_shortcutSearchLineEdit_textChanged (const QString &arg1);
156115
157116 void on_settingsTreeWidget_currentItemChanged (QTreeWidgetItem *current,
@@ -181,14 +140,6 @@ class SettingsDialog : public MasterDialog {
181140
182141 void on_ownCloudSupportCheckBox_toggled ();
183142
184- void on_noteFolderGitCommitCheckBox_toggled (bool checked);
185-
186- void searchScriptInRepository (bool checkForUpdates = false );
187-
188- void checkForScriptUpdates ();
189-
190- void on_scriptListWidget_itemChanged (QListWidgetItem *item);
191-
192143 void on_interfaceStyleComboBox_currentTextChanged (const QString &arg1);
193144
194145 void on_showSystemTrayCheckBox_toggled (bool checked);
@@ -203,42 +154,24 @@ class SettingsDialog : public MasterDialog {
203154
204155 void on_importSettingsButton_clicked ();
205156
206- void on_ignoreNoteSubFoldersResetButton_clicked ();
207-
208157 void on_interfaceFontSizeSpinBox_valueChanged (int arg1);
209158
210159 void on_overrideInterfaceFontSizeGroupBox_toggled (bool arg1);
211160
212- void on_mcpServerEnabledCheckBox_toggled (bool checked);
213-
214- void on_mcpServerPortResetButton_clicked ();
215-
216- void on_mcpServerShowTokenButton_clicked ();
217-
218- void on_mcpServerCopyTokenButton_clicked ();
219-
220- void on_mcpServerGenerateTokenButton_clicked ();
221-
222161 void on_cloudConnectionComboBox_currentIndexChanged (int index);
223162
224163 void on_cloudConnectionAddButton_clicked ();
225164
226165 void on_cloudConnectionRemoveButton_clicked ();
227166
228- void on_noteFolderCloudConnectionComboBox_currentIndexChanged (int index);
229-
230167 void storeSelectedCloudConnection ();
231168
232169 void on_ownCloudServerAppPasswordPageButton_clicked ();
233170
234- void on_allowDifferentNoteFileNameCheckBox_toggled (bool checked);
235-
236171 void on_languageSearchLineEdit_textChanged (const QString &arg1);
237172
238173 void on_databaseIntegrityCheckButton_clicked ();
239174
240- void on_scriptReloadEngineButton2_clicked ();
241-
242175 void on_loginFlowButton_clicked ();
243176
244177 void on_loginFlowCancelButton_clicked ();
@@ -257,19 +190,15 @@ class SettingsDialog : public MasterDialog {
257190
258191 private:
259192 Ui::SettingsDialog *ui;
260- QStatusBar *noteFolderRemotePathTreeStatusBar;
261193 bool appIsValid;
262194 QString appVersion;
263195 QString serverVersion;
264196 QString notesPathExistsText;
265197 QString connectionErrorMessage;
266- NoteFolder _selectedNoteFolder;
267- Script _selectedScript;
268198 static const int _defaultMarkdownHighlightingInterval = 200 ;
269199 QSplitter *_mainSplitter;
270200 QButtonGroup *_noteNotificationButtonGroup;
271201 QCheckBox *_noteNotificationNoneCheckBox;
272- QString _newScriptName;
273202 CloudConnection _selectedCloudConnection;
274203 int _loginFlowPollCount = 0 ;
275204 QHash<int , bool > _pageInitialized;
@@ -299,25 +228,6 @@ class SettingsDialog : public MasterDialog {
299228
300229 static QString getSelectedListWidgetValue (QListWidget *listWidget);
301230
302- void setupNoteFolderPage ();
303-
304- static bool scriptMatchesSearchFilter (const Script &script, const QString &searchText);
305-
306- QTreeWidgetItem *findNoteFolderRemotePathTreeWidgetItem (QTreeWidgetItem *parent,
307- const QString &text);
308-
309- void addPathToNoteFolderRemotePathTreeWidget (QTreeWidgetItem *parent, const QString &path);
310-
311- QString generatePathFromCurrentNoteFolderRemotePathItem (QTreeWidgetItem *item);
312-
313- void setNoteFolderRemotePathTreeWidgetFrameVisibility (bool visi);
314-
315- void setupScriptingPage ();
316-
317- void storeScriptListEnabledState ();
318-
319- void validateCurrentScript ();
320-
321231 QListWidgetItem *addCustomNoteFileExtension (QString fileExtension);
322232
323233 void loadShortcutSettings ();
@@ -345,14 +255,6 @@ class SettingsDialog : public MasterDialog {
345255
346256 bool connectionTestCanBeStarted () const ;
347257
348- void reloadScriptList () const ;
349-
350- void reloadCurrentScriptPage ();
351-
352- void readPanelSettings ();
353-
354- void storePanelSettings ();
355-
356258 void loadInterfaceStyleComboBox () const ;
357259
358260 void initSearchEngineComboBox () const ;
@@ -373,19 +275,6 @@ class SettingsDialog : public MasterDialog {
373275
374276 void applyDarkModeSettings ();
375277
376- void populateSubfolderTree ();
377-
378- void populateSubfolderTreeFromDir (QTreeWidgetItem *parentItem, const QString &path,
379- const QString &relativePath);
380- void applySubfolderTreeCheckStates (QTreeWidget *tree, const QStringList &excludedPaths);
381- void applyCheckStateToItem (QTreeWidgetItem *item, const QStringList &excludedPaths);
382-
383- void updateSubfolderVisibility ();
384-
385- void collectExcludedSubfolderPaths (QTreeWidgetItem *item, QStringList &excludedPaths);
386-
387- void saveSubfolderTreeSelection ();
388-
389278 bool initializePage (int index);
390279};
391280
0 commit comments