+ // polyline name
+ myPolylineName = new QComboBox( aPage );
+ connect( myPolylineName, SIGNAL( activated( const QString & ) ),
+ SIGNAL( boundarySelected( const QString & ) ) );
+
+ // names labels
+ QLabel* aNameLabel = new QLabel( tr( "NAME" ), aPage );
+ QLabel* aLimitsLabel = new QLabel( tr( "LIMITS" ), aPage );
+
+ // mode selector (auto/manual)
+ QGroupBox* aModeGroup = new QGroupBox( tr( "MODE" ) );
+
+ QRadioButton* aManualRB = new QRadioButton( tr( "MANUAL" ), mainFrame() );
+ QRadioButton* anAutoRB = new QRadioButton( tr( "AUTO" ), mainFrame() );
+
+ myModeButtons = new QButtonGroup( mainFrame() );
+ myModeButtons->addButton( anAutoRB, HYDROData_CalculationCase::AUTOMATIC );
+ myModeButtons->addButton( aManualRB, HYDROData_CalculationCase::MANUAL );
+
+ QBoxLayout* aModeSelectorLayout = new QHBoxLayout;
+ aModeSelectorLayout->setMargin( 5 );
+ aModeSelectorLayout->setSpacing( 5 );
+ aModeSelectorLayout->addWidget( anAutoRB );
+ aModeSelectorLayout->addWidget( aManualRB );
+ aModeGroup->setLayout( aModeSelectorLayout );
+
+ // geometry objects
+ QLabel* anObjectsLabel = new QLabel( tr( "CALCULATION_REFERENCE_OBJECTS" ) );
+ myGeomObjects = new HYDROGUI_OrderedListWidget( aPage, 16 );
+ myGeomObjects->setHiddenObjectsShown(true);
+ myGeomObjects->setVisibilityIconShown(false);
+ myGeomObjects->setContentsMargins(QMargins());
+
+ // included geometry objects
+ QLabel* anIncludedLabel = new QLabel( tr( "INCLUDED_OBJECTS" ) );
+ myAvailableGeomObjects = new QListWidget( aPage );
+ myAvailableGeomObjects->setSelectionMode( QListWidget::ExtendedSelection );
+ myAvailableGeomObjects->setEditTriggers( QListWidget::NoEditTriggers );
+ myAvailableGeomObjects->setViewMode( QListWidget::ListMode );
+ myAvailableGeomObjects->setSortingEnabled( true );
+
+ // buttons
+ QFrame* aBtnsFrame = new QFrame;
+ 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 );
+
+ // top of the page layout
+
+ // objects frame
+ QFrame* anObjectsFrame = new QFrame( aPage );
+ anObjectsFrame->setFrameStyle( QFrame::Panel | QFrame::Raised );
+ QGridLayout* anObjsLayout = new QGridLayout( anObjectsFrame );
+ anObjsLayout->setMargin( 5 );
+ anObjsLayout->setSpacing( 5 );
+ anObjectsFrame->setLayout( anObjsLayout );
+
+ // fill the objects frame with two lists, two labels and with buttons frame
+ anObjsLayout->addWidget( anObjectsLabel, 0, 0, Qt::AlignHCenter );
+ anObjsLayout->addWidget( anIncludedLabel, 0, 2, Qt::AlignHCenter );
+ anObjsLayout->addWidget( myAvailableGeomObjects, 1, 0 );
+ anObjsLayout->addWidget( aBtnsFrame, 1, 1, Qt::AlignHCenter );
+ anObjsLayout->addWidget( myGeomObjects, 1, 2 );