commit 88ef0be4a2c21ea389aecc8990641261aa98cf80 Author: IMback Date: Thu Nov 2 17:20:52 2017 +0100 Inittial Commit diff --git a/SHinterface.pro b/SHinterface.pro new file mode 100644 index 0000000..10970ec --- /dev/null +++ b/SHinterface.pro @@ -0,0 +1,31 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2017-06-01T22:31:38 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = SHinterface +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which as been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/alarmtime.cpp b/alarmtime.cpp new file mode 100644 index 0000000..29bd0df --- /dev/null +++ b/alarmtime.cpp @@ -0,0 +1,6 @@ +#include "alarmtime.h" + +AlarmTime::AlarmTime() +{ + +} diff --git a/alarmtime.h b/alarmtime.h new file mode 100644 index 0000000..89d91bb --- /dev/null +++ b/alarmtime.h @@ -0,0 +1,11 @@ +#ifndef ALARMTIME_H +#define ALARMTIME_H + + +class AlarmTime +{ +public: + AlarmTime(); +}; + +#endif // ALARMTIME_H \ No newline at end of file diff --git a/ampmanager.cpp b/ampmanager.cpp new file mode 100644 index 0000000..abeca71 --- /dev/null +++ b/ampmanager.cpp @@ -0,0 +1,6 @@ +#include "ampmanager.h" + +AmpManager::AmpManager(QObject *parent) : QObject(parent) +{ + +} diff --git a/ampmanager.h b/ampmanager.h new file mode 100644 index 0000000..98297ab --- /dev/null +++ b/ampmanager.h @@ -0,0 +1,16 @@ +#ifndef AMPMANAGER_H +#define AMPMANAGER_H + + +class AmpManager : public QObject +{ + Q_OBJECT +public: + explicit AmpManager(QObject *parent = 0); + +signals: + +public slots: +}; + +#endif // AMPMANAGER_H \ No newline at end of file diff --git a/formatstring.h b/formatstring.h new file mode 100644 index 0000000..c96daa3 --- /dev/null +++ b/formatstring.h @@ -0,0 +1,4 @@ +#ifndef FORMATSTRING_H +#define FORMATSTRING_H + +#endif // FORMATSTRING_H diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..b48f94e --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..a3948a9 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..6050363 --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/microcontroller.cpp b/microcontroller.cpp new file mode 100644 index 0000000..9c8e14e --- /dev/null +++ b/microcontroller.cpp @@ -0,0 +1,6 @@ +#include "microcontroller.h" + +Microcontroller::Microcontroller() +{ + +} diff --git a/microcontroller.h b/microcontroller.h new file mode 100644 index 0000000..f931674 --- /dev/null +++ b/microcontroller.h @@ -0,0 +1,11 @@ +#ifndef MICROCONTROLLER_H +#define MICROCONTROLLER_H + + +class Microcontroller +{ +public: + Microcontroller(); +}; + +#endif // MICROCONTROLLER_H \ No newline at end of file diff --git a/relay.h b/relay.h new file mode 100644 index 0000000..3e3e755 --- /dev/null +++ b/relay.h @@ -0,0 +1,4 @@ +#ifndef RELAY_H +#define RELAY_H + +#endif // RELAY_H diff --git a/relaydialog.cpp b/relaydialog.cpp new file mode 100644 index 0000000..14cda3c --- /dev/null +++ b/relaydialog.cpp @@ -0,0 +1,14 @@ +#include "relaydialog.h" +#include "ui_relaydialog.h" + +RelayDialog::RelayDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::RelayDialog) +{ + ui->setupUi(this); +} + +RelayDialog::~RelayDialog() +{ + delete ui; +} diff --git a/relaydialog.h b/relaydialog.h new file mode 100644 index 0000000..1f522c6 --- /dev/null +++ b/relaydialog.h @@ -0,0 +1,22 @@ +#ifndef RELAYDIALOG_H +#define RELAYDIALOG_H + +#include + +namespace Ui { +class RelayDialog; +} + +class RelayDialog : public QDialog +{ + Q_OBJECT + +public: + explicit RelayDialog(QWidget *parent = 0); + ~RelayDialog(); + +private: + Ui::RelayDialog *ui; +}; + +#endif // RELAYDIALOG_H diff --git a/relaydialog.ui b/relaydialog.ui new file mode 100644 index 0000000..2c38028 --- /dev/null +++ b/relaydialog.ui @@ -0,0 +1,71 @@ + + + + + RelayDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + 30 + 240 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + buttonBox + accepted() + RelayDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + RelayDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/serial_io.cpp b/serial_io.cpp new file mode 100644 index 0000000..e69de29 diff --git a/serial_io.h b/serial_io.h new file mode 100644 index 0000000..7a15975 --- /dev/null +++ b/serial_io.h @@ -0,0 +1,4 @@ +#ifndef SERIAL_H +#define SERIAL_H + +#endif // SERIAL_H diff --git a/serialwatcher.cpp b/serialwatcher.cpp new file mode 100644 index 0000000..36d97a8 --- /dev/null +++ b/serialwatcher.cpp @@ -0,0 +1,6 @@ +#include "serialwatcher.h" + +SerialWatcher::SerialWatcher() +{ + +} diff --git a/serialwatcher.h b/serialwatcher.h new file mode 100644 index 0000000..4f3c1f7 --- /dev/null +++ b/serialwatcher.h @@ -0,0 +1,11 @@ +#ifndef SERIALWATCHER_H +#define SERIALWATCHER_H + + +class SerialWatcher +{ +public: + SerialWatcher(); +}; + +#endif // SERIALWATCHER_H \ No newline at end of file