?? display.h
字號:
/****************************************************************************** Form interface generated from reading ui file 'displaywidget.ui'**** Created: 星期六 八月 25 11:04:09 2007** by: The User Interface Compiler ($Id: qt/main.cpp 3.2.1 edited May 19 14:22 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#ifndef DISPLAYWIDGET_H#define DISPLAYWIDGET_H#include <qvariant.h>//#include <qpixmap.h>#include <qwidget.h>#define ADC_DEV "/dev/adc/0raw"#define ADC_WRITE(ch, prescale) ((ch)<<16|(prescale))class QVBoxLayout;class QHBoxLayout;class QGridLayout;class Screen;class QPushButton;class QLabel;class QLineEdit;
//class QString;
//class QStringList;
class QTimer;class QFile;class DisplayWidget : public QWidget{ Q_OBJECTpublic: DisplayWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~DisplayWidget();
QSize sizeHint() const;
//double readCurveDate();
//void readFile(); int GetADresult(int c);
void run(); Screen* screenFir; Screen* screenSec; Screen* screenThr; QPushButton* startButton; QLabel* labelPixmap; QPushButton* stopButton; QLabel* labelFir; QLineEdit* lineEditFir; QLabel* labelSec; QLineEdit* lineEditSec; QLabel* labelThr; QLineEdit* lineEditThr;protected: QGridLayout* DisplayWidgetLayout; QVBoxLayout* layout1; QHBoxLayout* layout5; QVBoxLayout* layout2; QVBoxLayout* layout3; QVBoxLayout* layout4;protected slots: virtual void languageChange(); void tick();
void start();
void stop();private: // QPixmap image0;
QTimer *timer; QFile *ADFile;
enum { Margin = 40};
//QString str;
//QStringList strlist;
//QStringList ::Iterator it;
// int time;
//double yval; double yval[3]; //int adc_fd;};#endif // DISPLAYWIDGET_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -