40 #ifndef __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 41 #define __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 45 #include <QToolButton> 53 class PreferencesDialog;
57 class QTreeWidgetItem;
58 class WaresSearchPathsWidget;
61 namespace openfluid {
namespace ui {
namespace common {
78 enum PagesIndexes { ENVIRONMENT_PAGE = 0,
88 void changePage(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
90 void updateLanguage(
int Index);
92 void clearRecentsList();
94 void updateRecentsMax(
int Val);
96 void confirmItemRemoval(
bool Confirm);
98 void confirmParamRemoval(
bool Confirm);
100 void confirmUnitsRemoval(
bool Confirm);
102 void confirmConnectionsRemoval(
bool Confirm);
104 void confirmAttributesRemoval(
bool Confirm);
106 void enableWatchers(
bool Active);
108 void enableAutoSaveBeforeRun(
bool AutoSave);
110 void updateDeltaT(
int Val);
112 void updatePeriodBegin(
const QDateTime& DT);
114 void updatePeriodEnd(
const QDateTime& DT);
116 void enableSyntaxHighlighting(
bool Enable);
118 void changeSyntaxElementDecoration(
int ElementRow);
120 void enableCurrentLineHighlighting(
bool Enable);
122 void changeCurrentLineColor();
124 void changeCurrentFont(
const QFont& Font);
126 void enableLineWrapping(
bool Enable);
128 void changeIndentSpaceNumber(
int SpaceNb);
130 void changeSyntaxElementColor(
int ElementRow);
132 void addMarketPlace();
134 void editMarketPlace();
136 void removeMarketPlace();
138 void processSimUserPathsUpdate();
140 void processObsUserPathsUpdate();
142 void processBextUserPathsUpdate();
144 void processWorkspacesPathsUpdate();
146 void updateDevConfigPATH();
148 void updateDevConfigGenerator();
150 void updateDevConfigOptions();
152 void updateDevBuildPATH();
154 void updateDevShowPATH(
bool Enabled);
156 void updateDevSslNoVerify(
bool NoVerify);
158 void detectQtDevToolsMinGW();
160 void applyTextEditorSettings();
162 void restoreDefaultsTextEditorSettings();
167 Ui::PreferencesDialog *ui;
169 bool m_RecentsChanged;
171 bool m_SimPathsChanged;
173 bool m_ObsPathsChanged;
175 bool m_WaresWatchingChanged;
177 bool m_TextEditorSettingsChanged;
179 bool m_RestartRequired;
181 int m_OriginalLangIndex;
183 QString m_OriginalActiveWorkspace;
187 QStringList m_Formats {
"bold",
"italic",
"underline",
"strike-through"};
191 void updateMarketplacesList();
193 void intializeTextEditorSettings();
195 void updateSyntaxElementLabel(QLabel* Label,
const QStringList& Decorations,
const QString& ColorName);
197 void updateSyntaxElementColorButton(QToolButton* Button,
const QString& ColorName);
199 void updateRestartStatus();
201 static QString getLanguageAsPrettyString(
const QString& LangCode);
206 void applyTextEditorSettingsAsked();
216 {
return m_RecentsChanged; }
219 {
return m_SimPathsChanged; }
222 {
return m_ObsPathsChanged; }
225 {
return m_WaresWatchingChanged; }
228 {
return m_TextEditorSettingsChanged; }
231 {
return m_RestartRequired; }
bool isObsPathsChanged() const
Definition: PreferencesDialog.hpp:221
bool isRestartRequired()
Definition: PreferencesDialog.hpp:230
Definition: MessageDialog.hpp:55
bool isWaresWatchingChanged() const
Definition: PreferencesDialog.hpp:224
Definition: PreferencesDialog.hpp:70
bool isRecentsChanged() const
Definition: PreferencesDialog.hpp:215
Definition: ApplicationException.hpp:47
bool isSimPathsChanged() const
Definition: PreferencesDialog.hpp:218
Definition: PreferencesDialog.hpp:71
Definition: AboutDialog.hpp:50
DisplayMode
Definition: PreferencesDialog.hpp:70
bool isTextEditorSettingsChanged() const
Definition: PreferencesDialog.hpp:227
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: PreferencesDialog.hpp:64