/vp_plugins/print_monitor/selectpage.h

http://cupsfilter.googlecode.com/ · C Header · 40 lines · 28 code · 7 blank · 5 comment · 0 complexity · cd5470d92438dba2eefe5f3c9e20c35a MD5 · raw file

  1. #ifndef SELECTPAGE_H
  2. #define SELECTPAGE_H
  3. #include <QtGui/QWidget>
  4. #include <QtCore/QMap>
  5. QT_FORWARD_DECLARE_CLASS ( QRadioButton )
  6. QT_FORWARD_DECLARE_CLASS ( QCheckBox )
  7. QT_FORWARD_DECLARE_CLASS ( QComboBox )
  8. QT_FORWARD_DECLARE_CLASS ( QLabel )
  9. QT_FORWARD_DECLARE_CLASS ( QStandardItemModel )
  10. class SelectPage : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit SelectPage(QWidget *parent = 0);
  15. void setPrintersModel(QStandardItemModel *p_model );
  16. void needRestart();
  17. /**
  18. * @fn bool enableNext();
  19. * @brief ????????? ?????? ?? ????????? ????????
  20. * ???? ??? ???? ????????????? ?????????
  21. */
  22. bool enableNext();
  23. private slots:
  24. void selectedPrinter(int idx);
  25. private:
  26. QStandardItemModel *printer_model;
  27. QRadioButton * markBrakDoc;
  28. QRadioButton * accountingDoc;
  29. QRadioButton * printDoc;
  30. QRadioButton * both_step;
  31. QComboBox * printersCBox;
  32. };
  33. #endif // SELECTPAGE_H