Changeset 399 in PSPA for Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_dialog.cc
- Timestamp:
- Mar 27, 2013, 5:14:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/branches/12_03_12-managerComboBox/pspaWT/sources/userInterface/src/GWt_dialog.cc
r385 r399 3 3 #include <Wt/WText> 4 4 #include <Wt/WBreak> 5 #include <Wt/WVBoxLayout> 5 6 #include <Wt/WHBoxLayout> 6 7 #include <Wt/WPushButton> … … 19 20 titleBar()->decorationStyle().setBackgroundColor (WColor(70,180,220)); 20 21 22 WContainerWidget* widgt = new WContainerWidget(contents()); 23 vDialogLayout_ = new WVBoxLayout(); 24 widgt->setLayout(vDialogLayout_); 25 26 setClosable(true); 27 setModal (modal); 28 setResizable(true); 29 show(); 30 21 31 if (wc != NULL) { 22 WContainerWidget* widgt = new WContainerWidget(contents()); 23 WHBoxLayout* hLayout = new WHBoxLayout(); 24 hLayout->addWidget(wc); 25 widgt->setLayout(hLayout); 26 27 setClosable(true); 28 setModal (modal); 29 show(); 32 addVContent(wc); 30 33 } 31 34 } … … 112 115 113 116 117 void GWt_dialog::addVContent(WContainerWidget* wc) { 114 118 119 if (vDialogLayout_) { 120 vDialogLayout_->addWidget(wc); 121 } 122 } 123 124
Note: See TracChangeset
for help on using the changeset viewer.