| 1 | 
 #ifndef WMPAGE_H | 
 
 
 
 
 
 | 2 | 
 #define WMPAGE_H | 
 
 
 
 
 
 | 3 | 
  | 
 
 
 
 
 
 | 4 | 
 #include <QVBoxLayout> | 
 
 
 
 
 
 | 5 | 
 #include <QHBoxLayout> | 
 
 
 
 
 
 | 6 | 
 #include <QTextEdit> | 
 
 
 
 
 
 | 7 | 
 #include <QGroupBox> | 
 
 
 
 
 
 | 8 | 
 #include <QLabel> | 
 
 
 
 
 
 | 9 | 
 #include <QSpacerItem> | 
 
 
 
 
 
 | 10 | 
 #include <QToolButton> | 
 
 
 
 
 
 | 11 | 
 #include <QFileDialog> | 
 
 
 
 
 
 | 12 | 
 #include <functional> | 
 
 
 
 
 
 | 13 | 
  | 
 
 
 
 
 
 | 14 | 
 #include "utilvago.h" | 
 
 
 
 
 
 | 15 | 
  | 
 
 
 
 
 
 | 16 | 
 class WmPage : public QObject // for signals and slots | 
 
 
 
 
 
 | 17 | 
 { | 
 
 
 
 
 
 | 18 | 
     Q_OBJECT | 
 
 
 
 
 
 | 19 | 
 public: | 
 
 
 
 
 
 | 20 | 
     WmPage(QWidget *currentTab); | 
 
 
 
 
 
 | 21 | 
     QTextEdit& getMainText(); | 
 
 
 
 
 
 | 22 | 
     QTextEdit& getFooterText(); | 
 
 
 
 
 
 | 23 | 
     QLabel& getMiddleImage(); | 
 
 
 
 
 
 | 24 | 
     void hideFooterText(); | 
 
 
 
 
 
 | 25 | 
     void showFooterText(); | 
 
 
 
 
 
 | 26 | 
 private: | 
 
 
 
 
 
 | 27 | 
     QTextEdit* mainText; | 
 
 
 
 
 
 | 28 | 
     QTextEdit* footerText; | 
 
 
 
 
 
 | 29 | 
     QLabel* middleImage; | 
 
 
 
 
 
 | 30 | 
     QToolButton* addRemoveImageButton; | 
 
 
 
 
 
 | 31 | 
     QWidget *pageTab; | 
 
 
 
 
 
 | 32 | 
     QGroupBox *footerTextGroupBox; | 
 
 
 
 
 
 | 33 | 
 private: | 
 
 
 
 
 
 | 34 | 
     void createAndAddPageToTab(QWidget *currentTab); | 
 
 
 
 
 
 | 35 | 
 private slots: | 
 
 
 
 
 
 | 36 | 
     void addRemoveImageButtonTriggered(); | 
 
 
 
 
 
 | 37 | 
 }; | 
 
 
 
 
 
 | 38 | 
  | 
 
 
 
 
 
 | 39 | 
 #endif // WMPAGE_H |