22 #ifndef MENUWINDOWMANAGER_H
23 #define MENUWINDOWMANAGER_H
30 #include <QGraphicsPixmapItem>
31 #include <QGraphicsSceneMouseEvent>
56 void resize(
int width,
int height);
74 void slotPositiveSpaceChanged(
const QRect& r);
75 void slotSystemMenuStateChanged(
bool opened);
76 void slotCloseSystemMenu();
80 void handleMousePress(QGraphicsSceneMouseEvent* event,
int clickCount);
82 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
83 void handleTouchBegin(QTouchEvent *te);
84 void handleTouchEnd(QTouchEvent *te);
85 void handleTouchUpdate(QTouchEvent *te);
88 virtual void addWindow(
Window* win);
89 virtual void removeWindow(
Window* win);
90 virtual void focusWindow(
Window* win);
91 virtual void unfocusWindow(
Window* win);
93 void positionCornerWindows(
const QRect& r);
94 void mapCoordToWindow(
Window* win,
int& x,
int& y);
95 void showMenuWindow(
Window* win);
96 void hideMenuWindow(
Window* win);
98 void raiseWindow(
Window* win);
109 QVector<Window*> m_winArray;
110 QRect m_positiveSpace;
111 PenDownState m_penDownState;
116 bool m_systemMenuOpened;