-// 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
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();
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();
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