QTfrontend/ui/page/AbstractPage.h
changeset 6477 ad5741c252b9
parent 6200 6a4ace88d85a
child 6577 9e49e6a8585b
equal deleted inserted replaced
6476:afb7ef0c1c6e 6477:ad5741c252b9
    53 class QGridlayout;
    53 class QGridlayout;
    54 
    54 
    55 class AbstractPage : public QWidget
    55 class AbstractPage : public QWidget
    56 {
    56 {
    57     Q_OBJECT
    57     Q_OBJECT
       
    58 
       
    59     public:
       
    60 
       
    61         /**
       
    62         * @brief Changes the desc text (should not be called manualy)
       
    63         *
       
    64         * @param desc the description of the widget focused
       
    65         */
       
    66         void setButtonDescription(QString desc);
       
    67 
       
    68         /**
       
    69         * @brief Changes the desc defaut text
       
    70         *
       
    71         * @param text the defaut desc
       
    72         */
       
    73         void setDefautDescription(QString text);
       
    74 
       
    75         /**
       
    76         * @brief Get the desc defaut text
       
    77         */
       
    78         QString * getDefautDescription();
    58 
    79 
    59     signals:
    80     signals:
    60         /**
    81         /**
    61          * @brief This signal is emitted when going back to the previous is
    82          * @brief This signal is emitted when going back to the previous is
    62          * requested - e.g. when the back-button is clicked.
    83          * requested - e.g. when the back-button is clicked.
   151          */
   172          */
   152         void setBackButtonVisible(bool visible = true);
   173         void setBackButtonVisible(bool visible = true);
   153 
   174 
   154         QFont * font14; ///< used font
   175         QFont * font14; ///< used font
   155 
   176 
       
   177         QLabel * descLabel; ///< text description
       
   178         QString * defautDesc;
       
   179 
   156     private:
   180     private:
   157 
   181 
   158         QPushButton * btnBack; ///< back button
   182         QPushButton * btnBack; ///< back button
   159 };
   183 };
   160 
   184