skin: make menu key button
[sdk/emulator/qemu.git] / tizen / src / ui / controller / floatingcontroller.h
1 /*
2  * Qt UI
3  *
4  * Copyright (C) 2014 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  * GiWoong Kim <giwoong.kim@samsung.com>
8  * Sangho Park <sangho1206.park@samsung.com>
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23  * MA 02110-1301, USA.
24  *
25  * Contributors:
26  * - S-Core Co., Ltd
27  *
28  */
29
30 #ifndef FLOATINGCONTROLLER_H
31 #define FLOATINGCONTROLLER_H
32
33 #include <QDialog>
34
35 #include "layout/controllerform.h"
36 #include "floatingconview.h"
37
38 class MainWindow;
39
40 class FloatingController : public QDialog
41 {
42     Q_OBJECT
43
44 public:
45     explicit FloatingController(ControllerForm *conForm, QAction *menu, QWidget *parent = 0);
46     ~FloatingController();
47
48     ControllerForm *getConForm();
49     FloatingConView *getConView();
50     MainWindow *getMainWindow();
51
52 protected:
53     void showEvent(QShowEvent *event);
54     void setMask(const QRegion &region);
55     void closeEvent(QCloseEvent *event);
56     void reject();
57
58 private:
59     MainWindow *win;
60     FloatingConView *conView;
61     ControllerForm *conForm;
62     QAction *menu;
63 };
64
65 #endif // FLOATINGCONTROLLER_H