2010-09-13 11:20:13 +02:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QMainWindow>
|
2010-09-13 11:20:13 +02:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class MainWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
|
{
|
2010-10-15 12:45:08 +02:00
|
|
|
Q_OBJECT
|
2010-09-13 11:20:13 +02:00
|
|
|
public:
|
2010-11-01 17:03:46 +01:00
|
|
|
enum ScreenOrientation {
|
|
|
|
|
ScreenOrientationLockPortrait,
|
|
|
|
|
ScreenOrientationLockLandscape,
|
|
|
|
|
ScreenOrientationAuto
|
2010-09-13 11:20:13 +02:00
|
|
|
};
|
|
|
|
|
|
2010-11-01 17:03:46 +01:00
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
|
virtual ~MainWindow();
|
2010-09-13 11:20:13 +02:00
|
|
|
|
2012-08-22 13:27:25 +02:00
|
|
|
// Note that this will only have an effect on Fremantle.
|
2010-11-01 17:03:46 +01:00
|
|
|
void setOrientation(ScreenOrientation orientation);
|
2011-04-07 17:08:06 +02:00
|
|
|
|
2010-11-01 19:19:32 +01:00
|
|
|
void showExpanded();
|
2010-09-13 11:20:13 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|