libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
expandergroup.h
1 /* Copyright (C) 2012 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_WIDGET_EXPANDERGROUP_H
15 #define T3_WIDGET_EXPANDERGROUP_H
16 
17 #include <deque>
18 #include <t3widget/widgets/expander.h>
19 
20 namespace t3_widget {
21 
23 class T3_WIDGET_API expander_group_t {
24  private:
25  expander_t *expanded_widget;
26  int height, expanded_height;
27 
28  void widget_expanded(bool is_expanded, expander_t *source);
29  public:
30  expander_group_t(void);
31  virtual ~expander_group_t(void);
32 
34  void add_expander(expander_t *expander);
35  void collapse(void);
36  int get_group_height(void);
37 
38  T3_WIDGET_SIGNAL(expanded, void, bool);
39 };
40 
41 }; // namespace
42 #endif
The t3_widget namespace is contains all classes, functions and global variables in the libt3widget li...
Definition: autocompleter.cc:18
A widget showing an expander, which allows hiding another widget.
Definition: expander.h:23
A class to group a set of expander widgets such that at most one is expanded at a time...
Definition: expandergroup.h:23