-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019 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
Q_OBJECT
public:
- StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0,
- TopAbs_ShapeEnum aSubShType = TopAbs_EDGE );
+ StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0,
+ TopAbs_ShapeEnum subShType = TopAbs_EDGE,
+ const bool toShowList = true,
+ const bool toShowSelectBtn = false);
~StdMeshersGUI_SubShapeSelectorWdg();
SMESH::long_array_var GetListOfIDs();
bool SetListOfIDs( SMESH::long_array_var );
+ const QList<int>& GetSelectedIDs() const { return mySelectedIDs; }
void SetGeomShapeEntry( const QString& theEntry,
const QString& theMainShapeEntry);
- //QString GetGeomShapeEntry() { return myEntry; }
-
- // void SetMainShapeEntry( const QString& theEntry );
const char* GetMainShapeEntry();
TopoDS_Shape GetGeomShape() { return myGeomShape; }
TopoDS_Shape GetMainShape() { return myMainShape; }
- // QList<int> GetCorrectedListOfIDs( bool fromSubshapeToMainshape,
- // bool* isOK=0);
-
static GEOM::GEOM_Object_var GetGeomObjectByEntry( const QString& );
static TopoDS_Shape GetTopoDSByEntry( const QString& );
SMESH_PreviewActorsCollection* GetActorCollection() { return myPreviewActor; }
void ClearSelected();
+public slots:
+ void ActivateSelection( bool );
+
signals:
- void selectionChanged();
+ void selectionChanged(); // in the list
+ void shapeSelected(); // globally
private:
void updateState();
vtkRenderer* myRenderer;
QListWidget* myListWidget;
+ QPushButton* myActivateButton;
QPushButton* myAddButton;
QPushButton* myRemoveButton;
QLabel* myInfoLabel;
QString myParamValue;
bool myIsShown;
- bool myIsNotCorrected;
// for manage possible size of myListOfIDs
int myMaxSize;