Salome HOME
Copyright update 2022
[modules/gui.git] / src / Plot2d / Plot2d_SetupViewDlg.h
old mode 100755 (executable)
new mode 100644 (file)
index d04623a..0a9fb67
-// Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
-// 
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Lesser General Public License for more details.
 //
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
+// File   : Plot2d_SetupViewDlg.cxx
+// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+//
 #ifndef PLOT2D_SETUPVIEWDLG_H
 #define PLOT2D_SETUPVIEWDLG_H
 
 #include "Plot2d.h"
-#include <qdialog.h>
+
+#include <QDialog>
 
 class QSpinBox;
 class QCheckBox;
 class QLineEdit;
 class QComboBox;
-class QToolButton;
 class QPushButton;
+class QtxColorButton;
+class QtxFontEdit;
 
 class PLOT2D_EXPORT Plot2d_SetupViewDlg : public QDialog
 { 
   Q_OBJECT
 
 public:
-  Plot2d_SetupViewDlg( QWidget* parent = 0, bool showDefCheck = false, bool secondAxisY = false );
+  Plot2d_SetupViewDlg( QWidget* = 0, bool = false, bool = false );
   ~Plot2d_SetupViewDlg();
 
-  void    setMainTitle( bool enable, const QString& title = QString::null );
-  bool    isMainTitleEnabled();
-  QString getMainTitle();
-  void    setXTitle( bool enable, const QString& title = QString::null );
-  bool    isXTitleEnabled();
-  QString getXTitle();
-  void    setYTitle( bool enable, const QString& title = QString::null );
-  void    setY2Title( bool enable, const QString& title = QString::null );
-  bool    isYTitleEnabled();
-  bool    isY2TitleEnabled();
-  QString getYTitle();
-  QString getY2Title();
-  void    setCurveType( const int type );
-  int     getCurveType();
-  void    setLegend( bool enable, int pos );
-  bool    isLegendEnabled();
-  int     getLegendPos();
-  void    setMarkerSize( const int size );
-  int     getMarkerSize();
-  void    setBackgroundColor( const QColor& color );
-  QColor  getBackgroundColor();
-  void    setMajorGrid( bool enableX, const int xdiv, bool enableY, const int divY,
-                        bool enableY2, const int divY2 );
-  void    getMajorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY,
-                        bool& enableY2, int& divY2);
-  void    setMinorGrid( bool enableX, const int xdiv, bool enableY, const int divY,
-                        bool enableY2, const int divY2);
-  void    getMinorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY,
-                        bool& enableY2, int& divY2);
-  void    setScaleMode( const int xMode, const int yMode );
-  int     getXScaleMode();
-  int     getYScaleMode();
-  bool    isSetAsDefault();
+  void            setMainTitle( bool, const QString& = QString() );
+  bool            isMainTitleEnabled();
+  QString         getMainTitle();
+
+  void            setXTitle( bool, const QString& = QString() );
+  bool            isXTitleEnabled();
+  QString         getXTitle();
+
+  void            setYTitle( bool, const QString& = QString() );
+  void            setY2Title( bool, const QString& = QString() );
+  bool            isYTitleEnabled();
+  bool            isY2TitleEnabled();
+  QString         getYTitle();
+  QString         getY2Title();
+
+  void            setCurveType( const int );
+  int             getCurveType();
+
+  bool            getLMaxNormMode();
+  void            setLMaxNormMode(const bool);
+  bool            getLMinNormMode();
+  void            setLMinNormMode(const bool);
+  bool            getRMaxNormMode();
+  void            setRMaxNormMode(const bool);
+  bool            getRMinNormMode();
+  void            setRMinNormMode(const bool);
+
+  void            setLegend( bool, int, int, const QFont&, const QColor&, const QColor& );
+  bool            isLegendEnabled();
+  int             getLegendPos();
+  int             getLegendSymbolType();
+  QFont           getLegendFont();
+  QColor          getLegendColor();
+  QColor          getSelectedLegendColor();
+  
+  void            setMarkerSize( const int );
+  int             getMarkerSize();
+
+  void            setBackgroundColor( const QColor& );
+  QColor          getBackgroundColor();
+
+  void            setSelectionColor( const QColor& );
+  QColor          getSelectionColor();
+
+  void            setMajorGrid( bool, const int, bool, const int, bool, const int );
+  void            getMajorGrid( bool&, int&, bool&, int&, bool&, int& );
+  void            setMinorGrid( bool, const int, bool, const int, bool, const int );
+  void            getMinorGrid( bool&, int&, bool&, int&, bool&, int& );
+
+  void            setScaleMode( const int, const int );
+  int             getXScaleMode();
+  int             getYScaleMode();
+
+  void            setDeviationMarkerLw( const int);
+  int             getDeviationMarkerLw() const;
+
+  void            setDeviationMarkerTs( const int);
+  int             getDeviationMarkerTs() const;
+
+  void            setDeviationMarkerCl( const QColor&);
+  QColor          getDeviationMarkerCl() const;
+
+  bool            isSetAsDefault();
 
 protected slots:
