skin: find event of menu button from list of context menu
[sdk/emulator/qemu.git] / tizen / src / ui / controller / generalpurposecon.h
index fe319e5..0e5a50d 100644 (file)
@@ -33,7 +33,7 @@
 #include "layout/hardwarekey.h"
 #include "controller/hwkeybutton.h"
 #include "layout/controllerform.h"
-#include "uiinformation.h"
+#include "mainwindow.h"
 
 #define GPC_HEAD_BAR_HEIGHT (5)
 #define GPC_BORDER_SIZE (1.0)
@@ -50,13 +50,15 @@ class GeneralPurposeCon
 {
 
 public:
-    GeneralPurposeCon();
+    GeneralPurposeCon(MainWindow *window);
     ~GeneralPurposeCon();
-    void createHeaderBarAndBorder(QGraphicsScene *scene, UiInformation *uiInfo, bool isFloating);
+    void createHeaderBarAndBorder(QGraphicsScene *scene, bool isFloating);
     QList<HWKeyButton *> createButtons(QGraphicsScene *scene, QWidget *parent, ControllerForm *form);
 
 private:
     void createKeyList(QWidget *parent, QList<HardwareKey *> keyList, QPoint topLeft, int count, QList<HWKeyButton *> &buttonList);
+    bool setMenuSlot(HWKeyButton *dbutton, QString name, QList<MenuItem *> &list);
+    MainWindow *mainWindow;
 };
 
 #endif // GENERALPURPOSECON_H