правки по ShutDown
This commit is contained in:
6
Sh3.pro
6
Sh3.pro
@@ -45,7 +45,8 @@ SOURCES += main.cpp\
|
|||||||
checkboxmod.cpp \
|
checkboxmod.cpp \
|
||||||
grairobject.cpp \
|
grairobject.cpp \
|
||||||
vvod2z.cpp \
|
vvod2z.cpp \
|
||||||
table2z.cpp
|
table2z.cpp \
|
||||||
|
graphicscrossitem.cpp
|
||||||
|
|
||||||
HEADERS += widget.h \
|
HEADERS += widget.h \
|
||||||
zerkus.h \
|
zerkus.h \
|
||||||
@@ -82,7 +83,8 @@ HEADERS += widget.h \
|
|||||||
checkboxmod.h \
|
checkboxmod.h \
|
||||||
grairobject.h \
|
grairobject.h \
|
||||||
vvod2z.h \
|
vvod2z.h \
|
||||||
table2z.h
|
table2z.h \
|
||||||
|
graphicscrossitem.h
|
||||||
|
|
||||||
FORMS += widget.ui \
|
FORMS += widget.ui \
|
||||||
zerkus.ui \
|
zerkus.ui \
|
||||||
|
|||||||
1
pics.qrc
1
pics.qrc
@@ -17,5 +17,6 @@
|
|||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/fon">
|
<qresource prefix="/fon">
|
||||||
<file>pics/loading.png</file>
|
<file>pics/loading.png</file>
|
||||||
|
<file>pics/shutdown.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
BIN
pics/dead_end.png
Normal file
BIN
pics/dead_end.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 345 KiB |
BIN
pics/shutdown.png
Normal file
BIN
pics/shutdown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
650
widget.cpp
650
widget.cpp
File diff suppressed because it is too large
Load Diff
24
widget.h
24
widget.h
@@ -16,6 +16,7 @@
|
|||||||
#include "graphicsviewmod.h"
|
#include "graphicsviewmod.h"
|
||||||
#include "graphicsarcitem.h"
|
#include "graphicsarcitem.h"
|
||||||
#include "graphicslineitem.h"
|
#include "graphicslineitem.h"
|
||||||
|
#include "graphicscrossitem.h"
|
||||||
#include <QGraphicsColorizeEffect>
|
#include <QGraphicsColorizeEffect>
|
||||||
#include "grairobject.h"
|
#include "grairobject.h"
|
||||||
|
|
||||||
@@ -180,6 +181,10 @@ public:
|
|||||||
void initParams();
|
void initParams();
|
||||||
void setGraph();
|
void setGraph();
|
||||||
|
|
||||||
|
void setGrabFocus(int d);
|
||||||
|
QTimer *tmrFocus;
|
||||||
|
QTimer *tmrSyncr, *tmrReport;
|
||||||
|
|
||||||
void setVCU(int id);
|
void setVCU(int id);
|
||||||
void clearVCU();
|
void clearVCU();
|
||||||
int findTargetFromId(int id);
|
int findTargetFromId(int id);
|
||||||
@@ -216,7 +221,7 @@ public:
|
|||||||
bool resetCVS[3];
|
bool resetCVS[3];
|
||||||
|
|
||||||
int splashIsOn;
|
int splashIsOn;
|
||||||
|
bool systemHalt;
|
||||||
bool meteoAvtonom, meteoSred;
|
bool meteoAvtonom, meteoSred;
|
||||||
void setMeteo(bool m1, bool m2);
|
void setMeteo(bool m1, bool m2);
|
||||||
|
|
||||||
@@ -228,6 +233,7 @@ public:
|
|||||||
void setRezhimGAG(int pos);
|
void setRezhimGAG(int pos);
|
||||||
|
|
||||||
int rezhimZerk;
|
int rezhimZerk;
|
||||||
|
int cvsRezhim;
|
||||||
|
|
||||||
T_geoPoint ts, reper;
|
T_geoPoint ts, reper;
|
||||||
T_metAv metAv;
|
T_metAv metAv;
|
||||||
@@ -264,10 +270,6 @@ public:
|
|||||||
qreal AS_t1, AS_t2, VCU_t1, VCU_t2, R_N_t1, R_N_t2, R_V_t1, R_V_t2;
|
qreal AS_t1, AS_t2, VCU_t1, VCU_t2, R_N_t1, R_N_t2, R_V_t1, R_V_t2;
|
||||||
qreal AS_par;
|
qreal AS_par;
|
||||||
|
|
||||||
// qreal grCrossAzim, grCrossDist;
|
|
||||||
// QGraphicsItem grCross;
|
|
||||||
|
|
||||||
|
|
||||||
qreal azimutRLS;
|
qreal azimutRLS;
|
||||||
graphicsLineItem *grAzimutRLS;
|
graphicsLineItem *grAzimutRLS;
|
||||||
graphicsLineItem *grAzimutRLSnormal;
|
graphicsLineItem *grAzimutRLSnormal;
|
||||||
@@ -285,6 +287,8 @@ public:
|
|||||||
graphicsLineItem *grVCU;
|
graphicsLineItem *grVCU;
|
||||||
int lastKO;
|
int lastKO;
|
||||||
|
|
||||||
|
graphicsCrossItem *grCross;
|
||||||
|
qreal grCrossX, grCrossY;
|
||||||
|
|
||||||
bool autoZAdefault;
|
bool autoZAdefault;
|
||||||
|
|
||||||
@@ -297,6 +301,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
QTimer *loadScreenTmr;
|
QTimer *loadScreenTmr;
|
||||||
|
QGraphicsRectItem *blackRect;
|
||||||
int loadingPos;
|
int loadingPos;
|
||||||
int loadingShift;
|
int loadingShift;
|
||||||
|
|
||||||
@@ -317,7 +322,7 @@ public slots:
|
|||||||
void switchWidget(int);
|
void switchWidget(int);
|
||||||
|
|
||||||
void showSplash(int d=1);
|
void showSplash(int d=1);
|
||||||
void hideSplash() {showSplash(0);};
|
void hideSplash() {showSplash(0);}
|
||||||
|
|
||||||
void msMeteoSredShow(void);
|
void msMeteoSredShow(void);
|
||||||
void msVvodMA(void);
|
void msVvodMA(void);
|
||||||
@@ -360,6 +365,8 @@ public slots:
|
|||||||
|
|
||||||
|
|
||||||
void closeSlot();
|
void closeSlot();
|
||||||
|
void MyClose();
|
||||||
|
void rebootSlot();
|
||||||
void reCalculate();
|
void reCalculate();
|
||||||
|
|
||||||
void processSendingDatagrams(QByteArray buf, int port=45460);
|
void processSendingDatagrams(QByteArray buf, int port=45460);
|
||||||
@@ -398,6 +405,9 @@ private slots:
|
|||||||
void on_comboBox_2_currentIndexChanged(int index);
|
void on_comboBox_2_currentIndexChanged(int index);
|
||||||
|
|
||||||
void on_pushButton_4_clicked();
|
void on_pushButton_4_clicked();
|
||||||
|
void on_pushButton_3_clicked();
|
||||||
|
void on_pushButton_5_clicked();
|
||||||
|
void on_pushButton_6_clicked();
|
||||||
|
|
||||||
void on_comboBox_currentIndexChanged(int index);
|
void on_comboBox_currentIndexChanged(int index);
|
||||||
|
|
||||||
@@ -418,7 +428,7 @@ private slots:
|
|||||||
private:
|
private:
|
||||||
void putDate();
|
void putDate();
|
||||||
|
|
||||||
|
bool keyPressEnabled;
|
||||||
virtual void keyPressEvent ( QKeyEvent * e );
|
virtual void keyPressEvent ( QKeyEvent * e );
|
||||||
|
|
||||||
Ui::Widget *ui;
|
Ui::Widget *ui;
|
||||||
|
|||||||
Reference in New Issue
Block a user