53 lines
891 B
C++
53 lines
891 B
C++
/*
|
|
* PrintTextDisplay.h
|
|
*
|
|
* Created on: Jul 9, 2013
|
|
* Author: yiyu
|
|
* QQ:1036184468
|
|
* Descriptoin:
|
|
|
|
*/
|
|
|
|
#ifndef PRINTTEXTDISPLAY_H_
|
|
#define PRINTTEXTDISPLAY_H_
|
|
|
|
#include "SysPara.h"
|
|
|
|
#include <QWidget>
|
|
class PrintTextDisplay:public QWidget{
|
|
|
|
public:
|
|
explicit PrintTextDisplay(QWidget *parent = 0);
|
|
~PrintTextDisplay();
|
|
|
|
void updateSysParaToUI(); //重载
|
|
|
|
void updateSysStatusToUI(); //重载
|
|
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
void resizeWidget(int w,int h);
|
|
|
|
void enlargeDisplay();
|
|
void reduceDisplay();
|
|
|
|
void setDisplaySize(int w,int h);
|
|
|
|
void setScaleRatio(int ratio);
|
|
|
|
int currScaleRatio();
|
|
|
|
void bindSysPara(SysPara *sysPara);
|
|
|
|
void scroll_update();
|
|
private:
|
|
SysPara* sysPara = nullptr;
|
|
int scaleRatio;
|
|
int origHeight;
|
|
int origWidth;
|
|
bool updateDigitalOnly;
|
|
};
|
|
|
|
|
|
#endif /* PRINTTEXTDISPLAY_H_ */
|