dialogs.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * Project PhotoBunny
  3. * 2014 Gwilyn Saunders
  4. */
  5. #ifndef LOGINDIALOG_H
  6. #define LOGINDIALOG_H
  7. #include <QDialog>
  8. #include <QSettings>
  9. #include "fbApi.h"
  10. #include "common.h"
  11. class QLineEdit;
  12. class QSpinBox;
  13. class QCheckBox;
  14. class PermissionDialog;
  15. class LoginDialog
  16. : public QDialog {
  17. Q_OBJECT
  18. QSettings *st;
  19. FbApi *fb;
  20. QLineEdit *userEdit;
  21. QLineEdit *passEdit;
  22. QSpinBox *timeEdit;
  23. QCheckBox *hdEdit;
  24. QCheckBox *cacheEdit;
  25. QPushButton *okButton;
  26. QPushButton *exitButton;
  27. QPushButton *clearButton;
  28. PermissionDialog* perms;
  29. public:
  30. explicit LoginDialog(FbApi *fb, QWidget *parent = 0);
  31. public slots:
  32. void okClicked();
  33. void loggedIn(LoginStatus status);
  34. void clearCache();
  35. void showDeclineBox();
  36. };
  37. #endif // LOGINDIALOG_H
  38. #ifndef ALBUMDIALOG_H
  39. #define ALBUMDIALOG_H
  40. #include <QDialog>
  41. #include "fbApi.h"
  42. #include "common.h"
  43. class QListWidget;
  44. class AlbumDialog
  45. : public QDialog {
  46. Q_OBJECT
  47. QSettings *st;
  48. QListWidget *list;
  49. FbApi *fb;
  50. QString aid;
  51. public:
  52. explicit AlbumDialog(FbApi *fb, QWidget *parent = 0);
  53. public slots:
  54. void okClicked();
  55. void loadAlbums();
  56. };
  57. #endif // ALBUMDIALOG_H
  58. #ifndef SCREENDIALOG_H
  59. #define SCREENDIALOG_H
  60. #include "common.h"
  61. #include "screenutils.h"
  62. #include <QDesktopWidget>
  63. #include <QList>
  64. class QPushButton;
  65. class QLabel;
  66. class ScreenDialog
  67. : public QDialog {
  68. Q_OBJECT
  69. QSettings *st;
  70. QDesktopWidget desktop;
  71. QList<DesktopBox*> boxes;
  72. int selectedScreen;
  73. QPushButton *okButton;
  74. QLabel *screenLabel;
  75. public:
  76. explicit ScreenDialog(QWidget *parent = 0);
  77. int numScreens() {
  78. return desktop.screenCount();
  79. }
  80. public slots:
  81. void okClicked();
  82. void identify();
  83. void clearHighlights();
  84. void selectScreen(int screen);
  85. };
  86. #endif // SCREENDIALOG_H
  87. #ifndef PERMISSIONDIALOG_H
  88. #define PERMISSIONDIALOG_H
  89. #include "common.h"
  90. class PermissionDialog
  91. : public QDialog {
  92. Q_OBJECT
  93. public:
  94. explicit PermissionDialog(QWidget *parent = 0);
  95. };
  96. #endif // WEBDIALOG_H