PanelList.h 644 B

12345678910111213141516171819202122232425262728293031323334
  1. // This may look like C code, but it's really -*- C++ -*-
  2. /*
  3. * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
  4. *
  5. * See the LICENSE file for terms of use.
  6. */
  7. #ifndef PANEL_LIST_H_
  8. #define PANEL_LIST_H_
  9. #include <Wt/WContainerWidget>
  10. namespace Wt {
  11. class WPanel;
  12. }
  13. class PanelList : public Wt::WContainerWidget
  14. {
  15. public:
  16. PanelList(Wt::WContainerWidget *parent);
  17. Wt::WPanel *addWidget(const Wt::WString& text, Wt::WWidget *w);
  18. void addPanel(Wt::WPanel *panel);
  19. void removePanel(Wt::WPanel *panel);
  20. using WContainerWidget::addWidget;
  21. private:
  22. void onExpand(bool notUndo);
  23. int wasExpanded_;
  24. };
  25. #endif // PANEL_LIST_H_