8 #include <QStateMachine>
10 #include <QAbstractTransition>
11 #include <QPropertyAnimation>
12 #include <QCloseEvent>
13 #include "slidewidget.h"
16 #include "systemsettings.h"
17 #include "mycheckboxcontainer.h"
19 #define WILLEM_LIU "WillemLiu"
20 #define EASY_LIST "easylist"
21 #define DBUS_KEYBOARD_SLIDE "/org/freedesktop/Hal/devices/platform_slide"
22 #define CHECKED_ITEMS_TO_BOTTOM "CheckedItemsToBottom"
23 #define LANDSCAPE "Landscape"
24 #define PORTRAIT "Portrait"
25 #define AUTO_ORIENTATION "AutoOrientation"
26 #define LIST_TEXT "ListText"
27 #define SORT_A_Z "SortAlphabetically"
33 class MainForm : public QMainWindow
38 explicit MainForm(QWidget *parent = 0);
41 void setLandscapeMode(bool landscape);
44 void keyboardClosed(bool closed);
45 void changeWidget(SlideWidget * currentWidget);
46 void stateOutFinished();
50 bool tempLandscapeMode;
57 void closeEvent(QCloseEvent *event);
60 void on_actionSort_A_Z_triggered();
61 void on_actionAuto_Orientation_triggered();
62 void on_actionChecked_bottom_triggered();
63 void on_actionAbout_triggered();
64 void on_actionRotate_triggered();