123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- #include "qhandlershibieyichang.h"
- #include "qbitmap.h"
- //#include "QAdjustPageButton.h"
- #include <QDateTime>
- 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()
- {
- }
|