Salome HOME
Add tests for drag and drop algo.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLevelsDlg.cxx
index 7055cd082f588afc506015a31ba3c6af71db0ac0..9e85de975c455ed1be26c4bbfb1e7697ef95ffa4 100644 (file)
 #include "HYDROGUI_ZLevelsDlg.h"
 #include "HYDROGUI_ZLevelsModel.h"
 
+#include <SUIT_Session.h>
+#include <SUIT_ResourceMgr.h>
+
 #include <QCheckBox>
 #include <QLayout>
 #include <QListView>
 #include <QPushButton>
+#include <QToolButton>
 #include <QSignalMapper>
 #include <QSortFilterProxyModel>
 
@@ -34,6 +38,8 @@
 HYDROGUI_ZLevelsDlg::HYDROGUI_ZLevelsDlg( QWidget* theParent )
 : QDialog( theParent )
 {
+  setWindowTitle( tr( "CHANGE_LAYER_ORDER" ) );
+
   QVBoxLayout* aMainLayout = new QVBoxLayout( this );
   aMainLayout->setMargin( 5 );
 
@@ -55,10 +61,19 @@ HYDROGUI_ZLevelsDlg::HYDROGUI_ZLevelsDlg( QWidget* theParent )
 
   myList->setModel( aFilteredModel );
 
-  myTop = new QPushButton( tr("TOP") );
-  myUp = new QPushButton( tr("UP") );
-  myDown = new QPushButton( tr("DOWN") );
-  myBottom = new QPushButton( tr("BOTTOM") );
+  SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+  myTop = new QToolButton;
+  myTop->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_TOP_ICO" ) ) );
+  myTop->setIconSize( QSize( 32, 32 ) );
+  myUp = new QToolButton;
+  myUp->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_UP_ICO" ) ) );
+  myUp->setIconSize( myTop->iconSize() );
+  myDown = new QToolButton;
+  myDown->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_DOWN_ICO" ) ) );
+  myDown->setIconSize( myTop->iconSize() );
+  myBottom = new QToolButton;
+  myBottom->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_BOTTOM_ICO" ) ) );
+  myBottom->setIconSize( myTop->iconSize() );
   QVBoxLayout* aListButtonsLayout = new QVBoxLayout();
   aListButtonsLayout->addWidget( myTop );
   aListButtonsLayout->addWidget( myUp );