Advertisement
luiscesjr

Mainwindow.h

Nov 26th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QtGui/QMainWindow>
  5.  
  6. #include "keys.h"
  7.  
  8. namespace Ui {
  9.     class MainWindow;
  10. }
  11.  
  12. class MainWindow : public QMainWindow
  13. {
  14.     Q_OBJECT
  15. public:
  16.     enum ScreenOrientation {
  17.         ScreenOrientationLockPortrait,
  18.         ScreenOrientationLockLandscape,
  19.         ScreenOrientationAuto
  20.     };
  21.  
  22.     explicit MainWindow(QWidget *parent = 0);
  23.     virtual ~MainWindow();
  24.  
  25.     // Note that this will only have an effect on Symbian and Fremantle.
  26.     void setOrientation(ScreenOrientation orientation);
  27.  
  28.     void showExpanded();
  29.  
  30. public slots:
  31.  
  32.     void set_keys();
  33.     void emu_exec();
  34.  
  35. private slots:
  36.     void on_Configure_Buttons_clicked();
  37.  
  38.     void on_StartEmulator_clicked();
  39.  
  40.     void on_Download_clicked();
  41.  
  42. private:
  43.     keys *keyopt;
  44.     Ui::MainWindow *ui;
  45. };
  46.  
  47. #endif // MAINWINDOW_H
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement