📄 form1.h
字号:
/****************************************************************************
** Form interface generated from reading ui file 'Form1.ui'
**
** Created: 浜? 5鏈?15 11:02:47 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.1.1 edited Nov 21 17:40 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef FORM1_H
#define FORM1_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
#include <qthread.h>
#include <qmutex.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QButtonGroup;
class QFrame;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QTabWidget;
class UartThread : public QThread{
QLineEdit* lineEditGPS;
QLineEdit* lineEditCompass;
QString gpsDat;
QString cpDat;
int fd_IO;
int fd_tts0;
public:
UartThread();
void setPrivate(QLineEdit *LineGps,QLineEdit *LineCompass);
virtual void run();
private:
void setTts1();
void setTts0();
bool getTts0();
void putTts0();
void hand();
bool dataIO();
void dataOut();
};
class Form1 : public QWidget
{
Q_OBJECT
public:
Form1( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Form1();
QTabWidget* TabWidget2;
QWidget* tab;
QLabel* PixmapLabel3;
QButtonGroup* ButtonGroup1;
QLabel* PixmapLabel2_2;
QRadioButton* vehicle;
QRadioButton* gun;
QPushButton* back;
QLabel* PixmapLabel1;
QPushButton* tacticslight;
QPushButton* zidongbizhang;
QPushButton* reversal;
QPushButton* positive;
QLabel* PixmapLabel2;
QLabel* PixmapLabel1_2;
QLabel* PixmapLabel3_3;
QPushButton* backlamp;
QPushButton* LED;
QPushButton* focuslamp;
QLabel* PixmapLabel8;
QLabel* PixmapLabel7;
QLabel* PixmapLabel3_2;
QLabel* PixmapLabel4;
QLabel* PixmapLabel11;
QLabel* PixmapLabel9;
QLabel* PixmapLabel10;
QPushButton* laser;
QLabel* PixmapLabel1_3;
QWidget* tab_2;
QFrame* Frame3;
QLabel* TextLabel2;
QLineEdit* LineEdit2;
QLabel* TextLabel1;
QLineEdit* LineEdit1;
protected:
protected slots :
void dd();
void gunShow();
void vehicleShow();
void blampShow(bool enable);
void flampShow(bool enable);
void laserShow(bool enable);
void ledShow(bool enable);
void tacticShow(bool enable);
void revShow();
void posShow();
void autoRound(bool enable);
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
QPixmap image2;
QPixmap image3;
QPixmap image4;
QPixmap image5;
QPixmap image6;
QPixmap image7;
QPixmap image8;
QPixmap image9;
QPixmap image10;
QPixmap image11;
QPixmap image12;
QPixmap image13;
QPixmap image14;
QPixmap image15;
QPixmap image16;
QPixmap image17;
QPixmap image18;
QPixmap image19;
QPixmap image20;
QPixmap image21;
QPixmap image22;
QPixmap image23;
UartThread myThread;
};
#endif // FORM1_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -