41 #ifndef __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 
   42 #define __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 
   46 #include <QToolButton> 
   57   class PreferencesDialog;
 
   61 class QTreeWidgetItem;
 
   62 class WaresSearchPathsWidget;
 
   65 namespace openfluid { 
namespace ui { 
namespace common {
 
   82     enum class PagesIndexes { 
 
   93     void changePage(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
 
   95     void updateLanguage(
int Index);
 
   97     void clearRecentsList();
 
   99     void confirmItemRemoval(
bool Confirm);
 
  101     void confirmParamRemoval(
bool Confirm);
 
  103     void confirmUnitsRemoval(
bool Confirm);
 
  105     void confirmConnectionsRemoval(
bool Confirm);
 
  107     void confirmAttributesRemoval(
bool Confirm);
 
  109     void skipGhostMigration(
bool Skip);
 
  111     void enableWatchers(
bool Active);
 
  113     void enableAutoSaveBeforeRun(
bool AutoSave);
 
  115     void updateDeltaT(
int Val);
 
  117     void updatePeriodDates(
const QDateTime& BeginDT, 
const QDateTime& EndDT);
 
  119     void enableSyntaxHighlighting(
bool Enable);
 
  121     void changeSyntaxElementDecoration(
int ElementRow);
 
  123     void enableCurrentLineHighlighting(
bool Enable);
 
  125     void changeCurrentLineColor();
 
  127     void changeCurrentFont(
const QFont& Font);
 
  129     void enableLineWrapping(
bool Enable);
 
  131     void changeIndentSpaceNumber(
int SpaceNb);
 
  133     void enableInvisibleCharsDisplay(
bool Enable);
 
  135     void enableCarriageReturnDisplay(
bool Enable);
 
  137     void changeSyntaxElementColor(
int ElementRow);
 
  139     void processSimUserPathsUpdate();
 
  141     void processObsUserPathsUpdate();
 
  143     void processBextUserPathsUpdate();
 
  145     void processWorkspacesPathsUpdate();
 
  147     void processExtToolsUpdate();
 
  149     void enableAutosaveBeforeBuild(
bool Enabled);
 
  151     void updateDevConfigPATH();
 
  153     void updateDevConfigGenerator();
 
  155     void updateDevConfigOptions();
 
  157     void updateDevBuildPATH();
 
  159     void updateDevShowPATH(
bool Enabled);
 
  161     void updateDevSslNoVerify(
bool NoVerify);
 
  163     void updateDevCheckoutCurrentOpenFLUIDVersion(
bool CheckoutCurrentVersion);
 
  165     void detectQtDevToolsMinGW();
 
  167     void applyTextEditorSettings();
 
  169     void restoreDefaultsTextEditorSettings();
 
  174     Ui::PreferencesDialog* ui;
 
  179     bool m_RecentsChanged;
 
  181     bool m_SimPathsChanged;
 
  183     bool m_ObsPathsChanged;
 
  185     bool m_WaresWatchingChanged;
 
  187     bool m_TextEditorSettingsChanged;
 
  189     bool m_RestartRequired;
 
  191     int m_OriginalLangIndex;
 
  193     QString m_OriginalActiveWorkspace;
 
  197     QStringList m_Formats {
"bold", 
"italic", 
"underline", 
"strike-through"};
 
  201     void intializeTextEditorSettings();
 
  203     void updateSyntaxElementLabel(QLabel* Label, 
const QStringList& Decorations, 
const QString& ColorName);
 
  205     void updateSyntaxElementColorButton(QToolButton* Button, 
const QString& ColorName);
 
  207     void updateRestartStatus();
 
  209     static QString getLanguageAsPrettyString(
const QString& LangCode);
 
  224     { 
return m_RecentsChanged; }
 
  227     { 
return m_SimPathsChanged; }
 
  230     { 
return m_ObsPathsChanged; }
 
  233     { 
return m_WaresWatchingChanged; }
 
  236     { 
return m_TextEditorSettingsChanged; }
 
  239     { 
return m_RestartRequired; }
 
Definition: PreferencesManager.hpp:62
 
Definition: WorkspaceManager.hpp:55
 
Definition: MessageDialog.hpp:56
 
Definition: PreferencesDialog.hpp:69
 
bool isTextEditorSettingsChanged() const
Definition: PreferencesDialog.hpp:235
 
bool isRecentsChanged() const
Definition: PreferencesDialog.hpp:223
 
bool isObsPathsChanged() const
Definition: PreferencesDialog.hpp:229
 
bool isSimPathsChanged() const
Definition: PreferencesDialog.hpp:226
 
void applyTextEditorSettingsAsked()
 
bool isRestartRequired()
Definition: PreferencesDialog.hpp:238
 
bool isWaresWatchingChanged() const
Definition: PreferencesDialog.hpp:232
 
PreferencesDialog(QWidget *Parent, DisplayMode Mode=DisplayMode::FULL)
 
DisplayMode
Definition: PreferencesDialog.hpp:74
 
virtual ~PreferencesDialog()
 
#define OPENFLUID_API
Definition: dllexport.hpp:86
 
Definition: AboutDialog.hpp:51
 
Definition: ApplicationException.hpp:47