mainwindow.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. Copyright (C) 2010 Martin Zuber, zuber@centrum.cz
  3. This application is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as
  5. published by the Free Software Foundation; either version 2.1 of the
  6. License, or (at your option) any later version.
  7. This application is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with This application; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #ifndef MAINWINDOW_H
  16. #define MAINWINDOW_H
  17. #include <QMainWindow>
  18. #include <QGridLayout>
  19. #include <QAction>
  20. #include "feggclockwidget.h"
  21. namespace Ui {
  22. class MainWindow;
  23. }
  24. class MainWindow : public QMainWindow
  25. {
  26. Q_OBJECT
  27. // layout grid for clock widget
  28. QGridLayout *grid;
  29. // array of clocks - normally 3 for portrait mode, 2 for landscape
  30. FEggClockWidget **m_clocks;
  31. QAction *m_option;
  32. public:
  33. explicit MainWindow(QWidget *parent = 0);
  34. ~MainWindow();
  35. private:
  36. Ui::MainWindow *ui;
  37. protected:
  38. /*
  39. Resize event handler
  40. @param e resize event info
  41. */
  42. void resizeEvent(QResizeEvent *e);
  43. private slots:
  44. void onOptionTriggered();
  45. };
  46. #endif // MAINWINDOW_H