40 #ifndef __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 
   41 #define __OPENFLUID_UICOMMON_PREFERENCESDIALOG_HPP__ 
   47 #include <QToolButton> 
   52   class PreferencesDialog;
 
   56 class QTreeWidgetItem;
 
   57 class WaresSearchPathsWidget;
 
   60 namespace openfluid { 
namespace ui { 
namespace common {
 
   77     enum PagesIndexes { ENVIRONMENT_PAGE = 0,
 
   87     void changePage(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
 
   89     void updateLanguage(
const QString& Lang);
 
   91     void clearRecentsList();
 
   93     void updateRecentsMax(
int Val);
 
   95     void confirmItemRemoval(
bool Confirm);
 
   97     void confirmParamRemoval(
bool Confirm);
 
   99     void confirmUnitsRemoval(
bool Confirm);
 
  101     void confirmConnectionsRemoval(
bool Confirm);
 
  103     void confirmAttributesRemoval(
bool Confirm);
 
  105     void enableWatchers(
bool Active);
 
  107     void enableAutoSaveBeforeRun(
bool AutoSave);
 
  109     void updateDeltaT(
int Val);
 
  111     void updatePeriodBegin(
const QDateTime& DT);
 
  113     void updatePeriodEnd(
const QDateTime& DT);
 
  115     void enableSyntaxHighlighting(
bool Enable);
 
  117     void changeSyntaxElementDecoration(
int ElementRow);
 
  119     void enableCurrentLineHighlighting(
bool Enable);
 
  121     void changeCurrentLineColor();
 
  123     void changeCurrentFont(
const QFont& Font);
 
  125     void enableLineWrapping(
bool Enable);
 
  127     void changeIndentSpaceNumber(
int SpaceNb);
 
  129     void changeSyntaxElementColor(
int ElementRow);
 
  131     void addMarketPlace();
 
  133     void editMarketPlace();
 
  135     void removeMarketPlace();
 
  137     void processSimUserPathsUpdate();
 
  139     void processObsUserPathsUpdate();
 
  141     void processBextUserPathsUpdate();
 
  143     void processWorkspacesPathsUpdate();
 
  145     void updateDevConfigPATH();
 
  147     void updateDevConfigGenerator();
 
  149     void updateDevConfigOptions();
 
  151     void updateDevBuildPATH();
 
  153     void updateDevShowPATH(
bool Enabled);
 
  155     void detectQtDevToolsMinGW();
 
  157     void applyTextEditorSettings();
 
  159     void restoreDefaultsTextEditorSettings();
 
  163     Ui::PreferencesDialog *ui;
 
  165     bool m_RecentsChanged;
 
  167     bool m_SimPathsChanged;
 
  169     bool m_ObsPathsChanged;
 
  171     bool m_WaresWatchingChanged;
 
  173     bool m_TextEditorSettingsChanged;
 
  175     int m_OriginalLangIndex;
 
  179     QStringList m_Formats {
"bold", 
"italic", 
"underline", 
"strike-through"};
 
  181     void initialize(
const QStringList& ExtsPaths);
 
  183     void updateMarketplacesList();
 
  185     void intializeTextEditorSettings();
 
  187     void updateSyntaxElementLabel(QLabel* Label, 
const QStringList& Decorations, 
const QString& ColorName);
 
  189     void updateSyntaxElementColorButton(QToolButton* Button, 
const QString& ColorName);
 
  193     PreferencesDialog(QWidget *Parent, DisplayMode Mode = MODE_FULL, 
const QStringList& ExtsPaths = QStringList());
 
  195     virtual ~PreferencesDialog();
 
  198     { 
return m_RecentsChanged; }
 
  201     { 
return m_SimPathsChanged; }
 
  204     { 
return m_ObsPathsChanged; }
 
  207     { 
return m_WaresWatchingChanged; }
 
  210     { 
return m_TextEditorSettingsChanged; }
 
  214     void applyTextEditorSettingsAsked();
 
bool isSimPathsChanged() const 
Definition: PreferencesDialog.hpp:200
bool isRecentsChanged() const 
Definition: PreferencesDialog.hpp:197
Definition: PreferencesDialog.hpp:70
Definition: OpenFLUIDDialog.hpp:50
DisplayMode
Definition: PreferencesDialog.hpp:69
Definition: PreferencesDialog.hpp:63
bool isObsPathsChanged() const 
Definition: PreferencesDialog.hpp:203
bool isWaresWatchingChanged() const 
Definition: PreferencesDialog.hpp:206
Definition: PreferencesDialog.hpp:69
#define OPENFLUID_API
Definition: dllexport.hpp:87
bool isTextEditorSettingsChanged() const 
Definition: PreferencesDialog.hpp:209