slidewindow.h 839 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Project PhotoBunny
  3. * 2014 Gwilyn Saunders
  4. */
  5. #ifndef SLIDEWINDOW_H
  6. #define SLIDEWINDOW_H
  7. #include <QMainWindow>
  8. #include <QPixmap>
  9. #include <QLabel>
  10. #include <QTimer>
  11. #include <QSettings>
  12. #include "common.h"
  13. #include "fbApi.h"
  14. #include "dialogs.h"
  15. class SlideWindow
  16. : public QMainWindow {
  17. Q_OBJECT
  18. int timeout;
  19. QLabel *img;
  20. QTimer *timer;
  21. FbApi *fb;
  22. QSettings *st;
  23. public:
  24. SlideWindow(QWidget *parent = 0);
  25. public slots:
  26. void photoChange();
  27. void setImage(QString path);
  28. void pause();
  29. void blank();
  30. void about();
  31. void setupScreens();
  32. void setupUi();
  33. void setupLogin();
  34. void setupAlbums();
  35. void setupFinal();
  36. void handleError(QString msg);
  37. };
  38. #endif // SLIDEWINDOW_H