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"> |
|||
<class>MainWidget</class> |
|||
<widget class="QWidget" name="MainWidget" > |
|||
<property name="geometry" > |
|||
<widget class="QWidget" name="MainWidget"> |
|||
<property name="geometry"> |
|||
<rect> |
|||
<x>0</x> |
|||
<y>0</y> |
|||
<width>400</width> |
|||
<height>300</height> |
|||
<width>1135</width> |
|||
<height>426</height> |
|||
</rect> |
|||
</property> |
|||
<property name="windowTitle" > |
|||
<property name="windowTitle"> |
|||
<string>MainWidget</string> |
|||
</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> |
|||
<layoutDefault spacing="6" margin="11" /> |
|||
<pixmapfunction></pixmapfunction> |
|||
<layoutdefault spacing="6" margin="11"/> |
|||
<resources/> |
|||
<connections/> |
|||
</ui> |
|||
|
Loading…
Reference in new issue