#include <PanelList.h>
|
void | onExpand (bool notUndo, Wt::WPanel *panel) |
|
Definition at line 16 of file PanelList.h.
◆ PanelList()
◆ addPanel()
void PanelList::addPanel |
( |
std::unique_ptr< Wt::WPanel > |
panel | ) |
|
Definition at line 30 of file PanelList.C.
32 panel->setCollapsible(
true);
35 panel->expandedSS().connect(std::bind(&
PanelList::onExpand,
this, std::placeholders::_1, panel.get()));
37 WContainerWidget::addWidget(std::move(panel));
void onExpand(bool notUndo, Wt::WPanel *panel)
◆ addWidget()
WPanel * PanelList::addWidget |
( |
const Wt::WString & |
text, |
|
|
std::unique_ptr< Wt::WWidget > |
w |
|
) |
| |
Definition at line 17 of file PanelList.C.
19 std::unique_ptr<WPanel> p
20 = cpp14::make_unique<WPanel>();
21 WPanel *result = p.get();
23 p->setCentralWidget(std::move(w));
void addPanel(std::unique_ptr< Wt::WPanel > panel)
◆ onExpand()
void PanelList::onExpand |
( |
bool |
notUndo, |
|
|
Wt::WPanel * |
panel |
|
) |
| |
|
private |
Definition at line 41 of file PanelList.C.
46 for (
unsigned i = 0; i < children().size(); ++i) {
47 WPanel *p = dynamic_cast<WPanel *>(children()[i]);
49 if (!p->isCollapsed())
56 WPanel *p = dynamic_cast<WPanel *>(children()[
wasExpanded_]);
◆ removePanel()
void PanelList::removePanel |
( |
Wt::WPanel * |
panel | ) |
|
◆ wasExpanded_
int PanelList::wasExpanded_ |
|
private |
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/wt-4.2.2/examples/charts/PanelList.h
- /builddir/build/BUILD/wt-4.2.2/examples/charts/PanelList.C