Salome HOME
untabify
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_MaterialPropertiesDlg.h
index 1e2a7c6f77bcbb6269e1785070f4da65170e6e3a..2885d15830a457cfb420817ad8f073a6d4be6946 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013  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
@@ -45,7 +45,7 @@ class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_MaterialPropertiesDlg : public QtxDialog
   enum { TypeRole = Qt::UserRole + 123, NameRole  };
 
 public:
-  GEOMToolsGUI_MaterialPropertiesDlg( QWidget* = 0 );
+  GEOMToolsGUI_MaterialPropertiesDlg(  QWidget* = 0 , bool  = true, bool  = false,const int  = Standard  );
   ~GEOMToolsGUI_MaterialPropertiesDlg();  
 
   void                  accept();
@@ -57,8 +57,8 @@ private:
   void                  toModel( Material_Model& ) const;
   void                  fromModel( const Material_Model& );
   QString               findUniqueName( const QString&,
-                                       QListWidgetItem* = 0,
-                                       bool = false );
+                                        QListWidgetItem* = 0,
+                                        bool = false );
 
 signals:
   void                  changed();
@@ -72,26 +72,33 @@ private slots:
   void                  onAddMaterial();
   void                  onApply();
   void                  onHelp();
+  void                  SetEditCurrentArgument();
+  void                  SelectionIntoArgument();
 
 private:
   typedef struct
   {
+    QCheckBox*        enabled;
     QLabel*           label;
     QtxColorButton*   color;
-    QtxDoubleSpinBox* coef;
-    QCheckBox*        enabled;
+    QtxDoubleSpinBox* front_coef;
+    QtxDoubleSpinBox* back_coef;
   } Reflection;
 
   GEOMToolsGUI_MaterialList* myMaterials;
   QCheckBox*                 myPhysical;
   QList<Reflection>          myReflection;
-  QtxDoubleSpinBox*          myShininess;
+  QtxDoubleSpinBox*          myFrontShininess;  
+  QtxDoubleSpinBox*          myBackShininess;
   QLabel*                    myColorLab;
   QtxColorButton*            myColor;
   QPushButton*               myAddButton;
   QPushButton*               myDelButton;
   Material_ResourceMgr       myResourceMgr;
   Material_Model             myCurrentModel;
+  bool                       myShowSelWidget;
+  QLineEdit*                 myLineEditCurArg;
+  QPushButton*               myPushBtn;
 };
 
 class GEOMToolsGUI_MaterialList : public QListWidget