3 #include <Wt/WHBoxLayout.h> 5 #include <Wtx/Sys/Session.h> 6 #include <Wtx/Dbo/TableViewManager.h> 7 #include <Wtx/Dbo/TemplateFormView.h> 8 #include <Wtx/Dbo/DetailForm.h> 11 #include "ManagerWidget.h" 18 UserDetail( Wt::Dbo::ptr<Wtx::Sys::User::Item> & item )
34 auto layout = std::make_unique<Wt::WHBoxLayout>();
42 Wt::SelectionMode::Single,
77 {
"id",
"", 50, Wt::AlignmentFlag::Left,
"",
nullptr },
78 {
"isActive",
"", 75, Wt::AlignmentFlag::Left,
"",
nullptr },
79 {
"keyField",
"", 350, Wt::AlignmentFlag::Left,
"",
nullptr }
91 view-> tableView()-> clicked().connect( [=]( Wt::WModelIndex index, Wt::WMouseEvent event )
97 stableResultRow( index.row() );
99 std::cout << __FILE__ <<
":" << __LINE__ <<
" " << userItem.id() << std::endl;
105 setLayout( std::move(layout) );