From 38d8f89f2f2b27fb25e0b4b9a34b45b76f6dc6f2 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Mon, 13 Feb 2017 16:06:14 +1030 Subject: added fade ability to Arduino sketch, using psuedo threading. Rework of serial communication also started, the Qt interface is currently under development to support fading. --- arduino/rgb/.plan.txt.swp | Bin 0 -> 12288 bytes arduino/rgb/.rgb.ino.swp | Bin 0 -> 12288 bytes arduino/rgb/plan.txt | 14 + arduino/rgb/rgb.ino | 130 +++- arduino/rgb/rgb.inoold | 44 ++ arduino/rgb/test.in | 103 +++ qt/RGBController/.qmake.stash | 12 + qt/RGBController/Makefile | 852 +++++++++++++++++++++ qt/RGBController/RGBController | Bin 0 -> 82912 bytes qt/RGBController/RGBController.pro.user | 74 +- qt/RGBController/controllerwindow.cpp | 96 +-- qt/RGBController/controllerwindow.h | 40 +- qt/RGBController/controllerwindow.o | Bin 0 -> 83864 bytes qt/RGBController/controllerwindow.ui | 243 ++++-- qt/RGBController/controllerwindow.ui.autosave | 352 +++++++++ qt/RGBController/main.o | Bin 0 -> 3176 bytes qt/RGBController/moc_controllerwindow.cpp | 183 +++++ qt/RGBController/moc_controllerwindow.o | Bin 0 -> 14024 bytes qt/RGBController/moc_predefs.h | 292 +++++++ qt/RGBController/serial_communication.o | Bin 0 -> 8856 bytes qt/RGBController/ui_controllerwindow.h | 357 +++++++++ qt/build-RGBController-Desktop-Debug/Makefile | 247 ++++++ .../ui_controllerwindow.h | 357 +++++++++ qt/build/degub/.qmake.stash | 12 + qt/build/degub/Makefile | 80 +- qt/build/degub/RGBController | Bin 1314264 -> 1312000 bytes qt/build/degub/controllerwindow.o | Bin 1029400 -> 651816 bytes qt/build/degub/main.o | Bin 872920 -> 499560 bytes qt/build/degub/moc_controllerwindow.cpp | 4 +- qt/build/degub/moc_controllerwindow.o | Bin 971792 -> 561368 bytes qt/build/degub/presets.txt | 1 + qt/build/degub/presets_backup.txt | 11 + qt/build/degub/serial_communication.o | Bin 533368 -> 293944 bytes qt/build/degub/ui_controllerwindow.h | 82 +- 34 files changed, 3304 insertions(+), 282 deletions(-) create mode 100644 arduino/rgb/.plan.txt.swp create mode 100644 arduino/rgb/.rgb.ino.swp create mode 100644 arduino/rgb/plan.txt create mode 100644 arduino/rgb/rgb.inoold create mode 100644 arduino/rgb/test.in create mode 100644 qt/RGBController/.qmake.stash create mode 100644 qt/RGBController/Makefile create mode 100755 qt/RGBController/RGBController create mode 100644 qt/RGBController/controllerwindow.o create mode 100644 qt/RGBController/controllerwindow.ui.autosave create mode 100644 qt/RGBController/main.o create mode 100644 qt/RGBController/moc_controllerwindow.cpp create mode 100644 qt/RGBController/moc_controllerwindow.o create mode 100644 qt/RGBController/moc_predefs.h create mode 100644 qt/RGBController/serial_communication.o create mode 100644 qt/RGBController/ui_controllerwindow.h create mode 100644 qt/build-RGBController-Desktop-Debug/Makefile create mode 100644 qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h create mode 100644 qt/build/degub/.qmake.stash mode change 100755 => 100644 qt/build/degub/moc_controllerwindow.cpp create mode 100644 qt/build/degub/presets_backup.txt mode change 100755 => 100644 qt/build/degub/ui_controllerwindow.h diff --git a/arduino/rgb/.plan.txt.swp b/arduino/rgb/.plan.txt.swp new file mode 100644 index 0000000..e9905dc Binary files /dev/null and b/arduino/rgb/.plan.txt.swp differ diff --git a/arduino/rgb/.rgb.ino.swp b/arduino/rgb/.rgb.ino.swp new file mode 100644 index 0000000..d5c3851 Binary files /dev/null and b/arduino/rgb/.rgb.ino.swp differ diff --git a/arduino/rgb/plan.txt b/arduino/rgb/plan.txt new file mode 100644 index 0000000..d5bda5d --- /dev/null +++ b/arduino/rgb/plan.txt @@ -0,0 +1,14 @@ + + +loop { + + special function thread + serial handle + +} + +special function thread { + + + +} diff --git a/arduino/rgb/rgb.ino b/arduino/rgb/rgb.ino index 702fbe1..7d61ceb 100644 --- a/arduino/rgb/rgb.ino +++ b/arduino/rgb/rgb.ino @@ -1,4 +1,6 @@ -int incomingByte = 0; // for incoming serial data +#include +#include + const int redPin = 2; const int greenPin = 4; const int bluePin = 3; @@ -7,38 +9,100 @@ int red; int green; int blue; -String inData; -void setup() { - Serial.begin(9600); // opens serial port, sets data rate to 9600 bps - red = 0; - green = 0; - blue = 0; - pinMode(redPin, OUTPUT); - pinMode(greenPin, OUTPUT); - pinMode(bluePin, OUTPUT); +void red_thread(); +bool r_rev = false; + +void green_thread(); +bool g_rev = false; + +void blue_thread(); +bool b_rev = false; + +Thread r_fade = Thread(); +Thread g_fade = Thread(); +Thread b_fade = Thread(); + +void setup() +{ + Serial.begin(9600); + pinMode(redPin, OUTPUT); + pinMode(greenPin, OUTPUT); + pinMode(bluePin, OUTPUT); + + /* set all values to 0 */ + red = 0; + green = 0; + blue = 0; + r_fade.enabled = false; + r_fade.onRun(red_thread); + r_fade.setInterval(10); + + g_fade.enabled = false; + g_fade.onRun(green_thread); + g_fade.setInterval(10); + + b_fade.enabled = false; + b_fade.onRun(blue_thread); + b_fade.setInterval(10); + } -void loop() { - - // send data only when you receive data: - if (Serial.available() > 0) { - char recieved = Serial.read(); - inData += recieved; - - // Process message when new line character is recieved - if (recieved == '\n') - { - Serial.print("string: "); - Serial.print(inData); - String first = Serial.readStringUntil(','); - Serial.read(); //next character is comma, so skip it using this - String second = Serial.readStringUntil(','); - Serial.read(); - String third = Serial.readStringUntil('\0'); - Serial.print(first + "\n"); - Serial.print(second + "\n"); - Serial.print(third + "\n"); - inData = ""; // Clear recieved buffer - } - } +void red_thread() +{ + if (red == 255) + r_rev = true; + if (red == 0) + r_rev = false; + if (!r_rev) + red++;analogWrite(redPin, red); + if (r_rev) + red--;analogWrite(redPin, red); +} + +void green_thread() +{ + if (green == 255) + g_rev = true; + if (green == 0) + g_rev = false; + if (!g_rev) + green++;analogWrite(greenPin, green); + if (g_rev) + green--;analogWrite(greenPin, green); +} + + +void blue_thread() +{ + if (blue == 255) + b_rev = true; + if (blue == 0) + b_rev = false; + if (!b_rev) + blue++;analogWrite(bluePin, blue); + if (b_rev) + blue--;analogWrite(bluePin, blue); +} + + +void loop() +{ + if (r_fade.shouldRun()) + r_fade.run(); + if (g_fade.shouldRun()) + g_fade.run(); + if (b_fade.shouldRun()) + b_fade.run(); + + /* read serial data */ + while (Serial.available() > 1) + { + + red = Serial.parseInt(); + green = Serial.parseInt(); + blue = Serial.parseInt(); + analogWrite(redPin, red); + analogWrite(greenPin, green); + analogWrite(bluePin, blue); + } } diff --git a/arduino/rgb/rgb.inoold b/arduino/rgb/rgb.inoold new file mode 100644 index 0000000..702fbe1 --- /dev/null +++ b/arduino/rgb/rgb.inoold @@ -0,0 +1,44 @@ +int incomingByte = 0; // for incoming serial data +const int redPin = 2; +const int greenPin = 4; +const int bluePin = 3; + +int red; +int green; +int blue; + +String inData; +void setup() { + Serial.begin(9600); // opens serial port, sets data rate to 9600 bps + red = 0; + green = 0; + blue = 0; + pinMode(redPin, OUTPUT); + pinMode(greenPin, OUTPUT); + pinMode(bluePin, OUTPUT); +} + +void loop() { + + // send data only when you receive data: + if (Serial.available() > 0) { + char recieved = Serial.read(); + inData += recieved; + + // Process message when new line character is recieved + if (recieved == '\n') + { + Serial.print("string: "); + Serial.print(inData); + String first = Serial.readStringUntil(','); + Serial.read(); //next character is comma, so skip it using this + String second = Serial.readStringUntil(','); + Serial.read(); + String third = Serial.readStringUntil('\0'); + Serial.print(first + "\n"); + Serial.print(second + "\n"); + Serial.print(third + "\n"); + inData = ""; // Clear recieved buffer + } + } +} diff --git a/arduino/rgb/test.in b/arduino/rgb/test.in new file mode 100644 index 0000000..dd28395 --- /dev/null +++ b/arduino/rgb/test.in @@ -0,0 +1,103 @@ +#include +#include +#include + +const int PRED = 2; +const int PGREEN = 4; +const int PBLUE = 3; + +#define OLED_RESET 4 + +#define WIDTH 128 +#define HEIGHT 64 + +Adafruit_SSD1306 display(OLED_RESET); + +/* storage */ +int red; +int green; +int blue; + +class menuitem +{ + public: + String name; + String desc; +}; + +menuitem items[6]; + +void setup() +{ + Serial.begin(9600); + pinMode(PRED, OUTPUT); + pinMode(PGREEN, OUTPUT); + pinMode(PBLUE, OUTPUT); + + /* set all values to 0 */ + red = 0; + green = 0; + blue = 0; +// setupmenu(); + //display.begin(SSD1306_SWITCHCAPVCC, 0x3C); + display.clearDisplay(); +} + +void loop() +{ + rgb(); + display.clearDisplay(); + //menu(); + oledwrite(0,0,3,"testtt"); + display.display(); + +} + +void setupmenu() +{ + for (int x = 0; x < sizeof(items); x++) + { + items[x] = menuitem(); + } + items[0].name = "test 1"; + items[0].desc = "first test"; +} + +void menu() +{ + oledwrite(0, 0, 2, items[0].name); + oledwrite(60, 0, 2, items[0].desc); +} + +void oledwrite(int x, int y, int size, String text) +{ + display.setTextSize(size); + display.setTextColor(WHITE); + display.setCursor(x, y); + display.println(text); +} + +void oledpixel(int x, int y) +{ + display.drawPixel(x, y, 1); +} + +void oledline(int x1, int y1, int x2, int y2) +{ + display.drawLine(x1, y1, x2, y2, WHITE); +} + +void rgb() +{ + /* read serial data */ + while (Serial.available() > 1) + { + red = Serial.parseInt(); + green = Serial.parseInt(); + blue = Serial.parseInt(); + analogWrite(PRED, red); + analogWrite(PGREEN, green); + analogWrite(PBLUE, blue); + } + +} diff --git a/qt/RGBController/.qmake.stash b/qt/RGBController/.qmake.stash new file mode 100644 index 0000000..39abb16 --- /dev/null +++ b/qt/RGBController/.qmake.stash @@ -0,0 +1,12 @@ +QMAKE_DEFAULT_INCDIRS = \ + /usr/include/c++/6.3.1 \ + /usr/include/c++/6.3.1/x86_64-pc-linux-gnu \ + /usr/include/c++/6.3.1/backward \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include \ + /usr/local/include \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include-fixed \ + /usr/include +QMAKE_DEFAULT_LIBDIRS = \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 \ + /usr/lib \ + /lib diff --git a/qt/RGBController/Makefile b/qt/RGBController/Makefile new file mode 100644 index 0000000..efaa9b4 --- /dev/null +++ b/qt/RGBController/Makefile @@ -0,0 +1,852 @@ +############################################################################# +# Makefile for building: RGBController +# Generated by qmake (3.1) (Qt 5.8.0) +# Project: RGBController.pro +# Template: app +# Command: /usr/bin/qmake -o Makefile RGBController.pro +############################################################################# + +MAKEFILE = Makefile + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB +CFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC $(DEFINES) +CXXFLAGS = -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC $(DEFINES) +INCPATH = -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtSerialPort -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ +QMAKE = /usr/bin/qmake +DEL_FILE = rm -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p +COPY = cp -f +COPY_FILE = cp -f +COPY_DIR = cp -f -R +INSTALL_FILE = install -m 644 -p +INSTALL_PROGRAM = install -m 755 -p +INSTALL_DIR = cp -f -R +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +TAR = tar -cf +COMPRESS = gzip -9f +DISTNAME = RGBController1.0.0 +DISTDIR = /home/daniel_j/documents/school/2016\ research\ project/RGBController/qt/RGBController/.tmp/RGBController1.0.0 +LINK = g++ +LFLAGS = -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro +LIBS = $(SUBLIBS) -lQt5Widgets -lQt5Gui -lQt5SerialPort -lQt5Network -lQt5Core -lGL -lpthread +AR = ar cqs +RANLIB = +SED = sed +STRIP = strip + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = main.cpp \ + controllerwindow.cpp \ + serial_communication.cpp moc_controllerwindow.cpp +OBJECTS = main.o \ + controllerwindow.o \ + serial_communication.o \ + moc_controllerwindow.o +DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ + /usr/lib/qt/mkspecs/common/unix.conf \ + /usr/lib/qt/mkspecs/common/linux.conf \ + /usr/lib/qt/mkspecs/common/sanitize.conf \ + /usr/lib/qt/mkspecs/common/gcc-base.conf \ + /usr/lib/qt/mkspecs/common/gcc-base-unix.conf \ + /usr/lib/qt/mkspecs/common/g++-base.conf \ + /usr/lib/qt/mkspecs/common/g++-unix.conf \ + /usr/lib/qt/mkspecs/qconfig.pri \ + /usr/lib/qt/mkspecs/modules/qt_Attica.pri \ + /usr/lib/qt/mkspecs/modules/qt_KArchive.pri \ + /usr/lib/qt/mkspecs/modules/qt_KAuth.pri \ + /usr/lib/qt/mkspecs/modules/qt_KBookmarks.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCodecs.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCompletion.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCoreAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCrash.pri \ + /usr/lib/qt/mkspecs/modules/qt_KDBusAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KDEWebKit.pri \ + /usr/lib/qt/mkspecs/modules/qt_KEmoticons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KGlobalAccel.pri \ + /usr/lib/qt/mkspecs/modules/qt_KGuiAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KI18n.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIconThemes.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOFileWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KItemModels.pri \ + /usr/lib/qt/mkspecs/modules/qt_KItemViews.pri \ + /usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuffCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNotifications.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNTLM.pri \ + /usr/lib/qt/mkspecs/modules/qt_KParts.pri \ + /usr/lib/qt/mkspecs/modules/qt_KPlotting.pri \ + /usr/lib/qt/mkspecs/modules/qt_KPty.pri \ + /usr/lib/qt/mkspecs/modules/qt_KService.pri \ + /usr/lib/qt/mkspecs/modules/qt_KTextWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KUnitConversion.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWallet.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWidgetsAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWindowSystem.pri \ + /usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3drender.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3drender_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_accessibility_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_core.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designer.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_egl_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_fb_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gamepad.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gamepad_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_glx_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gui.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gui_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_help.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_help_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_input_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_location.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_location_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimedia.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimedia_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_network.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_network_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_nfc.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_nfc_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_opengl.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_printsupport.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quick.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_script.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_script_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scripttools.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scripttools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scxml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scxml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sensors.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sensors_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialbus.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialbus_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialport.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialport_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_service_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sql.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sql_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_svg.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_svg_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_testlib.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_testlib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_texttospeech.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_texttospeech_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_theme_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uiplugin.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uitools.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webengine_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecore.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkit.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkit_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_websockets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_websockets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webview.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webview_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_widgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_widgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_x11extras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_x11extras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_phonon4qt5.pri \ + /usr/lib/qt/mkspecs/modules/qt_QGpgme.pri \ + /usr/lib/qt/mkspecs/modules/qt_Solid.pri \ + /usr/lib/qt/mkspecs/modules/qt_SonnetCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_SonnetUi.pri \ + /usr/lib/qt/mkspecs/features/qt_functions.prf \ + /usr/lib/qt/mkspecs/features/qt_config.prf \ + /usr/lib/qt/mkspecs/linux-g++/qmake.conf \ + /usr/lib/qt/mkspecs/features/spec_post.prf \ + .qmake.stash \ + /usr/lib/qt/mkspecs/features/exclusive_builds.prf \ + /usr/lib/qt/mkspecs/features/toolchain.prf \ + /usr/lib/qt/mkspecs/features/default_pre.prf \ + /usr/lib/qt/mkspecs/features/resolve_config.prf \ + /usr/lib/qt/mkspecs/features/default_post.prf \ + /usr/lib/qt/mkspecs/features/warn_on.prf \ + /usr/lib/qt/mkspecs/features/qt.prf \ + /usr/lib/qt/mkspecs/features/resources.prf \ + /usr/lib/qt/mkspecs/features/moc.prf \ + /usr/lib/qt/mkspecs/features/unix/opengl.prf \ + /usr/lib/qt/mkspecs/features/uic.prf \ + /usr/lib/qt/mkspecs/features/unix/thread.prf \ + /usr/lib/qt/mkspecs/features/qmake_use.prf \ + /usr/lib/qt/mkspecs/features/file_copies.prf \ + /usr/lib/qt/mkspecs/features/testcase_targets.prf \ + /usr/lib/qt/mkspecs/features/exceptions.prf \ + /usr/lib/qt/mkspecs/features/yacc.prf \ + /usr/lib/qt/mkspecs/features/lex.prf \ + RGBController.pro controllerwindow.h \ + serial_communication.h main.cpp \ + controllerwindow.cpp \ + serial_communication.cpp +QMAKE_TARGET = RGBController +DESTDIR = +TARGET = RGBController + + +first: all +####### Build rules + +$(TARGET): ui_controllerwindow.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspecs/features/spec_pre.prf \ + /usr/lib/qt/mkspecs/common/unix.conf \ + /usr/lib/qt/mkspecs/common/linux.conf \ + /usr/lib/qt/mkspecs/common/sanitize.conf \ + /usr/lib/qt/mkspecs/common/gcc-base.conf \ + /usr/lib/qt/mkspecs/common/gcc-base-unix.conf \ + /usr/lib/qt/mkspecs/common/g++-base.conf \ + /usr/lib/qt/mkspecs/common/g++-unix.conf \ + /usr/lib/qt/mkspecs/qconfig.pri \ + /usr/lib/qt/mkspecs/modules/qt_Attica.pri \ + /usr/lib/qt/mkspecs/modules/qt_KArchive.pri \ + /usr/lib/qt/mkspecs/modules/qt_KAuth.pri \ + /usr/lib/qt/mkspecs/modules/qt_KBookmarks.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCodecs.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCompletion.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_KConfigWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCoreAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KCrash.pri \ + /usr/lib/qt/mkspecs/modules/qt_KDBusAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KDEWebKit.pri \ + /usr/lib/qt/mkspecs/modules/qt_KEmoticons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KGlobalAccel.pri \ + /usr/lib/qt/mkspecs/modules/qt_KGuiAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KI18n.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIconThemes.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOFileWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_KIOWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KItemModels.pri \ + /usr/lib/qt/mkspecs/modules/qt_KItemViews.pri \ + /usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuffCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNotifications.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNTLM.pri \ + /usr/lib/qt/mkspecs/modules/qt_KParts.pri \ + /usr/lib/qt/mkspecs/modules/qt_KPlotting.pri \ + /usr/lib/qt/mkspecs/modules/qt_KPty.pri \ + /usr/lib/qt/mkspecs/modules/qt_KService.pri \ + /usr/lib/qt/mkspecs/modules/qt_KTextWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KUnitConversion.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWallet.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWidgetsAddons.pri \ + /usr/lib/qt/mkspecs/modules/qt_KWindowSystem.pri \ + /usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3drender.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3drender_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_accessibility_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_core.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designer.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_egl_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_fb_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gamepad.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gamepad_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_glx_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gui.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_gui_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_help.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_help_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_input_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_location.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_location_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimedia.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimedia_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_network.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_network_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_nfc.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_nfc_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_opengl.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_printsupport.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quick.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_script.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_script_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scripttools.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scripttools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scxml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_scxml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sensors.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sensors_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialbus.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialbus_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialport.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_serialport_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_service_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sql.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_sql_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_svg.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_svg_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_testlib.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_testlib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_texttospeech.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_texttospeech_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_theme_support_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uiplugin.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uitools.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webengine_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecore.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkit.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkit_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_websockets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_websockets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webview.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_webview_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_widgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_widgets_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_x11extras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_x11extras_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xml.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_phonon4qt5.pri \ + /usr/lib/qt/mkspecs/modules/qt_QGpgme.pri \ + /usr/lib/qt/mkspecs/modules/qt_Solid.pri \ + /usr/lib/qt/mkspecs/modules/qt_SonnetCore.pri \ + /usr/lib/qt/mkspecs/modules/qt_SonnetUi.pri \ + /usr/lib/qt/mkspecs/features/qt_functions.prf \ + /usr/lib/qt/mkspecs/features/qt_config.prf \ + /usr/lib/qt/mkspecs/linux-g++/qmake.conf \ + /usr/lib/qt/mkspecs/features/spec_post.prf \ + .qmake.stash \ + /usr/lib/qt/mkspecs/features/exclusive_builds.prf \ + /usr/lib/qt/mkspecs/features/toolchain.prf \ + /usr/lib/qt/mkspecs/features/default_pre.prf \ + /usr/lib/qt/mkspecs/features/resolve_config.prf \ + /usr/lib/qt/mkspecs/features/default_post.prf \ + /usr/lib/qt/mkspecs/features/warn_on.prf \ + /usr/lib/qt/mkspecs/features/qt.prf \ + /usr/lib/qt/mkspecs/features/resources.prf \ + /usr/lib/qt/mkspecs/features/moc.prf \ + /usr/lib/qt/mkspecs/features/unix/opengl.prf \ + /usr/lib/qt/mkspecs/features/uic.prf \ + /usr/lib/qt/mkspecs/features/unix/thread.prf \ + /usr/lib/qt/mkspecs/features/qmake_use.prf \ + /usr/lib/qt/mkspecs/features/file_copies.prf \ + /usr/lib/qt/mkspecs/features/testcase_targets.prf \ + /usr/lib/qt/mkspecs/features/exceptions.prf \ + /usr/lib/qt/mkspecs/features/yacc.prf \ + /usr/lib/qt/mkspecs/features/lex.prf \ + RGBController.pro \ + /usr/lib/libQt5Widgets.prl \ + /usr/lib/libQt5Gui.prl \ + /usr/lib/libQt5SerialPort.prl \ + /usr/lib/libQt5Network.prl \ + /usr/lib/libQt5Core.prl + $(QMAKE) -o Makefile RGBController.pro +/usr/lib/qt/mkspecs/features/spec_pre.prf: +/usr/lib/qt/mkspecs/common/unix.conf: +/usr/lib/qt/mkspecs/common/linux.conf: +/usr/lib/qt/mkspecs/common/sanitize.conf: +/usr/lib/qt/mkspecs/common/gcc-base.conf: +/usr/lib/qt/mkspecs/common/gcc-base-unix.conf: +/usr/lib/qt/mkspecs/common/g++-base.conf: +/usr/lib/qt/mkspecs/common/g++-unix.conf: +/usr/lib/qt/mkspecs/qconfig.pri: +/usr/lib/qt/mkspecs/modules/qt_Attica.pri: +/usr/lib/qt/mkspecs/modules/qt_KArchive.pri: +/usr/lib/qt/mkspecs/modules/qt_KAuth.pri: +/usr/lib/qt/mkspecs/modules/qt_KBookmarks.pri: +/usr/lib/qt/mkspecs/modules/qt_KCodecs.pri: +/usr/lib/qt/mkspecs/modules/qt_KCompletion.pri: +/usr/lib/qt/mkspecs/modules/qt_KConfigCore.pri: +/usr/lib/qt/mkspecs/modules/qt_KConfigGui.pri: +/usr/lib/qt/mkspecs/modules/qt_KConfigWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KCoreAddons.pri: +/usr/lib/qt/mkspecs/modules/qt_KCrash.pri: +/usr/lib/qt/mkspecs/modules/qt_KDBusAddons.pri: +/usr/lib/qt/mkspecs/modules/qt_KDEWebKit.pri: +/usr/lib/qt/mkspecs/modules/qt_KEmoticons.pri: +/usr/lib/qt/mkspecs/modules/qt_KGlobalAccel.pri: +/usr/lib/qt/mkspecs/modules/qt_KGuiAddons.pri: +/usr/lib/qt/mkspecs/modules/qt_KI18n.pri: +/usr/lib/qt/mkspecs/modules/qt_KIconThemes.pri: +/usr/lib/qt/mkspecs/modules/qt_KIOCore.pri: +/usr/lib/qt/mkspecs/modules/qt_KIOFileWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KIOGui.pri: +/usr/lib/qt/mkspecs/modules/qt_KIOWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KItemModels.pri: +/usr/lib/qt/mkspecs/modules/qt_KItemViews.pri: +/usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri: +/usr/lib/qt/mkspecs/modules/qt_KNewStuffCore.pri: +/usr/lib/qt/mkspecs/modules/qt_KNotifications.pri: +/usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri: +/usr/lib/qt/mkspecs/modules/qt_KNTLM.pri: +/usr/lib/qt/mkspecs/modules/qt_KParts.pri: +/usr/lib/qt/mkspecs/modules/qt_KPlotting.pri: +/usr/lib/qt/mkspecs/modules/qt_KPty.pri: +/usr/lib/qt/mkspecs/modules/qt_KService.pri: +/usr/lib/qt/mkspecs/modules/qt_KTextWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KUnitConversion.pri: +/usr/lib/qt/mkspecs/modules/qt_KWallet.pri: +/usr/lib/qt/mkspecs/modules/qt_KWidgetsAddons.pri: +/usr/lib/qt/mkspecs/modules/qt_KWindowSystem.pri: +/usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3drender.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3drender_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_accessibility_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_charts.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_core.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_designer.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_devicediscovery_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_egl_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_fb_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_fontdatabase_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_gamepad.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_gamepad_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_glx_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_gui.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_gui_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_help.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_help_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_input_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_location.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_location_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_multimedia.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_multimedia_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_multimediawidgets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_network.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_network_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_nfc.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_nfc_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_opengl.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_platformcompositor_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_printsupport.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qml.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quick.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_script.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_script_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_scripttools.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_scripttools_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_scxml.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_scxml_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_sensors.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_sensors_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_serialbus.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_serialbus_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_serialport.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_serialport_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_service_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_sql.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_sql_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_svg.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_svg_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_testlib.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_testlib_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_texttospeech.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_texttospeech_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_theme_support_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_uiplugin.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_uitools.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webengine_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webenginecore.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webenginecore_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webenginewidgets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webkit.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webkit_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webkitwidgets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_websockets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_websockets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webview.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_webview_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_widgets.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_widgets_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_x11extras.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_x11extras_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_xml.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_xml_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_xmlpatterns_private.pri: +/usr/lib/qt/mkspecs/modules/qt_phonon4qt5.pri: +/usr/lib/qt/mkspecs/modules/qt_QGpgme.pri: +/usr/lib/qt/mkspecs/modules/qt_Solid.pri: +/usr/lib/qt/mkspecs/modules/qt_SonnetCore.pri: +/usr/lib/qt/mkspecs/modules/qt_SonnetUi.pri: +/usr/lib/qt/mkspecs/features/qt_functions.prf: +/usr/lib/qt/mkspecs/features/qt_config.prf: +/usr/lib/qt/mkspecs/linux-g++/qmake.conf: +/usr/lib/qt/mkspecs/features/spec_post.prf: +.qmake.stash: +/usr/lib/qt/mkspecs/features/exclusive_builds.prf: +/usr/lib/qt/mkspecs/features/toolchain.prf: +/usr/lib/qt/mkspecs/features/default_pre.prf: +/usr/lib/qt/mkspecs/features/resolve_config.prf: +/usr/lib/qt/mkspecs/features/default_post.prf: +/usr/lib/qt/mkspecs/features/warn_on.prf: +/usr/lib/qt/mkspecs/features/qt.prf: +/usr/lib/qt/mkspecs/features/resources.prf: +/usr/lib/qt/mkspecs/features/moc.prf: +/usr/lib/qt/mkspecs/features/unix/opengl.prf: +/usr/lib/qt/mkspecs/features/uic.prf: +/usr/lib/qt/mkspecs/features/unix/thread.prf: +/usr/lib/qt/mkspecs/features/qmake_use.prf: +/usr/lib/qt/mkspecs/features/file_copies.prf: +/usr/lib/qt/mkspecs/features/testcase_targets.prf: +/usr/lib/qt/mkspecs/features/exceptions.prf: +/usr/lib/qt/mkspecs/features/yacc.prf: +/usr/lib/qt/mkspecs/features/lex.prf: +RGBController.pro: +/usr/lib/libQt5Widgets.prl: +/usr/lib/libQt5Gui.prl: +/usr/lib/libQt5SerialPort.prl: +/usr/lib/libQt5Network.prl: +/usr/lib/libQt5Core.prl: +qmake: FORCE + @$(QMAKE) -o Makefile RGBController.pro + +qmake_all: FORCE + + +all: Makefile $(TARGET) + +dist: distdir FORCE + (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR) + +distdir: FORCE + @test -d $(DISTDIR) || mkdir -p $(DISTDIR) + $(COPY_FILE) --parents $(DIST) $(DISTDIR)/ + $(COPY_FILE) --parents /usr/lib/qt/mkspecs/features/data/dummy.cpp $(DISTDIR)/ + $(COPY_FILE) --parents controllerwindow.h serial_communication.h $(DISTDIR)/ + $(COPY_FILE) --parents main.cpp controllerwindow.cpp serial_communication.cpp $(DISTDIR)/ + $(COPY_FILE) --parents controllerwindow.ui $(DISTDIR)/ + + +clean: compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) .qmake.stash + -$(DEL_FILE) Makefile + + +####### Sub-libraries + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +benchmark: first + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_moc_predefs_make_all: moc_predefs.h +compiler_moc_predefs_clean: + -$(DEL_FILE) moc_predefs.h +moc_predefs.h: /usr/lib/qt/mkspecs/features/data/dummy.cpp + g++ -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp + +compiler_moc_header_make_all: moc_controllerwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_controllerwindow.cpp +moc_controllerwindow.cpp: serial_communication.h \ + ui_controllerwindow.h \ + controllerwindow.h \ + moc_predefs.h \ + /usr/bin/moc + /usr/bin/moc $(DEFINES) --include ./moc_predefs.h -I/usr/lib/qt/mkspecs/linux-g++ -I'/home/daniel_j/documents/school/2016 research project/RGBController/qt/RGBController' -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtSerialPort -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I/usr/include/c++/6.3.1 -I/usr/include/c++/6.3.1/x86_64-pc-linux-gnu -I/usr/include/c++/6.3.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include-fixed -I/usr/include controllerwindow.h -o moc_controllerwindow.cpp + +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_controllerwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_controllerwindow.h +ui_controllerwindow.h: controllerwindow.ui \ + /usr/bin/uic + /usr/bin/uic controllerwindow.ui -o ui_controllerwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_predefs_clean compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: main.cpp controllerwindow.h \ + serial_communication.h \ + ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp + +controllerwindow.o: controllerwindow.cpp controllerwindow.h \ + serial_communication.h \ + ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o controllerwindow.o controllerwindow.cpp + +serial_communication.o: serial_communication.cpp serial_communication.h \ + controllerwindow.h \ + ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o serial_communication.o serial_communication.cpp + +moc_controllerwindow.o: moc_controllerwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_controllerwindow.o moc_controllerwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/qt/RGBController/RGBController b/qt/RGBController/RGBController new file mode 100755 index 0000000..2fc670d Binary files /dev/null and b/qt/RGBController/RGBController differ diff --git a/qt/RGBController/RGBController.pro.user b/qt/RGBController/RGBController.pro.user index fea7287..1e96029 100755 --- a/qt/RGBController/RGBController.pro.user +++ b/qt/RGBController/RGBController.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -66,14 +66,14 @@ 0 0 - /home/daniel_j/documents/school/2016 research project/RGBController/qt/build/degub + /home/daniel_j/documents/school/2016 research project/RGBController/qt/build-RGBController-Desktop-Debug true qmake QtProjectManager.QMakeBuildStep - true + false false false @@ -126,7 +126,7 @@ true - /home/daniel_j/documents/school/research_project/2016 research project/RGBController/qt/build-RGBController-Desktop-Release + /home/daniel_j/documents/school/2016 research project/RGBController/qt/build-RGBController-Desktop-Release true @@ -185,67 +185,7 @@ 0 true - - /home/daniel_j/documents/school/research_project/2016 research project/RGBController/qt/build-RGBController-Desktop-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - false - - - - 2 - Build - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - -w - -r - - true - clean - - - 1 - Clean - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 + 2 0 @@ -303,14 +243,14 @@ 2 RGBController - RGBController2 + Qt4ProjectManager.Qt4RunConfiguration:/home/daniel_j/documents/school/2016 research project/RGBController/qt/RGBController/RGBController.pro true RGBController.pro false - /home/daniel_j/documents/school/2016 research project/RGBController/qt/build/degub + /home/daniel_j/documents/school/2016 research project/RGBController/qt/build-RGBController-Desktop-Debug 3768 false true diff --git a/qt/RGBController/controllerwindow.cpp b/qt/RGBController/controllerwindow.cpp index 5fe0ec6..e9eabd5 100755 --- a/qt/RGBController/controllerwindow.cpp +++ b/qt/RGBController/controllerwindow.cpp @@ -84,7 +84,6 @@ void controllerWindow::load_presets() * -> add [0] to dropdown (name), add [1] to an array that stores all the values */ - QFile inputFile("presets.txt"); if (inputFile.open(QIODevice::ReadOnly)) { @@ -139,45 +138,46 @@ void controllerWindow::delete_preset(QString name) * delete the old preset file * rename the tmp file to presets.txt */ - int ret = show_question_box("Are you want to delete this preset?", "This process cannot be reverted."); - switch (ret) { - case QMessageBox::Ok: - { - info_log("deleting preset: " + name); - QFile file("tmp.file"); - if(!file.open(QIODevice::Append)) { - show_msgbox("Fatal error opening temp file for writing"); - - } else - { - QTextStream stream(&file); - //stream << "test tmp file" << endl; - for (int x = 0; x < ui->presets_dropdown->count(); x++) - { - if(name != ui->presets_dropdown->itemText(x)) - { - stream << ui->presets_dropdown->itemText(x) << "=" << presets.at(x) << endl; - } - } - file.close(); - /* remove the current presets file then rename the temp file to presets.txt */ - QFile::remove("presets.txt"); - QFile::rename("tmp.file", "presets.txt"); - /* reload presets into memory and clear the drop down box */ - ui->presets_dropdown->clear(); - presets.clear(); - preset_index = 0; - load_presets(); - break; - } - } - case QMessageBox::Cancel: - show_msgbox("Preset was not deleted."); - break; - default: - info_log("Unknown response received."); - break; - } + int ret = show_question_box("Are you sure want to delete this preset?", "This process cannot be reverted."); + switch (ret) + { + case QMessageBox::Ok: + { + info_log("deleting preset: " + name); + QFile file("tmp.file"); + if(!file.open(QIODevice::Append)) { + show_msgbox("Fatal error opening temp file for writing"); + + } else + { + QTextStream stream(&file); + //stream << "test tmp file" << endl; + for (int x = 0; x < ui->presets_dropdown->count(); x++) + { + if(name != ui->presets_dropdown->itemText(x)) + { + stream << ui->presets_dropdown->itemText(x) << "=" << presets.at(x) << endl; + } + } + file.close(); + /* remove the current presets file then rename the temp file to presets.txt */ + QFile::remove("presets.txt"); + QFile::rename("tmp.file", "presets.txt"); + /* reload presets into memory and clear the drop down box */ + ui->presets_dropdown->clear(); + presets.clear(); + preset_index = 0; + load_presets(); + break; + } + } + case QMessageBox::Cancel: + show_msgbox("Preset was not deleted."); + break; + default: + info_log("Unknown response received."); + break; + } } @@ -192,17 +192,17 @@ void controllerWindow::show_msgbox(QString message) /* show message box to the user */ QMessageBox msgbox; msgbox.setText(message); - msgbox.exec(); + msgbox.exec(); } int controllerWindow::show_question_box(QString message, QString omessage) { - QMessageBox qbox; - qbox.setText(message); - qbox.setInformativeText(omessage); - qbox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); - qbox.setDefaultButton(QMessageBox::Cancel); - return qbox.exec(); + QMessageBox qbox; + qbox.setText(message); + qbox.setInformativeText(omessage); + qbox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); + qbox.setDefaultButton(QMessageBox::Cancel); + return qbox.exec(); } /* @@ -350,7 +350,7 @@ void controllerWindow::on_set_preset_button_clicked() { QString tempstore = presets.at(preset_index); QStringList temparray = tempstore.split(","); - info_log("Preset selected: " + temparray[0] + " " + temparray[1] + " " + temparray[2]); + //info_log("Preset selected: " + temparray[0] + " " + temparray[1] + " " + temparray[2]); ui->r_slider->setValue(temparray[0].toInt()); ui->g_slider->setValue(temparray[1].toInt()); ui->b_slider->setValue(temparray[2].toInt()); diff --git a/qt/RGBController/controllerwindow.h b/qt/RGBController/controllerwindow.h index 1350bbc..b8ca051 100755 --- a/qt/RGBController/controllerwindow.h +++ b/qt/RGBController/controllerwindow.h @@ -28,11 +28,11 @@ class controllerWindow : public QMainWindow void info_log(QString text); void populate_serial_list(); void load_presets(); - void save_preset(QString name); - void delete_preset(QString name); + void save_preset(QString name); + void delete_preset(QString name); void serial_rgb_change(int r, int g, int b); void show_msgbox(QString message); - int show_question_box(QString message, QString omessage); + int show_question_box(QString message, QString omessage); /*public variables */ /* these three ints will hold the current value (0 - 255) of each slider */ int r, g, b; @@ -47,35 +47,35 @@ class controllerWindow : public QMainWindow /* these slots are used to trigger button clicks and drop down items selections etc */ void on_connect_button_clicked(); - void on_disconnect_button_clicked(); + void on_disconnect_button_clicked(); + + void on_refresh_port_button_clicked(); - void on_refresh_port_button_clicked(); + void on_reload_preset_button_clicked(); + + void on_r_slider_valueChanged(int value); - void on_reload_preset_button_clicked(); + void on_g_slider_valueChanged(int value); - void on_r_slider_valueChanged(int value); + void on_b_slider_valueChanged(int value); - void on_g_slider_valueChanged(int value); + void on_red_button_clicked(); - void on_b_slider_valueChanged(int value); + void on_green_button_clicked(); - void on_red_button_clicked(); + void on_blue_button_clicked(); - void on_green_button_clicked(); + void on_off_button_clicked(); - void on_blue_button_clicked(); + void on_set_preset_button_clicked(); - void on_off_button_clicked(); + void on_presets_dropdown_currentIndexChanged(int index); - void on_set_preset_button_clicked(); + void on_preset_save_button_clicked(); - void on_presets_dropdown_currentIndexChanged(int index); + void on_preset_delete_button_clicked(); - void on_preset_save_button_clicked(); - - void on_preset_delete_button_clicked(); - -private: + private: Ui::controllerWindow *ui; /* serial communication object */ serial_communication portf; diff --git a/qt/RGBController/controllerwindow.o b/qt/RGBController/controllerwindow.o new file mode 100644 index 0000000..887caec Binary files /dev/null and b/qt/RGBController/controllerwindow.o differ diff --git a/qt/RGBController/controllerwindow.ui b/qt/RGBController/controllerwindow.ui index d582851..c4a9973 100755 --- a/qt/RGBController/controllerwindow.ui +++ b/qt/RGBController/controllerwindow.ui @@ -9,22 +9,15 @@ 0 0 - 235 - 428 + 227 + 499 RGB Controller - - - - - Status - - - + @@ -55,6 +48,28 @@ + + + + + 120 + 0 + + + + + 120 + 16777215 + + + + 255 + + + Qt::Horizontal + + + @@ -76,32 +91,20 @@ - - - - Red - - - - - + + 120 0 - - - 120 - 16777215 - - - - 255 - - - Qt::Horizontal + + + + + + Red @@ -127,6 +130,13 @@ + + + + Green + + + @@ -149,13 +159,6 @@ - - - - Green - - - @@ -163,13 +166,6 @@ - - - - Presets - - - @@ -177,13 +173,6 @@ - - - - Information log - - - @@ -191,19 +180,13 @@ - - - - - 120 - 0 - + + + + Reload - - - @@ -214,6 +197,20 @@ + + + + Presets + + + + + + + Status + + + @@ -221,10 +218,128 @@ - - + + + + + + Set + + + + + + + 255 + + + + + + + 255 + + + + + + + 255 + + + + + + + to + + + + + + + 255 + + + + + + + to + + + + + + + 255 + + + + + + + 255 + + + + + + + Set + + + + + + + Set + + + + + + + to + + + + + + + Fade + + + + + + + - Reload + Information log + + + + + + + + + + 10 + + + 500 + + + Qt::Horizontal + + + + + + + Speed diff --git a/qt/RGBController/controllerwindow.ui.autosave b/qt/RGBController/controllerwindow.ui.autosave new file mode 100644 index 0000000..32a1319 --- /dev/null +++ b/qt/RGBController/controllerwindow.ui.autosave @@ -0,0 +1,352 @@ + + + controllerWindow + + + Qt::WindowModal + + + + 0 + 0 + 227 + 499 + + + + RGB Controller + + + + + + + <font color = red>Disconnected</font> + + + + + + + + 120 + 0 + + + + Arduino port + + + + + + + + + + Refresh + + + + + + + + 120 + 0 + + + + + 120 + 16777215 + + + + 255 + + + Qt::Horizontal + + + + + + + Connect + + + + + + + Disconnect + + + + + + + RGB colors + + + + + + + + 120 + 0 + + + + + + + + Red + + + + + + + + 120 + 0 + + + + + 120 + 16777215 + + + + 255 + + + Qt::Horizontal + + + + + + + Green + + + + + + + + 120 + 0 + + + + + 120 + 16777215 + + + + 255 + + + Qt::Horizontal + + + + + + + Blue + + + + + + + Off + + + + + + + Set + + + + + + + Reload + + + + + + + + + + Save + + + + + + + Presets + + + + + + + Status + + + + + + + Delete + + + + + + + + + Set + + + + + + + 255 + + + + + + + 255 + + + + + + + 255 + + + + + + + to + + + + + + + 255 + + + + + + + to + + + + + + + 255 + + + + + + + 255 + + + + + + + Set + + + + + + + Set + + + + + + + to + + + + + + + Fade + + + + + + + + + Information log + + + + + + + + + + 10 + + + 500 + + + Qt::Horizontal + + + + + + + Speed + + + + + + + + + + diff --git a/qt/RGBController/main.o b/qt/RGBController/main.o new file mode 100644 index 0000000..e784498 Binary files /dev/null and b/qt/RGBController/main.o differ diff --git a/qt/RGBController/moc_controllerwindow.cpp b/qt/RGBController/moc_controllerwindow.cpp new file mode 100644 index 0000000..a2e9cb0 --- /dev/null +++ b/qt/RGBController/moc_controllerwindow.cpp @@ -0,0 +1,183 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'controllerwindow.h' +** +** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "controllerwindow.h" +#include +#include +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'controllerwindow.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 67 +#error "This file was generated using the moc from 5.8.0. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED +struct qt_meta_stringdata_controllerWindow_t { + QByteArrayData data[19]; + char stringdata0[445]; +}; +#define QT_MOC_LITERAL(idx, ofs, len) \ + Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ + qptrdiff(offsetof(qt_meta_stringdata_controllerWindow_t, stringdata0) + ofs \ + - idx * sizeof(QByteArrayData)) \ + ) +static const qt_meta_stringdata_controllerWindow_t qt_meta_stringdata_controllerWindow = { + { +QT_MOC_LITERAL(0, 0, 16), // "controllerWindow" +QT_MOC_LITERAL(1, 17, 25), // "on_connect_button_clicked" +QT_MOC_LITERAL(2, 43, 0), // "" +QT_MOC_LITERAL(3, 44, 28), // "on_disconnect_button_clicked" +QT_MOC_LITERAL(4, 73, 30), // "on_refresh_port_button_clicked" +QT_MOC_LITERAL(5, 104, 31), // "on_reload_preset_button_clicked" +QT_MOC_LITERAL(6, 136, 24), // "on_r_slider_valueChanged" +QT_MOC_LITERAL(7, 161, 5), // "value" +QT_MOC_LITERAL(8, 167, 24), // "on_g_slider_valueChanged" +QT_MOC_LITERAL(9, 192, 24), // "on_b_slider_valueChanged" +QT_MOC_LITERAL(10, 217, 21), // "on_red_button_clicked" +QT_MOC_LITERAL(11, 239, 23), // "on_green_button_clicked" +QT_MOC_LITERAL(12, 263, 22), // "on_blue_button_clicked" +QT_MOC_LITERAL(13, 286, 21), // "on_off_button_clicked" +QT_MOC_LITERAL(14, 308, 28), // "on_set_preset_button_clicked" +QT_MOC_LITERAL(15, 337, 39), // "on_presets_dropdown_currentIn..." +QT_MOC_LITERAL(16, 377, 5), // "index" +QT_MOC_LITERAL(17, 383, 29), // "on_preset_save_button_clicked" +QT_MOC_LITERAL(18, 413, 31) // "on_preset_delete_button_clicked" + + }, + "controllerWindow\0on_connect_button_clicked\0" + "\0on_disconnect_button_clicked\0" + "on_refresh_port_button_clicked\0" + "on_reload_preset_button_clicked\0" + "on_r_slider_valueChanged\0value\0" + "on_g_slider_valueChanged\0" + "on_b_slider_valueChanged\0on_red_button_clicked\0" + "on_green_button_clicked\0on_blue_button_clicked\0" + "on_off_button_clicked\0" + "on_set_preset_button_clicked\0" + "on_presets_dropdown_currentIndexChanged\0" + "index\0on_preset_save_button_clicked\0" + "on_preset_delete_button_clicked" +}; +#undef QT_MOC_LITERAL + +static const uint qt_meta_data_controllerWindow[] = { + + // content: + 7, // revision + 0, // classname + 0, 0, // classinfo + 15, 14, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + // slots: name, argc, parameters, tag, flags + 1, 0, 89, 2, 0x08 /* Private */, + 3, 0, 90, 2, 0x08 /* Private */, + 4, 0, 91, 2, 0x08 /* Private */, + 5, 0, 92, 2, 0x08 /* Private */, + 6, 1, 93, 2, 0x08 /* Private */, + 8, 1, 96, 2, 0x08 /* Private */, + 9, 1, 99, 2, 0x08 /* Private */, + 10, 0, 102, 2, 0x08 /* Private */, + 11, 0, 103, 2, 0x08 /* Private */, + 12, 0, 104, 2, 0x08 /* Private */, + 13, 0, 105, 2, 0x08 /* Private */, + 14, 0, 106, 2, 0x08 /* Private */, + 15, 1, 107, 2, 0x08 /* Private */, + 17, 0, 110, 2, 0x08 /* Private */, + 18, 0, 111, 2, 0x08 /* Private */, + + // slots: parameters + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, QMetaType::Int, 7, + QMetaType::Void, QMetaType::Int, 7, + QMetaType::Void, QMetaType::Int, 7, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, + QMetaType::Void, QMetaType::Int, 16, + QMetaType::Void, + QMetaType::Void, + + 0 // eod +}; + +void controllerWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + if (_c == QMetaObject::InvokeMetaMethod) { + controllerWindow *_t = static_cast(_o); + Q_UNUSED(_t) + switch (_id) { + case 0: _t->on_connect_button_clicked(); break; + case 1: _t->on_disconnect_button_clicked(); break; + case 2: _t->on_refresh_port_button_clicked(); break; + case 3: _t->on_reload_preset_button_clicked(); break; + case 4: _t->on_r_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; + case 5: _t->on_g_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; + case 6: _t->on_b_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break; + case 7: _t->on_red_button_clicked(); break; + case 8: _t->on_green_button_clicked(); break; + case 9: _t->on_blue_button_clicked(); break; + case 10: _t->on_off_button_clicked(); break; + case 11: _t->on_set_preset_button_clicked(); break; + case 12: _t->on_presets_dropdown_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break; + case 13: _t->on_preset_save_button_clicked(); break; + case 14: _t->on_preset_delete_button_clicked(); break; + default: ; + } + } +} + +const QMetaObject controllerWindow::staticMetaObject = { + { &QMainWindow::staticMetaObject, qt_meta_stringdata_controllerWindow.data, + qt_meta_data_controllerWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} +}; + + +const QMetaObject *controllerWindow::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; +} + +void *controllerWindow::qt_metacast(const char *_clname) +{ + if (!_clname) return Q_NULLPTR; + if (!strcmp(_clname, qt_meta_stringdata_controllerWindow.stringdata0)) + return static_cast(const_cast< controllerWindow*>(this)); + return QMainWindow::qt_metacast(_clname); +} + +int controllerWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QMainWindow::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + if (_c == QMetaObject::InvokeMetaMethod) { + if (_id < 15) + qt_static_metacall(this, _c, _id, _a); + _id -= 15; + } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { + if (_id < 15) + *reinterpret_cast(_a[0]) = -1; + _id -= 15; + } + return _id; +} +QT_WARNING_POP +QT_END_MOC_NAMESPACE diff --git a/qt/RGBController/moc_controllerwindow.o b/qt/RGBController/moc_controllerwindow.o new file mode 100644 index 0000000..cfe8fa3 Binary files /dev/null and b/qt/RGBController/moc_controllerwindow.o differ diff --git a/qt/RGBController/moc_predefs.h b/qt/RGBController/moc_predefs.h new file mode 100644 index 0000000..68884ac --- /dev/null +++ b/qt/RGBController/moc_predefs.h @@ -0,0 +1,292 @@ +#define __SSP_STRONG__ 3 +#define __DBL_MIN_EXP__ (-1021) +#define __cpp_attributes 200809 +#define __UINT_LEAST16_MAX__ 0xffff +#define __ATOMIC_ACQUIRE 2 +#define __FLT_MIN__ 1.17549435082228750797e-38F +#define __GCC_IEC_559_COMPLEX 2 +#define __cpp_aggregate_nsdmi 201304 +#define __UINT_LEAST8_TYPE__ unsigned char +#define __SIZEOF_FLOAT80__ 16 +#define __INTMAX_C(c) c ## L +#define __CHAR_BIT__ 8 +#define __UINT8_MAX__ 0xff +#define __WINT_MAX__ 0xffffffffU +#define __cpp_static_assert 200410 +#define __ORDER_LITTLE_ENDIAN__ 1234 +#define __SIZE_MAX__ 0xffffffffffffffffUL +#define __WCHAR_MAX__ 0x7fffffff +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1 +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1 +#define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L) +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 +#define __GCC_ATOMIC_CHAR_LOCK_FREE 2 +#define __GCC_IEC_559 2 +#define __FLT_EVAL_METHOD__ 0 +#define __unix__ 1 +#define __cpp_binary_literals 201304 +#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2 +#define __x86_64 1 +#define __cpp_variadic_templates 200704 +#define __UINT_FAST64_MAX__ 0xffffffffffffffffUL +#define __SIG_ATOMIC_TYPE__ int +#define __DBL_MIN_10_EXP__ (-307) +#define __FINITE_MATH_ONLY__ 0 +#define __cpp_variable_templates 201304 +#define __GNUC_PATCHLEVEL__ 1 +#define __UINT_FAST8_MAX__ 0xff +#define __has_include(STR) __has_include__(STR) +#define __DEC64_MAX_EXP__ 385 +#define __INT8_C(c) c +#define __UINT_LEAST64_MAX__ 0xffffffffffffffffUL +#define __SHRT_MAX__ 0x7fff +#define __LDBL_MAX__ 1.18973149535723176502e+4932L +#define __UINT_LEAST8_MAX__ 0xff +#define __GCC_ATOMIC_BOOL_LOCK_FREE 2 +#define __UINTMAX_TYPE__ long unsigned int +#define __linux 1 +#define __DEC32_EPSILON__ 1E-6DF +#define __OPTIMIZE__ 1 +#define __unix 1 +#define __UINT32_MAX__ 0xffffffffU +#define __GXX_EXPERIMENTAL_CXX0X__ 1 +#define __LDBL_MAX_EXP__ 16384 +#define __WINT_MIN__ 0U +#define __linux__ 1 +#define __SCHAR_MAX__ 0x7f +#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1) +#define __INT64_C(c) c ## L +#define __DBL_DIG__ 15 +#define __GCC_ATOMIC_POINTER_LOCK_FREE 2 +#define __SIZEOF_INT__ 4 +#define __SIZEOF_POINTER__ 8 +#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2 +#define __USER_LABEL_PREFIX__ +#define __STDC_HOSTED__ 1 +#define __LDBL_HAS_INFINITY__ 1 +#define __FLT_EPSILON__ 1.19209289550781250000e-7F +#define __GXX_WEAK__ 1 +#define __LDBL_MIN__ 3.36210314311209350626e-4932L +#define __DEC32_MAX__ 9.999999E96DF +#define __INT32_MAX__ 0x7fffffff +#define __SIZEOF_LONG__ 8 +#define __STDC_IEC_559__ 1 +#define __STDC_ISO_10646__ 201505L +#define __UINT16_C(c) c +#define __DECIMAL_DIG__ 21 +#define __gnu_linux__ 1 +#define __has_include_next(STR) __has_include_next__(STR) +#define __LDBL_HAS_QUIET_NAN__ 1 +#define __GNUC__ 6 +#define __GXX_RTTI 1 +#define __MMX__ 1 +#define __cpp_delegating_constructors 200604 +#define __FLT_HAS_DENORM__ 1 +#define __SIZEOF_LONG_DOUBLE__ 16 +#define __BIGGEST_ALIGNMENT__ 16 +#define __STDC_UTF_16__ 1 +#define __DBL_MAX__ double(1.79769313486231570815e+308L) +#define __cpp_raw_strings 200710 +#define __INT_FAST32_MAX__ 0x7fffffffffffffffL +#define __DBL_HAS_INFINITY__ 1 +#define __INT64_MAX__ 0x7fffffffffffffffL +#define __DEC32_MIN_EXP__ (-94) +#define __INT_FAST16_TYPE__ long int +#define __LDBL_HAS_DENORM__ 1 +#define __cplusplus 201402L +#define __cpp_ref_qualifiers 200710 +#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL +#define __INT_LEAST32_MAX__ 0x7fffffff +#define __DEC32_MIN__ 1E-95DF +#define __DEPRECATED 1 +#define __cpp_rvalue_references 200610 +#define __DBL_MAX_EXP__ 1024 +#define __DEC128_EPSILON__ 1E-33DL +#define __SSE2_MATH__ 1 +#define __ATOMIC_HLE_RELEASE 131072 +#define __PTRDIFF_MAX__ 0x7fffffffffffffffL +#define __amd64 1 +#define __STDC_NO_THREADS__ 1 +#define __ATOMIC_HLE_ACQUIRE 65536 +#define __GNUG__ 6 +#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL +#define __SIZEOF_SIZE_T__ 8 +#define __cpp_rvalue_reference 200610 +#define __cpp_nsdmi 200809 +#define __SIZEOF_WINT_T__ 4 +#define __cpp_initializer_lists 200806 +#define __cpp_hex_float 201603 +#define __GCC_HAVE_DWARF2_CFI_ASM 1 +#define __GXX_ABI_VERSION 1010 +#define __FLT_MIN_EXP__ (-125) +#define __cpp_lambdas 200907 +#define __INT_FAST64_TYPE__ long int +#define __DBL_MIN__ double(2.22507385850720138309e-308L) +#define __LP64__ 1 +#define __DECIMAL_BID_FORMAT__ 1 +#define __DEC128_MIN__ 1E-6143DL +#define __REGISTER_PREFIX__ +#define __UINT16_MAX__ 0xffff +#define __DBL_HAS_DENORM__ 1 +#define __UINT8_TYPE__ unsigned char +#define __FLT_MANT_DIG__ 24 +#define __VERSION__ "6.3.1 20170109" +#define __UINT64_C(c) c ## UL +#define __cpp_unicode_characters 200704 +#define _STDC_PREDEF_H 1 +#define __cpp_decltype_auto 201304 +#define __GCC_ATOMIC_INT_LOCK_FREE 2 +#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ +#define __STDC_IEC_559_COMPLEX__ 1 +#define __INT32_C(c) c +#define __DEC64_EPSILON__ 1E-15DD +#define __ORDER_PDP_ENDIAN__ 3412 +#define __DEC128_MIN_EXP__ (-6142) +#define __INT_FAST32_TYPE__ long int +#define __UINT_LEAST16_TYPE__ short unsigned int +#define unix 1 +#define __INT16_MAX__ 0x7fff +#define __cpp_rtti 199711 +#define __SIZE_TYPE__ long unsigned int +#define __UINT64_MAX__ 0xffffffffffffffffUL +#define __INT8_TYPE__ signed char +#define __cpp_digit_separators 201309 +#define __ELF__ 1 +#define __GCC_ASM_FLAG_OUTPUTS__ 1 +#define __FLT_RADIX__ 2 +#define __INT_LEAST16_TYPE__ short int +#define __LDBL_EPSILON__ 1.08420217248550443401e-19L +#define __UINTMAX_C(c) c ## UL +#define __GLIBCXX_BITSIZE_INT_N_0 128 +#define __k8 1 +#define __SIG_ATOMIC_MAX__ 0x7fffffff +#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 +#define __cpp_sized_deallocation 201309 +#define __SIZEOF_PTRDIFF_T__ 8 +#define __x86_64__ 1 +#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF +#define __INT_FAST16_MAX__ 0x7fffffffffffffffL +#define __UINT_FAST32_MAX__ 0xffffffffffffffffUL +#define __UINT_LEAST64_TYPE__ long unsigned int +#define __FLT_HAS_QUIET_NAN__ 1 +#define __FLT_MAX_10_EXP__ 38 +#define __LONG_MAX__ 0x7fffffffffffffffL +#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL +#define __FLT_HAS_INFINITY__ 1 +#define __cpp_unicode_literals 200710 +#define __UINT_FAST16_TYPE__ long unsigned int +#define __DEC64_MAX__ 9.999999999999999E384DD +#define __CHAR16_TYPE__ short unsigned int +#define __PRAGMA_REDEFINE_EXTNAME 1 +#define __SEG_FS 1 +#define __INT_LEAST16_MAX__ 0x7fff +#define __DEC64_MANT_DIG__ 16 +#define __UINT_LEAST32_MAX__ 0xffffffffU +#define __SEG_GS 1 +#define __GCC_ATOMIC_LONG_LOCK_FREE 2 +#define __INT_LEAST64_TYPE__ long int +#define __INT16_TYPE__ short int +#define __INT_LEAST8_TYPE__ signed char +#define __DEC32_MAX_EXP__ 97 +#define __INT_FAST8_MAX__ 0x7f +#define __INTPTR_MAX__ 0x7fffffffffffffffL +#define linux 1 +#define __cpp_range_based_for 200907 +#define __SSE2__ 1 +#define __EXCEPTIONS 1 +#define __LDBL_MANT_DIG__ 64 +#define __DBL_HAS_QUIET_NAN__ 1 +#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1) +#define __code_model_small__ 1 +#define __cpp_return_type_deduction 201304 +#define __k8__ 1 +#define __INTPTR_TYPE__ long int +#define __UINT16_TYPE__ short unsigned int +#define __WCHAR_TYPE__ int +#define __SIZEOF_FLOAT__ 4 +#define __UINTPTR_MAX__ 0xffffffffffffffffUL +#define __DEC64_MIN_EXP__ (-382) +#define __cpp_decltype 200707 +#define __INT_FAST64_MAX__ 0x7fffffffffffffffL +#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1 +#define __FLT_DIG__ 6 +#define __UINT_FAST64_TYPE__ long unsigned int +#define __INT_MAX__ 0x7fffffff +#define __amd64__ 1 +#define __INT64_TYPE__ long int +#define __FLT_MAX_EXP__ 128 +#define __ORDER_BIG_ENDIAN__ 4321 +#define __DBL_MANT_DIG__ 53 +#define __cpp_inheriting_constructors 200802 +#define __SIZEOF_FLOAT128__ 16 +#define __INT_LEAST64_MAX__ 0x7fffffffffffffffL +#define __DEC64_MIN__ 1E-383DD +#define __WINT_TYPE__ unsigned int +#define __UINT_LEAST32_TYPE__ unsigned int +#define __SIZEOF_SHORT__ 2 +#define __SSE__ 1 +#define __LDBL_MIN_EXP__ (-16381) +#define __INT_LEAST8_MAX__ 0x7f +#define __SIZEOF_INT128__ 16 +#define __LDBL_MAX_10_EXP__ 4932 +#define __ATOMIC_RELAXED 0 +#define __DBL_EPSILON__ double(2.22044604925031308085e-16L) +#define _LP64 1 +#define __UINT8_C(c) c +#define __INT_LEAST32_TYPE__ int +#define __SIZEOF_WCHAR_T__ 4 +#define __UINT64_TYPE__ long unsigned int +#define __INT_FAST8_TYPE__ signed char +#define __GNUC_STDC_INLINE__ 1 +#define __DBL_DECIMAL_DIG__ 17 +#define __STDC_UTF_32__ 1 +#define __FXSR__ 1 +#define __DEC_EVAL_METHOD__ 2 +#define __cpp_runtime_arrays 198712 +#define __UINT32_C(c) c ## U +#define __INTMAX_MAX__ 0x7fffffffffffffffL +#define __cpp_alias_templates 200704 +#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ +#define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F +#define __INT8_MAX__ 0x7f +#define __UINT_FAST32_TYPE__ long unsigned int +#define __CHAR32_TYPE__ unsigned int +#define __FLT_MAX__ 3.40282346638528859812e+38F +#define __cpp_constexpr 201304 +#define __INT32_TYPE__ int +#define __SIZEOF_DOUBLE__ 8 +#define __cpp_exceptions 199711 +#define __INTMAX_TYPE__ long int +#define __DEC128_MAX_EXP__ 6145 +#define __ATOMIC_CONSUME 1 +#define __GNUC_MINOR__ 3 +#define __GLIBCXX_TYPE_INT_N_0 __int128 +#define __UINTMAX_MAX__ 0xffffffffffffffffUL +#define __DEC32_MANT_DIG__ 7 +#define __DBL_MAX_10_EXP__ 308 +#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L +#define __INT16_C(c) c +#define __cpp_generic_lambdas 201304 +#define __STDC__ 1 +#define __PTRDIFF_TYPE__ long int +#define __ATOMIC_SEQ_CST 5 +#define __UINT32_TYPE__ unsigned int +#define __UINTPTR_TYPE__ long unsigned int +#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD +#define __DEC128_MANT_DIG__ 34 +#define __LDBL_MIN_10_EXP__ (-4931) +#define __SSE_MATH__ 1 +#define __SIZEOF_LONG_LONG__ 8 +#define __cpp_user_defined_literals 200809 +#define __GCC_ATOMIC_LLONG_LOCK_FREE 2 +#define __LDBL_DIG__ 18 +#define __FLT_DECIMAL_DIG__ 9 +#define __UINT_FAST16_MAX__ 0xffffffffffffffffUL +#define __FLT_MIN_10_EXP__ (-37) +#define __GCC_ATOMIC_SHORT_LOCK_FREE 2 +#define __UINT_FAST8_TYPE__ unsigned char +#define _GNU_SOURCE 1 +#define __cpp_init_captures 201304 +#define __ATOMIC_ACQ_REL 4 +#define __ATOMIC_RELEASE 3 diff --git a/qt/RGBController/serial_communication.o b/qt/RGBController/serial_communication.o new file mode 100644 index 0000000..65ce715 Binary files /dev/null and b/qt/RGBController/serial_communication.o differ diff --git a/qt/RGBController/ui_controllerwindow.h b/qt/RGBController/ui_controllerwindow.h new file mode 100644 index 0000000..faa820c --- /dev/null +++ b/qt/RGBController/ui_controllerwindow.h @@ -0,0 +1,357 @@ +/******************************************************************************** +** Form generated from reading UI file 'controllerwindow.ui' +** +** Created by: Qt User Interface Compiler version 5.8.0 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_CONTROLLERWINDOW_H +#define UI_CONTROLLERWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_controllerWindow +{ +public: + QWidget *centralWidget; + QGridLayout *gridLayout_2; + QLabel *arduino_status_label; + QLabel *arduino_port_label; + QComboBox *arduino_port_dropdown; + QPushButton *refresh_port_button; + QSlider *r_slider; + QPushButton *connect_button; + QPushButton *disconnect_button; + QLabel *rgb_label; + QComboBox *presets_dropdown; + QPushButton *red_button; + QSlider *g_slider; + QPushButton *green_button; + QSlider *b_slider; + QPushButton *blue_button; + QPushButton *off_button; + QPushButton *set_preset_button; + QPushButton *reload_preset_button; + QLineEdit *preset_name_textbox; + QPushButton *preset_save_button; + QLabel *presets_label; + QLabel *status_label; + QPushButton *preset_delete_button; + QGridLayout *gridLayout; + QPushButton *pushButton_3; + QSpinBox *spinBox; + QSpinBox *spinBox_4; + QSpinBox *spinBox_3; + QLabel *label; + QSpinBox *spinBox_2; + QLabel *label_2; + QSpinBox *spinBox_6; + QSpinBox *spinBox_5; + QPushButton *pushButton_2; + QPushButton *pushButton; + QLabel *label_3; + QLabel *label_4; + QLabel *info_log_label; + QTextEdit *info_log_textarea; + QSlider *horizontalSlider; + QPushButton *pushButton_4; + + void setupUi(QMainWindow *controllerWindow) + { + if (controllerWindow->objectName().isEmpty()) + controllerWindow->setObjectName(QStringLiteral("controllerWindow")); + controllerWindow->setWindowModality(Qt::WindowModal); + controllerWindow->resize(227, 499); + centralWidget = new QWidget(controllerWindow); + centralWidget->setObjectName(QStringLiteral("centralWidget")); + gridLayout_2 = new QGridLayout(centralWidget); + gridLayout_2->setSpacing(6); + gridLayout_2->setContentsMargins(11, 11, 11, 11); + gridLayout_2->setObjectName(QStringLiteral("gridLayout_2")); + arduino_status_label = new QLabel(centralWidget); + arduino_status_label->setObjectName(QStringLiteral("arduino_status_label")); + + gridLayout_2->addWidget(arduino_status_label, 0, 1, 1, 1); + + arduino_port_label = new QLabel(centralWidget); + arduino_port_label->setObjectName(QStringLiteral("arduino_port_label")); + arduino_port_label->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(arduino_port_label, 1, 0, 1, 1); + + arduino_port_dropdown = new QComboBox(centralWidget); + arduino_port_dropdown->setObjectName(QStringLiteral("arduino_port_dropdown")); + + gridLayout_2->addWidget(arduino_port_dropdown, 1, 1, 1, 1); + + refresh_port_button = new QPushButton(centralWidget); + refresh_port_button->setObjectName(QStringLiteral("refresh_port_button")); + + gridLayout_2->addWidget(refresh_port_button, 2, 1, 1, 1); + + r_slider = new QSlider(centralWidget); + r_slider->setObjectName(QStringLiteral("r_slider")); + r_slider->setMinimumSize(QSize(120, 0)); + r_slider->setMaximumSize(QSize(120, 16777215)); + r_slider->setMaximum(255); + r_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(r_slider, 5, 0, 1, 1); + + connect_button = new QPushButton(centralWidget); + connect_button->setObjectName(QStringLiteral("connect_button")); + + gridLayout_2->addWidget(connect_button, 3, 0, 1, 1); + + disconnect_button = new QPushButton(centralWidget); + disconnect_button->setObjectName(QStringLiteral("disconnect_button")); + + gridLayout_2->addWidget(disconnect_button, 3, 1, 1, 1); + + rgb_label = new QLabel(centralWidget); + rgb_label->setObjectName(QStringLiteral("rgb_label")); + + gridLayout_2->addWidget(rgb_label, 4, 0, 1, 1); + + presets_dropdown = new QComboBox(centralWidget); + presets_dropdown->setObjectName(QStringLiteral("presets_dropdown")); + presets_dropdown->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(presets_dropdown, 10, 0, 1, 1); + + red_button = new QPushButton(centralWidget); + red_button->setObjectName(QStringLiteral("red_button")); + + gridLayout_2->addWidget(red_button, 5, 1, 1, 1); + + g_slider = new QSlider(centralWidget); + g_slider->setObjectName(QStringLiteral("g_slider")); + g_slider->setMinimumSize(QSize(120, 0)); + g_slider->setMaximumSize(QSize(120, 16777215)); + g_slider->setMaximum(255); + g_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(g_slider, 6, 0, 1, 1); + + green_button = new QPushButton(centralWidget); + green_button->setObjectName(QStringLiteral("green_button")); + + gridLayout_2->addWidget(green_button, 6, 1, 1, 1); + + b_slider = new QSlider(centralWidget); + b_slider->setObjectName(QStringLiteral("b_slider")); + b_slider->setMinimumSize(QSize(120, 0)); + b_slider->setMaximumSize(QSize(120, 16777215)); + b_slider->setMaximum(255); + b_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(b_slider, 7, 0, 1, 1); + + blue_button = new QPushButton(centralWidget); + blue_button->setObjectName(QStringLiteral("blue_button")); + + gridLayout_2->addWidget(blue_button, 7, 1, 1, 1); + + off_button = new QPushButton(centralWidget); + off_button->setObjectName(QStringLiteral("off_button")); + + gridLayout_2->addWidget(off_button, 8, 1, 1, 1); + + set_preset_button = new QPushButton(centralWidget); + set_preset_button->setObjectName(QStringLiteral("set_preset_button")); + + gridLayout_2->addWidget(set_preset_button, 10, 1, 1, 1); + + reload_preset_button = new QPushButton(centralWidget); + reload_preset_button->setObjectName(QStringLiteral("reload_preset_button")); + + gridLayout_2->addWidget(reload_preset_button, 11, 0, 1, 1); + + preset_name_textbox = new QLineEdit(centralWidget); + preset_name_textbox->setObjectName(QStringLiteral("preset_name_textbox")); + + gridLayout_2->addWidget(preset_name_textbox, 12, 0, 1, 1); + + preset_save_button = new QPushButton(centralWidget); + preset_save_button->setObjectName(QStringLiteral("preset_save_button")); + + gridLayout_2->addWidget(preset_save_button, 12, 1, 1, 1); + + presets_label = new QLabel(centralWidget); + presets_label->setObjectName(QStringLiteral("presets_label")); + + gridLayout_2->addWidget(presets_label, 9, 0, 1, 1); + + status_label = new QLabel(centralWidget); + status_label->setObjectName(QStringLiteral("status_label")); + + gridLayout_2->addWidget(status_label, 0, 0, 1, 1); + + preset_delete_button = new QPushButton(centralWidget); + preset_delete_button->setObjectName(QStringLiteral("preset_delete_button")); + + gridLayout_2->addWidget(preset_delete_button, 13, 1, 1, 1); + + gridLayout = new QGridLayout(); + gridLayout->setSpacing(6); + gridLayout->setObjectName(QStringLiteral("gridLayout")); + pushButton_3 = new QPushButton(centralWidget); + pushButton_3->setObjectName(QStringLiteral("pushButton_3")); + + gridLayout->addWidget(pushButton_3, 4, 3, 1, 1); + + spinBox = new QSpinBox(centralWidget); + spinBox->setObjectName(QStringLiteral("spinBox")); + spinBox->setMaximum(255); + + gridLayout->addWidget(spinBox, 4, 0, 1, 1); + + spinBox_4 = new QSpinBox(centralWidget); + spinBox_4->setObjectName(QStringLiteral("spinBox_4")); + spinBox_4->setMaximum(255); + + gridLayout->addWidget(spinBox_4, 1, 2, 1, 1); + + spinBox_3 = new QSpinBox(centralWidget); + spinBox_3->setObjectName(QStringLiteral("spinBox_3")); + spinBox_3->setMaximum(255); + + gridLayout->addWidget(spinBox_3, 3, 0, 1, 1); + + label = new QLabel(centralWidget); + label->setObjectName(QStringLiteral("label")); + + gridLayout->addWidget(label, 1, 1, 1, 1); + + spinBox_2 = new QSpinBox(centralWidget); + spinBox_2->setObjectName(QStringLiteral("spinBox_2")); + spinBox_2->setMaximum(255); + + gridLayout->addWidget(spinBox_2, 1, 0, 1, 1); + + label_2 = new QLabel(centralWidget); + label_2->setObjectName(QStringLiteral("label_2")); + + gridLayout->addWidget(label_2, 3, 1, 1, 1); + + spinBox_6 = new QSpinBox(centralWidget); + spinBox_6->setObjectName(QStringLiteral("spinBox_6")); + spinBox_6->setMaximum(255); + + gridLayout->addWidget(spinBox_6, 4, 2, 1, 1); + + spinBox_5 = new QSpinBox(centralWidget); + spinBox_5->setObjectName(QStringLiteral("spinBox_5")); + spinBox_5->setMaximum(255); + + gridLayout->addWidget(spinBox_5, 3, 2, 1, 1); + + pushButton_2 = new QPushButton(centralWidget); + pushButton_2->setObjectName(QStringLiteral("pushButton_2")); + + gridLayout->addWidget(pushButton_2, 3, 3, 1, 1); + + pushButton = new QPushButton(centralWidget); + pushButton->setObjectName(QStringLiteral("pushButton")); + + gridLayout->addWidget(pushButton, 1, 3, 1, 1); + + label_3 = new QLabel(centralWidget); + label_3->setObjectName(QStringLiteral("label_3")); + + gridLayout->addWidget(label_3, 4, 1, 1, 1); + + label_4 = new QLabel(centralWidget); + label_4->setObjectName(QStringLiteral("label_4")); + + gridLayout->addWidget(label_4, 0, 0, 1, 1); + + + gridLayout_2->addLayout(gridLayout, 14, 0, 1, 2); + + info_log_label = new QLabel(centralWidget); + info_log_label->setObjectName(QStringLiteral("info_log_label")); + + gridLayout_2->addWidget(info_log_label, 16, 0, 1, 1); + + info_log_textarea = new QTextEdit(centralWidget); + info_log_textarea->setObjectName(QStringLiteral("info_log_textarea")); + + gridLayout_2->addWidget(info_log_textarea, 17, 0, 1, 2); + + horizontalSlider = new QSlider(centralWidget); + horizontalSlider->setObjectName(QStringLiteral("horizontalSlider")); + horizontalSlider->setMinimum(10); + horizontalSlider->setMaximum(500); + horizontalSlider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(horizontalSlider, 15, 0, 1, 1); + + pushButton_4 = new QPushButton(centralWidget); + pushButton_4->setObjectName(QStringLiteral("pushButton_4")); + + gridLayout_2->addWidget(pushButton_4, 15, 1, 1, 1); + + controllerWindow->setCentralWidget(centralWidget); + + retranslateUi(controllerWindow); + + QMetaObject::connectSlotsByName(controllerWindow); + } // setupUi + + void retranslateUi(QMainWindow *controllerWindow) + { + controllerWindow->setWindowTitle(QApplication::translate("controllerWindow", "RGB Controller", Q_NULLPTR)); + arduino_status_label->setText(QApplication::translate("controllerWindow", "Disconnected", Q_NULLPTR)); + arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", Q_NULLPTR)); + refresh_port_button->setText(QApplication::translate("controllerWindow", "Refresh", Q_NULLPTR)); + connect_button->setText(QApplication::translate("controllerWindow", "Connect", Q_NULLPTR)); + disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", Q_NULLPTR)); + rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", Q_NULLPTR)); + red_button->setText(QApplication::translate("controllerWindow", "Red", Q_NULLPTR)); + green_button->setText(QApplication::translate("controllerWindow", "Green", Q_NULLPTR)); + blue_button->setText(QApplication::translate("controllerWindow", "Blue", Q_NULLPTR)); + off_button->setText(QApplication::translate("controllerWindow", "Off", Q_NULLPTR)); + set_preset_button->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR)); + reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", Q_NULLPTR)); + preset_save_button->setText(QApplication::translate("controllerWindow", "Save", Q_NULLPTR)); + presets_label->setText(QApplication::translate("controllerWindow", "Presets", Q_NULLPTR)); + status_label->setText(QApplication::translate("controllerWindow", "Status", Q_NULLPTR)); + preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", Q_NULLPTR)); + pushButton_3->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR)); + label->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR)); + label_2->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR)); + pushButton_2->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR)); + pushButton->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR)); + label_3->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR)); + label_4->setText(QApplication::translate("controllerWindow", "Fade", Q_NULLPTR)); + info_log_label->setText(QApplication::translate("controllerWindow", "Information log", Q_NULLPTR)); + pushButton_4->setText(QApplication::translate("controllerWindow", "Speed", Q_NULLPTR)); + } // retranslateUi + +}; + +namespace Ui { + class controllerWindow: public Ui_controllerWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_CONTROLLERWINDOW_H diff --git a/qt/build-RGBController-Desktop-Debug/Makefile b/qt/build-RGBController-Desktop-Debug/Makefile new file mode 100644 index 0000000..7c3deb5 --- /dev/null +++ b/qt/build-RGBController-Desktop-Debug/Makefile @@ -0,0 +1,247 @@ +############################################################################# +# Makefile for building: RGBController +# Generated by qmake (2.01a) (Qt 4.8.7) on: Tue Jan 17 02:39:24 2017 +# Project: ../RGBController/RGBController.pro +# Template: app +# Command: /usr/lib/qt4/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I../RGBController -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I../RGBController -I. +LINK = g++ +LFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro +LIBS = $(SUBLIBS) -L/usr/lib -lQtGui -lQtNetwork -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/lib/qt4/bin/qmake +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = ../RGBController/main.cpp \ + ../RGBController/controllerwindow.cpp \ + ../RGBController/serial_communication.cpp moc_controllerwindow.cpp +OBJECTS = main.o \ + controllerwindow.o \ + serial_communication.o \ + moc_controllerwindow.o +DIST = /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + ../RGBController/RGBController.pro +QMAKE_TARGET = RGBController +DESTDIR = +TARGET = RGBController + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): ui_controllerwindow.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9][^0-9]*\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true + +Makefile: ../RGBController/RGBController.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + /usr/lib/libQtGui.prl \ + /usr/lib/libQtNetwork.prl \ + /usr/lib/libQtCore.prl + $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro +/usr/share/qt4/mkspecs/common/unix.conf: +/usr/share/qt4/mkspecs/common/linux.conf: +/usr/share/qt4/mkspecs/common/gcc-base.conf: +/usr/share/qt4/mkspecs/common/gcc-base-unix.conf: +/usr/share/qt4/mkspecs/common/g++-base.conf: +/usr/share/qt4/mkspecs/common/g++-unix.conf: +/usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/features/qt_functions.prf: +/usr/share/qt4/mkspecs/features/qt_config.prf: +/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/usr/share/qt4/mkspecs/features/default_pre.prf: +/usr/share/qt4/mkspecs/features/debug.prf: +/usr/share/qt4/mkspecs/features/default_post.prf: +/usr/share/qt4/mkspecs/features/shared.prf: +/usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: +/usr/share/qt4/mkspecs/features/warn_on.prf: +/usr/share/qt4/mkspecs/features/qt.prf: +/usr/share/qt4/mkspecs/features/unix/thread.prf: +/usr/share/qt4/mkspecs/features/moc.prf: +/usr/share/qt4/mkspecs/features/resources.prf: +/usr/share/qt4/mkspecs/features/uic.prf: +/usr/share/qt4/mkspecs/features/yacc.prf: +/usr/share/qt4/mkspecs/features/lex.prf: +/usr/share/qt4/mkspecs/features/include_source_dir.prf: +/usr/lib/libQtGui.prl: +/usr/lib/libQtNetwork.prl: +/usr/lib/libQtCore.prl: +qmake: FORCE + @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/RGBController1.0.0 || $(MKDIR) .tmp/RGBController1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/controllerwindow.h ../RGBController/serial_communication.h .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/main.cpp ../RGBController/controllerwindow.cpp ../RGBController/serial_communication.cpp .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/controllerwindow.ui .tmp/RGBController1.0.0/ && (cd `dirname .tmp/RGBController1.0.0` && $(TAR) RGBController1.0.0.tar RGBController1.0.0 && $(COMPRESS) RGBController1.0.0.tar) && $(MOVE) `dirname .tmp/RGBController1.0.0`/RGBController1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/RGBController1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_controllerwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_controllerwindow.cpp +moc_controllerwindow.cpp: ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h \ + ../RGBController/controllerwindow.h + /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) ../RGBController/controllerwindow.h -o moc_controllerwindow.cpp + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_controllerwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_controllerwindow.h +ui_controllerwindow.h: ../RGBController/controllerwindow.ui + /usr/lib/qt4/bin/uic ../RGBController/controllerwindow.ui -o ui_controllerwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: ../RGBController/main.cpp ../RGBController/controllerwindow.h \ + ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../RGBController/main.cpp + +controllerwindow.o: ../RGBController/controllerwindow.cpp ../RGBController/controllerwindow.h \ + ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o controllerwindow.o ../RGBController/controllerwindow.cpp + +serial_communication.o: ../RGBController/serial_communication.cpp ../RGBController/serial_communication.h \ + ../RGBController/controllerwindow.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o serial_communication.o ../RGBController/serial_communication.cpp + +moc_controllerwindow.o: moc_controllerwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_controllerwindow.o moc_controllerwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h new file mode 100644 index 0000000..57f3a75 --- /dev/null +++ b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h @@ -0,0 +1,357 @@ +/******************************************************************************** +** Form generated from reading UI file 'controllerwindow.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_CONTROLLERWINDOW_H +#define UI_CONTROLLERWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_controllerWindow +{ +public: + QWidget *centralWidget; + QGridLayout *gridLayout_2; + QLabel *arduino_status_label; + QLabel *arduino_port_label; + QComboBox *arduino_port_dropdown; + QPushButton *refresh_port_button; + QSlider *r_slider; + QPushButton *connect_button; + QPushButton *disconnect_button; + QLabel *rgb_label; + QComboBox *presets_dropdown; + QPushButton *red_button; + QSlider *g_slider; + QPushButton *green_button; + QSlider *b_slider; + QPushButton *blue_button; + QPushButton *off_button; + QPushButton *set_preset_button; + QPushButton *reload_preset_button; + QLineEdit *preset_name_textbox; + QPushButton *preset_save_button; + QLabel *presets_label; + QLabel *status_label; + QPushButton *preset_delete_button; + QGridLayout *gridLayout; + QPushButton *pushButton_3; + QSpinBox *spinBox; + QSpinBox *spinBox_4; + QSpinBox *spinBox_3; + QLabel *label; + QSpinBox *spinBox_2; + QLabel *label_2; + QSpinBox *spinBox_6; + QSpinBox *spinBox_5; + QPushButton *pushButton_2; + QPushButton *pushButton; + QLabel *label_3; + QLabel *label_4; + QLabel *info_log_label; + QTextEdit *info_log_textarea; + QSlider *horizontalSlider; + QPushButton *pushButton_4; + + void setupUi(QMainWindow *controllerWindow) + { + if (controllerWindow->objectName().isEmpty()) + controllerWindow->setObjectName(QString::fromUtf8("controllerWindow")); + controllerWindow->setWindowModality(Qt::WindowModal); + controllerWindow->resize(227, 499); + centralWidget = new QWidget(controllerWindow); + centralWidget->setObjectName(QString::fromUtf8("centralWidget")); + gridLayout_2 = new QGridLayout(centralWidget); + gridLayout_2->setSpacing(6); + gridLayout_2->setContentsMargins(11, 11, 11, 11); + gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); + arduino_status_label = new QLabel(centralWidget); + arduino_status_label->setObjectName(QString::fromUtf8("arduino_status_label")); + + gridLayout_2->addWidget(arduino_status_label, 0, 1, 1, 1); + + arduino_port_label = new QLabel(centralWidget); + arduino_port_label->setObjectName(QString::fromUtf8("arduino_port_label")); + arduino_port_label->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(arduino_port_label, 1, 0, 1, 1); + + arduino_port_dropdown = new QComboBox(centralWidget); + arduino_port_dropdown->setObjectName(QString::fromUtf8("arduino_port_dropdown")); + + gridLayout_2->addWidget(arduino_port_dropdown, 1, 1, 1, 1); + + refresh_port_button = new QPushButton(centralWidget); + refresh_port_button->setObjectName(QString::fromUtf8("refresh_port_button")); + + gridLayout_2->addWidget(refresh_port_button, 2, 1, 1, 1); + + r_slider = new QSlider(centralWidget); + r_slider->setObjectName(QString::fromUtf8("r_slider")); + r_slider->setMinimumSize(QSize(120, 0)); + r_slider->setMaximumSize(QSize(120, 16777215)); + r_slider->setMaximum(255); + r_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(r_slider, 5, 0, 1, 1); + + connect_button = new QPushButton(centralWidget); + connect_button->setObjectName(QString::fromUtf8("connect_button")); + + gridLayout_2->addWidget(connect_button, 3, 0, 1, 1); + + disconnect_button = new QPushButton(centralWidget); + disconnect_button->setObjectName(QString::fromUtf8("disconnect_button")); + + gridLayout_2->addWidget(disconnect_button, 3, 1, 1, 1); + + rgb_label = new QLabel(centralWidget); + rgb_label->setObjectName(QString::fromUtf8("rgb_label")); + + gridLayout_2->addWidget(rgb_label, 4, 0, 1, 1); + + presets_dropdown = new QComboBox(centralWidget); + presets_dropdown->setObjectName(QString::fromUtf8("presets_dropdown")); + presets_dropdown->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(presets_dropdown, 10, 0, 1, 1); + + red_button = new QPushButton(centralWidget); + red_button->setObjectName(QString::fromUtf8("red_button")); + + gridLayout_2->addWidget(red_button, 5, 1, 1, 1); + + g_slider = new QSlider(centralWidget); + g_slider->setObjectName(QString::fromUtf8("g_slider")); + g_slider->setMinimumSize(QSize(120, 0)); + g_slider->setMaximumSize(QSize(120, 16777215)); + g_slider->setMaximum(255); + g_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(g_slider, 6, 0, 1, 1); + + green_button = new QPushButton(centralWidget); + green_button->setObjectName(QString::fromUtf8("green_button")); + + gridLayout_2->addWidget(green_button, 6, 1, 1, 1); + + b_slider = new QSlider(centralWidget); + b_slider->setObjectName(QString::fromUtf8("b_slider")); + b_slider->setMinimumSize(QSize(120, 0)); + b_slider->setMaximumSize(QSize(120, 16777215)); + b_slider->setMaximum(255); + b_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(b_slider, 7, 0, 1, 1); + + blue_button = new QPushButton(centralWidget); + blue_button->setObjectName(QString::fromUtf8("blue_button")); + + gridLayout_2->addWidget(blue_button, 7, 1, 1, 1); + + off_button = new QPushButton(centralWidget); + off_button->setObjectName(QString::fromUtf8("off_button")); + + gridLayout_2->addWidget(off_button, 8, 1, 1, 1); + + set_preset_button = new QPushButton(centralWidget); + set_preset_button->setObjectName(QString::fromUtf8("set_preset_button")); + + gridLayout_2->addWidget(set_preset_button, 10, 1, 1, 1); + + reload_preset_button = new QPushButton(centralWidget); + reload_preset_button->setObjectName(QString::fromUtf8("reload_preset_button")); + + gridLayout_2->addWidget(reload_preset_button, 11, 0, 1, 1); + + preset_name_textbox = new QLineEdit(centralWidget); + preset_name_textbox->setObjectName(QString::fromUtf8("preset_name_textbox")); + + gridLayout_2->addWidget(preset_name_textbox, 12, 0, 1, 1); + + preset_save_button = new QPushButton(centralWidget); + preset_save_button->setObjectName(QString::fromUtf8("preset_save_button")); + + gridLayout_2->addWidget(preset_save_button, 12, 1, 1, 1); + + presets_label = new QLabel(centralWidget); + presets_label->setObjectName(QString::fromUtf8("presets_label")); + + gridLayout_2->addWidget(presets_label, 9, 0, 1, 1); + + status_label = new QLabel(centralWidget); + status_label->setObjectName(QString::fromUtf8("status_label")); + + gridLayout_2->addWidget(status_label, 0, 0, 1, 1); + + preset_delete_button = new QPushButton(centralWidget); + preset_delete_button->setObjectName(QString::fromUtf8("preset_delete_button")); + + gridLayout_2->addWidget(preset_delete_button, 13, 1, 1, 1); + + gridLayout = new QGridLayout(); + gridLayout->setSpacing(6); + gridLayout->setObjectName(QString::fromUtf8("gridLayout")); + pushButton_3 = new QPushButton(centralWidget); + pushButton_3->setObjectName(QString::fromUtf8("pushButton_3")); + + gridLayout->addWidget(pushButton_3, 4, 3, 1, 1); + + spinBox = new QSpinBox(centralWidget); + spinBox->setObjectName(QString::fromUtf8("spinBox")); + spinBox->setMaximum(255); + + gridLayout->addWidget(spinBox, 4, 0, 1, 1); + + spinBox_4 = new QSpinBox(centralWidget); + spinBox_4->setObjectName(QString::fromUtf8("spinBox_4")); + spinBox_4->setMaximum(255); + + gridLayout->addWidget(spinBox_4, 1, 2, 1, 1); + + spinBox_3 = new QSpinBox(centralWidget); + spinBox_3->setObjectName(QString::fromUtf8("spinBox_3")); + spinBox_3->setMaximum(255); + + gridLayout->addWidget(spinBox_3, 3, 0, 1, 1); + + label = new QLabel(centralWidget); + label->setObjectName(QString::fromUtf8("label")); + + gridLayout->addWidget(label, 1, 1, 1, 1); + + spinBox_2 = new QSpinBox(centralWidget); + spinBox_2->setObjectName(QString::fromUtf8("spinBox_2")); + spinBox_2->setMaximum(255); + + gridLayout->addWidget(spinBox_2, 1, 0, 1, 1); + + label_2 = new QLabel(centralWidget); + label_2->setObjectName(QString::fromUtf8("label_2")); + + gridLayout->addWidget(label_2, 3, 1, 1, 1); + + spinBox_6 = new QSpinBox(centralWidget); + spinBox_6->setObjectName(QString::fromUtf8("spinBox_6")); + spinBox_6->setMaximum(255); + + gridLayout->addWidget(spinBox_6, 4, 2, 1, 1); + + spinBox_5 = new QSpinBox(centralWidget); + spinBox_5->setObjectName(QString::fromUtf8("spinBox_5")); + spinBox_5->setMaximum(255); + + gridLayout->addWidget(spinBox_5, 3, 2, 1, 1); + + pushButton_2 = new QPushButton(centralWidget); + pushButton_2->setObjectName(QString::fromUtf8("pushButton_2")); + + gridLayout->addWidget(pushButton_2, 3, 3, 1, 1); + + pushButton = new QPushButton(centralWidget); + pushButton->setObjectName(QString::fromUtf8("pushButton")); + + gridLayout->addWidget(pushButton, 1, 3, 1, 1); + + label_3 = new QLabel(centralWidget); + label_3->setObjectName(QString::fromUtf8("label_3")); + + gridLayout->addWidget(label_3, 4, 1, 1, 1); + + label_4 = new QLabel(centralWidget); + label_4->setObjectName(QString::fromUtf8("label_4")); + + gridLayout->addWidget(label_4, 0, 0, 1, 1); + + + gridLayout_2->addLayout(gridLayout, 14, 0, 1, 2); + + info_log_label = new QLabel(centralWidget); + info_log_label->setObjectName(QString::fromUtf8("info_log_label")); + + gridLayout_2->addWidget(info_log_label, 16, 0, 1, 1); + + info_log_textarea = new QTextEdit(centralWidget); + info_log_textarea->setObjectName(QString::fromUtf8("info_log_textarea")); + + gridLayout_2->addWidget(info_log_textarea, 17, 0, 1, 2); + + horizontalSlider = new QSlider(centralWidget); + horizontalSlider->setObjectName(QString::fromUtf8("horizontalSlider")); + horizontalSlider->setMinimum(10); + horizontalSlider->setMaximum(500); + horizontalSlider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(horizontalSlider, 15, 0, 1, 1); + + pushButton_4 = new QPushButton(centralWidget); + pushButton_4->setObjectName(QString::fromUtf8("pushButton_4")); + + gridLayout_2->addWidget(pushButton_4, 15, 1, 1, 1); + + controllerWindow->setCentralWidget(centralWidget); + + retranslateUi(controllerWindow); + + QMetaObject::connectSlotsByName(controllerWindow); + } // setupUi + + void retranslateUi(QMainWindow *controllerWindow) + { + controllerWindow->setWindowTitle(QApplication::translate("controllerWindow", "RGB Controller", 0, QApplication::UnicodeUTF8)); + arduino_status_label->setText(QApplication::translate("controllerWindow", "Disconnected", 0, QApplication::UnicodeUTF8)); + arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", 0, QApplication::UnicodeUTF8)); + refresh_port_button->setText(QApplication::translate("controllerWindow", "Refresh", 0, QApplication::UnicodeUTF8)); + connect_button->setText(QApplication::translate("controllerWindow", "Connect", 0, QApplication::UnicodeUTF8)); + disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", 0, QApplication::UnicodeUTF8)); + rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", 0, QApplication::UnicodeUTF8)); + red_button->setText(QApplication::translate("controllerWindow", "Red", 0, QApplication::UnicodeUTF8)); + green_button->setText(QApplication::translate("controllerWindow", "Green", 0, QApplication::UnicodeUTF8)); + blue_button->setText(QApplication::translate("controllerWindow", "Blue", 0, QApplication::UnicodeUTF8)); + off_button->setText(QApplication::translate("controllerWindow", "Off", 0, QApplication::UnicodeUTF8)); + set_preset_button->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", 0, QApplication::UnicodeUTF8)); + preset_save_button->setText(QApplication::translate("controllerWindow", "Save", 0, QApplication::UnicodeUTF8)); + presets_label->setText(QApplication::translate("controllerWindow", "Presets", 0, QApplication::UnicodeUTF8)); + status_label->setText(QApplication::translate("controllerWindow", "Status", 0, QApplication::UnicodeUTF8)); + preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", 0, QApplication::UnicodeUTF8)); + pushButton_3->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + pushButton_2->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + pushButton->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + label_3->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + label_4->setText(QApplication::translate("controllerWindow", "Fade", 0, QApplication::UnicodeUTF8)); + info_log_label->setText(QApplication::translate("controllerWindow", "Information log", 0, QApplication::UnicodeUTF8)); + pushButton_4->setText(QApplication::translate("controllerWindow", "Speed", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class controllerWindow: public Ui_controllerWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_CONTROLLERWINDOW_H diff --git a/qt/build/degub/.qmake.stash b/qt/build/degub/.qmake.stash new file mode 100644 index 0000000..f31b11e --- /dev/null +++ b/qt/build/degub/.qmake.stash @@ -0,0 +1,12 @@ +QMAKE_DEFAULT_INCDIRS = \ + /usr/include/c++/6.1.1 \ + /usr/include/c++/6.1.1/x86_64-pc-linux-gnu \ + /usr/include/c++/6.1.1/backward \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include \ + /usr/local/include \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed \ + /usr/include +QMAKE_DEFAULT_LIBDIRS = \ + /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1 \ + /usr/lib \ + /lib diff --git a/qt/build/degub/Makefile b/qt/build/degub/Makefile index b5ca973..e0c8f89 100755 --- a/qt/build/degub/Makefile +++ b/qt/build/degub/Makefile @@ -1,6 +1,6 @@ ############################################################################# # Makefile for building: RGBController -# Generated by qmake (3.0) (Qt 5.6.0) +# Generated by qmake (3.0) (Qt 5.7.0) # Project: ../../RGBController/RGBController.pro # Template: app # Command: /usr/lib/qt/bin/qmake -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ../../RGBController/RGBController.pro @@ -14,7 +14,7 @@ CC = gcc CXX = g++ DEFINES = -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB CFLAGS = -pipe -g -Wall -W -D_REENTRANT -fPIC $(DEFINES) -CXXFLAGS = -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC $(DEFINES) +CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT -fPIC $(DEFINES) INCPATH = -I../../RGBController -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtSerialPort -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ QMAKE = /usr/lib/qt/bin/qmake DEL_FILE = rm -f @@ -89,6 +89,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_KItemModels.pri \ /usr/lib/qt/mkspecs/modules/qt_KItemViews.pri \ /usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri \ /usr/lib/qt/mkspecs/modules/qt_KNotifications.pri \ /usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri \ /usr/lib/qt/mkspecs/modules/qt_KNTLM.pri \ @@ -104,12 +105,16 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri \ @@ -119,17 +124,22 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_core.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designer.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_gui.pri \ @@ -150,6 +160,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_platformsupport_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri \ @@ -157,13 +168,17 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qml.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quick.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_script.pri \ @@ -185,6 +200,8 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri \ @@ -218,6 +235,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/features/qt_config.prf \ /usr/lib/qt/mkspecs/linux-g++/qmake.conf \ /usr/lib/qt/mkspecs/features/spec_post.prf \ + ../../RGBController/.qmake.stash \ /usr/lib/qt/mkspecs/features/exclusive_builds.prf \ /usr/lib/qt/mkspecs/features/default_pre.prf \ /usr/lib/qt/mkspecs/features/resolve_config.prf \ @@ -230,6 +248,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \ /usr/lib/qt/mkspecs/features/unix/opengl.prf \ /usr/lib/qt/mkspecs/features/uic.prf \ /usr/lib/qt/mkspecs/features/unix/thread.prf \ + /usr/lib/qt/mkspecs/features/file_copies.prf \ /usr/lib/qt/mkspecs/features/testcase_targets.prf \ /usr/lib/qt/mkspecs/features/exceptions.prf \ /usr/lib/qt/mkspecs/features/yacc.prf \ @@ -283,6 +302,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_KItemModels.pri \ /usr/lib/qt/mkspecs/modules/qt_KItemViews.pri \ /usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri \ + /usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri \ /usr/lib/qt/mkspecs/modules/qt_KNotifications.pri \ /usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri \ /usr/lib/qt/mkspecs/modules/qt_KNTLM.pri \ @@ -298,12 +318,16 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri \ @@ -313,17 +337,22 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_core.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designer.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_gui.pri \ @@ -344,6 +373,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_platformsupport_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri \ @@ -351,13 +381,17 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qml.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quick.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_script.pri \ @@ -379,6 +413,8 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri \ + /usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri \ /usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri \ @@ -412,6 +448,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/features/qt_config.prf \ /usr/lib/qt/mkspecs/linux-g++/qmake.conf \ /usr/lib/qt/mkspecs/features/spec_post.prf \ + .qmake.stash \ /usr/lib/qt/mkspecs/features/exclusive_builds.prf \ /usr/lib/qt/mkspecs/features/default_pre.prf \ /usr/lib/qt/mkspecs/features/resolve_config.prf \ @@ -424,6 +461,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/features/unix/opengl.prf \ /usr/lib/qt/mkspecs/features/uic.prf \ /usr/lib/qt/mkspecs/features/unix/thread.prf \ + /usr/lib/qt/mkspecs/features/file_copies.prf \ /usr/lib/qt/mkspecs/features/testcase_targets.prf \ /usr/lib/qt/mkspecs/features/exceptions.prf \ /usr/lib/qt/mkspecs/features/yacc.prf \ @@ -469,6 +507,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_KItemModels.pri: /usr/lib/qt/mkspecs/modules/qt_KItemViews.pri: /usr/lib/qt/mkspecs/modules/qt_KJobWidgets.pri: +/usr/lib/qt/mkspecs/modules/qt_KNewStuff.pri: /usr/lib/qt/mkspecs/modules/qt_KNotifications.pri: /usr/lib/qt/mkspecs/modules/qt_KNotifyConfig.pri: /usr/lib/qt/mkspecs/modules/qt_KNTLM.pri: @@ -484,12 +523,16 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_KXmlGui.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dcore.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dcore_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dextras.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dextras_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dinput.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dinput_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dlogic_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dquick.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dquick_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_3dquickextras_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dquickinput_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_3dquickrender.pri: @@ -499,17 +542,22 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth.pri: /usr/lib/qt/mkspecs/modules/qt_lib_bluetooth_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_charts.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_charts_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_clucene_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_concurrent.pri: /usr/lib/qt/mkspecs/modules/qt_lib_concurrent_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_core.pri: /usr/lib/qt/mkspecs/modules/qt_lib_core_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_datavisualization.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_datavisualization_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_dbus.pri: /usr/lib/qt/mkspecs/modules/qt_lib_dbus_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_designer.pri: /usr/lib/qt/mkspecs/modules/qt_lib_designer_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_designercomponents_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_enginio.pri: /usr/lib/qt/mkspecs/modules/qt_lib_enginio_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_gui.pri: @@ -530,6 +578,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_opengl_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions.pri: /usr/lib/qt/mkspecs/modules/qt_lib_openglextensions_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_packetprotocol_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_platformsupport_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_positioning.pri: /usr/lib/qt/mkspecs/modules/qt_lib_positioning_private.pri: @@ -537,13 +586,17 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_printsupport_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qml.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qml_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_qmldebug_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qmldevtools_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qmltest.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qmltest_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_quick.pri: /usr/lib/qt/mkspecs/modules/qt_lib_quick_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quickcontrols2_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_quickparticles_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_quicktemplates2_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets.pri: /usr/lib/qt/mkspecs/modules/qt_lib_quickwidgets_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_script.pri: @@ -565,6 +618,8 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/modules/qt_lib_uitools_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient.pri: /usr/lib/qt/mkspecs/modules/qt_lib_waylandclient_private.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor.pri: +/usr/lib/qt/mkspecs/modules/qt_lib_waylandcompositor_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_webchannel.pri: /usr/lib/qt/mkspecs/modules/qt_lib_webchannel_private.pri: /usr/lib/qt/mkspecs/modules/qt_lib_webengine.pri: @@ -598,6 +653,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/features/qt_config.prf: /usr/lib/qt/mkspecs/linux-g++/qmake.conf: /usr/lib/qt/mkspecs/features/spec_post.prf: +.qmake.stash: /usr/lib/qt/mkspecs/features/exclusive_builds.prf: /usr/lib/qt/mkspecs/features/default_pre.prf: /usr/lib/qt/mkspecs/features/resolve_config.prf: @@ -610,6 +666,7 @@ Makefile: ../../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qm /usr/lib/qt/mkspecs/features/unix/opengl.prf: /usr/lib/qt/mkspecs/features/uic.prf: /usr/lib/qt/mkspecs/features/unix/thread.prf: +/usr/lib/qt/mkspecs/features/file_copies.prf: /usr/lib/qt/mkspecs/features/testcase_targets.prf: /usr/lib/qt/mkspecs/features/exceptions.prf: /usr/lib/qt/mkspecs/features/yacc.prf: @@ -646,6 +703,7 @@ clean: compiler_clean distclean: clean -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) .qmake.stash -$(DEL_FILE) Makefile @@ -657,21 +715,26 @@ mocables: compiler_moc_header_make_all compiler_moc_source_make_all check: first +benchmark: first + compiler_rcc_make_all: compiler_rcc_clean: compiler_moc_header_make_all: moc_controllerwindow.cpp compiler_moc_header_clean: -$(DEL_FILE) moc_controllerwindow.cpp moc_controllerwindow.cpp: ../../RGBController/serial_communication.h \ - ../../RGBController/controllerwindow.h - /usr/lib/qt/bin/moc $(DEFINES) -I/usr/lib/qt/mkspecs/linux-g++ -I'/home/daniel_j/documents/school/2016 research project/RGBController/qt/RGBController' -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtSerialPort -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I/usr/include/c++/5.3.0 -I/usr/include/c++/5.3.0/x86_64-unknown-linux-gnu -I/usr/include/c++/5.3.0/backward -I/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include -I/usr/local/include -I/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed -I/usr/include ../../RGBController/controllerwindow.h -o moc_controllerwindow.cpp + ui_controllerwindow.h \ + ../../RGBController/controllerwindow.h \ + /usr/lib/qt/bin/moc + /usr/lib/qt/bin/moc $(DEFINES) -I/usr/lib/qt/mkspecs/linux-g++ -I'/home/daniel_j/documents/school/2016 research project/RGBController/qt/RGBController' -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtSerialPort -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I/usr/include/c++/6.1.1 -I/usr/include/c++/6.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/6.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include-fixed -I/usr/include ../../RGBController/controllerwindow.h -o moc_controllerwindow.cpp compiler_moc_source_make_all: compiler_moc_source_clean: compiler_uic_make_all: ui_controllerwindow.h compiler_uic_clean: -$(DEL_FILE) ui_controllerwindow.h -ui_controllerwindow.h: ../../RGBController/controllerwindow.ui +ui_controllerwindow.h: ../../RGBController/controllerwindow.ui \ + /usr/lib/qt/bin/uic /usr/lib/qt/bin/uic ../../RGBController/controllerwindow.ui -o ui_controllerwindow.h compiler_yacc_decl_make_all: @@ -685,7 +748,8 @@ compiler_clean: compiler_moc_header_clean compiler_uic_clean ####### Compile main.o: ../../RGBController/main.cpp ../../RGBController/controllerwindow.h \ - ../../RGBController/serial_communication.h + ../../RGBController/serial_communication.h \ + ui_controllerwindow.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../../RGBController/main.cpp controllerwindow.o: ../../RGBController/controllerwindow.cpp ../../RGBController/controllerwindow.h \ @@ -693,7 +757,9 @@ controllerwindow.o: ../../RGBController/controllerwindow.cpp ../../RGBController ui_controllerwindow.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o controllerwindow.o ../../RGBController/controllerwindow.cpp -serial_communication.o: ../../RGBController/serial_communication.cpp ../../RGBController/serial_communication.h +serial_communication.o: ../../RGBController/serial_communication.cpp ../../RGBController/serial_communication.h \ + ../../RGBController/controllerwindow.h \ + ui_controllerwindow.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o serial_communication.o ../../RGBController/serial_communication.cpp moc_controllerwindow.o: moc_controllerwindow.cpp diff --git a/qt/build/degub/RGBController b/qt/build/degub/RGBController index 41cc589..91ab134 100755 Binary files a/qt/build/degub/RGBController and b/qt/build/degub/RGBController differ diff --git a/qt/build/degub/controllerwindow.o b/qt/build/degub/controllerwindow.o index b9424c6..d5ce046 100644 Binary files a/qt/build/degub/controllerwindow.o and b/qt/build/degub/controllerwindow.o differ diff --git a/qt/build/degub/main.o b/qt/build/degub/main.o index bb17f39..f70fffe 100644 Binary files a/qt/build/degub/main.o and b/qt/build/degub/main.o differ diff --git a/qt/build/degub/moc_controllerwindow.cpp b/qt/build/degub/moc_controllerwindow.cpp old mode 100755 new mode 100644 index 07e69be..0beaf14 --- a/qt/build/degub/moc_controllerwindow.cpp +++ b/qt/build/degub/moc_controllerwindow.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** Meta object code from reading C++ file 'controllerwindow.h' ** -** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.0) +** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ @@ -12,7 +12,7 @@ #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'controllerwindow.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 67 -#error "This file was generated using the moc from 5.6.0. It" +#error "This file was generated using the moc from 5.7.0. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif diff --git a/qt/build/degub/moc_controllerwindow.o b/qt/build/degub/moc_controllerwindow.o index d19a41d..5d835ad 100644 Binary files a/qt/build/degub/moc_controllerwindow.o and b/qt/build/degub/moc_controllerwindow.o differ diff --git a/qt/build/degub/presets.txt b/qt/build/degub/presets.txt index 2b9422e..1162758 100644 --- a/qt/build/degub/presets.txt +++ b/qt/build/degub/presets.txt @@ -3,3 +3,4 @@ purple=255,0,255 light purple=255,55,255 yellow=255,83,0 light blue=0,255,255 +pink=255,0,91 diff --git a/qt/build/degub/presets_backup.txt b/qt/build/degub/presets_backup.txt new file mode 100644 index 0000000..7bc9af4 --- /dev/null +++ b/qt/build/degub/presets_backup.txt @@ -0,0 +1,11 @@ +Only add things to this file if you know what you are doing. +Don't be dumb. + +The program only cares for lines here if they contain the equals symbol. +Everything else is ignored - if you add an equals symbol to this file, you will most likely crash it. + +white=255,255,255 +purple=255,0,255 +light purple=255,55,255 +yellow=255,83,0 +light blue=0,255,255 diff --git a/qt/build/degub/serial_communication.o b/qt/build/degub/serial_communication.o index dd01faa..3fb7cb2 100644 Binary files a/qt/build/degub/serial_communication.o and b/qt/build/degub/serial_communication.o differ diff --git a/qt/build/degub/ui_controllerwindow.h b/qt/build/degub/ui_controllerwindow.h old mode 100755 new mode 100644 index 03ce981..2dbb079 --- a/qt/build/degub/ui_controllerwindow.h +++ b/qt/build/degub/ui_controllerwindow.h @@ -1,7 +1,7 @@ /******************************************************************************** ** Form generated from reading UI file 'controllerwindow.ui' ** -** Created by: Qt User Interface Compiler version 5.6.0 +** Created by: Qt User Interface Compiler version 5.7.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************************************************/ @@ -39,29 +39,29 @@ public: QPushButton *connect_button; QPushButton *disconnect_button; QLabel *rgb_label; - QPushButton *red_button; QSlider *r_slider; + QPushButton *red_button; QSlider *g_slider; - QSlider *b_slider; QPushButton *green_button; + QSlider *b_slider; QPushButton *blue_button; - QLabel *presets_label; QPushButton *off_button; - QLabel *info_log_label; - QPushButton *set_preset_button; + QLabel *presets_label; QComboBox *presets_dropdown; - QTextEdit *info_log_textarea; + QPushButton *set_preset_button; + QPushButton *reload_preset_button; QLineEdit *preset_name_textbox; QPushButton *preset_save_button; QPushButton *preset_delete_button; - QPushButton *reload_preset_button; + QLabel *info_log_label; + QTextEdit *info_log_textarea; void setupUi(QMainWindow *controllerWindow) { if (controllerWindow->objectName().isEmpty()) controllerWindow->setObjectName(QStringLiteral("controllerWindow")); controllerWindow->setWindowModality(Qt::WindowModal); - controllerWindow->resize(235, 428); + controllerWindow->resize(235, 447); centralWidget = new QWidget(controllerWindow); centralWidget->setObjectName(QStringLiteral("centralWidget")); formLayout = new QFormLayout(centralWidget); @@ -109,11 +109,6 @@ public: formLayout->setWidget(4, QFormLayout::LabelRole, rgb_label); - red_button = new QPushButton(centralWidget); - red_button->setObjectName(QStringLiteral("red_button")); - - formLayout->setWidget(5, QFormLayout::FieldRole, red_button); - r_slider = new QSlider(centralWidget); r_slider->setObjectName(QStringLiteral("r_slider")); r_slider->setMinimumSize(QSize(120, 0)); @@ -123,6 +118,11 @@ public: formLayout->setWidget(5, QFormLayout::LabelRole, r_slider); + red_button = new QPushButton(centralWidget); + red_button->setObjectName(QStringLiteral("red_button")); + + formLayout->setWidget(5, QFormLayout::FieldRole, red_button); + g_slider = new QSlider(centralWidget); g_slider->setObjectName(QStringLiteral("g_slider")); g_slider->setMinimumSize(QSize(120, 0)); @@ -132,6 +132,11 @@ public: formLayout->setWidget(6, QFormLayout::LabelRole, g_slider); + green_button = new QPushButton(centralWidget); + green_button->setObjectName(QStringLiteral("green_button")); + + formLayout->setWidget(6, QFormLayout::FieldRole, green_button); + b_slider = new QSlider(centralWidget); b_slider->setObjectName(QStringLiteral("b_slider")); b_slider->setMinimumSize(QSize(120, 0)); @@ -141,35 +146,20 @@ public: formLayout->setWidget(7, QFormLayout::LabelRole, b_slider); - green_button = new QPushButton(centralWidget); - green_button->setObjectName(QStringLiteral("green_button")); - - formLayout->setWidget(6, QFormLayout::FieldRole, green_button); - blue_button = new QPushButton(centralWidget); blue_button->setObjectName(QStringLiteral("blue_button")); formLayout->setWidget(7, QFormLayout::FieldRole, blue_button); - presets_label = new QLabel(centralWidget); - presets_label->setObjectName(QStringLiteral("presets_label")); - - formLayout->setWidget(9, QFormLayout::LabelRole, presets_label); - off_button = new QPushButton(centralWidget); off_button->setObjectName(QStringLiteral("off_button")); formLayout->setWidget(8, QFormLayout::FieldRole, off_button); - info_log_label = new QLabel(centralWidget); - info_log_label->setObjectName(QStringLiteral("info_log_label")); - - formLayout->setWidget(14, QFormLayout::LabelRole, info_log_label); - - set_preset_button = new QPushButton(centralWidget); - set_preset_button->setObjectName(QStringLiteral("set_preset_button")); + presets_label = new QLabel(centralWidget); + presets_label->setObjectName(QStringLiteral("presets_label")); - formLayout->setWidget(10, QFormLayout::FieldRole, set_preset_button); + formLayout->setWidget(9, QFormLayout::LabelRole, presets_label); presets_dropdown = new QComboBox(centralWidget); presets_dropdown->setObjectName(QStringLiteral("presets_dropdown")); @@ -177,10 +167,15 @@ public: formLayout->setWidget(10, QFormLayout::LabelRole, presets_dropdown); - info_log_textarea = new QTextEdit(centralWidget); - info_log_textarea->setObjectName(QStringLiteral("info_log_textarea")); + set_preset_button = new QPushButton(centralWidget); + set_preset_button->setObjectName(QStringLiteral("set_preset_button")); - formLayout->setWidget(15, QFormLayout::SpanningRole, info_log_textarea); + formLayout->setWidget(10, QFormLayout::FieldRole, set_preset_button); + + reload_preset_button = new QPushButton(centralWidget); + reload_preset_button->setObjectName(QStringLiteral("reload_preset_button")); + + formLayout->setWidget(11, QFormLayout::LabelRole, reload_preset_button); preset_name_textbox = new QLineEdit(centralWidget); preset_name_textbox->setObjectName(QStringLiteral("preset_name_textbox")); @@ -197,10 +192,15 @@ public: formLayout->setWidget(13, QFormLayout::FieldRole, preset_delete_button); - reload_preset_button = new QPushButton(centralWidget); - reload_preset_button->setObjectName(QStringLiteral("reload_preset_button")); + info_log_label = new QLabel(centralWidget); + info_log_label->setObjectName(QStringLiteral("info_log_label")); - formLayout->setWidget(11, QFormLayout::LabelRole, reload_preset_button); + formLayout->setWidget(14, QFormLayout::LabelRole, info_log_label); + + info_log_textarea = new QTextEdit(centralWidget); + info_log_textarea->setObjectName(QStringLiteral("info_log_textarea")); + + formLayout->setWidget(15, QFormLayout::SpanningRole, info_log_textarea); controllerWindow->setCentralWidget(centralWidget); @@ -222,13 +222,13 @@ public: red_button->setText(QApplication::translate("controllerWindow", "Red", 0)); green_button->setText(QApplication::translate("controllerWindow", "Green", 0)); blue_button->setText(QApplication::translate("controllerWindow", "Blue", 0)); - presets_label->setText(QApplication::translate("controllerWindow", "Presets", 0)); off_button->setText(QApplication::translate("controllerWindow", "Off", 0)); - info_log_label->setText(QApplication::translate("controllerWindow", "Information log", 0)); + presets_label->setText(QApplication::translate("controllerWindow", "Presets", 0)); set_preset_button->setText(QApplication::translate("controllerWindow", "Set", 0)); + reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", 0)); preset_save_button->setText(QApplication::translate("controllerWindow", "Save", 0)); preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", 0)); - reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", 0)); + info_log_label->setText(QApplication::translate("controllerWindow", "Information log", 0)); } // retranslateUi }; -- cgit v1.2.3