Splitt PowerOff into own class
Add inital AlarmSettingsDialog (not used so far)
This commit is contained in:
BIN
UVOSicon.bmp
Normal file
BIN
UVOSicon.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
14
alarmsettingsdialog.cpp
Normal file
14
alarmsettingsdialog.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include "alarmsettingsdialog.h"
|
||||||
|
#include "ui_alarmsettingsdialog.h"
|
||||||
|
|
||||||
|
AlarmSettingsDialog::AlarmSettingsDialog(QWidget *parent) :
|
||||||
|
QDialog(parent),
|
||||||
|
ui(new Ui::AlarmSettingsDialog)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
AlarmSettingsDialog::~AlarmSettingsDialog()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
22
alarmsettingsdialog.h
Normal file
22
alarmsettingsdialog.h
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#ifndef ALARMSETTINGSDIALOG_H
|
||||||
|
#define ALARMSETTINGSDIALOG_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class AlarmSettingsDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
class AlarmSettingsDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit AlarmSettingsDialog(QWidget *parent = 0);
|
||||||
|
~AlarmSettingsDialog();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::AlarmSettingsDialog *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // ALARMSETTINGSDIALOG_H
|
71
alarmsettingsdialog.ui
Normal file
71
alarmsettingsdialog.ui
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<ui version="4.0">
|
||||||
|
<author/>
|
||||||
|
<comment/>
|
||||||
|
<exportmacro/>
|
||||||
|
<class>AlarmSettingsDialog</class>
|
||||||
|
<widget name="AlarmSettingsDialog" class="QDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>300</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
|
<widget name="buttonBox" class="QDialogButtonBox">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>240</y>
|
||||||
|
<width>341</width>
|
||||||
|
<height>32</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<pixmapfunction/>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>AlarmSettingsDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>248</x>
|
||||||
|
<y>254</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>157</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>AlarmSettingsDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>316</x>
|
||||||
|
<y>260</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>286</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
|
</ui>
|
6
power.cpp
Normal file
6
power.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "power.h"
|
||||||
|
|
||||||
|
Power::Power(QObject *parent) : QObject(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
17
power.h
Normal file
17
power.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#ifndef POWER_H
|
||||||
|
#define POWER_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
class Power : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit Power(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // POWER_H
|
2
resources.qrc
Normal file
2
resources.qrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!DOCTYPE RCC>
|
||||||
|
<RCC version="1.0"/>
|
Reference in New Issue
Block a user