diff --git a/FilmLightController/FilmLightController.pro b/FilmLightController/FilmLightController.pro new file mode 100644 index 0000000..d98c835 --- /dev/null +++ b/FilmLightController/FilmLightController.pro @@ -0,0 +1,40 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2019-01-28T21:40:18 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = FilmLightController +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has 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 + +CONFIG += c++11 + +SOURCES += \ + main.cpp \ + mainwindow.cpp + +HEADERS += \ + mainwindow.h + +FORMS += \ + mainwindow.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/FilmLightController/main.cpp b/FilmLightController/main.cpp new file mode 100644 index 0000000..b48f94e --- /dev/null +++ b/FilmLightController/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/FilmLightController/mainwindow.cpp b/FilmLightController/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/FilmLightController/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/FilmLightController/mainwindow.h b/FilmLightController/mainwindow.h new file mode 100644 index 0000000..9353441 --- /dev/null +++ b/FilmLightController/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 = nullptr); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/FilmLightController/mainwindow.ui b/FilmLightController/mainwindow.ui new file mode 100644 index 0000000..6b55dc5 --- /dev/null +++ b/FilmLightController/mainwindow.ui @@ -0,0 +1,217 @@ + + + MainWindow + + + + 0 + 0 + 400 + 360 + + + + MainWindow + + + + + + 280 + 20 + 111 + 61 + + + + + + + 10 + 20 + 111 + 61 + + + + + + + 20 + 0 + 71 + 18 + + + + Brightness + + + + + + 300 + 0 + 71 + 18 + + + + Temperature + + + + + + 10 + 150 + 46 + 27 + + + + + + + 230 + 150 + 46 + 27 + + + + + + + 10 + 110 + 80 + 26 + + + + PushButton + + + + + + 100 + 110 + 80 + 26 + + + + PushButton + + + + + + 220 + 110 + 80 + 26 + + + + PushButton + + + + + + 310 + 110 + 80 + 26 + + + + PushButton + + + + + + 100 + 150 + 80 + 26 + + + + PushButton + + + + + + 310 + 150 + 80 + 26 + + + + PushButton + + + + + + 0 + 90 + 401 + 16 + + + + Qt::Horizontal + + + + + + 0 + 190 + 401 + 16 + + + + Qt::Horizontal + + + + + + + 0 + 0 + 400 + 23 + + + + + OpenFilmLight Controller + + + + + + + TopToolBarArea + + + true + + + + + + + +