+
+ // 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 );
+
+ // fill the top of the page
+ QGridLayout* aTopLayout = new QGridLayout;
+ aTopLayout->setMargin( 5 );
+ aTopLayout->setSpacing( 5 );
+ aTopLayout->setVerticalSpacing( 10 );
+ aTopLayout->addWidget( aNameLabel, 0, 0, Qt::AlignHCenter );
+ aTopLayout->addWidget( myObjectName, 0, 1 );
+ aTopLayout->addWidget( aLimitsLabel, 1, 0, Qt::AlignHCenter );
+ aTopLayout->addWidget( myPolylineName, 1, 1 );
+ aTopLayout->addWidget( aModeGroup, 2, 0, 1, 2 );
+ aTopLayout->addWidget( anObjectsFrame, 3, 0, 1, 2 );
+
+ aTopContainer->setLayout( aTopLayout );
+
+ // add the top of the page to the splitter
+ mySplitter->insertWidget(0, aTopContainer);
+ mySplitter->setStretchFactor(0, 2);
+
+ // Bottom of the page
+ myPriorityWidget = new HYDROGUI_PriorityWidget( mainFrame() );
+
+ QGroupBox* aPriorityGroup = new QGroupBox( tr( "PRIORITY" ) );
+ QBoxLayout* aPriorityLayout = new QHBoxLayout;
+ aPriorityLayout->setMargin( 5 );
+ aPriorityLayout->setSpacing( 5 );
+ aPriorityLayout->addWidget( myPriorityWidget );
+ aPriorityGroup->setLayout( aPriorityLayout );
+
+ // add the bottom of the page to the splitter
+ mySplitter->insertWidget(1, aPriorityGroup);
+ mySplitter->setStretchFactor(1, 1);
+
+ // Page layout
+ QVBoxLayout* aPageLayout = new QVBoxLayout;
+ aPageLayout->setMargin( 5 );
+ aPageLayout->setSpacing( 5 );
+ aPageLayout->addWidget( mySplitter );
+
+ aPage->setLayout( aPageLayout );
+
+ // Create selector
+ if ( module() ) {
+ HYDROGUI_ListSelector* aListSelector =
+ new HYDROGUI_ListSelector( myGeomObjects, module()->getApp()->selectionMgr() );
+ aListSelector->setAutoBlock( true );
+ }