forked from ccsens_hardware/qt_qcp_show
12 changed files with 272 additions and 14 deletions
@ -0,0 +1,34 @@ |
|||||
|
#ifndef MAINWIDGET_H |
||||
|
#define MAINWIDGET_H |
||||
|
|
||||
|
#include <QWidget> |
||||
|
#include "patientemergencyinfo.h" |
||||
|
|
||||
|
namespace Ui { |
||||
|
class MainWidget; |
||||
|
} |
||||
|
|
||||
|
class MainWidget : public QWidget |
||||
|
{ |
||||
|
Q_OBJECT |
||||
|
|
||||
|
public: |
||||
|
explicit MainWidget(QWidget *parent = 0); |
||||
|
~MainWidget(); |
||||
|
|
||||
|
private: |
||||
|
Ui::MainWidget *ui; |
||||
|
QList<PatientEmergencyInfo *> m_patientEmergencyInfos; |
||||
|
int m_maxPatientNum; |
||||
|
|
||||
|
public slots: |
||||
|
void onWsConnectedStatusChanged(int); |
||||
|
void onNewPatientMergencyInfo(QString firstAidId,QString name,QString content,quint64 realCountDownInSeconds); |
||||
|
void onPatientMergencyStatusChanged(QString firstAidId,QString time,QString status); |
||||
|
void addPatientToList(const PatientEmergencyInfo *); |
||||
|
void deletePatientFromList(QString firstAidId); |
||||
|
signals: |
||||
|
statusChanged(QString firstAidId,QString status); |
||||
|
}; |
||||
|
|
||||
|
#endif // MAINWIDGET_H |
@ -1,20 +1,59 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ui version="4.0"> |
<ui version="4.0"> |
||||
<class>MainWidget</class> |
<class>MainWidget</class> |
||||
<widget class="QWidget" name="MainWidget" > |
<widget class="QWidget" name="MainWidget"> |
||||
<property name="geometry" > |
<property name="geometry"> |
||||
<rect> |
<rect> |
||||
<x>0</x> |
<x>0</x> |
||||
<y>0</y> |
<y>0</y> |
||||
<width>400</width> |
<width>1135</width> |
||||
<height>300</height> |
<height>426</height> |
||||
</rect> |
</rect> |
||||
</property> |
</property> |
||||
<property name="windowTitle" > |
<property name="windowTitle"> |
||||
<string>MainWidget</string> |
<string>MainWidget</string> |
||||
</property> |
</property> |
||||
|
<widget class="QLabel" name="textLabel"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>210</x> |
||||
|
<y>75</y> |
||||
|
<width>721</width> |
||||
|
<height>61</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>textLabel</string> |
||||
|
</property> |
||||
|
</widget> |
||||
|
<widget class="QLabel" name="countdownLabel"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>390</x> |
||||
|
<y>160</y> |
||||
|
<width>721</width> |
||||
|
<height>61</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>countdownLabel</string> |
||||
|
</property> |
||||
|
</widget> |
||||
|
<widget class="QLabel" name="statusLabel"> |
||||
|
<property name="geometry"> |
||||
|
<rect> |
||||
|
<x>1010</x> |
||||
|
<y>390</y> |
||||
|
<width>91</width> |
||||
|
<height>20</height> |
||||
|
</rect> |
||||
|
</property> |
||||
|
<property name="text"> |
||||
|
<string>statusLabel</string> |
||||
|
</property> |
||||
|
</widget> |
||||
</widget> |
</widget> |
||||
<layoutDefault spacing="6" margin="11" /> |
<layoutdefault spacing="6" margin="11"/> |
||||
<pixmapfunction></pixmapfunction> |
|
||||
<resources/> |
<resources/> |
||||
<connections/> |
<connections/> |
||||
</ui> |
</ui> |
||||
|
Loading…
Reference in new issue