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> 9 #include <Wtx/Sys/User/ItemDelegate.h> 12 #include "ManagerWidget.h" 23 Detail( Wt::Dbo::ptr<Wtx::Sys::Log::Item> & item )
35 :
public Wt::WContainerWidget
41 void setFilter(
const std::string & filter );
48 : Wt::WContainerWidget()
50 auto lw = std::make_unique< Wt::WVBoxLayout >();
57 Wt::SelectionMode::Single,
92 {
"id",
"", 75, Wt::AlignmentFlag::Left,
"",
nullptr },
93 {
"createdOn",
"", 150, Wt::AlignmentFlag::Left,
"",
nullptr },
94 {
"clip",
"", 125, Wt::AlignmentFlag::Left,
"",
nullptr },
95 {
"sysUser_id",
"", 125, Wt::AlignmentFlag::Left,
"", &Wtx::Sys::User::ItemDelegate::create },
96 {
"keyField",
"", 150, Wt::AlignmentFlag::Left,
"",
nullptr },
97 {
"cfyField",
"", 450, Wt::AlignmentFlag::Left,
"",
nullptr },
109 setLayout( std::move(lw) );
113 void View::setFilter(
const std::string & filter )
115 m_view-> tableView()-> setFilter( filter );
124 auto layout = std::make_unique<Wt::WHBoxLayout>();
126 m_view = layout-> addWidget( std::make_unique< View >( session ) );
128 setLayout( std::move(layout) );
133 void Wtx::Sys::Log::ManagerWidget::setFilter(
const std::string & filter )
135 m_view-> setFilter( filter );