Version: 6.3.1

src/Plot2d/Plot2d_SetupViewDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File   : Plot2d_SetupViewDlg.cxx
00024 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
00025 //
00026 #ifndef PLOT2D_SETUPVIEWDLG_H
00027 #define PLOT2D_SETUPVIEWDLG_H
00028 
00029 #include "Plot2d.h"
00030 
00031 #include <QDialog>
00032 
00033 class QSpinBox;
00034 class QCheckBox;
00035 class QLineEdit;
00036 class QComboBox;
00037 class QPushButton;
00038 class QtxColorButton;
00039 
00040 class PLOT2D_EXPORT Plot2d_SetupViewDlg : public QDialog
00041 { 
00042   Q_OBJECT
00043 
00044 public:
00045   Plot2d_SetupViewDlg( QWidget* = 0, bool = false, bool = false );
00046   ~Plot2d_SetupViewDlg();
00047 
00048   void            setMainTitle( bool, const QString& = QString() );
00049   bool            isMainTitleEnabled();
00050   QString         getMainTitle();
00051 
00052   void            setXTitle( bool, const QString& = QString() );
00053   bool            isXTitleEnabled();
00054   QString         getXTitle();
00055 
00056   void            setYTitle( bool, const QString& = QString() );
00057   void            setY2Title( bool, const QString& = QString() );
00058   bool            isYTitleEnabled();
00059   bool            isY2TitleEnabled();
00060   QString         getYTitle();
00061   QString         getY2Title();
00062 
00063   void            setCurveType( const int );
00064   int             getCurveType();
00065 
00066   void            setLegend( bool, int );
00067   bool            isLegendEnabled();
00068   int             getLegendPos();
00069   
00070   void            setMarkerSize( const int );
00071   int             getMarkerSize();
00072 
00073   void            setBackgroundColor( const QColor& );
00074   QColor          getBackgroundColor();
00075 
00076   void            setMajorGrid( bool, const int, bool, const int, bool, const int );
00077   void            getMajorGrid( bool&, int&, bool&, int&, bool&, int& );
00078   void            setMinorGrid( bool, const int, bool, const int, bool, const int );
00079   void            getMinorGrid( bool&, int&, bool&, int&, bool&, int& );
00080 
00081   void            setScaleMode( const int, const int );
00082   int             getXScaleMode();
00083   int             getYScaleMode();
00084 
00085   bool            isSetAsDefault();
00086 
00087 protected slots:
00088   void            onMainTitleChecked();
00089   void            onXTitleChecked();
00090   void            onYTitleChecked();
00091   void            onY2TitleChecked();
00092   void            onLegendChecked();
00093   void            onXGridMajorChecked();
00094   void            onYGridMajorChecked();
00095   void            onY2GridMajorChecked();
00096   void            onXGridMinorChecked();
00097   void            onYGridMinorChecked();
00098   void            onY2GridMinorChecked();
00099   void            onHelp();
00100 
00101 private:
00102   QCheckBox*      myTitleCheck;
00103   QLineEdit*      myTitleEdit;
00104   QCheckBox*      myTitleXCheck;
00105   QLineEdit*      myTitleXEdit;
00106   QCheckBox*      myTitleYCheck;
00107   QCheckBox*      myTitleY2Check;
00108   QLineEdit*      myTitleYEdit;
00109   QLineEdit*      myTitleY2Edit;
00110   QtxColorButton* myBackgroundBtn;
00111   QCheckBox*      myXGridCheck;
00112   QSpinBox*       myXGridSpin;
00113   QCheckBox*      myYGridCheck;
00114   QCheckBox*      myY2GridCheck;
00115   QSpinBox*       myYGridSpin;
00116   QSpinBox*       myY2GridSpin;
00117   QCheckBox*      myXMinGridCheck;
00118   QSpinBox*       myXMinGridSpin;
00119   QCheckBox*      myYMinGridCheck;
00120   QCheckBox*      myY2MinGridCheck;
00121   QSpinBox*       myYMinGridSpin;
00122   QSpinBox*       myY2MinGridSpin;
00123   QComboBox*      myCurveCombo;
00124   QCheckBox*      myLegendCheck;
00125   QComboBox*      myLegendCombo;
00126   QSpinBox*       myMarkerSpin;
00127   QComboBox*      myXModeCombo;
00128   QComboBox*      myYModeCombo;
00129   QComboBox*      myY2ModeCombo;
00130   QCheckBox*      myDefCheck;
00131   QPushButton*    myOkBtn;
00132   QPushButton*    myCancelBtn;
00133   QPushButton*    myHelpBtn;
00134   bool            mySecondAxisY;
00135 };
00136 
00137 #endif // PLOT2D_SETUPVIEWDLG_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS