qhandlershibieyichang.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #include "qhandlershibieyichang.h"
  2. #include "qbitmap.h"
  3. //#include "QAdjustPageButton.h"
  4. #include <QDateTime>
  5. extern int curItem;//当前显示是哪一页
  6. extern int index[];//当前步
  7. extern int total[];//总步数
  8. QHandlerShibieyichang::QHandlerShibieyichang(QWidget *parent) : QWidget(parent)
  9. {
  10. ui.setupUi(this);
  11. QVBoxLayout *verticalLayout = new QVBoxLayout(this);
  12. verticalLayout->setSpacing(0);
  13. verticalLayout->setContentsMargins(11, 11, 11, 11);
  14. verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
  15. verticalLayout->setContentsMargins(0, 0, 0, 0);
  16. verticalLayout->addWidget(ui.scrollArea);
  17. verticalLayout->addWidget(ui.widget_funs);
  18. ui.scrollAreaWidgetContents->installEventFilter(this);
  19. connect(ui.toolButton_tuoyi, SIGNAL(clicked()), this, SLOT(tool_clickedHander()));
  20. connect(ui.toolButton_huanyuan, SIGNAL(clicked()), this, SLOT(tool_clickedHander()));
  21. connect(ui.toolButton_chexiao, SIGNAL(clicked()), this, SLOT(tool_clickedHander()));
  22. m_bEdited = false;
  23. m_tuoyi = true;
  24. ui.toolButton_tuoyi->setChecked(true);
  25. ui.pushButton_shibie->setVisible(true);
  26. ui.toolButton_tuoyi->setVisible(false);
  27. ui.toolButton_zuo->setVisible(false);
  28. ui.toolButton_you->setVisible(false);
  29. ui.toolButton_huanyuan->setVisible(false);
  30. ui.toolButton_chexiao->setVisible(false);
  31. ui.widget_funs->hide();
  32. }
  33. QHandlerShibieyichang::~QHandlerShibieyichang()
  34. {
  35. }
  36. void QHandlerShibieyichang::setPaperInfo( int paper_id)
  37. {
  38. }
  39. void QHandlerShibieyichang::switchPageHandler(){
  40. }
  41. void QHandlerShibieyichang::showPage( )
  42. {
  43. }
  44. void QHandlerShibieyichang::resizeEvent( QResizeEvent * evt )
  45. {
  46. QWidget::resizeEvent(evt);
  47. updateGeometrys();
  48. }
  49. void QHandlerShibieyichang::updateGeometrys()
  50. {
  51. }
  52. void QHandlerShibieyichang::hulueClickedHandler()
  53. {
  54. }
  55. void QHandlerShibieyichang::shibieClickedHandler()
  56. {
  57. emit handleCompleted(paper_id);
  58. }
  59. void QHandlerShibieyichang::xuanzhuanClickedHandler()
  60. {
  61. }
  62. bool QHandlerShibieyichang::eventFilter( QObject *o, QEvent * e)
  63. {
  64. return false;
  65. }
  66. void QHandlerShibieyichang::tool_clickedHander()
  67. {
  68. if(sender()==ui.toolButton_tuoyi){
  69. m_tuoyi=ui.toolButton_tuoyi->isChecked();
  70. }else if(sender()==ui.toolButton_chexiao)
  71. {
  72. }else if(sender()==ui.toolButton_huanyuan)
  73. {
  74. }
  75. }
  76. bool QHandlerShibieyichang::IsEdited()
  77. {
  78. return m_bEdited;
  79. }
  80. void QHandlerShibieyichang::getDefaultMarkInfo( PAGE_MARK_INFO &markinfo, int muban_img_cols,int muban_img_rows,int shijuan_img_cols,int shijuan_img_rows )
  81. {
  82. }
  83. void QHandlerShibieyichang::nextPageClickedHandler()
  84. {
  85. }
  86. void QHandlerShibieyichang::prePageClickedHandler()
  87. {
  88. }
  89. void QHandlerShibieyichang::OnDoFinish()
  90. {
  91. }