Inittial Commit
This commit is contained in:
31
SHinterface.pro
Normal file
31
SHinterface.pro
Normal file
@ -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
|
6
alarmtime.cpp
Normal file
6
alarmtime.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "alarmtime.h"
|
||||
|
||||
AlarmTime::AlarmTime()
|
||||
{
|
||||
|
||||
}
|
11
alarmtime.h
Normal file
11
alarmtime.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef ALARMTIME_H
|
||||
#define ALARMTIME_H
|
||||
|
||||
|
||||
class AlarmTime
|
||||
{
|
||||
public:
|
||||
AlarmTime();
|
||||
};
|
||||
|
||||
#endif // ALARMTIME_H
|
6
ampmanager.cpp
Normal file
6
ampmanager.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "ampmanager.h"
|
||||
|
||||
AmpManager::AmpManager(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
16
ampmanager.h
Normal file
16
ampmanager.h
Normal file
@ -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
|
4
formatstring.h
Normal file
4
formatstring.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef FORMATSTRING_H
|
||||
#define FORMATSTRING_H
|
||||
|
||||
#endif // FORMATSTRING_H
|
11
main.cpp
Normal file
11
main.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "mainwindow.h"
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
14
mainwindow.cpp
Normal file
14
mainwindow.cpp
Normal file
@ -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;
|
||||
}
|
22
mainwindow.h
Normal file
22
mainwindow.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
24
mainwindow.ui
Normal file
24
mainwindow.ui
Normal file
@ -0,0 +1,24 @@
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<widget class="QMenuBar" name="menuBar" />
|
||||
<widget class="QToolBar" name="mainToolBar" />
|
||||
<widget class="QWidget" name="centralWidget" />
|
||||
<widget class="QStatusBar" name="statusBar" />
|
||||
</widget>
|
||||
<layoutDefault spacing="6" margin="11" />
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
6
microcontroller.cpp
Normal file
6
microcontroller.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "microcontroller.h"
|
||||
|
||||
Microcontroller::Microcontroller()
|
||||
{
|
||||
|
||||
}
|
11
microcontroller.h
Normal file
11
microcontroller.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef MICROCONTROLLER_H
|
||||
#define MICROCONTROLLER_H
|
||||
|
||||
|
||||
class Microcontroller
|
||||
{
|
||||
public:
|
||||
Microcontroller();
|
||||
};
|
||||
|
||||
#endif // MICROCONTROLLER_H
|
14
relaydialog.cpp
Normal file
14
relaydialog.cpp
Normal file
@ -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;
|
||||
}
|
22
relaydialog.h
Normal file
22
relaydialog.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef RELAYDIALOG_H
|
||||
#define RELAYDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class RelayDialog;
|
||||
}
|
||||
|
||||
class RelayDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit RelayDialog(QWidget *parent = 0);
|
||||
~RelayDialog();
|
||||
|
||||
private:
|
||||
Ui::RelayDialog *ui;
|
||||
};
|
||||
|
||||
#endif // RELAYDIALOG_H
|
71
relaydialog.ui
Normal file
71
relaydialog.ui
Normal file
@ -0,0 +1,71 @@
|
||||
<ui version="4.0">
|
||||
<author/>
|
||||
<comment/>
|
||||
<exportmacro/>
|
||||
<class>RelayDialog</class>
|
||||
<widget class="QDialog" name="RelayDialog">
|
||||
<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 class="QDialogButtonBox" name="buttonBox">
|
||||
<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>RelayDialog</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>RelayDialog</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>
|
0
serial_io.cpp
Normal file
0
serial_io.cpp
Normal file
4
serial_io.h
Normal file
4
serial_io.h
Normal file
@ -0,0 +1,4 @@
|
||||
#ifndef SERIAL_H
|
||||
#define SERIAL_H
|
||||
|
||||
#endif // SERIAL_H
|
6
serialwatcher.cpp
Normal file
6
serialwatcher.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "serialwatcher.h"
|
||||
|
||||
SerialWatcher::SerialWatcher()
|
||||
{
|
||||
|
||||
}
|
11
serialwatcher.h
Normal file
11
serialwatcher.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef SERIALWATCHER_H
|
||||
#define SERIALWATCHER_H
|
||||
|
||||
|
||||
class SerialWatcher
|
||||
{
|
||||
public:
|
||||
SerialWatcher();
|
||||
};
|
||||
|
||||
#endif // SERIALWATCHER_H
|
Reference in New Issue
Block a user