Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update of CheckDone
[modules/smesh.git]
/
src
/
StdMeshersGUI
/
StdMeshersGUI_ObjectReferenceParamWdg.h
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h
b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h
index 02f4f36e097daf2ca1370f92ad7cfcd4042041da..192ad51d350b0960f0f7e46a26adb27276a33dcb 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h
+++ b/
src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
14 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
24 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-53,11
+53,11
@@
class STDMESHERSGUI_EXPORT StdMeshersGUI_ObjectReferenceParamWdg : public QWidge
{
Q_OBJECT
{
Q_OBJECT
-public:
- StdMeshersGUI_ObjectReferenceParamWdg( SUIT_SelectionFilter* filter,
+
public:
+ StdMeshersGUI_ObjectReferenceParamWdg( SUIT_SelectionFilter* filter,
QWidget* parent,
QWidget* parent,
- bool multiSelection=false
,
-
bool stretch=true
);
+ bool multiSelection=false
+
/* ,bool stretch=true*/
);
StdMeshersGUI_ObjectReferenceParamWdg( SMESH::MeshObjectType objType,
QWidget* parent,
bool multiSelection=false);
StdMeshersGUI_ObjectReferenceParamWdg( SMESH::MeshObjectType objType,
QWidget* parent,
bool multiSelection=false);
@@
-67,75
+67,76
@@
public:
void SetObjects(SMESH::string_array_var& objEntries);
void SetObjects(SMESH::string_array_var& objEntries);
- template<class TInterface>
- typename TInterface::_var_type GetObject(
unsigned
i=0) const {
+ template<class TInterface>
+ typename TInterface::_var_type GetObject(
size_t
i=0) const {
if ( IsObjectSelected(i) ) return TInterface::_narrow(myObjects[i]);
return TInterface::_nil();
}
if ( IsObjectSelected(i) ) return TInterface::_narrow(myObjects[i]);
return TInterface::_nil();
}
-
in
t NbObjects() const { return myObjects.size(); }
+
size_
t NbObjects() const { return myObjects.size(); }
+ // Return object entries
QString GetValue() const { return myParamValue; }
QString GetValue() const { return myParamValue; }
- bool IsObjectSelected(
unsigned
i=0) const
+ bool IsObjectSelected(
size_t
i=0) const
{ return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
/*!
* \brief Get the selection status
{ return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); }
/*!
* \brief Get the selection status
-
*
-
* Useful to know which Object Reference param widget is activated
-
* to be able to activate the next one when the content of this
-
* one has been modified
+ *
+ * Useful to know which Object Reference param widget is activated
+ * to be able to activate the next one when the content of this
+ * one has been modified
*/
bool IsSelectionActivated() const { return mySelectionActivated; }
void AvoidSimultaneousSelection( StdMeshersGUI_ObjectReferenceParamWdg* other);
*/
bool IsSelectionActivated() const { return mySelectionActivated; }
void AvoidSimultaneousSelection( StdMeshersGUI_ObjectReferenceParamWdg* other);
-
+
void SetDefaultText(QString defaultText="", QString styleSheet="");
void SetDefaultText(QString defaultText="", QString styleSheet="");
-public slots:
+
public slots:
/*!
* \brief Activates selection (if not yet done), emits selectionActivated()
/*!
* \brief Activates selection (if not yet done), emits selectionActivated()
-
*
-
* Useful to deactivate one Object Reference param widget when an other
-
* one is activated
+ *
+ * Useful to deactivate one Object Reference param widget when an other
+ * one is activated
*/
void activateSelection();
void deactivateSelection();
*/
void activateSelection();
void deactivateSelection();
-signals:
+
signals:
/*!
* \brief Emitted when selection is activated
/*!
* \brief Emitted when selection is activated
-
*
-
* Useful to deactivate one Object Reference param widget when an other
-
* one is activated
+ *
+ * Useful to deactivate one Object Reference param widget when an other
+ * one is activated
*/
void selectionActivated();
void contentModified();
*/
void selectionActivated();
void contentModified();
-
-private slots:
- void onSelectionDone();
-private:
+ private slots:
+ void onSelectionDone();
+
+ private:
void init();
void init();
-
-private:
+
+
private:
bool myMultiSelection;
std::vector<CORBA::Object_var> myObjects;
bool myMultiSelection;
std::vector<CORBA::Object_var> myObjects;
- SUIT_SelectionFilter* myFilter;
- bool mySelectionActivated;
- bool myStretchActivated;
+
SUIT_SelectionFilter* myFilter;
+
bool mySelectionActivated;
+
bool myStretchActivated;
- SMESHGUI* mySMESHGUI;
- LightApp_SelectionMgr* mySelectionMgr;
+
SMESHGUI* mySMESHGUI;
+
LightApp_SelectionMgr* mySelectionMgr;
- QLineEdit* myObjNameLineEdit;
- QPushButton* mySelButton;
- QString myParamValue;
- QString myEmptyText;
- QString myEmptyStyleSheet;
+
QLineEdit* myObjNameLineEdit;
+
QPushButton* mySelButton;
+
QString myParamValue;
+
QString myEmptyText;
+
QString myEmptyStyleSheet;
};
#endif // STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H
};
#endif // STDMESHERSGUI_OBJECTREFERENCEPARAMWDG_H