#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)
{
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