12 changed files with 209 additions and 7 deletions
@ -0,0 +1,26 @@ |
|||||||
|
#include "WatchdogProcessView.h" |
||||||
|
#include "ui_WatchdogProcessView.h" |
||||||
|
|
||||||
|
WatchdogProcessView::WatchdogProcessView(QWidget *parent) : |
||||||
|
QWidget(parent), |
||||||
|
m_ui(new Ui::WatchdogProcessView) |
||||||
|
{ |
||||||
|
m_ui->setupUi(this); |
||||||
|
} |
||||||
|
|
||||||
|
WatchdogProcessView::~WatchdogProcessView() |
||||||
|
{ |
||||||
|
delete m_ui; |
||||||
|
} |
||||||
|
|
||||||
|
void WatchdogProcessView::changeEvent(QEvent *e) |
||||||
|
{ |
||||||
|
QWidget::changeEvent(e); |
||||||
|
switch (e->type()) { |
||||||
|
case QEvent::LanguageChange: |
||||||
|
m_ui->retranslateUi(this); |
||||||
|
break; |
||||||
|
default: |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
#ifndef WATCHDOGPROCESSVIEW_H |
||||||
|
#define WATCHDOGPROCESSVIEW_H |
||||||
|
|
||||||
|
#include <QtGui/QWidget> |
||||||
|
|
||||||
|
namespace Ui { |
||||||
|
class WatchdogProcessView; |
||||||
|
} |
||||||
|
|
||||||
|
class WatchdogProcessView : public QWidget { |
||||||
|
Q_OBJECT |
||||||
|
public: |
||||||
|
WatchdogProcessView(QWidget *parent = 0); |
||||||
|
~WatchdogProcessView(); |
||||||
|
|
||||||
|
protected: |
||||||
|
void changeEvent(QEvent *e); |
||||||
|
|
||||||
|
private: |
||||||
|
Ui::WatchdogProcessView *m_ui; |
||||||
|
}; |
||||||
|
|
||||||
|
#endif // WATCHDOGPROCESSVIEW_H
|
@ -0,0 +1,56 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<ui version="4.0"> |
||||||
|
<class>WatchdogProcessView</class> |
||||||
|
<widget class="QWidget" name="WatchdogProcessView"> |
||||||
|
<property name="geometry"> |
||||||
|
<rect> |
||||||
|
<x>0</x> |
||||||
|
<y>0</y> |
||||||
|
<width>400</width> |
||||||
|
<height>44</height> |
||||||
|
</rect> |
||||||
|
</property> |
||||||
|
<property name="windowTitle"> |
||||||
|
<string>Form</string> |
||||||
|
</property> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout"> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="nameLabel"> |
||||||
|
<property name="text"> |
||||||
|
<string>TextLabel</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="pidLabel"> |
||||||
|
<property name="text"> |
||||||
|
<string>TextLabel</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QLabel" name="argumentsLabel"> |
||||||
|
<property name="text"> |
||||||
|
<string>TextLabel</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QToolButton" name="startButton"> |
||||||
|
<property name="text"> |
||||||
|
<string>...</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QToolButton" name="restartButton"> |
||||||
|
<property name="text"> |
||||||
|
<string>...</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
<resources/> |
||||||
|
<connections/> |
||||||
|
</ui> |
@ -0,0 +1,26 @@ |
|||||||
|
#include "WatchdogView.h" |
||||||
|
#include "ui_WatchdogView.h" |
||||||
|
|
||||||
|
WatchdogView::WatchdogView(QWidget *parent) : |
||||||
|
QWidget(parent), |
||||||
|
m_ui(new Ui::WatchdogView) |
||||||
|
{ |
||||||
|
m_ui->setupUi(this); |
||||||
|
} |
||||||
|
|
||||||
|
WatchdogView::~WatchdogView() |
||||||
|
{ |
||||||
|
delete m_ui; |
||||||
|
} |
||||||
|
|
||||||
|
void WatchdogView::changeEvent(QEvent *e) |
||||||
|
{ |
||||||
|
QWidget::changeEvent(e); |
||||||
|
switch (e->type()) { |
||||||
|
case QEvent::LanguageChange: |
||||||
|
m_ui->retranslateUi(this); |
||||||
|
break; |
||||||
|
default: |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
#ifndef WATCHDOGVIEW_H |
||||||
|
#define WATCHDOGVIEW_H |
||||||
|
|
||||||
|
#include <QtGui/QWidget> |
||||||
|
|
||||||
|
namespace Ui { |
||||||
|
class WatchdogView; |
||||||
|
} |
||||||
|
|
||||||
|
class WatchdogView : public QWidget { |
||||||
|
Q_OBJECT |
||||||
|
public: |
||||||
|
WatchdogView(QWidget *parent = 0); |
||||||
|
~WatchdogView(); |
||||||
|
|
||||||
|
protected: |
||||||
|
void changeEvent(QEvent *e); |
||||||
|
|
||||||
|
private: |
||||||
|
Ui::WatchdogView *m_ui; |
||||||
|
}; |
||||||
|
|
||||||
|
#endif // WATCHDOGVIEW_H
|
@ -0,0 +1,31 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<ui version="4.0"> |
||||||
|
<class>WatchdogView</class> |
||||||
|
<widget class="QWidget" name="WatchdogView"> |
||||||
|
<property name="geometry"> |
||||||
|
<rect> |
||||||
|
<x>0</x> |
||||||
|
<y>0</y> |
||||||
|
<width>400</width> |
||||||
|
<height>300</height> |
||||||
|
</rect> |
||||||
|
</property> |
||||||
|
<property name="windowTitle"> |
||||||
|
<string>Form</string> |
||||||
|
</property> |
||||||
|
<layout class="QGridLayout" name="gridLayout" rowstretch="0,100"> |
||||||
|
<item row="0" column="0"> |
||||||
|
<widget class="QLabel" name="nameLabel"> |
||||||
|
<property name="text"> |
||||||
|
<string>Watchdog</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item row="1" column="0"> |
||||||
|
<widget class="QWidget" name="processListWidget" native="true"/> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
<resources/> |
||||||
|
<connections/> |
||||||
|
</ui> |
Loading…
Reference in new issue