#include "qhandlershibieyichang.h" #include "qbitmap.h" //#include "QAdjustPageButton.h" #include extern int curItem;//当前显示是哪一页 extern int index[];//当前步 extern int total[];//总步数 QHandlerShibieyichang::QHandlerShibieyichang(QWidget *parent) : QWidget(parent) { ui.setupUi(this); QVBoxLayout *verticalLayout = new QVBoxLayout(this); verticalLayout->setSpacing(0); verticalLayout->setContentsMargins(11, 11, 11, 11); verticalLayout->setObjectName(QStringLiteral("verticalLayout")); verticalLayout->setContentsMargins(0, 0, 0, 0); verticalLayout->addWidget(ui.scrollArea); verticalLayout->addWidget(ui.widget_funs); ui.scrollAreaWidgetContents->installEventFilter(this); connect(ui.toolButton_tuoyi, SIGNAL(clicked()), this, SLOT(tool_clickedHander())); connect(ui.toolButton_huanyuan, SIGNAL(clicked()), this, SLOT(tool_clickedHander())); connect(ui.toolButton_chexiao, SIGNAL(clicked()), this, SLOT(tool_clickedHander())); m_bEdited = false; m_tuoyi = true; ui.toolButton_tuoyi->setChecked(true); ui.pushButton_shibie->setVisible(true); ui.toolButton_tuoyi->setVisible(false); ui.toolButton_zuo->setVisible(false); ui.toolButton_you->setVisible(false); ui.toolButton_huanyuan->setVisible(false); ui.toolButton_chexiao->setVisible(false); ui.widget_funs->hide(); } QHandlerShibieyichang::~QHandlerShibieyichang() { } void QHandlerShibieyichang::setPaperInfo( int paper_id) { } void QHandlerShibieyichang::switchPageHandler(){ } void QHandlerShibieyichang::showPage( ) { } void QHandlerShibieyichang::resizeEvent( QResizeEvent * evt ) { QWidget::resizeEvent(evt); updateGeometrys(); } void QHandlerShibieyichang::updateGeometrys() { } void QHandlerShibieyichang::hulueClickedHandler() { } void QHandlerShibieyichang::shibieClickedHandler() { emit handleCompleted(paper_id); } void QHandlerShibieyichang::xuanzhuanClickedHandler() { } bool QHandlerShibieyichang::eventFilter( QObject *o, QEvent * e) { return false; } void QHandlerShibieyichang::tool_clickedHander() { if(sender()==ui.toolButton_tuoyi){ m_tuoyi=ui.toolButton_tuoyi->isChecked(); }else if(sender()==ui.toolButton_chexiao) { }else if(sender()==ui.toolButton_huanyuan) { } } bool QHandlerShibieyichang::IsEdited() { return m_bEdited; } void QHandlerShibieyichang::getDefaultMarkInfo( PAGE_MARK_INFO &markinfo, int muban_img_cols,int muban_img_rows,int shijuan_img_cols,int shijuan_img_rows ) { } void QHandlerShibieyichang::nextPageClickedHandler() { } void QHandlerShibieyichang::prePageClickedHandler() { } void QHandlerShibieyichang::OnDoFinish() { }