Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial merge of branch 'BR_HYDRO_IMPS_2016' into BR_PORTING_OCCT_7
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_OrderedListWidget.h
diff --git
a/src/HYDROGUI/HYDROGUI_OrderedListWidget.h
b/src/HYDROGUI/HYDROGUI_OrderedListWidget.h
index e199fb7aae73a05fe3629589e0b122b5cd65a25e..7b1feab744aa72fa372ea22fc7f0eb759f777d5a 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_OrderedListWidget.h
+++ b/
src/HYDROGUI/HYDROGUI_OrderedListWidget.h
@@
-1,12
+1,8
@@
-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, 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) 2014-2015 EDF-R&D
// 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
// 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.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-42,19
+38,35
@@
class HYDRO_EXPORT HYDROGUI_OrderedListWidget : public QWidget
Q_OBJECT
public:
Q_OBJECT
public:
- HYDROGUI_OrderedListWidget( QWidget* theParent );
+ HYDROGUI_OrderedListWidget( QWidget* theParent
, int theArrowIconSize = 32
);
virtual ~HYDROGUI_OrderedListWidget();
void setObjects( const HYDROGUI_ListModel::Object2VisibleList& theObjects );
HYDROGUI_ListModel::ObjectList getObjects() const;
virtual ~HYDROGUI_OrderedListWidget();
void setObjects( const HYDROGUI_ListModel::Object2VisibleList& theObjects );
HYDROGUI_ListModel::ObjectList getObjects() const;
+ void addObject( const HYDROGUI_ListModel::Object2Visible& theObject );
+ void removeObjectByName( const QString& theObjectName );
+
void setHiddenObjectsShown( const bool theIsToShow );
void setHiddenObjectsShown( const bool theIsToShow );
+ void setVisibilityIconShown( const bool theIsToShow );
+
+ void setOrderingEnabled( const bool theIsToEnable );
QStringList getSelectedEntries() const;
void setSelectedEntries( const QStringList& theEntries ) const;
QStringList getSelectedEntries() const;
void setSelectedEntries( const QStringList& theEntries ) const;
+ QStringList getSelectedNames() const;
+ QStringList getAllNames() const;
+
+ void setBackgroundColor (int theInd, QColor theColor);
+ QColor getBackgroundColor (int theInd) const;
+ void clearAllBackgroundColors ();
+
+ void undoLastMove();
+
signals:
void selectionChanged();
signals:
void selectionChanged();
+ void orderChanged();
private slots:
void onMove( int theType );
private slots:
void onMove( int theType );
@@
-62,6
+74,8
@@
private slots:
private:
HYDROGUI_ListModel* getSourceModel() const;
private:
HYDROGUI_ListModel* getSourceModel() const;
+ QModelIndexList getSelectedIndexes() const;
+
private:
QListView* myList; ///< the list view
QPushButton* myTop; ///< the move on top button
private:
QListView* myList; ///< the list view
QPushButton* myTop; ///< the move on top button
@@
-70,6
+84,7
@@
private:
QPushButton* myBottom; ///< the move on bottom button
bool myIsHiddenObjectsShown; ///< defines whether to include hidden objects in the list
QPushButton* myBottom; ///< the move on bottom button
bool myIsHiddenObjectsShown; ///< defines whether to include hidden objects in the list
+ bool myIsVisibilityIconShown; ///< defines whether to show visibility icon (eye icon)
};
#endif
};
#endif