Salome HOME
Modify the dialog of Extrusion to place the scale parameter under the checkbox allowi...
[modules/geom.git] / src / DlgRef / DlgRef.cxx
index 1ff6c6b8761ef694da1313fc43654c60159f22e5..a9aa9286b44fb2281648b82c1a489267dc4365c5 100644 (file)
@@ -1,25 +1,25 @@
-//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  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
 //
 
 // File   : DlgRef.cxx
 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
-//
+
 #include "DlgRef.h"
 
 //////////////////////////////////////////
@@ -78,6 +78,20 @@ DlgRef_1Sel1Check::~DlgRef_1Sel1Check()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_1Sel1Frame
+//////////////////////////////////////////
+
+DlgRef_1Sel1Frame::DlgRef_1Sel1Frame( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_1Sel1Frame::~DlgRef_1Sel1Frame()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_1Sel1List1Check3Btn
 //////////////////////////////////////////
@@ -176,6 +190,20 @@ DlgRef_1Sel3Spin::~DlgRef_1Sel3Spin()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_1Sel3Spin2Check1Spin
+//////////////////////////////////////////
+
+DlgRef_1Sel3Spin2Check1Spin::DlgRef_1Sel3Spin2Check1Spin( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_1Sel3Spin2Check1Spin::~DlgRef_1Sel3Spin2Check1Spin()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_1Sel3Spin1Check
 //////////////////////////////////////////
@@ -190,6 +218,20 @@ DlgRef_1Sel3Spin1Check::~DlgRef_1Sel3Spin1Check()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_1Sel4Spin2Check
+//////////////////////////////////////////
+
+DlgRef_1Sel4Spin2Check::DlgRef_1Sel4Spin2Check( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_1Sel4Spin2Check::~DlgRef_1Sel4Spin2Check()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_1Sel4Spin
 //////////////////////////////////////////
@@ -330,6 +372,20 @@ DlgRef_2Sel1Spin2Check::~DlgRef_2Sel1Spin2Check()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_2Sel1Spin3Check1Spin
+//////////////////////////////////////////
+
+DlgRef_2Sel1Spin3Check1Spin::DlgRef_2Sel1Spin3Check1Spin( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_2Sel1Spin3Check1Spin::~DlgRef_2Sel1Spin3Check1Spin()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_2Sel1Spin
 //////////////////////////////////////////
@@ -386,6 +442,20 @@ DlgRef_2Sel2Spin1Check::~DlgRef_2Sel2Spin1Check()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_2Sel2Spin3Check
+//////////////////////////////////////////
+
+DlgRef_2Sel2Spin3Check::DlgRef_2Sel2Spin3Check( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_2Sel2Spin3Check::~DlgRef_2Sel2Spin3Check()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_2Sel2Spin
 //////////////////////////////////////////
@@ -400,6 +470,34 @@ DlgRef_2Sel2Spin::~DlgRef_2Sel2Spin()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_2Sel2Spin1Push
+//////////////////////////////////////////
+
+DlgRef_2Sel2Spin1Push::DlgRef_2Sel2Spin1Push( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_2Sel2Spin1Push::~DlgRef_2Sel2Spin1Push()
+{
+}
+
+//////////////////////////////////////////
+// DlgRef_2Sel2Spin2Push
+//////////////////////////////////////////
+
+DlgRef_2Sel2Spin2Push::DlgRef_2Sel2Spin2Push( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_2Sel2Spin2Push::~DlgRef_2Sel2Spin2Push()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_2Sel3Spin2Rb
 //////////////////////////////////////////
@@ -598,6 +696,36 @@ void DlgRef_3Sel3Spin1Check::ShowRows( int fromRow, int toRow, bool toShow )
   }
 }
 
+//////////////////////////////////////////
+// DlgRef_3Sel2Check3Spin
+//////////////////////////////////////////
+
+DlgRef_3Sel2Check3Spin::DlgRef_3Sel2Check3Spin( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_3Sel2Check3Spin::~DlgRef_3Sel2Check3Spin()
+{
+}
+
+void DlgRef_3Sel2Check3Spin::ShowRows( int fromRow, int toRow, bool toShow )
+{
+  const int maxRows = 8;
+  
+  if ( toRow >= fromRow && fromRow >= 0 && toRow <= maxRows ) {
+    int c = gridLayout1->count();
+    for ( int i = 0; i < c; i++ ) {
+      QWidget* w = gridLayout1->itemAt( i )->widget();
+      int row, col, rowspan, colspan;
+      gridLayout1->getItemPosition( i, &row, &col, &rowspan, &colspan );
+      if ( w && row >= fromRow && row <= toRow )
+        w->setVisible( toShow );
+    }
+  }
+}
+
 //////////////////////////////////////////
 // DlgRef_3Sel3Spin2Check
 //////////////////////////////////////////
@@ -684,6 +812,20 @@ DlgRef_3Spin::~DlgRef_3Spin()
 {
 }
 
+//////////////////////////////////////////
+// DlgRef_4Spin
+//////////////////////////////////////////
+
+DlgRef_4Spin::DlgRef_4Spin( QWidget* parent, Qt::WindowFlags f )
+: QWidget( parent, f )
+{
+  setupUi( this );
+}
+
+DlgRef_4Spin::~DlgRef_4Spin()
+{
+}
+
 //////////////////////////////////////////
 // DlgRef_4Sel1List1Check
 //////////////////////////////////////////