-  void   onMainTitleChecked();
-  void   onXTitleChecked();
-  void   onYTitleChecked();
-  void   onY2TitleChecked();
-  void   onBackgroundClicked();
-  void   onLegendChecked();
-  void   onXGridMajorChecked();
-  void   onYGridMajorChecked();
-  void   onY2GridMajorChecked();
-  void   onXGridMinorChecked();
-  void   onYGridMinorChecked();
-  void   onY2GridMinorChecked();
-  void   onHelp();
+  void            onMainTitleChecked();
+  void            onXTitleChecked();
+  void            onYTitleChecked();
+  void            onY2TitleChecked();
+  void            onLegendChecked();
+  void            onXGridMajorChecked();
+  void            onYGridMajorChecked();
+  void            onY2GridMajorChecked();
+  void            onXGridMinorChecked();
+  void            onYGridMinorChecked();
+  void            onY2GridMinorChecked();
+  void            onNormLMaxChecked();
+  void            onNormLMinChecked();
+  void            onNormRMaxChecked();
+  void            onNormRMinChecked();
+  void            onHelp();
 
 private:
-  QCheckBox*     myTitleCheck;
-  QLineEdit*     myTitleEdit;
-  QCheckBox*     myTitleXCheck;
-  QLineEdit*     myTitleXEdit;
-  QCheckBox*     myTitleYCheck;
-  QCheckBox*     myTitleY2Check;
-  QLineEdit*     myTitleYEdit;
-  QLineEdit*     myTitleY2Edit;
-  QToolButton*   myBackgroundBtn;
-  QCheckBox*     myXGridCheck;
-  QSpinBox*      myXGridSpin;
-  QCheckBox*     myYGridCheck;
-  QCheckBox*     myY2GridCheck;
-  QSpinBox*      myYGridSpin;
-  QSpinBox*      myY2GridSpin;
-  QCheckBox*     myXMinGridCheck;
-  QSpinBox*      myXMinGridSpin;
-  QCheckBox*     myYMinGridCheck;
-  QCheckBox*     myY2MinGridCheck;
-  QSpinBox*      myYMinGridSpin;
-  QSpinBox*      myY2MinGridSpin;
-  QComboBox*     myCurveCombo;
-  QCheckBox*     myLegendCheck;
-  QComboBox*     myLegendCombo;
-  QSpinBox*      myMarkerSpin;
-  QComboBox*     myXModeCombo;
-  QComboBox*     myYModeCombo;
-  QComboBox*     myY2ModeCombo;
-  QCheckBox*     myDefCheck;
-
-  QPushButton*   myOkBtn;
-  QPushButton*   myCancelBtn;
-  QPushButton*   myHelpBtn;
-  bool           mySecondAxisY;
+  QCheckBox*      myTitleCheck;
+  QLineEdit*      myTitleEdit;
+  QCheckBox*      myTitleXCheck;
+  QLineEdit*      myTitleXEdit;
+  QCheckBox*      myTitleYCheck;
+  QCheckBox*      myTitleY2Check;
+  QLineEdit*      myTitleYEdit;
+  QLineEdit*      myTitleY2Edit;
+  QtxColorButton* myBackgroundBtn;
+  QtxColorButton* mySelectionBtn;
+  QtxColorButton* myLegendFontColor;
+  QtxColorButton* mySelectedLegendFontColor;
+  QtxFontEdit*    myLegendFont;
+  QCheckBox*      myXGridCheck;
+  QSpinBox*       myXGridSpin;
+  QCheckBox*      myYGridCheck;
+  QCheckBox*      myY2GridCheck;
+  QSpinBox*       myYGridSpin;
+  QSpinBox*       myY2GridSpin;
+  QCheckBox*      myXMinGridCheck;
+  QSpinBox*       myXMinGridSpin;
+  QCheckBox*      myYMinGridCheck;
+  QCheckBox*      myY2MinGridCheck;
+  QSpinBox*       myYMinGridSpin;
+  QSpinBox*       myY2MinGridSpin;
+  QComboBox*      myCurveCombo;
+  QCheckBox*      myLegendCheck;
+  QComboBox*      myLegendCombo;
+  QComboBox*      myLegendSymbolType;
+  QSpinBox*       myMarkerSpin;
+  QComboBox*      myXModeCombo;
+  QComboBox*      myYModeCombo;
+  QCheckBox*      myNormLMaxCheck;
+  QCheckBox*      myNormLMinCheck;
+  QCheckBox*      myNormRMaxCheck;
+  QCheckBox*      myNormRMinCheck;
+  QComboBox*      myY2ModeCombo;
+  QCheckBox*      myDefCheck;
+  QPushButton*    myOkBtn;
+  QPushButton*    myCancelBtn;
+  QPushButton*    myHelpBtn;
+  QSpinBox*       myDeviationLw;
+  QSpinBox*       myDeviationTs;
+  QtxColorButton* myDeviationCl;
+  bool            mySecondAxisY;
 };
 
-#endif
+#endif // PLOT2D_SETUPVIEWDLG_H