summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c/terminalcontroller/main.c193
-rwxr-xr-xc/terminalcontroller/rgbbin0 -> 13672 bytes
-rw-r--r--qt/RGBController/.controllerwindow.cpp.swnbin16384 -> 0 bytes
-rw-r--r--qt/RGBController/.qmake.stash29
-rw-r--r--qt/RGBController/Makefile35
-rwxr-xr-xqt/RGBController/RGBControllerbin143248 -> 143160 bytes
-rwxr-xr-xqt/RGBController/RGBController.pro.user2
-rwxr-xr-xqt/RGBController/controllerwindow.cpp4
-rw-r--r--qt/RGBController/controllerwindow.ui46
-rw-r--r--qt/RGBController/irc.cpp2
-rw-r--r--qt/RGBController/moc_controllerwindow.cpp (renamed from qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp)10
-rw-r--r--qt/RGBController/moc_irc.cpp (renamed from qt/build-RGBController-Desktop-Debug/moc_irc.cpp)43
-rw-r--r--qt/RGBController/moc_predefs.h (renamed from qt/build-RGBController-Desktop-Debug/moc_predefs.h)3
-rw-r--r--qt/RGBController/moc_server.cpp (renamed from qt/build-RGBController-Desktop-Debug/moc_server.cpp)12
-rw-r--r--qt/RGBController/server.cpp1
-rw-r--r--qt/RGBController/ui_controllerwindow.h (renamed from qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h)27
-rw-r--r--qt/build-RGBController-Desktop-Debug/.qmake.stash12
-rwxr-xr-xqt/build-RGBController-Desktop-Debug/RGBControllerbin1813016 -> 0 bytes
-rw-r--r--qt/build-RGBController-Desktop-Debug/moc_serial.cpp114
-rw-r--r--qt/build-RGBController-Desktop-Debug/presets.txt1
-rw-r--r--qt/build-consoleserver-Desktop-Debug/.qmake.stash21
-rw-r--r--qt/build-consoleserver-Desktop-Debug/Makefile (renamed from qt/build-RGBController-Desktop-Debug/Makefile)172
-rw-r--r--qt/build-consoleserver-Desktop-Debug/moc_predefs.h375
-rw-r--r--qt/build-consoleserver-Desktop-Debug/moc_server.cpp139
-rw-r--r--qt/build/degub/.qmake.stash12
-rwxr-xr-xqt/build/degub/Makefile775
-rwxr-xr-xqt/build/degub/RGBControllerbin1312000 -> 0 bytes
-rw-r--r--qt/build/degub/controllerwindow.obin651816 -> 0 bytes
-rw-r--r--qt/build/degub/main.obin499560 -> 0 bytes
-rw-r--r--qt/build/degub/moc_controllerwindow.cpp180
-rw-r--r--qt/build/degub/moc_controllerwindow.obin561368 -> 0 bytes
-rw-r--r--qt/build/degub/presets.txt6
-rw-r--r--qt/build/degub/presets_backup.txt11
-rw-r--r--qt/build/degub/serial_communication.obin293944 -> 0 bytes
-rw-r--r--qt/build/degub/ui_controllerwindow.h242
-rw-r--r--qt/console/.qmake.stash29
-rw-r--r--qt/console/Makefile36
-rw-r--r--qt/console/main.cpp5
-rwxr-xr-xqt/console/qtconsoletestbin0 -> 25064 bytes
-rw-r--r--qt/consoleserver/.gitignore73
-rwxr-xr-xqt/consoleserver/consoleserverbin0 -> 55320 bytes
-rw-r--r--qt/consoleserver/consoleserver.pro31
-rw-r--r--qt/consoleserver/irc.cpp114
-rw-r--r--qt/consoleserver/irc.h38
-rw-r--r--qt/consoleserver/main.cpp30
-rw-r--r--qt/consoleserver/serial.cpp67
-rw-r--r--qt/consoleserver/serial.h27
-rw-r--r--qt/consoleserver/server.cpp57
-rw-r--r--qt/consoleserver/server.h26
49 files changed, 1452 insertions, 1548 deletions
diff --git a/c/terminalcontroller/main.c b/c/terminalcontroller/main.c
new file mode 100644
index 0000000..5d26966
--- /dev/null
+++ b/c/terminalcontroller/main.c
@@ -0,0 +1,193 @@
+#include <ncurses.h>
+#include <string.h>
+
+/* server information */
+char host[128];
+char port[128];
+
+/* stores our menu items */
+char *main_menu_items[] = {
+ "setup",
+ "connect",
+ "disconnect",
+ "presets",
+ "exit",
+};
+
+char *setup_menu_items[] = {
+ "host",
+ "port",
+ "back",
+};
+
+/* windows */
+WINDOW *menuwindow; /* main menu window */
+WINDOW *setupwindow; /* setup window */
+
+/* store the number of items in the menus */
+int total_main_items = sizeof(main_menu_items) / sizeof(char *);
+int total_setup_items = sizeof(setup_menu_items) / sizeof(char *);
+
+/* menu functions */
+void mainmenu(int index);
+void setupmenu(int index);
+
+/* normal menu print function */
+void print_menu(WINDOW *win, int index, char *items[], int itemsize);
+
+
+int main(int argc, char *argv[])
+{
+ /* ncurses setup */
+ initscr();
+ clear();
+ noecho();
+ cbreak();
+ curs_set(0);
+ mvprintw(0, 0, "RGB controller");
+ mvprintw(1, 0, "use the arrow keys to navigate the menu, enter to select");
+ clrtoeol();
+ refresh();
+ /* menus */
+ mainmenu(1);
+ /* end ncurses */
+ endwin();
+ return 0;
+}
+
+void mainmenu(int index)
+{
+ menuwindow = newwin(total_main_items + 4, 16, LINES / 2 - total_main_items, (COLS - 16) / 2);
+ int menuindex = index; /* store menu index */
+ int selected = 0; /* stores the menu item selected */
+ int in; /* stores user input */
+ keypad(menuwindow, TRUE);
+ print_menu(menuwindow, menuindex, main_menu_items, total_main_items);
+ /* input loop */
+ while (1)
+ {
+ in = wgetch(menuwindow);
+ switch (in)
+ {
+ case KEY_UP:
+ if (menuindex == 1)
+ menuindex = total_main_items;
+ else
+ menuindex--;
+ break;
+ case KEY_DOWN:
+ if (menuindex == total_main_items)
+ menuindex = 1;
+ else
+ menuindex++;
+ break;
+ case 10:
+ selected = menuindex;
+ break;
+ }
+ print_menu(menuwindow, menuindex, main_menu_items, total_main_items);
+ if (selected != 0)
+ break;
+ }
+ wclear(menuwindow); /* causes flashes, fix */
+ wrefresh(menuwindow);
+ delwin(menuwindow);
+ if (selected - 1 == 0)
+ setupmenu(1);
+}
+
+void setupmenu(int index)
+{
+ setupwindow = newwin(total_setup_items + 4, 16, LINES / 2 - total_setup_items, (COLS - 16) / 2);
+ int menuindex = index; /* store menu index */
+ int selected = 0; /* stores the menu item selected */
+ int in; /* stores user input */
+ keypad(setupwindow, TRUE);
+ print_menu(setupwindow, menuindex, setup_menu_items, total_setup_items);
+ /* input loop */
+ while (1)
+ {
+ in = wgetch(setupwindow);
+ switch (in)
+ {
+ case KEY_UP:
+ if (menuindex == 1)
+ menuindex = total_setup_items;
+ else
+ menuindex--;
+ break;
+ case KEY_DOWN:
+ if (menuindex == total_setup_items)
+ menuindex = 1;
+ else
+ menuindex++;
+ break;
+ case 10:
+ selected = menuindex;
+ break;
+ }
+ print_menu(setupwindow, menuindex, setup_menu_items, total_setup_items);
+ if (selected != 0)
+ break;
+ }
+ if (selected == 1)
+ {
+ move(3, 0);
+ clrtoeol();
+ mvprintw(3, 0, "Enter a server address: ");
+ echo();
+ getstr(host);
+ noecho();
+ move(3, 0);
+ clrtoeol();
+ mvprintw(3, 0, "host set to: %s", host);
+ refresh();
+ setupmenu(selected);
+ }
+ if (selected == 2)
+ {
+ move(3, 0);
+ clrtoeol();
+ mvprintw(3, 0, "Enter a server port: ");
+ echo();
+ getstr(port);
+ noecho();
+ move(3, 0);
+ clrtoeol();
+ mvprintw(3, 0, "port set to: %s", port);
+ refresh();
+ setupmenu(selected);
+ }
+
+ wclear(setupwindow);
+ wrefresh(setupwindow);
+ delwin(setupwindow);
+ if (selected - 1 == 2)
+ mainmenu(1);
+}
+
+void print_menu(WINDOW *win, int index, char *items[], int itemsize)
+{
+ int x = 2;
+ int y = 2;
+ box(win, 0, 0); /* draw our border */
+ for (int i = 0; i < itemsize; i++)
+ {
+ if (index == i + 1)
+ {
+ wattron(win, A_REVERSE);
+ mvwprintw(win, y, x, "%s", items[i]);
+ wattroff(win, A_REVERSE);
+ }
+ else
+ mvwprintw(win, y, x, "%s", items[i]);
+ y++;
+ wrefresh(win);
+ }
+}
+
+
+
+
+
+
diff --git a/c/terminalcontroller/rgb b/c/terminalcontroller/rgb
new file mode 100755
index 0000000..face935
--- /dev/null
+++ b/c/terminalcontroller/rgb
Binary files differ
diff --git a/qt/RGBController/.controllerwindow.cpp.swn b/qt/RGBController/.controllerwindow.cpp.swn
deleted file mode 100644
index bc195e4..0000000
--- a/qt/RGBController/.controllerwindow.cpp.swn
+++ /dev/null
Binary files differ
diff --git a/qt/RGBController/.qmake.stash b/qt/RGBController/.qmake.stash
index 39abb16..b8ee3b2 100644
--- a/qt/RGBController/.qmake.stash
+++ b/qt/RGBController/.qmake.stash
@@ -10,3 +10,32 @@ QMAKE_DEFAULT_LIBDIRS = \
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 \
/usr/lib \
/lib
+QMAKE_CXX.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 \
+ /usr/include/c++/7.1.1 \
+ /usr/include/c++/7.1.1/x86_64-pc-linux-gnu \
+ /usr/include/c++/7.1.1/backward \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include \
+ /usr/local/include \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed \
+ /usr/include
+QMAKE_CXX.LIBDIRS = \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 \
+ /usr/lib \
+ /lib \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1
+QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
+QMAKE_CXX.QT_GCC_MAJOR_VERSION = 7
+QMAKE_CXX.QT_GCC_MINOR_VERSION = 1
+QMAKE_CXX.QT_GCC_PATCH_VERSION = 1
+QMAKE_CXX.COMPILER_MACROS = \
+ QT_COMPILER_STDCXX \
+ QT_GCC_MAJOR_VERSION \
+ QT_GCC_MINOR_VERSION \
+ QT_GCC_PATCH_VERSION
diff --git a/qt/RGBController/Makefile b/qt/RGBController/Makefile
index 4f437ac..e2872fb 100644
--- a/qt/RGBController/Makefile
+++ b/qt/RGBController/Makefile
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: RGBController
-# Generated by qmake (3.1) (Qt 5.8.0)
+# Generated by qmake (3.1) (Qt 5.9.0)
# Project: RGBController.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile RGBController.pro
@@ -26,6 +26,9 @@ COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
+QINSTALL_FILE = /usr/bin/qmake -install qinstall file
+QINSTALL_PROGRAM = /usr/bin/qmake -install qinstall program
+QINSTALL_DIR = /usr/bin/qmake -install qinstall directory
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
@@ -110,6 +113,8 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -120,12 +125,16 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -134,7 +143,6 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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 \
@@ -163,6 +171,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_kms_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 \
@@ -350,6 +359,8 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -360,12 +371,16 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -374,7 +389,6 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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 \
@@ -403,6 +417,7 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_kms_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 \
@@ -580,6 +595,8 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_3danimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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:
@@ -590,12 +607,16 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_3dquickanimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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:
@@ -604,7 +625,6 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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:
@@ -633,6 +653,7 @@ Makefile: RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt
/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_kms_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:
@@ -818,17 +839,17 @@ moc_controllerwindow.cpp: 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
+ /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 -I/usr/include/c++/7.1.1 -I/usr/include/c++/7.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/7.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed -I/usr/include controllerwindow.h -o moc_controllerwindow.cpp
moc_irc.cpp: irc.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 irc.h -o moc_irc.cpp
+ /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 -I/usr/include/c++/7.1.1 -I/usr/include/c++/7.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/7.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed -I/usr/include irc.h -o moc_irc.cpp
moc_server.cpp: server.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 server.h -o moc_server.cpp
+ /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 -I/usr/include/c++/7.1.1 -I/usr/include/c++/7.1.1/x86_64-pc-linux-gnu -I/usr/include/c++/7.1.1/backward -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include -I/usr/local/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed -I/usr/include server.h -o moc_server.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
diff --git a/qt/RGBController/RGBController b/qt/RGBController/RGBController
index a6cfd3f..8e11540 100755
--- a/qt/RGBController/RGBController
+++ b/qt/RGBController/RGBController
Binary files differ
diff --git a/qt/RGBController/RGBController.pro.user b/qt/RGBController/RGBController.pro.user
index 78aa01e..92eee62 100755
--- a/qt/RGBController/RGBController.pro.user
+++ b/qt/RGBController/RGBController.pro.user
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 4.2.2, 2017-05-15T22:54:21. -->
+<!-- Written by QtCreator 4.2.2, 2017-06-07T20:06:36. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
diff --git a/qt/RGBController/controllerwindow.cpp b/qt/RGBController/controllerwindow.cpp
index dd21ece..0709dae 100755
--- a/qt/RGBController/controllerwindow.cpp
+++ b/qt/RGBController/controllerwindow.cpp
@@ -563,7 +563,6 @@ bool controllerWindow::serial_disconnect()
void controllerWindow::send(QString com)
{
data = "";
- qDebug() << "sending" << com;
data.append(com + "\n");
if (ser->isOpen())
ser->write(data);
@@ -697,7 +696,6 @@ void controllerWindow::on_server_start_button_clicked()
void controllerWindow::cmdrecv(QString cmd)
{
- qDebug() << "got cmd" << cmd;
+ qDebug() << "received command:" << cmd;
send(cmd);
-
}
diff --git a/qt/RGBController/controllerwindow.ui b/qt/RGBController/controllerwindow.ui
index 0a10269..d40ccba 100644
--- a/qt/RGBController/controllerwindow.ui
+++ b/qt/RGBController/controllerwindow.ui
@@ -3,14 +3,14 @@
<class>controllerWindow</class>
<widget class="QMainWindow" name="controllerWindow">
<property name="windowModality">
- <enum>Qt::WindowModal</enum>
+ <enum>Qt::NonModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
- <width>433</width>
- <height>254</height>
+ <width>449</width>
+ <height>298</height>
</rect>
</property>
<property name="windowTitle">
@@ -21,7 +21,7 @@
<item row="7" column="1">
<widget class="QTabWidget" name="display_tab">
<property name="currentIndex">
- <number>5</number>
+ <number>4</number>
</property>
<widget class="QWidget" name="status_tab">
<attribute name="title">
@@ -542,22 +542,6 @@
</property>
</widget>
</item>
- <item row="5" column="1">
- <widget class="QSpinBox" name="irc_bot_spinbox">
- <property name="maximumSize">
- <size>
- <width>50</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="maximum">
- <number>99999</number>
- </property>
- <property name="value">
- <number>6667</number>
- </property>
- </widget>
- </item>
<item row="6" column="0">
<widget class="QLabel" name="irc_channel_label">
<property name="text">
@@ -600,6 +584,28 @@
</property>
</widget>
</item>
+ <item row="5" column="1">
+ <widget class="QSpinBox" name="irc_bot_spinbox">
+ <property name="minimumSize">
+ <size>
+ <width>60</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>50</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="maximum">
+ <number>99999</number>
+ </property>
+ <property name="value">
+ <number>6667</number>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<widget class="QWidget" name="server_tab">
diff --git a/qt/RGBController/irc.cpp b/qt/RGBController/irc.cpp
index 3a2ac14..d87f0be 100644
--- a/qt/RGBController/irc.cpp
+++ b/qt/RGBController/irc.cpp
@@ -50,7 +50,7 @@ void irc::con()
socket->write(buf.toUtf8());
buf = "USER " + name + " 8 * :" + name + "\r\n";
socket->write(buf.toUtf8());
- pingcheck->start(60000);
+ pingcheck->start(300000);
}
void irc::discon()
diff --git a/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp b/qt/RGBController/moc_controllerwindow.cpp
index e0fde24..686a81d 100644
--- a/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp
+++ b/qt/RGBController/moc_controllerwindow.cpp
@@ -1,18 +1,18 @@
/****************************************************************************
** Meta object code from reading C++ file 'controllerwindow.h'
**
-** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../RGBController/controllerwindow.h"
+#include "controllerwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'controllerwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
-#error "This file was generated using the moc from 5.8.0. It"
+#error "This file was generated using the moc from 5.9.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
@@ -238,7 +238,7 @@ void controllerWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject controllerWindow::staticMetaObject = {
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_controllerWindow.data,
- qt_meta_data_controllerWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
+ qt_meta_data_controllerWindow, qt_static_metacall, nullptr, nullptr}
};
@@ -249,7 +249,7 @@ const QMetaObject *controllerWindow::metaObject() const
void *controllerWindow::qt_metacast(const char *_clname)
{
- if (!_clname) return Q_NULLPTR;
+ if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_controllerWindow.stringdata0))
return static_cast<void*>(const_cast< controllerWindow*>(this));
return QMainWindow::qt_metacast(_clname);
diff --git a/qt/build-RGBController-Desktop-Debug/moc_irc.cpp b/qt/RGBController/moc_irc.cpp
index 4756835..da8872c 100644
--- a/qt/build-RGBController-Desktop-Debug/moc_irc.cpp
+++ b/qt/RGBController/moc_irc.cpp
@@ -1,18 +1,18 @@
/****************************************************************************
** Meta object code from reading C++ file 'irc.h'
**
-** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../RGBController/irc.h"
+#include "irc.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'irc.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
-#error "This file was generated using the moc from 5.8.0. It"
+#error "This file was generated using the moc from 5.9.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
@@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_irc_t {
- QByteArrayData data[8];
- char stringdata0[37];
+ QByteArrayData data[9];
+ char stringdata0[51];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -38,10 +38,12 @@ QT_MOC_LITERAL(3, 13, 3), // "cmd"
QT_MOC_LITERAL(4, 17, 4), // "read"
QT_MOC_LITERAL(5, 22, 3), // "con"
QT_MOC_LITERAL(6, 26, 6), // "handle"
-QT_MOC_LITERAL(7, 33, 3) // "str"
+QT_MOC_LITERAL(7, 33, 3), // "str"
+QT_MOC_LITERAL(8, 37, 13) // "pingcheckfunc"
},
- "irc\0sendcmd\0\0cmd\0read\0con\0handle\0str"
+ "irc\0sendcmd\0\0cmd\0read\0con\0handle\0str\0"
+ "pingcheckfunc"
};
#undef QT_MOC_LITERAL
@@ -51,7 +53,7 @@ static const uint qt_meta_data_irc[] = {
7, // revision
0, // classname
0, 0, // classinfo
- 4, 14, // methods
+ 5, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -59,12 +61,13 @@ static const uint qt_meta_data_irc[] = {
1, // signalCount
// signals: name, argc, parameters, tag, flags
- 1, 1, 34, 2, 0x06 /* Public */,
+ 1, 1, 39, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
- 4, 0, 37, 2, 0x08 /* Private */,
- 5, 0, 38, 2, 0x08 /* Private */,
- 6, 1, 39, 2, 0x08 /* Private */,
+ 4, 0, 42, 2, 0x08 /* Private */,
+ 5, 0, 43, 2, 0x08 /* Private */,
+ 6, 1, 44, 2, 0x08 /* Private */,
+ 8, 0, 47, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void, QMetaType::QString, 3,
@@ -73,6 +76,7 @@ static const uint qt_meta_data_irc[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 7,
+ QMetaType::Void,
0 // eod
};
@@ -87,6 +91,7 @@ void irc::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **
case 1: _t->read(); break;
case 2: _t->con(); break;
case 3: _t->handle((*reinterpret_cast< QString(*)>(_a[1]))); break;
+ case 4: _t->pingcheckfunc(); break;
default: ;
}
} else if (_c == QMetaObject::IndexOfMethod) {
@@ -104,7 +109,7 @@ void irc::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **
const QMetaObject irc::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_irc.data,
- qt_meta_data_irc, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
+ qt_meta_data_irc, qt_static_metacall, nullptr, nullptr}
};
@@ -115,7 +120,7 @@ const QMetaObject *irc::metaObject() const
void *irc::qt_metacast(const char *_clname)
{
- if (!_clname) return Q_NULLPTR;
+ if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_irc.stringdata0))
return static_cast<void*>(const_cast< irc*>(this));
return QObject::qt_metacast(_clname);
@@ -127,13 +132,13 @@ int irc::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
- if (_id < 4)
+ if (_id < 5)
qt_static_metacall(this, _c, _id, _a);
- _id -= 4;
+ _id -= 5;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
- if (_id < 4)
+ if (_id < 5)
*reinterpret_cast<int*>(_a[0]) = -1;
- _id -= 4;
+ _id -= 5;
}
return _id;
}
@@ -141,7 +146,7 @@ int irc::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void irc::sendcmd(QString _t1)
{
- void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
diff --git a/qt/build-RGBController-Desktop-Debug/moc_predefs.h b/qt/RGBController/moc_predefs.h
index 886ee8d..f7a843b 100644
--- a/qt/build-RGBController-Desktop-Debug/moc_predefs.h
+++ b/qt/RGBController/moc_predefs.h
@@ -1,3 +1,4 @@
+#define __SSP_STRONG__ 3
#define __DBL_MIN_EXP__ (-1021)
#define __cpp_attributes 200809
#define __UINT_LEAST16_MAX__ 0xffff
@@ -46,6 +47,7 @@
#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
@@ -128,7 +130,6 @@
#define __UINT16_MAX__ 0xffff
#define __DBL_HAS_DENORM__ 1
#define __UINT8_TYPE__ unsigned char
-#define __NO_INLINE__ 1
#define __FLT_MANT_DIG__ 24
#define __VERSION__ "6.3.1 20170306"
#define __UINT64_C(c) c ## UL
diff --git a/qt/build-RGBController-Desktop-Debug/moc_server.cpp b/qt/RGBController/moc_server.cpp
index 9cc6f2b..e89f138 100644
--- a/qt/build-RGBController-Desktop-Debug/moc_server.cpp
+++ b/qt/RGBController/moc_server.cpp
@@ -1,18 +1,18 @@
/****************************************************************************
** Meta object code from reading C++ file 'server.h'
**
-** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
-#include "../RGBController/server.h"
+#include "server.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'server.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
-#error "This file was generated using the moc from 5.8.0. It"
+#error "This file was generated using the moc from 5.9.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
@@ -95,7 +95,7 @@ void server::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void
const QMetaObject server::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_server.data,
- qt_meta_data_server, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
+ qt_meta_data_server, qt_static_metacall, nullptr, nullptr}
};
@@ -106,7 +106,7 @@ const QMetaObject *server::metaObject() const
void *server::qt_metacast(const char *_clname)
{
- if (!_clname) return Q_NULLPTR;
+ if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_server.stringdata0))
return static_cast<void*>(const_cast< server*>(this));
return QObject::qt_metacast(_clname);
@@ -132,7 +132,7 @@ int server::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void server::sendcmd(QString _t1)
{
- void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
diff --git a/qt/RGBController/server.cpp b/qt/RGBController/server.cpp
index 85e43ee..8a973e6 100644
--- a/qt/RGBController/server.cpp
+++ b/qt/RGBController/server.cpp
@@ -50,5 +50,4 @@ void server::handle(QString msg)
{
emit sendcmd(msg);
}
-
}
diff --git a/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h b/qt/RGBController/ui_controllerwindow.h
index 8b77987..c0402aa 100644
--- a/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h
+++ b/qt/RGBController/ui_controllerwindow.h
@@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'controllerwindow.ui'
**
-** Created by: Qt User Interface Compiler version 5.8.0
+** Created by: Qt User Interface Compiler version 5.9.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@@ -93,13 +93,13 @@ public:
QLabel *irc_bot_label;
QLabel *irc_server_label;
QLineEdit *irc_server_input;
- QSpinBox *irc_bot_spinbox;
QLabel *irc_channel_label;
QLineEdit *irc_channel_input;
QLabel *irc_name_label;
QLineEdit *irc_name_input;
QLabel *irc_port_label;
QPushButton *irc_connect_button;
+ QSpinBox *irc_bot_spinbox;
QWidget *server_tab;
QGridLayout *gridLayout_6;
QFormLayout *server_tab_layout;
@@ -116,8 +116,8 @@ public:
{
if (controllerWindow->objectName().isEmpty())
controllerWindow->setObjectName(QStringLiteral("controllerWindow"));
- controllerWindow->setWindowModality(Qt::WindowModal);
- controllerWindow->resize(433, 254);
+ controllerWindow->setWindowModality(Qt::NonModal);
+ controllerWindow->resize(449, 298);
centralWidget = new QWidget(controllerWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
gridLayout_2 = new QGridLayout(centralWidget);
@@ -455,14 +455,6 @@ public:
formLayout_5->setWidget(5, QFormLayout::LabelRole, irc_server_input);
- irc_bot_spinbox = new QSpinBox(irc_tab);
- irc_bot_spinbox->setObjectName(QStringLiteral("irc_bot_spinbox"));
- irc_bot_spinbox->setMaximumSize(QSize(50, 16777215));
- irc_bot_spinbox->setMaximum(99999);
- irc_bot_spinbox->setValue(6667);
-
- formLayout_5->setWidget(5, QFormLayout::FieldRole, irc_bot_spinbox);
-
irc_channel_label = new QLabel(irc_tab);
irc_channel_label->setObjectName(QStringLiteral("irc_channel_label"));
@@ -493,6 +485,15 @@ public:
formLayout_5->setWidget(10, QFormLayout::LabelRole, irc_connect_button);
+ irc_bot_spinbox = new QSpinBox(irc_tab);
+ irc_bot_spinbox->setObjectName(QStringLiteral("irc_bot_spinbox"));
+ irc_bot_spinbox->setMinimumSize(QSize(60, 0));
+ irc_bot_spinbox->setMaximumSize(QSize(50, 16777215));
+ irc_bot_spinbox->setMaximum(99999);
+ irc_bot_spinbox->setValue(6667);
+
+ formLayout_5->setWidget(5, QFormLayout::FieldRole, irc_bot_spinbox);
+
display_tab->addTab(irc_tab, QString());
server_tab = new QWidget();
server_tab->setObjectName(QStringLiteral("server_tab"));
@@ -551,7 +552,7 @@ public:
retranslateUi(controllerWindow);
- display_tab->setCurrentIndex(5);
+ display_tab->setCurrentIndex(4);
QMetaObject::connectSlotsByName(controllerWindow);
diff --git a/qt/build-RGBController-Desktop-Debug/.qmake.stash b/qt/build-RGBController-Desktop-Debug/.qmake.stash
deleted file mode 100644
index 39abb16..0000000
--- a/qt/build-RGBController-Desktop-Debug/.qmake.stash
+++ /dev/null
@@ -1,12 +0,0 @@
-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/build-RGBController-Desktop-Debug/RGBController b/qt/build-RGBController-Desktop-Debug/RGBController
deleted file mode 100755
index dbe7020..0000000
--- a/qt/build-RGBController-Desktop-Debug/RGBController
+++ /dev/null
Binary files differ
diff --git a/qt/build-RGBController-Desktop-Debug/moc_serial.cpp b/qt/build-RGBController-Desktop-Debug/moc_serial.cpp
deleted file mode 100644
index 4a63c61..0000000
--- a/qt/build-RGBController-Desktop-Debug/moc_serial.cpp
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'serial.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 "../RGBController/serial.h"
-#include <QtCore/qbytearray.h>
-#include <QtCore/qmetatype.h>
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'serial.h' doesn't include <QObject>."
-#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_serial_t {
- QByteArrayData data[3];
- char stringdata0[13];
-};
-#define QT_MOC_LITERAL(idx, ofs, len) \
- Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
- qptrdiff(offsetof(qt_meta_stringdata_serial_t, stringdata0) + ofs \
- - idx * sizeof(QByteArrayData)) \
- )
-static const qt_meta_stringdata_serial_t qt_meta_stringdata_serial = {
- {
-QT_MOC_LITERAL(0, 0, 6), // "serial"
-QT_MOC_LITERAL(1, 7, 4), // "read"
-QT_MOC_LITERAL(2, 12, 0) // ""
-
- },
- "serial\0read\0"
-};
-#undef QT_MOC_LITERAL
-
-static const uint qt_meta_data_serial[] = {
-
- // content:
- 7, // revision
- 0, // classname
- 0, 0, // classinfo
- 1, 14, // methods
- 0, 0, // properties
- 0, 0, // enums/sets
- 0, 0, // constructors
- 0, // flags
- 0, // signalCount
-
- // slots: name, argc, parameters, tag, flags
- 1, 0, 19, 2, 0x08 /* Private */,
-
- // slots: parameters
- QMetaType::Void,
-
- 0 // eod
-};
-
-void serial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
- if (_c == QMetaObject::InvokeMetaMethod) {
- serial *_t = static_cast<serial *>(_o);
- Q_UNUSED(_t)
- switch (_id) {
- case 0: _t->read(); break;
- default: ;
- }
- }
- Q_UNUSED(_a);
-}
-
-const QMetaObject serial::staticMetaObject = {
- { &QObject::staticMetaObject, qt_meta_stringdata_serial.data,
- qt_meta_data_serial, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
-};
-
-
-const QMetaObject *serial::metaObject() const
-{
- return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
-}
-
-void *serial::qt_metacast(const char *_clname)
-{
- if (!_clname) return Q_NULLPTR;
- if (!strcmp(_clname, qt_meta_stringdata_serial.stringdata0))
- return static_cast<void*>(const_cast< serial*>(this));
- return QObject::qt_metacast(_clname);
-}
-
-int serial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
- _id = QObject::qt_metacall(_c, _id, _a);
- if (_id < 0)
- return _id;
- if (_c == QMetaObject::InvokeMetaMethod) {
- if (_id < 1)
- qt_static_metacall(this, _c, _id, _a);
- _id -= 1;
- } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
- if (_id < 1)
- *reinterpret_cast<int*>(_a[0]) = -1;
- _id -= 1;
- }
- return _id;
-}
-QT_WARNING_POP
-QT_END_MOC_NAMESPACE
diff --git a/qt/build-RGBController-Desktop-Debug/presets.txt b/qt/build-RGBController-Desktop-Debug/presets.txt
deleted file mode 100644
index 894c96c..0000000
--- a/qt/build-RGBController-Desktop-Debug/presets.txt
+++ /dev/null
@@ -1 +0,0 @@
-blue=0,0,255
diff --git a/qt/build-consoleserver-Desktop-Debug/.qmake.stash b/qt/build-consoleserver-Desktop-Debug/.qmake.stash
new file mode 100644
index 0000000..1b43a2c
--- /dev/null
+++ b/qt/build-consoleserver-Desktop-Debug/.qmake.stash
@@ -0,0 +1,21 @@
+QMAKE_CXX.INCDIRS = \
+ /usr/include/c++/7.1.1 \
+ /usr/include/c++/7.1.1/x86_64-pc-linux-gnu \
+ /usr/include/c++/7.1.1/backward \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include \
+ /usr/local/include \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed \
+ /usr/include
+QMAKE_CXX.LIBDIRS = \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1 \
+ /usr/lib \
+ /lib
+QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
+QMAKE_CXX.QT_GCC_MAJOR_VERSION = 7
+QMAKE_CXX.QT_GCC_MINOR_VERSION = 1
+QMAKE_CXX.QT_GCC_PATCH_VERSION = 1
+QMAKE_CXX.COMPILER_MACROS = \
+ QT_COMPILER_STDCXX \
+ QT_GCC_MAJOR_VERSION \
+ QT_GCC_MINOR_VERSION \
+ QT_GCC_PATCH_VERSION
diff --git a/qt/build-RGBController-Desktop-Debug/Makefile b/qt/build-consoleserver-Desktop-Debug/Makefile
index 524bb85..46e89eb 100644
--- a/qt/build-RGBController-Desktop-Debug/Makefile
+++ b/qt/build-consoleserver-Desktop-Debug/Makefile
@@ -1,9 +1,9 @@
#############################################################################
-# Makefile for building: RGBController
-# Generated by qmake (3.1) (Qt 5.8.0)
-# Project: ../RGBController/RGBController.pro
+# Makefile for building: consoleserver
+# Generated by qmake (3.1) (Qt 5.9.0)
+# Project: ../consoleserver/consoleserver.pro
# Template: app
-# Command: /usr/bin/qmake-qt5 -o Makefile ../RGBController/RGBController.pro -spec linux-g++ CONFIG+=debug
+# Command: /usr/bin/qmake-qt5 -o Makefile ../consoleserver/consoleserver.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
#############################################################################
MAKEFILE = Makefile
@@ -12,10 +12,10 @@ MAKEFILE = Makefile
CC = gcc
CXX = g++
-DEFINES = -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
+DEFINES = -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB
CFLAGS = -pipe -g -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. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++
+CXXFLAGS = -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
+INCPATH = -I../consoleserver -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSerialPort -isystem /usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++
QMAKE = /usr/bin/qmake-qt5
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
@@ -26,17 +26,20 @@ COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
+QINSTALL_FILE = /usr/bin/qmake-qt5 -install qinstall file
+QINSTALL_PROGRAM = /usr/bin/qmake-qt5 -install qinstall program
+QINSTALL_DIR = /usr/bin/qmake-qt5 -install qinstall directory
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/build-RGBController-Desktop-Debug/.tmp/RGBController1.0.0
+DISTNAME = consoleserver1.0.0
+DISTDIR = /home/daniel_j/documents/school/2016\ research\ project/RGBController/qt/build-consoleserver-Desktop-Debug/.tmp/consoleserver1.0.0
LINK = g++
LFLAGS =
-LIBS = $(SUBLIBS) -lQt5Widgets -lQt5Gui -lQt5SerialPort -lQt5Network -lQt5Core -lGL -lpthread
+LIBS = $(SUBLIBS) -lQt5Network -lQt5SerialPort -lQt5Core -lpthread
AR = ar cqs
RANLIB =
SED = sed
@@ -48,19 +51,10 @@ OBJECTS_DIR = ./
####### Files
-SOURCES = ../RGBController/main.cpp \
- ../RGBController/controllerwindow.cpp \
- ../RGBController/irc.cpp \
- ../RGBController/server.cpp moc_controllerwindow.cpp \
- moc_irc.cpp \
- moc_server.cpp
+SOURCES = ../consoleserver/main.cpp \
+ ../consoleserver/serial.cpp
OBJECTS = main.o \
- controllerwindow.o \
- irc.o \
- server.o \
- moc_controllerwindow.o \
- moc_irc.o \
- moc_server.o
+ serial.o
DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/usr/lib/qt/mkspecs/common/unix.conf \
/usr/lib/qt/mkspecs/common/linux.conf \
@@ -110,6 +104,8 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -120,12 +116,16 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -134,7 +134,6 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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 \
@@ -163,6 +162,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_kms_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 \
@@ -265,18 +265,17 @@ 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 \
+ ../consoleserver/.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/qml_debug.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 \
@@ -284,24 +283,20 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/usr/lib/qt/mkspecs/features/exceptions.prf \
/usr/lib/qt/mkspecs/features/yacc.prf \
/usr/lib/qt/mkspecs/features/lex.prf \
- ../RGBController/RGBController.pro ../RGBController/controllerwindow.h \
- ../RGBController/irc.h \
- ../RGBController/server.h ../RGBController/main.cpp \
- ../RGBController/controllerwindow.cpp \
- ../RGBController/irc.cpp \
- ../RGBController/server.cpp
-QMAKE_TARGET = RGBController
+ ../consoleserver/consoleserver.pro ../consoleserver/serial.h ../consoleserver/main.cpp \
+ ../consoleserver/serial.cpp
+QMAKE_TARGET = consoleserver
DESTDIR =
-TARGET = RGBController
+TARGET = consoleserver
first: all
####### Build rules
-$(TARGET): ui_controllerwindow.h $(OBJECTS)
+$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
-Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspecs/features/spec_pre.prf \
+Makefile: ../consoleserver/consoleserver.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 \
@@ -350,6 +345,8 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -360,12 +357,16 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -374,7 +375,6 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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 \
@@ -403,6 +403,7 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_kms_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 \
@@ -511,12 +512,11 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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/qml_debug.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 \
@@ -524,13 +524,11 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/usr/lib/qt/mkspecs/features/exceptions.prf \
/usr/lib/qt/mkspecs/features/yacc.prf \
/usr/lib/qt/mkspecs/features/lex.prf \
- ../RGBController/RGBController.pro \
- /usr/lib/libQt5Widgets.prl \
- /usr/lib/libQt5Gui.prl \
- /usr/lib/libQt5SerialPort.prl \
+ ../consoleserver/consoleserver.pro \
/usr/lib/libQt5Network.prl \
+ /usr/lib/libQt5SerialPort.prl \
/usr/lib/libQt5Core.prl
- $(QMAKE) -o Makefile ../RGBController/RGBController.pro -spec linux-g++ CONFIG+=debug
+ $(QMAKE) -o Makefile ../consoleserver/consoleserver.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
/usr/lib/qt/mkspecs/features/spec_pre.prf:
/usr/lib/qt/mkspecs/common/unix.conf:
/usr/lib/qt/mkspecs/common/linux.conf:
@@ -580,6 +578,8 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_3danimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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:
@@ -590,12 +590,16 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_3dquickanimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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:
@@ -604,7 +608,6 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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:
@@ -633,6 +636,7 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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_kms_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:
@@ -741,12 +745,11 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/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/qml_debug.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:
@@ -754,14 +757,12 @@ Makefile: ../RGBController/RGBController.pro /usr/lib/qt/mkspecs/linux-g++/qmake
/usr/lib/qt/mkspecs/features/exceptions.prf:
/usr/lib/qt/mkspecs/features/yacc.prf:
/usr/lib/qt/mkspecs/features/lex.prf:
-../RGBController/RGBController.pro:
-/usr/lib/libQt5Widgets.prl:
-/usr/lib/libQt5Gui.prl:
-/usr/lib/libQt5SerialPort.prl:
+../consoleserver/consoleserver.pro:
/usr/lib/libQt5Network.prl:
+/usr/lib/libQt5SerialPort.prl:
/usr/lib/libQt5Core.prl:
qmake: FORCE
- @$(QMAKE) -o Makefile ../RGBController/RGBController.pro -spec linux-g++ CONFIG+=debug
+ @$(QMAKE) -o Makefile ../consoleserver/consoleserver.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
qmake_all: FORCE
@@ -775,9 +776,8 @@ 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 ../RGBController/controllerwindow.h ../RGBController/irc.h ../RGBController/server.h $(DISTDIR)/
- $(COPY_FILE) --parents ../RGBController/main.cpp ../RGBController/controllerwindow.cpp ../RGBController/irc.cpp ../RGBController/server.cpp $(DISTDIR)/
- $(COPY_FILE) --parents ../RGBController/controllerwindow.ui $(DISTDIR)/
+ $(COPY_FILE) --parents ../consoleserver/serial.h $(DISTDIR)/
+ $(COPY_FILE) --parents ../consoleserver/main.cpp ../consoleserver/serial.cpp $(DISTDIR)/
clean: compiler_clean
@@ -807,74 +807,28 @@ 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 -g -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp
+ g++ -pipe -g -std=gnu++11 -Wall -W -dM -E -o moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp
-compiler_moc_header_make_all: moc_controllerwindow.cpp moc_irc.cpp moc_server.cpp
+compiler_moc_header_make_all:
compiler_moc_header_clean:
- -$(DEL_FILE) moc_controllerwindow.cpp moc_irc.cpp moc_server.cpp
-moc_controllerwindow.cpp: ../RGBController/ui_controllerwindow.h \
- ../RGBController/irc.h \
- ../RGBController/server.h \
- ../RGBController/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. -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 ../RGBController/controllerwindow.h -o moc_controllerwindow.cpp
-
-moc_irc.cpp: ../RGBController/irc.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. -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 ../RGBController/irc.h -o moc_irc.cpp
-
-moc_server.cpp: ../RGBController/server.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. -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 ../RGBController/server.h -o moc_server.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/bin/uic
- /usr/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_predefs_clean compiler_moc_header_clean compiler_uic_clean
+compiler_clean: compiler_moc_predefs_clean
####### Compile
-main.o: ../RGBController/main.cpp ../RGBController/controllerwindow.h \
- ../RGBController/ui_controllerwindow.h \
- ../RGBController/irc.h \
- ../RGBController/server.h
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../RGBController/main.cpp
-
-controllerwindow.o: ../RGBController/controllerwindow.cpp ../RGBController/controllerwindow.h \
- ../RGBController/ui_controllerwindow.h \
- ../RGBController/irc.h \
- ../RGBController/server.h
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o controllerwindow.o ../RGBController/controllerwindow.cpp
-
-irc.o: ../RGBController/irc.cpp ../RGBController/irc.h
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o irc.o ../RGBController/irc.cpp
-
-server.o: ../RGBController/server.cpp ../RGBController/server.h
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o server.o ../RGBController/server.cpp
-
-moc_controllerwindow.o: moc_controllerwindow.cpp
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_controllerwindow.o moc_controllerwindow.cpp
-
-moc_irc.o: moc_irc.cpp
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_irc.o moc_irc.cpp
+main.o: ../consoleserver/main.cpp ../consoleserver/serial.h \
+ ../consoleserver/server.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../consoleserver/main.cpp
-moc_server.o: moc_server.cpp
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_server.o moc_server.cpp
+serial.o: ../consoleserver/serial.cpp ../consoleserver/serial.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o serial.o ../consoleserver/serial.cpp
####### Install
diff --git a/qt/build-consoleserver-Desktop-Debug/moc_predefs.h b/qt/build-consoleserver-Desktop-Debug/moc_predefs.h
new file mode 100644
index 0000000..531c9d4
--- /dev/null
+++ b/qt/build-consoleserver-Desktop-Debug/moc_predefs.h
@@ -0,0 +1,375 @@
+#define __DBL_MIN_EXP__ (-1021)
+#define __FLT32X_MAX_EXP__ 1024
+#define __cpp_attributes 200809
+#define __UINT_LEAST16_MAX__ 0xffff
+#define __ATOMIC_ACQUIRE 2
+#define __FLT128_MAX_10_EXP__ 4932
+#define __FLT_MIN__ 1.17549435082228750796873653722224568e-38F
+#define __GCC_IEC_559_COMPLEX 2
+#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 __FLT32_MIN_EXP__ (-125)
+#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.94065645841246544176568792868221372e-324L)
+#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
+#define __GCC_ATOMIC_CHAR_LOCK_FREE 2
+#define __GCC_IEC_559 2
+#define __FLT32X_DECIMAL_DIG__ 17
+#define __FLT_EVAL_METHOD__ 0
+#define __unix__ 1
+#define __cpp_binary_literals 201304
+#define __FLT64_DECIMAL_DIG__ 17
+#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 __GNUC_PATCHLEVEL__ 1
+#define __FLT32_HAS_DENORM__ 1
+#define __UINT_FAST8_MAX__ 0xff
+#define __has_include(STR) __has_include__(STR)
+#define __DEC64_MAX_EXP__ 385
+#define __INT8_C(c) c
+#define __INT_LEAST8_WIDTH__ 8
+#define __UINT_LEAST64_MAX__ 0xffffffffffffffffUL
+#define __SHRT_MAX__ 0x7fff
+#define __LDBL_MAX__ 1.18973149535723176502126385303097021e+4932L
+#define __FLT64X_MAX_10_EXP__ 4932
+#define __UINT_LEAST8_MAX__ 0xff
+#define __GCC_ATOMIC_BOOL_LOCK_FREE 2
+#define __FLT128_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966F128
+#define __UINTMAX_TYPE__ long unsigned int
+#define __linux 1
+#define __DEC32_EPSILON__ 1E-6DF
+#define __FLT_EVAL_METHOD_TS_18661_3__ 0
+#define __unix 1
+#define __UINT32_MAX__ 0xffffffffU
+#define __GXX_EXPERIMENTAL_CXX0X__ 1
+#define __LDBL_MAX_EXP__ 16384
+#define __FLT128_MIN_EXP__ (-16381)
+#define __WINT_MIN__ 0U
+#define __linux__ 1
+#define __FLT128_MIN_10_EXP__ (-4931)
+#define __INT_LEAST16_WIDTH__ 16
+#define __SCHAR_MAX__ 0x7f
+#define __FLT128_MANT_DIG__ 113
+#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
+#define __INT64_C(c) c ## L
+#define __DBL_DIG__ 15
+#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
+#define __FLT64X_MANT_DIG__ 64
+#define __SIZEOF_INT__ 4
+#define __SIZEOF_POINTER__ 8
+#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
+#define __USER_LABEL_PREFIX__
+#define __FLT64X_EPSILON__ 1.08420217248550443400745280086994171e-19F64x
+#define __STDC_HOSTED__ 1
+#define __LDBL_HAS_INFINITY__ 1
+#define __FLT32_DIG__ 6
+#define __FLT_EPSILON__ 1.19209289550781250000000000000000000e-7F
+#define __GXX_WEAK__ 1
+#define __SHRT_WIDTH__ 16
+#define __LDBL_MIN__ 3.36210314311209350626267781732175260e-4932L
+#define __DEC32_MAX__ 9.999999E96DF
+#define __FLT64X_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951F64x
+#define __FLT32X_HAS_INFINITY__ 1
+#define __INT32_MAX__ 0x7fffffff
+#define __INT_WIDTH__ 32
+#define __SIZEOF_LONG__ 8
+#define __STDC_IEC_559__ 1
+#define __STDC_ISO_10646__ 201505L
+#define __UINT16_C(c) c
+#define __PTRDIFF_WIDTH__ 64
+#define __DECIMAL_DIG__ 21
+#define __FLT64_EPSILON__ 2.22044604925031308084726333618164062e-16F64
+#define __gnu_linux__ 1
+#define __INTMAX_WIDTH__ 64
+#define __FLT64_MIN_EXP__ (-1021)
+#define __has_include_next(STR) __has_include_next__(STR)
+#define __FLT64X_MIN_10_EXP__ (-4931)
+#define __LDBL_HAS_QUIET_NAN__ 1
+#define __FLT64_MANT_DIG__ 53
+#define __GNUC__ 7
+#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 __FLT64_MAX_10_EXP__ 308
+#define __FLT32_HAS_INFINITY__ 1
+#define __DBL_MAX__ double(1.79769313486231570814527423731704357e+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 __INTPTR_WIDTH__ 64
+#define __FLT32X_HAS_DENORM__ 1
+#define __INT_FAST16_TYPE__ long int
+#define __LDBL_HAS_DENORM__ 1
+#define __cplusplus 201103L
+#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 __WCHAR_WIDTH__ 32
+#define __FLT32_MAX__ 3.40282346638528859811704183484516925e+38F32
+#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 __FLT32_HAS_QUIET_NAN__ 1
+#define __GNUG__ 7
+#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL
+#define __SIZEOF_SIZE_T__ 8
+#define __cpp_rvalue_reference 200610
+#define __cpp_nsdmi 200809
+#define __FLT64X_MIN_EXP__ (-16381)
+#define __SIZEOF_WINT_T__ 4
+#define __LONG_LONG_WIDTH__ 64
+#define __cpp_initializer_lists 200806
+#define __FLT32_MAX_EXP__ 128
+#define __cpp_hex_float 201603
+#define __GCC_HAVE_DWARF2_CFI_ASM 1
+#define __GXX_ABI_VERSION 1011
+#define __FLT128_HAS_INFINITY__ 1
+#define __FLT_MIN_EXP__ (-125)
+#define __cpp_lambdas 200907
+#define __FLT64X_HAS_QUIET_NAN__ 1
+#define __INT_FAST64_TYPE__ long int
+#define __FLT64_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F64
+#define __DBL_MIN__ double(2.22507385850720138309023271733240406e-308L)
+#define __LP64__ 1
+#define __FLT32X_EPSILON__ 2.22044604925031308084726333618164062e-16F32x
+#define __DECIMAL_BID_FORMAT__ 1
+#define __FLT64_MIN_10_EXP__ (-307)
+#define __FLT64X_DECIMAL_DIG__ 21
+#define __DEC128_MIN__ 1E-6143DL
+#define __REGISTER_PREFIX__
+#define __UINT16_MAX__ 0xffff
+#define __DBL_HAS_DENORM__ 1
+#define __FLT32_MIN__ 1.17549435082228750796873653722224568e-38F32
+#define __UINT8_TYPE__ unsigned char
+#define __NO_INLINE__ 1
+#define __FLT_MANT_DIG__ 24
+#define __LDBL_DECIMAL_DIG__ 21
+#define __VERSION__ "7.1.1 20170516"
+#define __UINT64_C(c) c ## UL
+#define __cpp_unicode_characters 200704
+#define _STDC_PREDEF_H 1
+#define __GCC_ATOMIC_INT_LOCK_FREE 2
+#define __FLT128_MAX_EXP__ 16384
+#define __FLT32_MANT_DIG__ 24
+#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
+#define __STDC_IEC_559_COMPLEX__ 1
+#define __FLT128_HAS_DENORM__ 1
+#define __FLT128_DIG__ 33
+#define __SCHAR_WIDTH__ 8
+#define __INT32_C(c) c
+#define __DEC64_EPSILON__ 1E-15DD
+#define __ORDER_PDP_ENDIAN__ 3412
+#define __DEC128_MIN_EXP__ (-6142)
+#define __FLT32_MAX_10_EXP__ 38
+#define __INT_FAST32_TYPE__ long int
+#define __UINT_LEAST16_TYPE__ short unsigned int
+#define __FLT64X_HAS_INFINITY__ 1
+#define unix 1
+#define __INT16_MAX__ 0x7fff
+#define __cpp_rtti 199711
+#define __SIZE_TYPE__ long unsigned int
+#define __UINT64_MAX__ 0xffffffffffffffffUL
+#define __FLT64X_DIG__ 18
+#define __INT8_TYPE__ signed char
+#define __ELF__ 1
+#define __GCC_ASM_FLAG_OUTPUTS__ 1
+#define __FLT_RADIX__ 2
+#define __INT_LEAST16_TYPE__ short int
+#define __LDBL_EPSILON__ 1.08420217248550443400745280086994171e-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 __SIZEOF_PTRDIFF_T__ 8
+#define __FLT32X_MANT_DIG__ 53
+#define __x86_64__ 1
+#define __FLT32X_MIN_EXP__ (-1021)
+#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
+#define __INT_FAST16_MAX__ 0x7fffffffffffffffL
+#define __FLT64_DIG__ 15
+#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 __FLT64X_HAS_DENORM__ 1
+#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 __INT_FAST32_WIDTH__ 64
+#define __CHAR16_TYPE__ short unsigned int
+#define __PRAGMA_REDEFINE_EXTNAME 1
+#define __SIZE_WIDTH__ 64
+#define __SEG_FS 1
+#define __INT_LEAST16_MAX__ 0x7fff
+#define __DEC64_MANT_DIG__ 16
+#define __UINT_LEAST32_MAX__ 0xffffffffU
+#define __SEG_GS 1
+#define __FLT32_DENORM_MIN__ 1.40129846432481707092372958328991613e-45F32
+#define __GCC_ATOMIC_LONG_LOCK_FREE 2
+#define __SIG_ATOMIC_WIDTH__ 32
+#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 __FLT128_MAX__ 1.18973149535723176508575932662800702e+4932F128
+#define __INTPTR_MAX__ 0x7fffffffffffffffL
+#define linux 1
+#define __cpp_range_based_for 200907
+#define __FLT64_HAS_QUIET_NAN__ 1
+#define __FLT32_MIN_10_EXP__ (-37)
+#define __SSE2__ 1
+#define __EXCEPTIONS 1
+#define __LDBL_MANT_DIG__ 64
+#define __DBL_HAS_QUIET_NAN__ 1
+#define __FLT64_HAS_INFINITY__ 1
+#define __FLT64X_MAX__ 1.18973149535723176502126385303097021e+4932F64x
+#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
+#define __code_model_small__ 1
+#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 __INT_FAST64_WIDTH__ 64
+#define __DEC64_MIN_EXP__ (-382)
+#define __cpp_decltype 200707
+#define __FLT32_DECIMAL_DIG__ 9
+#define __INT_FAST64_MAX__ 0x7fffffffffffffffL
+#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
+#define __FLT_DIG__ 6
+#define __FLT64X_MAX_EXP__ 16384
+#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 201511
+#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 __FLT64_MAX__ 1.79769313486231570814527423731704357e+308F64
+#define __WINT_WIDTH__ 32
+#define __INT_LEAST8_MAX__ 0x7f
+#define __FLT32X_MAX_10_EXP__ 308
+#define __SIZEOF_INT128__ 16
+#define __LDBL_MAX_10_EXP__ 4932
+#define __ATOMIC_RELAXED 0
+#define __DBL_EPSILON__ double(2.22044604925031308084726333618164062e-16L)
+#define __FLT128_MIN__ 3.36210314311209350626267781732175260e-4932F128
+#define _LP64 1
+#define __UINT8_C(c) c
+#define __FLT64_MAX_EXP__ 1024
+#define __INT_LEAST32_TYPE__ int
+#define __SIZEOF_WCHAR_T__ 4
+#define __FLT128_HAS_QUIET_NAN__ 1
+#define __INT_FAST8_TYPE__ signed char
+#define __FLT64X_MIN__ 3.36210314311209350626267781732175260e-4932F64x
+#define __GNUC_STDC_INLINE__ 1
+#define __FLT64_HAS_DENORM__ 1
+#define __FLT32_EPSILON__ 1.19209289550781250000000000000000000e-7F32
+#define __DBL_DECIMAL_DIG__ 17
+#define __STDC_UTF_32__ 1
+#define __INT_FAST8_WIDTH__ 8
+#define __FXSR__ 1
+#define __DEC_EVAL_METHOD__ 2
+#define __FLT32X_MAX__ 1.79769313486231570814527423731704357e+308F32x
+#define __cpp_runtime_arrays 198712
+#define __UINT64_TYPE__ long unsigned int
+#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.40129846432481707092372958328991613e-45F
+#define __INT8_MAX__ 0x7f
+#define __LONG_WIDTH__ 64
+#define __UINT_FAST32_TYPE__ long unsigned int
+#define __CHAR32_TYPE__ unsigned int
+#define __FLT_MAX__ 3.40282346638528859811704183484516925e+38F
+#define __cpp_constexpr 200704
+#define __INT32_TYPE__ int
+#define __SIZEOF_DOUBLE__ 8
+#define __cpp_exceptions 199711
+#define __FLT_MIN_10_EXP__ (-37)
+#define __FLT64_MIN__ 2.22507385850720138309023271733240406e-308F64
+#define __INT_LEAST32_WIDTH__ 32
+#define __INTMAX_TYPE__ long int
+#define __DEC128_MAX_EXP__ 6145
+#define __FLT32X_HAS_QUIET_NAN__ 1
+#define __ATOMIC_CONSUME 1
+#define __GNUC_MINOR__ 1
+#define __GLIBCXX_TYPE_INT_N_0 __int128
+#define __INT_FAST16_WIDTH__ 64
+#define __UINTMAX_MAX__ 0xffffffffffffffffUL
+#define __DEC32_MANT_DIG__ 7
+#define __FLT32X_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F32x
+#define __DBL_MAX_10_EXP__ 308
+#define __LDBL_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951L
+#define __INT16_C(c) c
+#define __STDC__ 1
+#define __FLT32X_DIG__ 15
+#define __PTRDIFF_TYPE__ long int
+#define __ATOMIC_SEQ_CST 5
+#define __UINT32_TYPE__ unsigned int
+#define __FLT32X_MIN_10_EXP__ (-307)
+#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 __FLT128_EPSILON__ 1.92592994438723585305597794258492732e-34F128
+#define __SSE_MATH__ 1
+#define __SIZEOF_LONG_LONG__ 8
+#define __cpp_user_defined_literals 200809
+#define __FLT128_DECIMAL_DIG__ 36
+#define __GCC_ATOMIC_LLONG_LOCK_FREE 2
+#define __FLT32X_MIN__ 2.22507385850720138309023271733240406e-308F32x
+#define __LDBL_DIG__ 18
+#define __FLT_DECIMAL_DIG__ 9
+#define __UINT_FAST16_MAX__ 0xffffffffffffffffUL
+#define __GCC_ATOMIC_SHORT_LOCK_FREE 2
+#define __INT_LEAST64_WIDTH__ 64
+#define __UINT_FAST8_TYPE__ unsigned char
+#define _GNU_SOURCE 1
+#define __ATOMIC_ACQ_REL 4
+#define __ATOMIC_RELEASE 3
diff --git a/qt/build-consoleserver-Desktop-Debug/moc_server.cpp b/qt/build-consoleserver-Desktop-Debug/moc_server.cpp
new file mode 100644
index 0000000..ee77a22
--- /dev/null
+++ b/qt/build-consoleserver-Desktop-Debug/moc_server.cpp
@@ -0,0 +1,139 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'server.h'
+**
+** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.0)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../consoleserver/server.h"
+#include <QtCore/qbytearray.h>
+#include <QtCore/qmetatype.h>
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'server.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 67
+#error "This file was generated using the moc from 5.9.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_server_t {
+ QByteArrayData data[5];
+ char stringdata0[35];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ qptrdiff(offsetof(qt_meta_stringdata_server_t, stringdata0) + ofs \
+ - idx * sizeof(QByteArrayData)) \
+ )
+static const qt_meta_stringdata_server_t qt_meta_stringdata_server = {
+ {
+QT_MOC_LITERAL(0, 0, 6), // "server"
+QT_MOC_LITERAL(1, 7, 7), // "sendcmd"
+QT_MOC_LITERAL(2, 15, 0), // ""
+QT_MOC_LITERAL(3, 16, 3), // "cmd"
+QT_MOC_LITERAL(4, 20, 14) // "new_connection"
+
+ },
+ "server\0sendcmd\0\0cmd\0new_connection"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_server[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 2, 14, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 1, // signalCount
+
+ // signals: name, argc, parameters, tag, flags
+ 1, 1, 24, 2, 0x06 /* Public */,
+
+ // slots: name, argc, parameters, tag, flags
+ 4, 0, 27, 2, 0x08 /* Private */,
+
+ // signals: parameters
+ QMetaType::Void, QMetaType::QString, 3,
+
+ // slots: parameters
+ QMetaType::Void,
+
+ 0 // eod
+};
+
+void server::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ server *_t = static_cast<server *>(_o);
+ Q_UNUSED(_t)
+ switch (_id) {
+ case 0: _t->sendcmd((*reinterpret_cast< QString(*)>(_a[1]))); break;
+ case 1: _t->new_connection(); break;
+ default: ;
+ }
+ } else if (_c == QMetaObject::IndexOfMethod) {
+ int *result = reinterpret_cast<int *>(_a[0]);
+ void **func = reinterpret_cast<void **>(_a[1]);
+ {
+ typedef void (server::*_t)(QString );
+ if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&server::sendcmd)) {
+ *result = 0;
+ return;
+ }
+ }
+ }
+}
+
+const QMetaObject server::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_server.data,
+ qt_meta_data_server, qt_static_metacall, nullptr, nullptr}
+};
+
+
+const QMetaObject *server::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *server::qt_metacast(const char *_clname)
+{
+ if (!_clname) return nullptr;
+ if (!strcmp(_clname, qt_meta_stringdata_server.stringdata0))
+ return static_cast<void*>(const_cast< server*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int server::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+ _id = QObject::qt_metacall(_c, _id, _a);
+ if (_id < 0)
+ return _id;
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ if (_id < 2)
+ qt_static_metacall(this, _c, _id, _a);
+ _id -= 2;
+ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
+ if (_id < 2)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 2;
+ }
+ return _id;
+}
+
+// SIGNAL 0
+void server::sendcmd(QString _t1)
+{
+ void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+ QMetaObject::activate(this, &staticMetaObject, 0, _a);
+}
+QT_WARNING_POP
+QT_END_MOC_NAMESPACE
diff --git a/qt/build/degub/.qmake.stash b/qt/build/degub/.qmake.stash
deleted file mode 100644
index f31b11e..0000000
--- a/qt/build/degub/.qmake.stash
+++ /dev/null
@@ -1,12 +0,0 @@
-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
deleted file mode 100755
index e0c8f89..0000000
--- a/qt/build/degub/Makefile
+++ /dev/null
@@ -1,775 +0,0 @@
-#############################################################################
-# Makefile for building: RGBController
-# 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
-#############################################################################
-
-MAKEFILE = Makefile
-
-####### Compiler, tools and options
-
-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 -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
-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/build/degub/.tmp/RGBController1.0.0
-LINK = g++
-LFLAGS =
-LIBS = $(SUBLIBS) -lQt5Widgets -lQt5Gui -lQt5SerialPort -lQt5Network -lQt5Core -lGL -lpthread
-AR = ar cqs
-RANLIB =
-SED = sed
-STRIP = strip
-
-####### 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/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_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_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 \
- /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_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_platformsupport_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_sensors.pri \
- /usr/lib/qt/mkspecs/modules/qt_lib_sensors_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_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_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_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 \
- ../../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 \
- /usr/lib/qt/mkspecs/features/default_post.prf \
- /usr/lib/qt/mkspecs/features/qml_debug.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/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/RGBController.pro ../../RGBController/controllerwindow.h \
- ../../RGBController/serial_communication.h ../../RGBController/main.cpp \
- ../../RGBController/controllerwindow.cpp \
- ../../RGBController/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/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_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_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 \
- /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_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_platformsupport_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_sensors.pri \
- /usr/lib/qt/mkspecs/modules/qt_lib_sensors_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_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_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_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/default_pre.prf \
- /usr/lib/qt/mkspecs/features/resolve_config.prf \
- /usr/lib/qt/mkspecs/features/default_post.prf \
- /usr/lib/qt/mkspecs/features/qml_debug.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/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/RGBController.pro \
- /usr/lib/libQt5Widgets.prl \
- /usr/lib/libQt5Gui.prl \
- /usr/lib/libQt5SerialPort.prl \
- /usr/lib/libQt5Network.prl \
- /usr/lib/libQt5Core.prl
- $(QMAKE) -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ../../RGBController/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_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_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:
-/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_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_platformsupport_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_sensors.pri:
-/usr/lib/qt/mkspecs/modules/qt_lib_sensors_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_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_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_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/default_pre.prf:
-/usr/lib/qt/mkspecs/features/resolve_config.prf:
-/usr/lib/qt/mkspecs/features/default_post.prf:
-/usr/lib/qt/mkspecs/features/qml_debug.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/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/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) -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o Makefile ../../RGBController/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 ../../RGBController/controllerwindow.h ../../RGBController/serial_communication.h $(DISTDIR)/
- $(COPY_FILE) --parents ../../RGBController/main.cpp ../../RGBController/controllerwindow.cpp ../../RGBController/serial_communication.cpp $(DISTDIR)/
- $(COPY_FILE) --parents ../../RGBController/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_header_make_all: moc_controllerwindow.cpp
-compiler_moc_header_clean:
- -$(DEL_FILE) moc_controllerwindow.cpp
-moc_controllerwindow.cpp: ../../RGBController/serial_communication.h \
- 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 \
- /usr/lib/qt/bin/uic
- /usr/lib/qt/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 \
- 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 \
- 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 \
- 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/degub/RGBController b/qt/build/degub/RGBController
deleted file mode 100755
index 91ab134..0000000
--- a/qt/build/degub/RGBController
+++ /dev/null
Binary files differ
diff --git a/qt/build/degub/controllerwindow.o b/qt/build/degub/controllerwindow.o
deleted file mode 100644
index d5ce046..0000000
--- a/qt/build/degub/controllerwindow.o
+++ /dev/null
Binary files differ
diff --git a/qt/build/degub/main.o b/qt/build/degub/main.o
deleted file mode 100644
index f70fffe..0000000
--- a/qt/build/degub/main.o
+++ /dev/null
Binary files differ
diff --git a/qt/build/degub/moc_controllerwindow.cpp b/qt/build/degub/moc_controllerwindow.cpp
deleted file mode 100644
index 0beaf14..0000000
--- a/qt/build/degub/moc_controllerwindow.cpp
+++ /dev/null
@@ -1,180 +0,0 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'controllerwindow.h'
-**
-** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../../RGBController/controllerwindow.h"
-#include <QtCore/qbytearray.h>
-#include <QtCore/qmetatype.h>
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'controllerwindow.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 67
-#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
-
-QT_BEGIN_MOC_NAMESPACE
-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<controllerWindow *>(_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<void*>(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<int*>(_a[0]) = -1;
- _id -= 15;
- }
- return _id;
-}
-QT_END_MOC_NAMESPACE
diff --git a/qt/build/degub/moc_controllerwindow.o b/qt/build/degub/moc_controllerwindow.o
deleted file mode 100644
index 5d835ad..0000000
--- a/qt/build/degub/moc_controllerwindow.o
+++ /dev/null
Binary files differ
diff --git a/qt/build/degub/presets.txt b/qt/build/degub/presets.txt
deleted file mode 100644
index 1162758..0000000
--- a/qt/build/degub/presets.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-white=255,255,255
-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
deleted file mode 100644
index 7bc9af4..0000000
--- a/qt/build/degub/presets_backup.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-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
deleted file mode 100644
index 3fb7cb2..0000000
--- a/qt/build/degub/serial_communication.o
+++ /dev/null
Binary files differ
diff --git a/qt/build/degub/ui_controllerwindow.h b/qt/build/degub/ui_controllerwindow.h
deleted file mode 100644
index 2dbb079..0000000
--- a/qt/build/degub/ui_controllerwindow.h
+++ /dev/null
@@ -1,242 +0,0 @@
-/********************************************************************************
-** Form generated from reading UI file 'controllerwindow.ui'
-**
-** Created by: Qt User Interface Compiler version 5.7.0
-**
-** WARNING! All changes made in this file will be lost when recompiling UI file!
-********************************************************************************/
-
-#ifndef UI_CONTROLLERWINDOW_H
-#define UI_CONTROLLERWINDOW_H
-
-#include <QtCore/QVariant>
-#include <QtWidgets/QAction>
-#include <QtWidgets/QApplication>
-#include <QtWidgets/QButtonGroup>
-#include <QtWidgets/QComboBox>
-#include <QtWidgets/QFormLayout>
-#include <QtWidgets/QHeaderView>
-#include <QtWidgets/QLabel>
-#include <QtWidgets/QLineEdit>
-#include <QtWidgets/QMainWindow>
-#include <QtWidgets/QPushButton>
-#include <QtWidgets/QSlider>
-#include <QtWidgets/QTextEdit>
-#include <QtWidgets/QWidget>
-
-QT_BEGIN_NAMESPACE
-
-class Ui_controllerWindow
-{
-public:
- QWidget *centralWidget;
- QFormLayout *formLayout;
- QLabel *status_label;
- QLabel *arduino_status_label;
- QLabel *arduino_port_label;
- QComboBox *arduino_port_dropdown;
- QPushButton *refresh_port_button;
- QPushButton *connect_button;
- QPushButton *disconnect_button;
- QLabel *rgb_label;
- QSlider *r_slider;
- QPushButton *red_button;
- QSlider *g_slider;
- QPushButton *green_button;
- QSlider *b_slider;
- QPushButton *blue_button;
- QPushButton *off_button;
- QLabel *presets_label;
- QComboBox *presets_dropdown;
- QPushButton *set_preset_button;
- QPushButton *reload_preset_button;
- QLineEdit *preset_name_textbox;
- QPushButton *preset_save_button;
- QPushButton *preset_delete_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, 447);
- centralWidget = new QWidget(controllerWindow);
- centralWidget->setObjectName(QStringLiteral("centralWidget"));
- formLayout = new QFormLayout(centralWidget);
- formLayout->setSpacing(6);
- formLayout->setContentsMargins(11, 11, 11, 11);
- formLayout->setObjectName(QStringLiteral("formLayout"));
- status_label = new QLabel(centralWidget);
- status_label->setObjectName(QStringLiteral("status_label"));
-
- formLayout->setWidget(0, QFormLayout::LabelRole, status_label);
-
- arduino_status_label = new QLabel(centralWidget);
- arduino_status_label->setObjectName(QStringLiteral("arduino_status_label"));
-
- formLayout->setWidget(0, QFormLayout::FieldRole, arduino_status_label);
-
- arduino_port_label = new QLabel(centralWidget);
- arduino_port_label->setObjectName(QStringLiteral("arduino_port_label"));
- arduino_port_label->setMinimumSize(QSize(120, 0));
-
- formLayout->setWidget(1, QFormLayout::LabelRole, arduino_port_label);
-
- arduino_port_dropdown = new QComboBox(centralWidget);
- arduino_port_dropdown->setObjectName(QStringLiteral("arduino_port_dropdown"));
-
- formLayout->setWidget(1, QFormLayout::FieldRole, arduino_port_dropdown);
-
- refresh_port_button = new QPushButton(centralWidget);
- refresh_port_button->setObjectName(QStringLiteral("refresh_port_button"));
-
- formLayout->setWidget(2, QFormLayout::FieldRole, refresh_port_button);
-
- connect_button = new QPushButton(centralWidget);
- connect_button->setObjectName(QStringLiteral("connect_button"));
-
- formLayout->setWidget(3, QFormLayout::LabelRole, connect_button);
-
- disconnect_button = new QPushButton(centralWidget);
- disconnect_button->setObjectName(QStringLiteral("disconnect_button"));
-
- formLayout->setWidget(3, QFormLayout::FieldRole, disconnect_button);
-
- rgb_label = new QLabel(centralWidget);
- rgb_label->setObjectName(QStringLiteral("rgb_label"));
-
- formLayout->setWidget(4, QFormLayout::LabelRole, rgb_label);
-
- 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);
-
- 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));
- g_slider->setMaximumSize(QSize(120, 16777215));
- g_slider->setMaximum(255);
- g_slider->setOrientation(Qt::Horizontal);
-
- 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));
- b_slider->setMaximumSize(QSize(120, 16777215));
- b_slider->setMaximum(255);
- b_slider->setOrientation(Qt::Horizontal);
-
- formLayout->setWidget(7, QFormLayout::LabelRole, b_slider);
-
- blue_button = new QPushButton(centralWidget);
- blue_button->setObjectName(QStringLiteral("blue_button"));
-
- formLayout->setWidget(7, QFormLayout::FieldRole, blue_button);
-
- off_button = new QPushButton(centralWidget);
- off_button->setObjectName(QStringLiteral("off_button"));
-
- formLayout->setWidget(8, QFormLayout::FieldRole, off_button);
-
- presets_label = new QLabel(centralWidget);
- presets_label->setObjectName(QStringLiteral("presets_label"));
-
- formLayout->setWidget(9, QFormLayout::LabelRole, presets_label);
-
- presets_dropdown = new QComboBox(centralWidget);
- presets_dropdown->setObjectName(QStringLiteral("presets_dropdown"));
- presets_dropdown->setMinimumSize(QSize(120, 0));
-
- formLayout->setWidget(10, QFormLayout::LabelRole, presets_dropdown);
-
- set_preset_button = new QPushButton(centralWidget);
- set_preset_button->setObjectName(QStringLiteral("set_preset_button"));
-
- 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"));
-
- formLayout->setWidget(12, QFormLayout::LabelRole, preset_name_textbox);
-
- preset_save_button = new QPushButton(centralWidget);
- preset_save_button->setObjectName(QStringLiteral("preset_save_button"));
-
- formLayout->setWidget(12, QFormLayout::FieldRole, preset_save_button);
-
- preset_delete_button = new QPushButton(centralWidget);
- preset_delete_button->setObjectName(QStringLiteral("preset_delete_button"));
-
- formLayout->setWidget(13, QFormLayout::FieldRole, preset_delete_button);
-
- info_log_label = new QLabel(centralWidget);
- info_log_label->setObjectName(QStringLiteral("info_log_label"));
-
- 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);
-
- retranslateUi(controllerWindow);
-
- QMetaObject::connectSlotsByName(controllerWindow);
- } // setupUi
-
- void retranslateUi(QMainWindow *controllerWindow)
- {
- controllerWindow->setWindowTitle(QApplication::translate("controllerWindow", "RGB Controller", 0));
- status_label->setText(QApplication::translate("controllerWindow", "Status", 0));
- arduino_status_label->setText(QApplication::translate("controllerWindow", "<font color = red>Disconnected</font>", 0));
- arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", 0));
- refresh_port_button->setText(QApplication::translate("controllerWindow", "Refresh", 0));
- connect_button->setText(QApplication::translate("controllerWindow", "Connect", 0));
- disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", 0));
- rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", 0));
- red_button->setText(QApplication::translate("controllerWindow", "Red", 0));
- green_button->setText(QApplication::translate("controllerWindow", "Green", 0));
- blue_button->setText(QApplication::translate("controllerWindow", "Blue", 0));
- off_button->setText(QApplication::translate("controllerWindow", "Off", 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));
- info_log_label->setText(QApplication::translate("controllerWindow", "Information log", 0));
- } // retranslateUi
-
-};
-
-namespace Ui {
- class controllerWindow: public Ui_controllerWindow {};
-} // namespace Ui
-
-QT_END_NAMESPACE
-
-#endif // UI_CONTROLLERWINDOW_H
diff --git a/qt/console/.qmake.stash b/qt/console/.qmake.stash
index 39abb16..b8ee3b2 100644
--- a/qt/console/.qmake.stash
+++ b/qt/console/.qmake.stash
@@ -10,3 +10,32 @@ QMAKE_DEFAULT_LIBDIRS = \
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 \
/usr/lib \
/lib
+QMAKE_CXX.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 \
+ /usr/include/c++/7.1.1 \
+ /usr/include/c++/7.1.1/x86_64-pc-linux-gnu \
+ /usr/include/c++/7.1.1/backward \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include \
+ /usr/local/include \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/include-fixed \
+ /usr/include
+QMAKE_CXX.LIBDIRS = \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1 \
+ /usr/lib \
+ /lib \
+ /usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1
+QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
+QMAKE_CXX.QT_GCC_MAJOR_VERSION = 7
+QMAKE_CXX.QT_GCC_MINOR_VERSION = 1
+QMAKE_CXX.QT_GCC_PATCH_VERSION = 1
+QMAKE_CXX.COMPILER_MACROS = \
+ QT_COMPILER_STDCXX \
+ QT_GCC_MAJOR_VERSION \
+ QT_GCC_MINOR_VERSION \
+ QT_GCC_PATCH_VERSION
diff --git a/qt/console/Makefile b/qt/console/Makefile
index 446865f..19f7057 100644
--- a/qt/console/Makefile
+++ b/qt/console/Makefile
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: qtconsoletest
-# Generated by qmake (3.1) (Qt 5.8.0)
+# Generated by qmake (3.1) (Qt 5.9.0)
# Project: console.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile console.pro
@@ -26,13 +26,16 @@ COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
+QINSTALL_FILE = /usr/bin/qmake -install qinstall file
+QINSTALL_PROGRAM = /usr/bin/qmake -install qinstall program
+QINSTALL_DIR = /usr/bin/qmake -install qinstall directory
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
TAR = tar -cf
COMPRESS = gzip -9f
-DISTNAME = rgb1.0.0
+DISTNAME = qtconsoletest1.0.0
DISTDIR = /home/daniel_j/documents/school/2016\ research\ project/RGBController/qt/console/.tmp/qtconsoletest1.0.0
LINK = g++
LFLAGS = -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro
@@ -99,6 +102,8 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -109,12 +114,16 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -123,7 +132,6 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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 \
@@ -152,6 +160,7 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/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_kms_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 \
@@ -272,9 +281,9 @@ DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/usr/lib/qt/mkspecs/features/yacc.prf \
/usr/lib/qt/mkspecs/features/lex.prf \
console.pro main.cpp
-QMAKE_TARGET = rgb
+QMAKE_TARGET = qtconsoletest
DESTDIR =
-TARGET = rgb
+TARGET = qtconsoletest
first: all
@@ -332,6 +341,8 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_3danimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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 \
@@ -342,12 +353,16 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_3dquickanimation.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri \
+ /usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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 \
@@ -356,7 +371,6 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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 \
@@ -385,6 +399,7 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_kms_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 \
@@ -557,6 +572,8 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_3danimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3danimation_private.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:
@@ -567,12 +584,16 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_3dquickanimation.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickanimation_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_3dquickscene2d.pri:
+/usr/lib/qt/mkspecs/modules/qt_lib_3dquickscene2d_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:
@@ -581,7 +602,6 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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:
@@ -610,6 +630,7 @@ Makefile: console.pro /usr/lib/qt/mkspecs/linux-g++/qmake.conf /usr/lib/qt/mkspe
/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_kms_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:
@@ -804,4 +825,3 @@ uninstall: FORCE
FORCE:
-
diff --git a/qt/console/main.cpp b/qt/console/main.cpp
index 4771303..90919ca 100644
--- a/qt/console/main.cpp
+++ b/qt/console/main.cpp
@@ -3,6 +3,7 @@
#include <QSerialPortInfo>
#include <QSerialPort>
#include <QTimer>
+#include <QThread>
void show_ports();
bool serial_connect(QString port);
@@ -71,6 +72,8 @@ bool serial_connect(QString port)
serial.setFlowControl(QSerialPort::NoFlowControl);
serial.open(QIODevice::ReadWrite);
serial.waitForBytesWritten(9000);
+
+ QThread::sleep(1);
if (serial.isWritable()) {
return true;
}
@@ -93,7 +96,7 @@ void send(QString com)
{
data = "";
data.append(com + "\n");
- //qDebug() << "sending:" << data;
+ qDebug() << "sending:" << data;
if (serial.isOpen())
{
serial.write(data);
diff --git a/qt/console/qtconsoletest b/qt/console/qtconsoletest
new file mode 100755
index 0000000..a2b3014
--- /dev/null
+++ b/qt/console/qtconsoletest
Binary files differ
diff --git a/qt/consoleserver/.gitignore b/qt/consoleserver/.gitignore
new file mode 100644
index 0000000..fab7372
--- /dev/null
+++ b/qt/consoleserver/.gitignore
@@ -0,0 +1,73 @@
+# This file is used to ignore files which are generated
+# ----------------------------------------------------------------------------
+
+*~
+*.autosave
+*.a
+*.core
+*.moc
+*.o
+*.obj
+*.orig
+*.rej
+*.so
+*.so.*
+*_pch.h.cpp
+*_resource.rc
+*.qm
+.#*
+*.*#
+core
+!core/
+tags
+.DS_Store
+.directory
+*.debug
+Makefile*
+*.prl
+*.app
+moc_*.cpp
+ui_*.h
+qrc_*.cpp
+Thumbs.db
+*.res
+*.rc
+/.qmake.cache
+/.qmake.stash
+
+# qtcreator generated files
+*.pro.user*
+
+# xemacs temporary files
+*.flc
+
+# Vim temporary files
+.*.swp
+
+# Visual Studio generated files
+*.ib_pdb_index
+*.idb
+*.ilk
+*.pdb
+*.sln
+*.suo
+*.vcproj
+*vcproj.*.*.user
+*.ncb
+*.sdf
+*.opensdf
+*.vcxproj
+*vcxproj.*
+
+# MinGW generated files
+*.Debug
+*.Release
+
+# Python byte code
+*.pyc
+
+# Binaries
+# --------
+*.dll
+*.exe
+
diff --git a/qt/consoleserver/consoleserver b/qt/consoleserver/consoleserver
new file mode 100755
index 0000000..97dacfc
--- /dev/null
+++ b/qt/consoleserver/consoleserver
Binary files differ
diff --git a/qt/consoleserver/consoleserver.pro b/qt/consoleserver/consoleserver.pro
new file mode 100644
index 0000000..606fe10
--- /dev/null
+++ b/qt/consoleserver/consoleserver.pro
@@ -0,0 +1,31 @@
+QT += core network serialport
+QT -= gui
+
+CONFIG += c++11
+
+TARGET = consoleserver
+CONFIG += console
+CONFIG -= app_bundle
+
+TEMPLATE = app
+
+SOURCES += main.cpp \
+ serial.cpp \
+ server.cpp \
+ irc.cpp
+
+# The following define makes your compiler emit warnings if you use
+# any feature of Qt which as been marked deprecated (the exact warnings
+# depend on your compiler). Please consult the documentation of the
+# deprecated API in order to know how to port your code away from it.
+DEFINES += QT_DEPRECATED_WARNINGS
+
+# You can also make your code fail to compile if you use deprecated APIs.
+# In order to do so, uncomment the following line.
+# You can also select to disable deprecated APIs only up to a certain version of Qt.
+#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+
+HEADERS += \
+ serial.h \
+ server.h \
+ irc.h
diff --git a/qt/consoleserver/irc.cpp b/qt/consoleserver/irc.cpp
new file mode 100644
index 0000000..3a2ed79
--- /dev/null
+++ b/qt/consoleserver/irc.cpp
@@ -0,0 +1,114 @@
+#include "irc.h"
+
+irc::irc(QObject *parent) : QObject(parent)
+{
+ qDebug() << "irc loaded but not started";
+}
+
+void irc::setup(QString srv, int p, QString c, QString n)
+{
+ qDebug() << "irc started";
+ server = srv;
+ port = p;
+ channel = c;
+ name = n;
+ /* setup socket, connect signal/slot */
+ socket = new QTcpSocket(this);
+ connect(socket, SIGNAL(readyRead()), this, SLOT(read()));
+ pingcheck = new QTimer(this);
+ connect(pingcheck, SIGNAL(timeout()), this, SLOT(pingcheckfunc()));
+ /* connect */
+ con();
+}
+
+void irc::read()
+{
+ QString line = socket->readLine();
+ if (line.contains("PING :"))
+ {
+ pinged = true;
+ QString sline = "PONG :" + line.split(":")[1];
+ socket->write(sline.toLatin1());
+ }
+ QString tmp = name + " MODE " + name + " :+";
+ if (line.contains(tmp))
+ {
+ buf = "JOIN " + channel + "\r\n";
+ socket->write(buf.toUtf8());
+ }
+ if (line.contains("!")) /* most likely a message to handle */
+ handle(line);
+ if(socket->canReadLine())
+ read();
+}
+
+void irc::con()
+{
+ pinged = false;
+ socket->connectToHost(server, port);
+ buf = "NICK " + name + "\r\n";
+ socket->write(buf.toUtf8());
+ buf = "USER " + name + " 8 * :" + name + "\r\n";
+ socket->write(buf.toUtf8());
+ pingcheck->start(300000);
+}
+
+void irc::discon()
+{
+ socket->write("QUIT :elegant quit \r\n");
+ socket->close();
+ pingcheck->stop();
+}
+
+void irc::handle(QString str)
+{
+ /* :Scruffy!Scruff@i.am.huskehhh.com PRIVMSG #csgo :You a vim faggot? */
+ if (str.contains("PRIVMSG"))
+ {
+
+ QString usr = str.split("!")[0].replace(":", "");
+ QString msg = str.split("PRIVMSG")[1].split(":")[1];
+ if (usr == "daniel_j")
+ {
+ if (msg.contains("!send"))
+ {
+
+ msg.remove(QRegExp("[\\n\\t\\r]"));
+ msg.replace("!send ", "");
+ if (msg.contains(";"))
+ {
+ QStringList tmp = msg.split(";");
+ for (int x = 0; x < tmp.size(); x++)
+ {
+ emit sendcmd(tmp.at(x));
+ }
+ }
+ else
+ {
+ emit sendcmd(msg);
+ }
+ }
+ }
+ }
+}
+
+void irc::sendmsg(QString msg)
+{
+ buf = "PRIVMSG " + channel + " :" + msg + " \r\n";
+ socket->write(buf.toUtf8());
+}
+
+void irc::pingcheckfunc()
+{
+ if (pinged)
+ {
+ pinged = false;
+ }
+ else
+ {
+ qDebug() << "reconnection needed";
+ name = name + "_";
+ discon();
+ con();
+ }
+}
diff --git a/qt/consoleserver/irc.h b/qt/consoleserver/irc.h
new file mode 100644
index 0000000..733bebf
--- /dev/null
+++ b/qt/consoleserver/irc.h
@@ -0,0 +1,38 @@
+#ifndef IRC_H
+#define IRC_H
+
+#include <QtNetwork/QTcpSocket>
+#include <QDebug>
+#include <QTimer>
+
+class irc : public QObject
+{
+ Q_OBJECT
+ public:
+ explicit irc(QObject *parent = 0);
+ void setup(QString srv, int p, QString c, QString n);
+ void discon();
+ void sendmsg(QString msg);
+ private:
+ QTcpSocket *socket;
+ QString server;
+ int port;
+ QString channel;
+ QString name;
+ QString buf;
+ bool pinged;
+ QTimer *pingcheck;
+
+ private slots:
+ void read();
+ void con();
+ void handle(QString str);
+ void pingcheckfunc();
+
+ signals:
+ void sendcmd(QString cmd);
+
+ public slots:
+};
+
+#endif // IRC_H
diff --git a/qt/consoleserver/main.cpp b/qt/consoleserver/main.cpp
new file mode 100644
index 0000000..c944e38
--- /dev/null
+++ b/qt/consoleserver/main.cpp
@@ -0,0 +1,30 @@
+#include <QCoreApplication>
+#include <QObject>
+#include "serial.h"
+#include "server.h"
+#include "irc.h"
+
+void worker(QString arg1);
+
+serial ser;
+server srv;
+irc ircbot;
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication a(argc, argv);
+ if (argc > 1)
+ worker(argv[1]);
+ else
+ worker("none");
+ return a.exec();
+}
+
+void worker(QString arg1)
+{
+ srv.server_start();
+ ser.start(arg1);
+ ircbot.setup("irc.danieljon.es", 6667, "#csgo", "LightBot");
+ QObject::connect(&srv, SIGNAL(sendcmd(QString)), &ser, SLOT(send(QString)));
+ QObject::connect(&ircbot, SIGNAL(sendcmd(QString)), &ser, SLOT(send(QString)));
+}
diff --git a/qt/consoleserver/serial.cpp b/qt/consoleserver/serial.cpp
new file mode 100644
index 0000000..aea46bb
--- /dev/null
+++ b/qt/consoleserver/serial.cpp
@@ -0,0 +1,67 @@
+#include "serial.h"
+#include <QThread>
+
+serial::serial()
+{
+ qDebug() << "serial loaded but not started";
+}
+
+void serial::start(QString port)
+{
+ qDebug() << "serial started";
+ if (port != "none")
+ {
+ qDebug() << "using port" << port;
+ if (!connect(port))
+ {
+ qDebug() << "fatal error connecting to the serial port";
+ qDebug() << "not bothering to continue";
+ exit(1);
+ }
+ }
+ else
+ {
+ qDebug() << "you need to provide a serial port as an argument.";
+ qDebug() << "available ports:";
+ show_ports();
+ qDebug() << "quitting because there is no point continuing";
+ exit(1);
+ }
+}
+
+void serial::show_ports()
+{
+ for (int x = 0; x < QSerialPortInfo::availablePorts().size(); x++)
+ {
+ if (!s.availablePorts().at(x).description().isEmpty())
+ qDebug() << QString("%1").arg(QSerialPortInfo::availablePorts().at(x).portName());
+ }
+}
+
+bool serial::connect(QString port)
+{
+ if (!ser.isOpen())
+ {
+ ser.setPortName(port);
+ ser.setBaudRate(QSerialPort::Baud9600);
+ ser.setDataBits(QSerialPort::Data8);
+ ser.setParity(QSerialPort::NoParity);
+ ser.setStopBits(QSerialPort::OneStop);
+ ser.setFlowControl(QSerialPort::NoFlowControl);
+ ser.open(QIODevice::ReadWrite);
+ ser.waitForBytesWritten(9000);
+ if (ser.isWritable()) {
+ qDebug() << "serial connected";
+ return true;
+ }
+ }
+ return false;
+}
+
+void serial::send(QString com)
+{
+ data = "";
+ data.append(com + "\n");
+ if (ser.isOpen())
+ ser.write(data);
+}
diff --git a/qt/consoleserver/serial.h b/qt/consoleserver/serial.h
new file mode 100644
index 0000000..3f0386a
--- /dev/null
+++ b/qt/consoleserver/serial.h
@@ -0,0 +1,27 @@
+#ifndef SERIAL_H
+#define SERIAL_H
+
+#include <QObject>
+#include <QSerialPort>
+#include <QSerialPortInfo>
+#include <QDebug>
+
+
+class serial : public QObject
+{
+ Q_OBJECT
+public:
+ serial();
+ void start(QString port);
+ public slots:
+ void send(QString com);
+private:
+ bool connect(QString port);
+ void show_ports();
+ QSerialPort ser;
+ QSerialPortInfo s;
+ QByteArray serdata;
+ QByteArray data;
+};
+
+#endif // SERIAL_H
diff --git a/qt/consoleserver/server.cpp b/qt/consoleserver/server.cpp
new file mode 100644
index 0000000..401ee8d
--- /dev/null
+++ b/qt/consoleserver/server.cpp
@@ -0,0 +1,57 @@
+#include "server.h"
+
+server::server(QObject *parent) : QObject(parent)
+{
+ srv = new QTcpServer();
+ connect(srv, SIGNAL(newConnection()), this, SLOT(new_connection()));
+ qDebug() << "server loaded but not started";
+}
+
+bool server::server_start()
+{
+ qDebug() << "server started";
+ if (srv->listen(QHostAddress::Any, 3001))
+ {
+ qDebug() << "listening on 3001";
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+}
+
+bool server::server_stop()
+{
+ srv->close();
+ if (srv->isListening())
+ return false;
+ return true;
+}
+
+void server::new_connection()
+{
+ QTcpSocket *socket;
+ socket = srv->nextPendingConnection();
+ socket->waitForReadyRead(3000);
+ handle(QString(socket->readAll()).remove(QRegExp("[\\n\\t\\r]")));
+ socket->close();
+ delete socket;
+}
+
+void server::handle(QString msg)
+{
+ qDebug() << "received" << msg;
+ if (msg.contains(";"))
+ {
+ QStringList tmp = msg.split(";");
+ for (int x = 0; x < tmp.size(); x++)
+ {
+ emit sendcmd(tmp.at(x));
+ }
+ }
+ else
+ {
+ emit sendcmd(msg);
+ }
+}
diff --git a/qt/consoleserver/server.h b/qt/consoleserver/server.h
new file mode 100644
index 0000000..9fd84dc
--- /dev/null
+++ b/qt/consoleserver/server.h
@@ -0,0 +1,26 @@
+#ifndef SERVER_H
+#define SERVER_H
+
+#include <QTcpServer>
+#include <QTcpSocket>
+
+class server : public QObject
+{
+ Q_OBJECT
+ public:
+ explicit server(QObject *parent = 0);
+ bool server_start();
+ bool server_stop();
+ private:
+ QTcpServer *srv;
+ void handle(QString msg);
+ private slots:
+ void new_connection();
+signals:
+ void sendcmd(QString);
+
+
+ public slots:
+};
+
+#endif // SERVER_H