- myPolylines = new QListWidget( myPolylineFrame );
- myPolylines->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
- myPolylines->setSelectionMode( QAbstractItemView::ExtendedSelection );
-
- QBoxLayout* aPolyLayout = new QVBoxLayout( myPolylineFrame );
- aPolyLayout->setMargin( 0 );
+ myPolylines = new HYDROGUI_OrderedListWidget( myPolylineFrame, 16 );
+ myPolylines->setHiddenObjectsShown(true);
+ myPolylines->setVisibilityIconShown(false);
+ myPolylines->setContentsMargins(QMargins());
+ myPolylines->setOrderingEnabled( true );
+
+ // Include/Exclude buttons
+ QFrame* aBtnsFrame = new QFrame( myPolylineFrame );
+ QVBoxLayout* aBtnsLayout = new QVBoxLayout( aBtnsFrame );
+ aBtnsLayout->setMargin( 5 );
+ aBtnsLayout->setSpacing( 5 );
+ aBtnsFrame->setLayout( aBtnsLayout );
+ QPushButton* anAddBtn = new QPushButton( tr("INCLUDE"), aBtnsFrame );
+ QPushButton* aRemoveBtn = new QPushButton( tr("EXCLUDE"), aBtnsFrame );
+
+ // Fill the butons frame with two buttons
+ aBtnsLayout->addWidget( anAddBtn );
+ aBtnsLayout->addWidget( aRemoveBtn );
+ aBtnsLayout->addStretch( 1 );
+
+ QGridLayout* aPolyLayout = new QGridLayout( myPolylineFrame );
+ aPolyLayout->setMargin( 5 );