Version: 6.3.1

src/Plot2d/Plot2d_SetupCurveDlg.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_SetupCurveDlg.h
00024 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
00025 //
00026 #ifndef PLOT2D_SETUPCURVEDLG_H
00027 #define PLOT2D_SETUPCURVEDLG_H
00028 
00029 #include "Plot2d.h"
00030 
00031 #include <QDialog>
00032 
00033 class QPushButton;
00034 class QComboBox;
00035 class QSpinBox;
00036 class QLabel;
00037 class QtxColorButton;
00038 
00039 class PLOT2D_EXPORT Plot2d_SetupCurveDlg : public QDialog
00040 { 
00041   Q_OBJECT
00042 
00043 public:
00044   Plot2d_SetupCurveDlg( QWidget* = 0 );
00045   ~Plot2d_SetupCurveDlg();
00046 
00047 public:
00048   void               setLine( Plot2d::LineType, const int );
00049   Plot2d::LineType   getLine() const;
00050   int                getLineWidth() const;
00051 
00052   void               setMarker( Plot2d::MarkerType );
00053   Plot2d::MarkerType getMarker() const ;
00054 
00055   void               setColor( const QColor& );
00056   QColor             getColor() const;
00057 
00058 private:
00059   QPixmap            lineIcon( Plot2d::LineType ) const;
00060   QPixmap            markerIcon( Plot2d::MarkerType ) const;
00061 
00062 private slots:
00063   void               updatePreview();
00064 
00065 private:
00066   QPushButton*       myOkBtn;
00067   QPushButton*       myCancelBtn;
00068   QComboBox*         myLineCombo;
00069   QSpinBox*          myLineSpin;
00070   QComboBox*         myMarkerCombo;
00071   QtxColorButton*    myColorBtn;
00072   QLabel*            myPreview;
00073 };
00074 
00075 #endif // PLOT2D_SETUPCURVEDLG_H
00076 
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