Wt examples: /home/koen/project/wt/public-git/wt/examples/charts/PanelList.h Source File

Wt examples 3.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

/home/koen/project/wt/public-git/wt/examples/charts/PanelList.h
Go to the documentation of this file.

    00001 // This may look like C code, but it's really -*- C++ -*-
    00002 /*
    00003  * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
    00004  *
    00005  * See the LICENSE file for terms of use.
    00006  */
    00007 #ifndef PANEL_LIST_H_
    00008 #define PANEL_LIST_H_
    00009
    00010 #include <Wt/WContainerWidget>
    00011
    00012 namespace Wt {
    00013   class WPanel;
    00014 }
    00015
    00016 class PanelList : public Wt::WContainerWidget
    00017 {
    00018 public:
    00019   PanelList(Wt::WContainerWidget *parent);
    00020
    00021   Wt::WPanel *addWidget(const Wt::WString& text, Wt::WWidget *w);
    00022   void addPanel(Wt::WPanel *panel);
    00023   void removePanel(Wt::WPanel *panel);
    00024
    00025 private:
    00026   void onExpand(bool notUndo);
    00027
    00028   int wasExpanded_;
    00029 };
    00030
    00031 #endif // PANEL_LIST_H_