From: jfa Date: Thu, 9 Feb 2006 13:26:48 +0000 (+0000) Subject: Is not used X-Git-Tag: mergeto_trunk_13Mar06~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d353f9014b50311fe3c23abef371cd4877d5b13b;p=modules%2Fvisu.git Is not used --- diff --git a/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx b/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx deleted file mode 100644 index 48ec2dcf..00000000 --- a/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx +++ /dev/null @@ -1,161 +0,0 @@ -// VISU VISUGUI : GUI of VISU component -// -// Copyright (C) 2003 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 -// 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 -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : VisuGUI_SweepPrefDlg.cxx -// Author : Laurent CORNABE & Hubert ROLLAND -// Module : VISU -// $Header$ - -using namespace std; -#include "VisuGUI_SweepPrefDlg.h" -#include - -/*! - Constructor -*/ -VisuGUI_SweepPrefDlg::VisuGUI_SweepPrefDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) -{ - if (!name) - setName("VisuGUI_SweepPrefDlg"); - setCaption(tr("DLG_TITLE")); - setSizeGripEnabled(TRUE); - - QVBoxLayout* TopLayout = new QVBoxLayout( this ); - TopLayout->setSpacing( 6 ); - TopLayout->setMargin( 11 ); - - TopGroup = new QGroupBox( this, "TopGroup" ); - TopGroup->setColumnLayout(0, Qt::Vertical ); - TopGroup->layout()->setSpacing( 0 ); - TopGroup->layout()->setMargin( 0 ); - QGridLayout* TopGroupLayout = new QGridLayout( TopGroup->layout() ); - TopGroupLayout->setAlignment( Qt::AlignTop ); - TopGroupLayout->setSpacing( 6 ); - TopGroupLayout->setMargin( 11 ); - - TimeLabel = new QLabel (tr("LBL_TIME_STEP"), TopGroup, "TimeLabel"); - TimeSpin = new QtxDblSpinBox( 0.1, 1000.0, 0.1, TopGroup ); - TimeSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - TimeSpin->setMinimumSize( 70, 0 ); - TimeSpin->setValue( 0.2 ); - - CyclesLabel = new QLabel (tr("LBL_NB_CYCLES"), TopGroup, "CyclesLabel"); - CyclesSpin = new QSpinBox( 1, 100, 1, TopGroup, "CyclesSpin" ); - CyclesSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - CyclesSpin->setMinimumSize( 70, 0 ); - CyclesSpin->setValue( 1 ); - - StepsLabel = new QLabel (tr("LBL_NB_STEPS"), TopGroup, "StepsLabel"); - StepsSpin = new QSpinBox( 1, 200, 1, TopGroup, "StepsSpin" ); - StepsSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - StepsSpin->setMinimumSize( 70, 0 ); - StepsSpin->setValue( 20 ); - - TopGroupLayout->addWidget( TimeLabel, 0, 0 ); - TopGroupLayout->addWidget( TimeSpin, 0, 1 ); - TopGroupLayout->addWidget( CyclesLabel, 1, 0 ); - TopGroupLayout->addWidget( CyclesSpin, 1, 1 ); - TopGroupLayout->addWidget( StepsLabel, 2, 0 ); - TopGroupLayout->addWidget( StepsSpin, 2, 1 ); - - GroupButtons = new QGroupBox( this, "GroupButtons" ); - GroupButtons->setColumnLayout(0, Qt::Vertical ); - GroupButtons->layout()->setSpacing( 0 ); - GroupButtons->layout()->setMargin( 0 ); - QGridLayout* GroupButtonsLayout = new QGridLayout( GroupButtons->layout() ); - GroupButtonsLayout->setAlignment( Qt::AlignTop ); - GroupButtonsLayout->setSpacing( 6 ); - GroupButtonsLayout->setMargin( 11 ); - - buttonOk = new QPushButton( tr( "&OK" ), GroupButtons, "buttonOk" ); - buttonOk->setAutoDefault( TRUE ); - buttonOk->setDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonOk, 0, 0 ); - GroupButtonsLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 ); - buttonCancel = new QPushButton( tr( "&Cancel" ) , GroupButtons, "buttonCancel" ); - buttonCancel->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonCancel, 0, 2 ); - - TopLayout->addWidget( TopGroup, 0, 0); - TopLayout->addWidget( GroupButtons, 1, 0 ); - - // signals and slots connections =========================================== - connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); -} - -/*! - Destructor -*/ -VisuGUI_SweepPrefDlg::~VisuGUI_SweepPrefDlg() -{ -} - -/*! - Sets Time step -*/ -void VisuGUI_SweepPrefDlg::setTimeStep( double step ) -{ - TimeSpin->setValue( step ); -} - -/*! - Gets Time step -*/ -double VisuGUI_SweepPrefDlg::getTimeStep() -{ - return TimeSpin->value(); -} - -/*! - Sets Nb of cycles -*/ -void VisuGUI_SweepPrefDlg::setNbCycles( int nbc ) -{ - CyclesSpin->setValue( nbc ); -} - -/*! - Gets Nb of cycles -*/ -int VisuGUI_SweepPrefDlg::getNbCycles() -{ - return CyclesSpin->value(); -} - -/*! - Sets Nb of Steps -*/ -void VisuGUI_SweepPrefDlg::setNbSteps( int nbs ) -{ - StepsSpin->setValue( nbs ); -} - -/*! - Gets Nb of Steps -*/ -int VisuGUI_SweepPrefDlg::getNbSteps() -{ - return StepsSpin->value(); -} diff --git a/src/VISUGUI/VisuGUI_SweepPrefDlg.h b/src/VISUGUI/VisuGUI_SweepPrefDlg.h deleted file mode 100644 index 6179c111..00000000 --- a/src/VISUGUI/VisuGUI_SweepPrefDlg.h +++ /dev/null @@ -1,67 +0,0 @@ -// VISU VISUGUI : GUI of VISU component -// -// Copyright (C) 2003 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 -// 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 -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : VisuGUI_SweepPrefDlg.h -// Author : Laurent CORNABE & Hubert ROLLAND -// Module : VISU -// $Header$ - -#ifndef VISUGUI_SWEEPPREFDLG_H -#define VISUGUI_SWEEPPREFDLG_H - -#include -#include -#include -#include -#include -#include "QtxDblSpinBox.h" - -class VisuGUI_SweepPrefDlg : public QDialog -{ - Q_OBJECT - -public: - VisuGUI_SweepPrefDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); - ~VisuGUI_SweepPrefDlg(); - - void setTimeStep( double step ); - double getTimeStep(); - void setNbCycles( int nbc ); - int getNbCycles(); - void setNbSteps ( int nbs ); - int getNbSteps (); - -private: - QGroupBox* TopGroup; - QLabel* TimeLabel; - QtxDblSpinBox* TimeSpin; - QLabel* CyclesLabel; - QSpinBox* CyclesSpin; - QLabel* StepsLabel; - QSpinBox* StepsSpin; - QGroupBox* GroupButtons; - QPushButton* buttonOk; - QPushButton* buttonCancel; -}; - -#endif // VISUGUI_SWEEPPREFDLG_H