X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFILTERGUI%2FSelectParams.h;h=e23ace2715d6ca42a92635087a1db5b74ef69489;hb=HEAD;hp=6ac7ba529b79e3b6ea55242b7bc036f3486d32f7;hpb=725e535fec1485323b3fa729fc78a8ce95eae5b6;p=modules%2Ffilter.git diff --git a/src/FILTERGUI/SelectParams.h b/src/FILTERGUI/SelectParams.h index 6ac7ba5..e23ace2 100644 --- a/src/FILTERGUI/SelectParams.h +++ b/src/FILTERGUI/SelectParams.h @@ -1,28 +1,25 @@ -// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// Copyright (C) 2007-2008 CEA/DEN, EDF R&D // -// 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 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 -// Lesser General Public License for more details. +// 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 -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // - #ifndef SELECTPARAMS_HEADER #define SELECTPARAMS_HEADER #include "utilities.h" -#include "MEDMEM_Med.hxx" #include "SelectField.h" #include @@ -32,7 +29,6 @@ #include #include -/* #include CORBA_CLIENT_HEADER(MED_Gen) */ class QLineEdit; class QLabel; @@ -51,7 +47,7 @@ public: SelectParams(FilterGUI*,SelectField *sel, const char* name = 0, bool modal = FALSE, - WFlags fl = 0); + WFlags fl = 0) throw(SALOME_Exception); virtual ~SelectParams(); protected: @@ -65,6 +61,8 @@ protected: virtual void enableWidgets(); protected slots: + virtual void gradSelected(); + virtual void enterSHisto(); virtual void updateHisto(); virtual void scaleSelected(); virtual void nbThreshSelected(); @@ -73,9 +71,9 @@ protected slots: virtual void enterSThresh(); virtual void moveThresh(const QMouseEvent &e); virtual void getOutFileName(); - virtual void process(); - -private: + virtual void process() throw(SALOME_Exception); + virtual void ClickOnCancel(); + virtual void ClickOnHelp(); private: int _size; @@ -85,21 +83,20 @@ private: double *_x, *_y; double _xft[100], _yft[100], _xst[100], _yst[100]; - QLineEdit *_myFThresh, *_myExpr, *_myLEST, *_myLEFT, *_myOFN; - QButtonGroup *_myFunc, *_myFScale, *_myNbThresh, *_myArea, *_myVThresh, *_myOutFile; - QGridLayout *_myGroupLayout, *_myGroupLayout2, *_lay; - QRadioButton *_myCutNeg, *_myInt, *_myExt, *_myOneThresh, *_myTwoThresh, *_myFieldB, *_myLinear, *_myLog; - QPushButton *_myHisto, *_myOFB, *_myProc; - QGroupBox* _GroupC1, *_GroupC2; + QLineEdit *_myLESH, *_myFThresh, *_myExpr, *_myLEST, *_myLEFT, *_myOFN; + QButtonGroup *_myHSize, *_myFunc, *_myFScale, *_myNbThresh, *_myArea, *_myVThresh, *_myOutFile; + QGridLayout *_myGroupLayout, *_myGroupLayout2, *_lay, *_GroupButtonsLayout; + QRadioButton *_myFieldB, *_myGradB, *_myInt, *_myExt, *_myOneThresh, *_myTwoThresh, *_myLinear, *_myLog; + QPushButton *_myHisto, *_myOFB, *_myProc, * _buttonCancel, * _buttonHelp; + QGroupBox* _GroupC1, *_GroupC2, *_GroupButtons; QwtPlot *_myPlot; - QLabel *_myLFT, *_myLST, *_myLRR; + QLabel *_myLSH, *_myLFT, *_myLST, *_myLRR; QwtDiMap _qmap; QFrame *_fr; QString _inputFile, _inputMesh, _inputField; - FIELD * _myDField; - FIELD * _myIField; int _inputTS; - + SelectField *_sel; + SALOME_FILTER::FILTER_Gen_ptr _filter; }; #endif