Splitt PowerOff into own class

Add inital AlarmSettingsDialog (not used so far)
This commit is contained in:
IMback 2017-11-19 19:12:09 +01:00
parent 2c46e6ffb6
commit a82a9459bc
7 changed files with 132 additions and 0 deletions

BIN
UVOSicon.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

14
alarmsettingsdialog.cpp Normal file
View 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
View 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
View 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
View File

@ -0,0 +1,6 @@
#include "power.h"
Power::Power(QObject *parent) : QObject(parent)
{
}

17
power.h Normal file
View 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
View File

@ -0,0 +1,2 @@
<!DOCTYPE RCC>
<RCC version="1.0"/>