82 : WDialog("Edit..."),
85 {
87
88 resize(300, WLength::Auto);
89
90
91
92
93
94
97
98
99 auto typeEdit = std::make_unique<WComboBox>();
106
107
111 (std::make_shared<WIntValidator>(0, std::numeric_limits<int>::max()));
112
113
114
120
121
127
128
129
130
131 auto layout = std::make_unique<WGridLayout>();
132
133 std::unique_ptr<WLabel>
label;
135
136 label = std::make_unique<WLabel>(
"Name:");
141
142 label = std::make_unique<WLabel>(
"Type:");
145 layout->addWidget(std::move(typeEdit),
row, 1);
147
148 label = std::make_unique<WLabel>(
"Size");
153
154 label = std::make_unique<WLabel>(
"Created:");
159
160 label = std::make_unique<WLabel>(
"Modified:");
165
166 std::unique_ptr<WPushButton>
button;
167 auto buttons = std::make_unique<WContainerWidget>();
168
169 button = std::make_unique<WPushButton>(
"Save");
170 button->clicked().connect(
this, &WDialog::accept);
172
173 button = std::make_unique<WPushButton>(
"Cancel");
174 contents()->enterPressed().connect(
this, &WDialog::accept);
175 button->clicked().connect(
this, &WDialog::reject);
177
178
179
180
181 switch (item.column()) {
182 case 2:
184 case 3:
186 case 4:
188 break;
189 case 5:
191 break;
192 default:
194 }
195
197 layout->setColumnStretch(1, 1);
198
200
202
203 show();
204 }
Wt::Auth::Dbo::UserDatabase< AuthInfo > UserDatabase
void handleFinish(DialogCode result)
std::shared_ptr< WAbstractItemModel > model_
WDatePicker * createdPicker_
WDatePicker * modifiedPicker_
static WString dateEditFormat
Date edit format.