NCL Composer  0.1.5
 All Classes Functions Variables Pages
ClickableDockWidget.h
1 /*
2  * Copyright 2011-2013 TeleMidia/PUC-Rio.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see
16  * <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef CLICKABLEDOCKWIDGET_H
20 #define CLICKABLEDOCKWIDGET_H
21 
22 #include <QEvent>
23 #include <QDockWidget>
24 
25 namespace composer {
26  namespace gui {
27 
31 class ClickableQDockWidget : public QDockWidget
32 {
33  Q_OBJECT
34 
35 public:
39  ClickableQDockWidget (const QString &title, QWidget *parent = 0,
40  Qt::WindowFlags flags = 0);
41 
42 protected:
43  bool event(QEvent *event);
44 
45 private slots:
46  void visibilityHasChange(bool visible);
47  void topLevelHasChanged(bool a);
48 
49 signals:
50  void clicked();
51 
52 };
53 
54 } }
55 
56 #endif // CLICKABLEDOCKWIDGET_H