Changeset 401 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
- Timestamp:
- Mar 27, 2013, 5:47:22 PM (11 years ago)
- Location:
- Interface_Web/trunk/pspaWT
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT
-
Property
svn:mergeinfo
set to
/Interface_Web/branches/12_03_12-managerComboBox/pspaWT merged eligible
-
Property
svn:mergeinfo
set to
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r398 r401 77 77 78 78 /* 79 * The main layout is a 3x2grid layout.79 * The main layout is a 4x3 grid layout. 80 80 */ 81 WGridLayout * layout = new WGridLayout();81 WGridLayout *mainGridLayout = new WGridLayout(); 82 82 // layout->addWidget(createTitle("<a href='workingArea/parmin'> Menu (In future)</a>"), 0, 0, 1, 2); 83 83 // layout->addWidget(createTitle("Menu (In future)"), 0, 0, 1, 2); … … 131 131 toolbarLayout->addWidget(new WText("") , 1,Wt::AlignMiddle); 132 132 133 WContainerWidget * layoutContainer = new WContainerWidget();134 layoutContainer->setLayout(toolbarLayout);135 layoutContainer->decorationStyle().setBackgroundImage ("/htdocs/fond_toolbar.png");136 layout->addWidget(layoutContainer, 1, 0, 1, 2);137 layout->addWidget(createPalette(), 2, 0, 4, 1);138 139 createBeamLine(); 133 WContainerWidget * toolbarLayoutContainer = new WContainerWidget(); 134 toolbarLayoutContainer->setLayout(toolbarLayout); 135 toolbarLayoutContainer->decorationStyle().setBackgroundImage ("/htdocs/fond_toolbar.png"); 136 137 mainGridLayout->addWidget(toolbarLayoutContainer, 1, 0, 1, 3); 138 mainGridLayout->addWidget(createPalette(), 2, 0, 4, 1); 139 140 140 141 141 WScrollArea* scroll = new WScrollArea(); 142 scroll->setWidget(beamLine_); 143 layout->addWidget(scroll, 2, 1, 1, 1); 142 scroll->setWidget(createBeamLine()); 143 scroll->setMinimumSize(300,150); 144 145 mainGridLayout->addWidget(scroll, 2, 1, 1, 2); 144 146 145 147 … … 151 153 // console_->setOverflow(WContainerWidget::OverflowAuto); 152 154 153 154 console_ = new GWt_console();155 console_->clear();156 console_->decorationStyle().setBackgroundColor (WColor("lightgray"));157 console_->setMaximumSize(600,200);158 console_->setMinimumSize(300,100);159 console_->setOverflow(WContainerWidget::OverflowAuto);160 layout->addWidget(console_, 3, 2);161 155 162 156 //----------- … … 171 165 executeWidget_ = new GWt_softwarePanel(dtmanage_,this); 172 166 173 layout->addWidget( globalParam_, 3, 1);167 mainGridLayout->addWidget( globalParam_, 3, 1); 174 168 // layout->addWidget( leDessin_, 3, 2); 175 layout->addWidget( executeWidget_ , 4, 1);169 mainGridLayout->addWidget( executeWidget_ , 4, 1); 176 170 //----------- 177 171 178 layout->setColumnResizable(1); 179 layout->setRowResizable(2); 172 console_ = new GWt_console(); 173 174 // manage sizes 175 console_->setMinimumSize(300,100); 176 executeWidget_->setMinimumSize(400,100); 177 178 mainGridLayout->addWidget(console_, 3, 2,2,1); 179 180 180 181 /* 181 182 * Let row 2 and column 1 take the excess space. 182 183 */ 183 layout->setRowStretch(2, 1); 184 layout->setColumnStretch(1, 1); 185 186 widroot->setLayout(layout); 184 mainGridLayout->setRowStretch(4, 1); 185 mainGridLayout->setColumnStretch(2, 1); 186 187 widroot->setLayout(mainGridLayout); 188 189 // set auto scrollbar if needed 190 widroot->setOverflow(WContainerWidget::OverflowAuto); 191 187 192 } 188 193 … … 210 215 } 211 216 212 voidPspaApplication::createBeamLine()217 Wt::WWidget* PspaApplication::createBeamLine() 213 218 { 214 219 extensionFile_= 0; … … 220 225 beamLine_->setMinimumSize(300,100); 221 226 setTitle(applicationDefaultTitle_); 227 228 return beamLine_; 222 229 } 223 230 … … 225 232 { 226 233 WContainerWidget* globalParam = new GWt_globalParameters(this); 227 globalParam->setMaximumSize(600,150);228 globalParam->setMinimumSize(600,150);229 234 return globalParam; 230 235 } … … 980 985 void PspaApplication::removeBeamLine() { 981 986 createBeamLine(); 987 executeWidget_->updateSections(); 982 988 } 983 989
Note: See TracChangeset
for help on using the changeset viewer.