2 #include <Wt/WWidget.h> 3 #include <Wt/WModelIndex.h> 4 #include <Wt/WItemDelegate.h> 6 #include <Wt/WTemplate.h> 8 #include <Wt/WStackedWidget.h> 9 #include <Wt/WGridLayout.h> 10 #include <Wt/WVBoxLayout.h> 11 #include <Wt/WHBoxLayout.h> 12 #include <Wt/WFitLayout.h> 13 #include <Wt/WPushButton.h> 15 #include <Wtx/Dbo/TableViewManager.h> 16 #include <Wtx/Dbo/TemplateFormView.h> 17 #include <Wtx/Dbo/LookupItemDelegate.h> 18 #include <Wtx/Dbo/DetailForm.h> 20 #include "ManagerWidget.h" 26 :
public Wt::WContainerWidget
41 :
Wt::WContainerWidget(),
53 LookupDetail( Wt::Dbo::ptr< Wtx::Sys::Lookup::Item > & item )
56 "sysLookup.detailForm",
77 auto layout = std::make_unique< Wt::WHBoxLayout >();
78 layout-> setContentsMargins( 0,0,0,0 );
86 Wt::SelectionMode::Single,
123 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
124 {
"keyField",
"", 100, Wt::AlignmentFlag::Left,
"",
nullptr },
125 {
"cfyField", Wtx::Sys::Lookup::Item::TableDef().
CfyFieldDef.label(), 300, Wt::AlignmentFlag::Left,
"",
nullptr },
126 {
"description",
"", 300, Wt::AlignmentFlag::Left,
"",
nullptr }
142 setLayout( std::move(layout) );
149 : Wt::WContainerWidget(),
153 auto layout = std::make_unique<Wt::WHBoxLayout>();
154 layout-> setContentsMargins( 0,0,0,0 );
156 layout-> addWidget( std::make_unique< LookupDesktop >( s ) );
158 setLayout( std::move(layout) );
Wtx::Dbo::FieldDefLineEdit CfyFieldDef
Item Clarify Field.