summaryrefslogtreecommitdiff
path: root/qt/build-RGBController-Desktop-Debug
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2017-06-04 16:26:56 +0930
committerdaniel-Jones <daniel@danieljon.es>2017-06-04 16:26:56 +0930
commitf66536d84b38aa0eb46e928fdaf13d7da790b2ee (patch)
treeba2624354136f3f0db3ec929d1eea15635527ba1 /qt/build-RGBController-Desktop-Debug
parent2ce2f6376152402c3fc0d750720770b963a7d3cf (diff)
downloadRGB-Controller-f66536d84b38aa0eb46e928fdaf13d7da790b2ee.tar.gz
RGB-Controller-f66536d84b38aa0eb46e928fdaf13d7da790b2ee.zip
added HTML/JS/PHP pages/scripts to allow RGB changes over a web page. Integrated a server into the application to allow incoming connections and receive commands
Diffstat (limited to 'qt/build-RGBController-Desktop-Debug')
-rw-r--r--qt/build-RGBController-Desktop-Debug/Makefile60
-rwxr-xr-xqt/build-RGBController-Desktop-Debug/RGBControllerbin1614688 -> 1813016 bytes
-rw-r--r--qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp250
-rw-r--r--qt/build-RGBController-Desktop-Debug/moc_irc.cpp148
-rw-r--r--qt/build-RGBController-Desktop-Debug/moc_server.cpp139
-rw-r--r--qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h621
6 files changed, 894 insertions, 324 deletions
diff --git a/qt/build-RGBController-Desktop-Debug/Makefile b/qt/build-RGBController-Desktop-Debug/Makefile
index 1314c66..524bb85 100644
--- a/qt/build-RGBController-Desktop-Debug/Makefile
+++ b/qt/build-RGBController-Desktop-Debug/Makefile
@@ -49,10 +49,18 @@ OBJECTS_DIR = ./
####### Files
SOURCES = ../RGBController/main.cpp \
- ../RGBController/controllerwindow.cpp moc_controllerwindow.cpp
+ ../RGBController/controllerwindow.cpp \
+ ../RGBController/irc.cpp \
+ ../RGBController/server.cpp moc_controllerwindow.cpp \
+ moc_irc.cpp \
+ moc_server.cpp
OBJECTS = main.o \
controllerwindow.o \
- moc_controllerwindow.o
+ irc.o \
+ server.o \
+ moc_controllerwindow.o \
+ moc_irc.o \
+ moc_server.o
DIST = /usr/lib/qt/mkspecs/features/spec_pre.prf \
/usr/lib/qt/mkspecs/common/unix.conf \
/usr/lib/qt/mkspecs/common/linux.conf \
@@ -276,8 +284,12 @@ 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/main.cpp \
- ../RGBController/controllerwindow.cpp
+ ../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
DESTDIR =
TARGET = RGBController
@@ -763,8 +775,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 $(DISTDIR)/
- $(COPY_FILE) --parents ../RGBController/main.cpp ../RGBController/controllerwindow.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)/
@@ -797,15 +809,27 @@ compiler_moc_predefs_clean:
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
-compiler_moc_header_make_all: moc_controllerwindow.cpp
+compiler_moc_header_make_all: moc_controllerwindow.cpp moc_irc.cpp moc_server.cpp
compiler_moc_header_clean:
- -$(DEL_FILE) moc_controllerwindow.cpp
+ -$(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
@@ -826,16 +850,32 @@ compiler_clean: compiler_moc_predefs_clean compiler_moc_header_clean compiler_ui
####### Compile
main.o: ../RGBController/main.cpp ../RGBController/controllerwindow.h \
- ../RGBController/ui_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/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
+
+moc_server.o: moc_server.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_server.o moc_server.cpp
+
####### Install
install: FORCE
diff --git a/qt/build-RGBController-Desktop-Debug/RGBController b/qt/build-RGBController-Desktop-Debug/RGBController
index 8091a3a..dbe7020 100755
--- a/qt/build-RGBController-Desktop-Debug/RGBController
+++ b/qt/build-RGBController-Desktop-Debug/RGBController
Binary files differ
diff --git a/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp b/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp
index 9e86e81..e0fde24 100644
--- a/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp
+++ b/qt/build-RGBController-Desktop-Debug/moc_controllerwindow.cpp
@@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_controllerWindow_t {
- QByteArrayData data[33];
- char stringdata0[777];
+ QByteArrayData data[40];
+ char stringdata0[896];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
@@ -32,42 +32,50 @@ struct qt_meta_stringdata_controllerWindow_t {
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"
-QT_MOC_LITERAL(19, 445, 26), // "on_red_fade_button_clicked"
-QT_MOC_LITERAL(20, 472, 28), // "on_green_fade_button_clicked"
-QT_MOC_LITERAL(21, 501, 27), // "on_blue_fade_button_clicked"
-QT_MOC_LITERAL(22, 529, 23), // "on_speed_button_clicked"
-QT_MOC_LITERAL(23, 553, 30), // "on_r_speed_slider_valueChanged"
-QT_MOC_LITERAL(24, 584, 30), // "on_g_speed_slider_valueChanged"
-QT_MOC_LITERAL(25, 615, 30), // "on_b_speed_slider_valueChanged"
-QT_MOC_LITERAL(26, 646, 21), // "on_rfrom_valueChanged"
-QT_MOC_LITERAL(27, 668, 4), // "arg1"
-QT_MOC_LITERAL(28, 673, 19), // "on_rto_valueChanged"
-QT_MOC_LITERAL(29, 693, 21), // "on_gfrom_valueChanged"
-QT_MOC_LITERAL(30, 715, 19), // "on_gto_valueChanged"
-QT_MOC_LITERAL(31, 735, 21), // "on_bfrom_valueChanged"
-QT_MOC_LITERAL(32, 757, 19) // "on_bto_valueChanged"
+QT_MOC_LITERAL(1, 17, 7), // "cmdrecv"
+QT_MOC_LITERAL(2, 25, 0), // ""
+QT_MOC_LITERAL(3, 26, 3), // "cmd"
+QT_MOC_LITERAL(4, 30, 25), // "on_connect_button_clicked"
+QT_MOC_LITERAL(5, 56, 28), // "on_disconnect_button_clicked"
+QT_MOC_LITERAL(6, 85, 30), // "on_refresh_port_button_clicked"
+QT_MOC_LITERAL(7, 116, 31), // "on_reload_preset_button_clicked"
+QT_MOC_LITERAL(8, 148, 24), // "on_r_slider_valueChanged"
+QT_MOC_LITERAL(9, 173, 5), // "value"
+QT_MOC_LITERAL(10, 179, 24), // "on_g_slider_valueChanged"
+QT_MOC_LITERAL(11, 204, 24), // "on_b_slider_valueChanged"
+QT_MOC_LITERAL(12, 229, 21), // "on_red_button_clicked"
+QT_MOC_LITERAL(13, 251, 23), // "on_green_button_clicked"
+QT_MOC_LITERAL(14, 275, 22), // "on_blue_button_clicked"
+QT_MOC_LITERAL(15, 298, 21), // "on_off_button_clicked"
+QT_MOC_LITERAL(16, 320, 28), // "on_set_preset_button_clicked"
+QT_MOC_LITERAL(17, 349, 39), // "on_presets_dropdown_currentIn..."
+QT_MOC_LITERAL(18, 389, 5), // "index"
+QT_MOC_LITERAL(19, 395, 29), // "on_preset_save_button_clicked"
+QT_MOC_LITERAL(20, 425, 31), // "on_preset_delete_button_clicked"
+QT_MOC_LITERAL(21, 457, 26), // "on_red_fade_button_clicked"
+QT_MOC_LITERAL(22, 484, 28), // "on_green_fade_button_clicked"
+QT_MOC_LITERAL(23, 513, 27), // "on_blue_fade_button_clicked"
+QT_MOC_LITERAL(24, 541, 23), // "on_speed_button_clicked"
+QT_MOC_LITERAL(25, 565, 30), // "on_r_speed_slider_valueChanged"
+QT_MOC_LITERAL(26, 596, 30), // "on_g_speed_slider_valueChanged"
+QT_MOC_LITERAL(27, 627, 30), // "on_b_speed_slider_valueChanged"
+QT_MOC_LITERAL(28, 658, 21), // "on_rfrom_valueChanged"
+QT_MOC_LITERAL(29, 680, 4), // "arg1"
+QT_MOC_LITERAL(30, 685, 19), // "on_rto_valueChanged"
+QT_MOC_LITERAL(31, 705, 21), // "on_gfrom_valueChanged"
+QT_MOC_LITERAL(32, 727, 19), // "on_gto_valueChanged"
+QT_MOC_LITERAL(33, 747, 21), // "on_bfrom_valueChanged"
+QT_MOC_LITERAL(34, 769, 19), // "on_bto_valueChanged"
+QT_MOC_LITERAL(35, 789, 29), // "on_serial_send_button_clicked"
+QT_MOC_LITERAL(36, 819, 4), // "ping"
+QT_MOC_LITERAL(37, 824, 10), // "check_ping"
+QT_MOC_LITERAL(38, 835, 29), // "on_irc_connect_button_clicked"
+QT_MOC_LITERAL(39, 865, 30) // "on_server_start_button_clicked"
},
- "controllerWindow\0on_connect_button_clicked\0"
- "\0on_disconnect_button_clicked\0"
+ "controllerWindow\0cmdrecv\0\0cmd\0"
+ "on_connect_button_clicked\0"
+ "on_disconnect_button_clicked\0"
"on_refresh_port_button_clicked\0"
"on_reload_preset_button_clicked\0"
"on_r_slider_valueChanged\0value\0"
@@ -89,7 +97,9 @@ QT_MOC_LITERAL(32, 757, 19) // "on_bto_valueChanged"
"on_rfrom_valueChanged\0arg1\0"
"on_rto_valueChanged\0on_gfrom_valueChanged\0"
"on_gto_valueChanged\0on_bfrom_valueChanged\0"
- "on_bto_valueChanged"
+ "on_bto_valueChanged\0on_serial_send_button_clicked\0"
+ "ping\0check_ping\0on_irc_connect_button_clicked\0"
+ "on_server_start_button_clicked"
};
#undef QT_MOC_LITERAL
@@ -99,7 +109,7 @@ static const uint qt_meta_data_controllerWindow[] = {
7, // revision
0, // classname
0, 0, // classinfo
- 28, 14, // methods
+ 34, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
@@ -107,64 +117,76 @@ static const uint qt_meta_data_controllerWindow[] = {
0, // signalCount
// slots: name, argc, parameters, tag, flags
- 1, 0, 154, 2, 0x08 /* Private */,
- 3, 0, 155, 2, 0x08 /* Private */,
- 4, 0, 156, 2, 0x08 /* Private */,
- 5, 0, 157, 2, 0x08 /* Private */,
- 6, 1, 158, 2, 0x08 /* Private */,
- 8, 1, 161, 2, 0x08 /* Private */,
- 9, 1, 164, 2, 0x08 /* Private */,
- 10, 0, 167, 2, 0x08 /* Private */,
- 11, 0, 168, 2, 0x08 /* Private */,
- 12, 0, 169, 2, 0x08 /* Private */,
- 13, 0, 170, 2, 0x08 /* Private */,
- 14, 0, 171, 2, 0x08 /* Private */,
- 15, 1, 172, 2, 0x08 /* Private */,
- 17, 0, 175, 2, 0x08 /* Private */,
- 18, 0, 176, 2, 0x08 /* Private */,
- 19, 0, 177, 2, 0x08 /* Private */,
- 20, 0, 178, 2, 0x08 /* Private */,
- 21, 0, 179, 2, 0x08 /* Private */,
- 22, 0, 180, 2, 0x08 /* Private */,
- 23, 1, 181, 2, 0x08 /* Private */,
- 24, 1, 184, 2, 0x08 /* Private */,
- 25, 1, 187, 2, 0x08 /* Private */,
- 26, 1, 190, 2, 0x08 /* Private */,
- 28, 1, 193, 2, 0x08 /* Private */,
- 29, 1, 196, 2, 0x08 /* Private */,
- 30, 1, 199, 2, 0x08 /* Private */,
- 31, 1, 202, 2, 0x08 /* Private */,
- 32, 1, 205, 2, 0x08 /* Private */,
+ 1, 1, 184, 2, 0x0a /* Public */,
+ 4, 0, 187, 2, 0x08 /* Private */,
+ 5, 0, 188, 2, 0x08 /* Private */,
+ 6, 0, 189, 2, 0x08 /* Private */,
+ 7, 0, 190, 2, 0x08 /* Private */,
+ 8, 1, 191, 2, 0x08 /* Private */,
+ 10, 1, 194, 2, 0x08 /* Private */,
+ 11, 1, 197, 2, 0x08 /* Private */,
+ 12, 0, 200, 2, 0x08 /* Private */,
+ 13, 0, 201, 2, 0x08 /* Private */,
+ 14, 0, 202, 2, 0x08 /* Private */,
+ 15, 0, 203, 2, 0x08 /* Private */,
+ 16, 0, 204, 2, 0x08 /* Private */,
+ 17, 1, 205, 2, 0x08 /* Private */,
+ 19, 0, 208, 2, 0x08 /* Private */,
+ 20, 0, 209, 2, 0x08 /* Private */,
+ 21, 0, 210, 2, 0x08 /* Private */,
+ 22, 0, 211, 2, 0x08 /* Private */,
+ 23, 0, 212, 2, 0x08 /* Private */,
+ 24, 0, 213, 2, 0x08 /* Private */,
+ 25, 1, 214, 2, 0x08 /* Private */,
+ 26, 1, 217, 2, 0x08 /* Private */,
+ 27, 1, 220, 2, 0x08 /* Private */,
+ 28, 1, 223, 2, 0x08 /* Private */,
+ 30, 1, 226, 2, 0x08 /* Private */,
+ 31, 1, 229, 2, 0x08 /* Private */,
+ 32, 1, 232, 2, 0x08 /* Private */,
+ 33, 1, 235, 2, 0x08 /* Private */,
+ 34, 1, 238, 2, 0x08 /* Private */,
+ 35, 0, 241, 2, 0x08 /* Private */,
+ 36, 0, 242, 2, 0x08 /* Private */,
+ 37, 0, 243, 2, 0x08 /* Private */,
+ 38, 0, 244, 2, 0x08 /* Private */,
+ 39, 0, 245, 2, 0x08 /* Private */,
// slots: parameters
+ QMetaType::Void, QMetaType::QString, 3,
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::Int, 9,
+ QMetaType::Void, QMetaType::Int, 9,
+ QMetaType::Void, QMetaType::Int, 9,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
- QMetaType::Void, QMetaType::Int, 16,
+ QMetaType::Void, QMetaType::Int, 18,
QMetaType::Void,
QMetaType::Void,
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::Int, 27,
- QMetaType::Void, QMetaType::Int, 27,
- QMetaType::Void, QMetaType::Int, 27,
- QMetaType::Void, QMetaType::Int, 27,
- QMetaType::Void, QMetaType::Int, 27,
- QMetaType::Void, QMetaType::Int, 27,
+ QMetaType::Void, QMetaType::Int, 9,
+ QMetaType::Void, QMetaType::Int, 9,
+ QMetaType::Void, QMetaType::Int, 9,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void, QMetaType::Int, 29,
+ QMetaType::Void,
+ QMetaType::Void,
+ QMetaType::Void,
+ QMetaType::Void,
+ QMetaType::Void,
0 // eod
};
@@ -175,34 +197,40 @@ void controllerWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
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;
- case 15: _t->on_red_fade_button_clicked(); break;
- case 16: _t->on_green_fade_button_clicked(); break;
- case 17: _t->on_blue_fade_button_clicked(); break;
- case 18: _t->on_speed_button_clicked(); break;
- case 19: _t->on_r_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 20: _t->on_g_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 21: _t->on_b_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 22: _t->on_rfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 23: _t->on_rto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 24: _t->on_gfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 25: _t->on_gto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 26: _t->on_bfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
- case 27: _t->on_bto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 0: _t->cmdrecv((*reinterpret_cast< QString(*)>(_a[1]))); break;
+ case 1: _t->on_connect_button_clicked(); break;
+ case 2: _t->on_disconnect_button_clicked(); break;
+ case 3: _t->on_refresh_port_button_clicked(); break;
+ case 4: _t->on_reload_preset_button_clicked(); break;
+ case 5: _t->on_r_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 6: _t->on_g_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 7: _t->on_b_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 8: _t->on_red_button_clicked(); break;
+ case 9: _t->on_green_button_clicked(); break;
+ case 10: _t->on_blue_button_clicked(); break;
+ case 11: _t->on_off_button_clicked(); break;
+ case 12: _t->on_set_preset_button_clicked(); break;
+ case 13: _t->on_presets_dropdown_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 14: _t->on_preset_save_button_clicked(); break;
+ case 15: _t->on_preset_delete_button_clicked(); break;
+ case 16: _t->on_red_fade_button_clicked(); break;
+ case 17: _t->on_green_fade_button_clicked(); break;
+ case 18: _t->on_blue_fade_button_clicked(); break;
+ case 19: _t->on_speed_button_clicked(); break;
+ case 20: _t->on_r_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 21: _t->on_g_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 22: _t->on_b_speed_slider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 23: _t->on_rfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 24: _t->on_rto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 25: _t->on_gfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 26: _t->on_gto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 27: _t->on_bfrom_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 28: _t->on_bto_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
+ case 29: _t->on_serial_send_button_clicked(); break;
+ case 30: _t->ping(); break;
+ case 31: _t->check_ping(); break;
+ case 32: _t->on_irc_connect_button_clicked(); break;
+ case 33: _t->on_server_start_button_clicked(); break;
default: ;
}
}
@@ -233,13 +261,13 @@ int controllerWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
- if (_id < 28)
+ if (_id < 34)
qt_static_metacall(this, _c, _id, _a);
- _id -= 28;
+ _id -= 34;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
- if (_id < 28)
+ if (_id < 34)
*reinterpret_cast<int*>(_a[0]) = -1;
- _id -= 28;
+ _id -= 34;
}
return _id;
}
diff --git a/qt/build-RGBController-Desktop-Debug/moc_irc.cpp b/qt/build-RGBController-Desktop-Debug/moc_irc.cpp
new file mode 100644
index 0000000..4756835
--- /dev/null
+++ b/qt/build-RGBController-Desktop-Debug/moc_irc.cpp
@@ -0,0 +1,148 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'irc.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/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 "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_irc_t {
+ QByteArrayData data[8];
+ char stringdata0[37];
+};
+#define QT_MOC_LITERAL(idx, ofs, len) \
+ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
+ qptrdiff(offsetof(qt_meta_stringdata_irc_t, stringdata0) + ofs \
+ - idx * sizeof(QByteArrayData)) \
+ )
+static const qt_meta_stringdata_irc_t qt_meta_stringdata_irc = {
+ {
+QT_MOC_LITERAL(0, 0, 3), // "irc"
+QT_MOC_LITERAL(1, 4, 7), // "sendcmd"
+QT_MOC_LITERAL(2, 12, 0), // ""
+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"
+
+ },
+ "irc\0sendcmd\0\0cmd\0read\0con\0handle\0str"
+};
+#undef QT_MOC_LITERAL
+
+static const uint qt_meta_data_irc[] = {
+
+ // content:
+ 7, // revision
+ 0, // classname
+ 0, 0, // classinfo
+ 4, 14, // methods
+ 0, 0, // properties
+ 0, 0, // enums/sets
+ 0, 0, // constructors
+ 0, // flags
+ 1, // signalCount
+
+ // signals: name, argc, parameters, tag, flags
+ 1, 1, 34, 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 */,
+
+ // signals: parameters
+ QMetaType::Void, QMetaType::QString, 3,
+
+ // slots: parameters
+ QMetaType::Void,
+ QMetaType::Void,
+ QMetaType::Void, QMetaType::QString, 7,
+
+ 0 // eod
+};
+
+void irc::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+ if (_c == QMetaObject::InvokeMetaMethod) {
+ irc *_t = static_cast<irc *>(_o);
+ Q_UNUSED(_t)
+ switch (_id) {
+ case 0: _t->sendcmd((*reinterpret_cast< QString(*)>(_a[1]))); break;
+ case 1: _t->read(); break;
+ case 2: _t->con(); break;
+ case 3: _t->handle((*reinterpret_cast< QString(*)>(_a[1]))); break;
+ default: ;
+ }
+ } else if (_c == QMetaObject::IndexOfMethod) {
+ int *result = reinterpret_cast<int *>(_a[0]);
+ void **func = reinterpret_cast<void **>(_a[1]);
+ {
+ typedef void (irc::*_t)(QString );
+ if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&irc::sendcmd)) {
+ *result = 0;
+ return;
+ }
+ }
+ }
+}
+
+const QMetaObject irc::staticMetaObject = {
+ { &QObject::staticMetaObject, qt_meta_stringdata_irc.data,
+ qt_meta_data_irc, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
+};
+
+
+const QMetaObject *irc::metaObject() const
+{
+ return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
+}
+
+void *irc::qt_metacast(const char *_clname)
+{
+ if (!_clname) return Q_NULLPTR;
+ if (!strcmp(_clname, qt_meta_stringdata_irc.stringdata0))
+ return static_cast<void*>(const_cast< irc*>(this));
+ return QObject::qt_metacast(_clname);
+}
+
+int irc::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 < 4)
+ qt_static_metacall(this, _c, _id, _a);
+ _id -= 4;
+ } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
+ if (_id < 4)
+ *reinterpret_cast<int*>(_a[0]) = -1;
+ _id -= 4;
+ }
+ return _id;
+}
+
+// SIGNAL 0
+void irc::sendcmd(QString _t1)
+{
+ void *_a[] = { Q_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-RGBController-Desktop-Debug/moc_server.cpp b/qt/build-RGBController-Desktop-Debug/moc_server.cpp
new file mode 100644
index 0000000..9cc6f2b
--- /dev/null
+++ b/qt/build-RGBController-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.8.0)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../RGBController/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 "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, Q_NULLPTR, Q_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 Q_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[] = { Q_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-RGBController-Desktop-Debug/ui_controllerwindow.h b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h
index 5c2c857..8b77987 100644
--- a/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h
+++ b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h
@@ -14,6 +14,7 @@
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
+#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
@@ -22,6 +23,7 @@
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpinBox>
+#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QWidget>
@@ -32,366 +34,579 @@ class Ui_controllerWindow
public:
QWidget *centralWidget;
QGridLayout *gridLayout_2;
- QPushButton *reload_preset_button;
- QPushButton *off_button;
- QPushButton *preset_delete_button;
- QLabel *presets_label;
- QPushButton *disconnect_button;
+ QTabWidget *display_tab;
+ QWidget *status_tab;
+ QFormLayout *formLayout;
+ QGridLayout *gridLayout_5;
+ QLabel *arduino_port_label;
+ QPushButton *refresh_port_button;
+ QLabel *status_label;
QLabel *arduino_status_label;
QComboBox *arduino_port_dropdown;
- QSlider *b_slider;
- QSlider *b_speed_slider;
- QTextEdit *info_log_textarea;
- QLineEdit *preset_name_textbox;
- QComboBox *presets_dropdown;
- QLabel *info_log_label;
- QPushButton *green_button;
- QPushButton *refresh_port_button;
- QSlider *g_speed_slider;
+ QPushButton *disconnect_button;
+ QPushButton *connect_button;
+ QWidget *color_tab;
+ QFormLayout *formLayout_2;
QLabel *rgb_label;
- QLabel *status_label;
- QPushButton *preset_save_button;
- QSlider *g_slider;
- QSlider *r_speed_slider;
- QLabel *g_speed_label;
+ QSlider *r_slider;
QPushButton *red_button;
+ QSlider *g_slider;
+ QPushButton *green_button;
+ QSlider *b_slider;
QPushButton *blue_button;
- QPushButton *connect_button;
- QLabel *r_speed_label;
- QSlider *r_slider;
- QPushButton *set_preset_button;
+ QPushButton *off_button;
+ QWidget *fade_tab;
+ QFormLayout *formLayout_3;
QGridLayout *gridLayout;
QPushButton *blue_fade_button;
- QSpinBox *bfrom;
- QSpinBox *rto;
QSpinBox *gfrom;
- QLabel *r_to_label;
- QSpinBox *rfrom;
QLabel *g_to_label;
+ QLabel *r_to_label;
QSpinBox *bto;
- QSpinBox *gto;
+ QSpinBox *rto;
+ QSpinBox *bfrom;
QPushButton *green_fade_button;
+ QSlider *b_speed_slider;
+ QSlider *g_speed_slider;
+ QSpinBox *gto;
+ QSpinBox *rfrom;
QPushButton *red_fade_button;
QLabel *_to_label;
QLabel *fade_label;
- QLabel *arduino_port_label;
+ QSlider *r_speed_slider;
+ QSlider *speed_slider;
+ QLabel *r_speed_label;
+ QLabel *g_speed_label;
QLabel *b_speed_label;
QPushButton *speed_button;
- QSlider *speed_slider;
+ QWidget *presets_tab;
+ QFormLayout *formLayout_4;
+ 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;
+ QWidget *irc_tab;
+ QFormLayout *formLayout_5;
+ 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;
+ QWidget *server_tab;
+ QGridLayout *gridLayout_6;
+ QFormLayout *server_tab_layout;
+ QPushButton *server_start_button;
+ QWidget *log_tab;
+ QGridLayout *gridLayout_3;
+ QLineEdit *serial_input;
+ QPushButton *serial_send_button;
+ QTextEdit *info_log_textarea;
+ QLabel *info_log_label;
+ QLabel *ping_count_label;
void setupUi(QMainWindow *controllerWindow)
{
if (controllerWindow->objectName().isEmpty())
controllerWindow->setObjectName(QStringLiteral("controllerWindow"));
controllerWindow->setWindowModality(Qt::WindowModal);
- controllerWindow->resize(232, 629);
+ controllerWindow->resize(433, 254);
centralWidget = new QWidget(controllerWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
gridLayout_2 = new QGridLayout(centralWidget);
gridLayout_2->setSpacing(6);
gridLayout_2->setContentsMargins(11, 11, 11, 11);
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
- reload_preset_button = new QPushButton(centralWidget);
- reload_preset_button->setObjectName(QStringLiteral("reload_preset_button"));
+ display_tab = new QTabWidget(centralWidget);
+ display_tab->setObjectName(QStringLiteral("display_tab"));
+ status_tab = new QWidget();
+ status_tab->setObjectName(QStringLiteral("status_tab"));
+ formLayout = new QFormLayout(status_tab);
+ formLayout->setSpacing(6);
+ formLayout->setContentsMargins(11, 11, 11, 11);
+ formLayout->setObjectName(QStringLiteral("formLayout"));
+ gridLayout_5 = new QGridLayout();
+ gridLayout_5->setSpacing(6);
+ gridLayout_5->setObjectName(QStringLiteral("gridLayout_5"));
+ arduino_port_label = new QLabel(status_tab);
+ arduino_port_label->setObjectName(QStringLiteral("arduino_port_label"));
+ arduino_port_label->setMinimumSize(QSize(120, 0));
- gridLayout_2->addWidget(reload_preset_button, 11, 0, 1, 1);
+ gridLayout_5->addWidget(arduino_port_label, 1, 0, 1, 1);
- off_button = new QPushButton(centralWidget);
- off_button->setObjectName(QStringLiteral("off_button"));
+ refresh_port_button = new QPushButton(status_tab);
+ refresh_port_button->setObjectName(QStringLiteral("refresh_port_button"));
- gridLayout_2->addWidget(off_button, 8, 1, 1, 1);
+ gridLayout_5->addWidget(refresh_port_button, 2, 1, 1, 1);
- preset_delete_button = new QPushButton(centralWidget);
- preset_delete_button->setObjectName(QStringLiteral("preset_delete_button"));
+ status_label = new QLabel(status_tab);
+ status_label->setObjectName(QStringLiteral("status_label"));
- gridLayout_2->addWidget(preset_delete_button, 13, 1, 1, 1);
+ gridLayout_5->addWidget(status_label, 0, 0, 1, 1);
- presets_label = new QLabel(centralWidget);
- presets_label->setObjectName(QStringLiteral("presets_label"));
+ arduino_status_label = new QLabel(status_tab);
+ arduino_status_label->setObjectName(QStringLiteral("arduino_status_label"));
+
+ gridLayout_5->addWidget(arduino_status_label, 0, 1, 1, 1);
- gridLayout_2->addWidget(presets_label, 9, 0, 1, 1);
+ arduino_port_dropdown = new QComboBox(status_tab);
+ arduino_port_dropdown->setObjectName(QStringLiteral("arduino_port_dropdown"));
+
+ gridLayout_5->addWidget(arduino_port_dropdown, 1, 1, 1, 1);
- disconnect_button = new QPushButton(centralWidget);
+ disconnect_button = new QPushButton(status_tab);
disconnect_button->setObjectName(QStringLiteral("disconnect_button"));
- gridLayout_2->addWidget(disconnect_button, 3, 1, 1, 1);
+ gridLayout_5->addWidget(disconnect_button, 3, 1, 1, 1);
- arduino_status_label = new QLabel(centralWidget);
- arduino_status_label->setObjectName(QStringLiteral("arduino_status_label"));
+ connect_button = new QPushButton(status_tab);
+ connect_button->setObjectName(QStringLiteral("connect_button"));
- gridLayout_2->addWidget(arduino_status_label, 0, 1, 1, 1);
+ gridLayout_5->addWidget(connect_button, 3, 0, 1, 1);
- arduino_port_dropdown = new QComboBox(centralWidget);
- arduino_port_dropdown->setObjectName(QStringLiteral("arduino_port_dropdown"));
- gridLayout_2->addWidget(arduino_port_dropdown, 1, 1, 1, 1);
+ formLayout->setLayout(0, QFormLayout::LabelRole, gridLayout_5);
+
+ display_tab->addTab(status_tab, QString());
+ color_tab = new QWidget();
+ color_tab->setObjectName(QStringLiteral("color_tab"));
+ formLayout_2 = new QFormLayout(color_tab);
+ formLayout_2->setSpacing(6);
+ formLayout_2->setContentsMargins(11, 11, 11, 11);
+ formLayout_2->setObjectName(QStringLiteral("formLayout_2"));
+ rgb_label = new QLabel(color_tab);
+ rgb_label->setObjectName(QStringLiteral("rgb_label"));
+
+ formLayout_2->setWidget(0, QFormLayout::LabelRole, rgb_label);
+
+ r_slider = new QSlider(color_tab);
+ 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_2->setWidget(1, QFormLayout::LabelRole, r_slider);
+
+ red_button = new QPushButton(color_tab);
+ red_button->setObjectName(QStringLiteral("red_button"));
+ red_button->setMaximumSize(QSize(90, 16777215));
+
+ formLayout_2->setWidget(1, QFormLayout::FieldRole, red_button);
- b_slider = new QSlider(centralWidget);
+ g_slider = new QSlider(color_tab);
+ 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_2->setWidget(2, QFormLayout::LabelRole, g_slider);
+
+ green_button = new QPushButton(color_tab);
+ green_button->setObjectName(QStringLiteral("green_button"));
+ green_button->setMaximumSize(QSize(90, 16777215));
+
+ formLayout_2->setWidget(2, QFormLayout::FieldRole, green_button);
+
+ b_slider = new QSlider(color_tab);
b_slider->setObjectName(QStringLiteral("b_slider"));
b_slider->setMinimumSize(QSize(120, 0));
b_slider->setMaximumSize(QSize(120, 16777215));
b_slider->setMaximum(255);
b_slider->setOrientation(Qt::Horizontal);
- gridLayout_2->addWidget(b_slider, 7, 0, 1, 1);
+ formLayout_2->setWidget(3, QFormLayout::LabelRole, b_slider);
- b_speed_slider = new QSlider(centralWidget);
- b_speed_slider->setObjectName(QStringLiteral("b_speed_slider"));
- b_speed_slider->setMinimum(1);
- b_speed_slider->setMaximum(500);
- b_speed_slider->setOrientation(Qt::Horizontal);
+ blue_button = new QPushButton(color_tab);
+ blue_button->setObjectName(QStringLiteral("blue_button"));
+ blue_button->setMaximumSize(QSize(90, 16777215));
- gridLayout_2->addWidget(b_speed_slider, 17, 0, 1, 1);
+ formLayout_2->setWidget(3, QFormLayout::FieldRole, blue_button);
- info_log_textarea = new QTextEdit(centralWidget);
- info_log_textarea->setObjectName(QStringLiteral("info_log_textarea"));
+ off_button = new QPushButton(color_tab);
+ off_button->setObjectName(QStringLiteral("off_button"));
+ off_button->setMaximumSize(QSize(90, 16777215));
+
+ formLayout_2->setWidget(4, QFormLayout::FieldRole, off_button);
+
+ display_tab->addTab(color_tab, QString());
+ rgb_label->raise();
+ r_slider->raise();
+ g_slider->raise();
+ b_slider->raise();
+ red_button->raise();
+ green_button->raise();
+ blue_button->raise();
+ off_button->raise();
+ fade_tab = new QWidget();
+ fade_tab->setObjectName(QStringLiteral("fade_tab"));
+ formLayout_3 = new QFormLayout(fade_tab);
+ formLayout_3->setSpacing(6);
+ formLayout_3->setContentsMargins(11, 11, 11, 11);
+ formLayout_3->setObjectName(QStringLiteral("formLayout_3"));
+ gridLayout = new QGridLayout();
+ gridLayout->setSpacing(6);
+ gridLayout->setObjectName(QStringLiteral("gridLayout"));
+ blue_fade_button = new QPushButton(fade_tab);
+ blue_fade_button->setObjectName(QStringLiteral("blue_fade_button"));
- gridLayout_2->addWidget(info_log_textarea, 20, 0, 1, 2);
+ gridLayout->addWidget(blue_fade_button, 4, 3, 1, 1);
- preset_name_textbox = new QLineEdit(centralWidget);
- preset_name_textbox->setObjectName(QStringLiteral("preset_name_textbox"));
+ gfrom = new QSpinBox(fade_tab);
+ gfrom->setObjectName(QStringLiteral("gfrom"));
+ gfrom->setMaximumSize(QSize(50, 16777215));
+ gfrom->setMaximum(255);
- gridLayout_2->addWidget(preset_name_textbox, 12, 0, 1, 1);
+ gridLayout->addWidget(gfrom, 3, 0, 1, 1);
- presets_dropdown = new QComboBox(centralWidget);
- presets_dropdown->setObjectName(QStringLiteral("presets_dropdown"));
- presets_dropdown->setMinimumSize(QSize(120, 0));
+ g_to_label = new QLabel(fade_tab);
+ g_to_label->setObjectName(QStringLiteral("g_to_label"));
- gridLayout_2->addWidget(presets_dropdown, 10, 0, 1, 1);
+ gridLayout->addWidget(g_to_label, 3, 1, 1, 1);
- info_log_label = new QLabel(centralWidget);
- info_log_label->setObjectName(QStringLiteral("info_log_label"));
+ r_to_label = new QLabel(fade_tab);
+ r_to_label->setObjectName(QStringLiteral("r_to_label"));
- gridLayout_2->addWidget(info_log_label, 19, 0, 1, 1);
+ gridLayout->addWidget(r_to_label, 1, 1, 1, 1);
- green_button = new QPushButton(centralWidget);
- green_button->setObjectName(QStringLiteral("green_button"));
+ bto = new QSpinBox(fade_tab);
+ bto->setObjectName(QStringLiteral("bto"));
+ bto->setMaximumSize(QSize(50, 16777215));
+ bto->setMaximum(255);
- gridLayout_2->addWidget(green_button, 6, 1, 1, 1);
+ gridLayout->addWidget(bto, 4, 2, 1, 1);
- refresh_port_button = new QPushButton(centralWidget);
- refresh_port_button->setObjectName(QStringLiteral("refresh_port_button"));
+ rto = new QSpinBox(fade_tab);
+ rto->setObjectName(QStringLiteral("rto"));
+ rto->setMaximumSize(QSize(50, 16777215));
+ rto->setMaximum(255);
+
+ gridLayout->addWidget(rto, 1, 2, 1, 1);
+
+ bfrom = new QSpinBox(fade_tab);
+ bfrom->setObjectName(QStringLiteral("bfrom"));
+ bfrom->setMaximumSize(QSize(50, 16777215));
+ bfrom->setMaximum(255);
+
+ gridLayout->addWidget(bfrom, 4, 0, 1, 1);
+
+ green_fade_button = new QPushButton(fade_tab);
+ green_fade_button->setObjectName(QStringLiteral("green_fade_button"));
+
+ gridLayout->addWidget(green_fade_button, 3, 3, 1, 1);
+
+ b_speed_slider = new QSlider(fade_tab);
+ b_speed_slider->setObjectName(QStringLiteral("b_speed_slider"));
+ b_speed_slider->setMinimum(1);
+ b_speed_slider->setMaximum(500);
+ b_speed_slider->setOrientation(Qt::Horizontal);
- gridLayout_2->addWidget(refresh_port_button, 2, 1, 1, 1);
+ gridLayout->addWidget(b_speed_slider, 7, 0, 1, 1);
- g_speed_slider = new QSlider(centralWidget);
+ g_speed_slider = new QSlider(fade_tab);
g_speed_slider->setObjectName(QStringLiteral("g_speed_slider"));
g_speed_slider->setMinimum(1);
g_speed_slider->setMaximum(500);
g_speed_slider->setOrientation(Qt::Horizontal);
- gridLayout_2->addWidget(g_speed_slider, 16, 0, 1, 1);
+ gridLayout->addWidget(g_speed_slider, 6, 0, 1, 1);
- rgb_label = new QLabel(centralWidget);
- rgb_label->setObjectName(QStringLiteral("rgb_label"));
+ gto = new QSpinBox(fade_tab);
+ gto->setObjectName(QStringLiteral("gto"));
+ gto->setMaximumSize(QSize(50, 16777215));
+ gto->setMaximum(255);
- gridLayout_2->addWidget(rgb_label, 4, 0, 1, 1);
+ gridLayout->addWidget(gto, 3, 2, 1, 1);
- status_label = new QLabel(centralWidget);
- status_label->setObjectName(QStringLiteral("status_label"));
+ rfrom = new QSpinBox(fade_tab);
+ rfrom->setObjectName(QStringLiteral("rfrom"));
+ rfrom->setMaximumSize(QSize(50, 16777215));
+ rfrom->setMaximum(255);
- gridLayout_2->addWidget(status_label, 0, 0, 1, 1);
+ gridLayout->addWidget(rfrom, 1, 0, 1, 1);
- preset_save_button = new QPushButton(centralWidget);
- preset_save_button->setObjectName(QStringLiteral("preset_save_button"));
+ red_fade_button = new QPushButton(fade_tab);
+ red_fade_button->setObjectName(QStringLiteral("red_fade_button"));
- gridLayout_2->addWidget(preset_save_button, 12, 1, 1, 1);
+ gridLayout->addWidget(red_fade_button, 1, 3, 1, 1);
- g_slider = new QSlider(centralWidget);
- g_slider->setObjectName(QStringLiteral("g_slider"));
- g_slider->setMinimumSize(QSize(120, 0));
- g_slider->setMaximumSize(QSize(120, 16777215));
- g_slider->setMaximum(255);
- g_slider->setOrientation(Qt::Horizontal);
+ _to_label = new QLabel(fade_tab);
+ _to_label->setObjectName(QStringLiteral("_to_label"));
- gridLayout_2->addWidget(g_slider, 6, 0, 1, 1);
+ gridLayout->addWidget(_to_label, 4, 1, 1, 1);
- r_speed_slider = new QSlider(centralWidget);
+ fade_label = new QLabel(fade_tab);
+ fade_label->setObjectName(QStringLiteral("fade_label"));
+
+ gridLayout->addWidget(fade_label, 0, 0, 1, 1);
+
+ r_speed_slider = new QSlider(fade_tab);
r_speed_slider->setObjectName(QStringLiteral("r_speed_slider"));
r_speed_slider->setMinimum(1);
- r_speed_slider->setMaximum(500);
+ r_speed_slider->setMaximum(100);
r_speed_slider->setOrientation(Qt::Horizontal);
- gridLayout_2->addWidget(r_speed_slider, 15, 0, 1, 1);
+ gridLayout->addWidget(r_speed_slider, 5, 0, 1, 1);
+
+ speed_slider = new QSlider(fade_tab);
+ speed_slider->setObjectName(QStringLiteral("speed_slider"));
+ speed_slider->setMinimum(10);
+ speed_slider->setMaximum(500);
+ speed_slider->setOrientation(Qt::Horizontal);
+
+ gridLayout->addWidget(speed_slider, 8, 0, 1, 1);
+
+ r_speed_label = new QLabel(fade_tab);
+ r_speed_label->setObjectName(QStringLiteral("r_speed_label"));
+
+ gridLayout->addWidget(r_speed_label, 5, 2, 1, 1);
- g_speed_label = new QLabel(centralWidget);
+ g_speed_label = new QLabel(fade_tab);
g_speed_label->setObjectName(QStringLiteral("g_speed_label"));
- gridLayout_2->addWidget(g_speed_label, 16, 1, 1, 1);
+ gridLayout->addWidget(g_speed_label, 6, 2, 1, 1);
- red_button = new QPushButton(centralWidget);
- red_button->setObjectName(QStringLiteral("red_button"));
+ b_speed_label = new QLabel(fade_tab);
+ b_speed_label->setObjectName(QStringLiteral("b_speed_label"));
- gridLayout_2->addWidget(red_button, 5, 1, 1, 1);
+ gridLayout->addWidget(b_speed_label, 7, 2, 1, 1);
- blue_button = new QPushButton(centralWidget);
- blue_button->setObjectName(QStringLiteral("blue_button"));
+ speed_button = new QPushButton(fade_tab);
+ speed_button->setObjectName(QStringLiteral("speed_button"));
- gridLayout_2->addWidget(blue_button, 7, 1, 1, 1);
+ gridLayout->addWidget(speed_button, 8, 2, 1, 1);
- connect_button = new QPushButton(centralWidget);
- connect_button->setObjectName(QStringLiteral("connect_button"));
- gridLayout_2->addWidget(connect_button, 3, 0, 1, 1);
+ formLayout_3->setLayout(0, QFormLayout::LabelRole, gridLayout);
- r_speed_label = new QLabel(centralWidget);
- r_speed_label->setObjectName(QStringLiteral("r_speed_label"));
+ display_tab->addTab(fade_tab, QString());
+ presets_tab = new QWidget();
+ presets_tab->setObjectName(QStringLiteral("presets_tab"));
+ formLayout_4 = new QFormLayout(presets_tab);
+ formLayout_4->setSpacing(6);
+ formLayout_4->setContentsMargins(11, 11, 11, 11);
+ formLayout_4->setObjectName(QStringLiteral("formLayout_4"));
+ presets_label = new QLabel(presets_tab);
+ presets_label->setObjectName(QStringLiteral("presets_label"));
- gridLayout_2->addWidget(r_speed_label, 15, 1, 1, 1);
+ formLayout_4->setWidget(0, QFormLayout::LabelRole, presets_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);
+ presets_dropdown = new QComboBox(presets_tab);
+ presets_dropdown->setObjectName(QStringLiteral("presets_dropdown"));
+ presets_dropdown->setMinimumSize(QSize(120, 0));
- gridLayout_2->addWidget(r_slider, 5, 0, 1, 1);
+ formLayout_4->setWidget(1, QFormLayout::LabelRole, presets_dropdown);
- set_preset_button = new QPushButton(centralWidget);
+ set_preset_button = new QPushButton(presets_tab);
set_preset_button->setObjectName(QStringLiteral("set_preset_button"));
+ set_preset_button->setMaximumSize(QSize(90, 16777215));
- gridLayout_2->addWidget(set_preset_button, 10, 1, 1, 1);
+ formLayout_4->setWidget(1, QFormLayout::FieldRole, set_preset_button);
- gridLayout = new QGridLayout();
- gridLayout->setSpacing(6);
- gridLayout->setObjectName(QStringLiteral("gridLayout"));
- blue_fade_button = new QPushButton(centralWidget);
- blue_fade_button->setObjectName(QStringLiteral("blue_fade_button"));
+ reload_preset_button = new QPushButton(presets_tab);
+ reload_preset_button->setObjectName(QStringLiteral("reload_preset_button"));
- gridLayout->addWidget(blue_fade_button, 4, 3, 1, 1);
+ formLayout_4->setWidget(2, QFormLayout::LabelRole, reload_preset_button);
- bfrom = new QSpinBox(centralWidget);
- bfrom->setObjectName(QStringLiteral("bfrom"));
- bfrom->setMaximum(255);
+ preset_name_textbox = new QLineEdit(presets_tab);
+ preset_name_textbox->setObjectName(QStringLiteral("preset_name_textbox"));
- gridLayout->addWidget(bfrom, 4, 0, 1, 1);
+ formLayout_4->setWidget(3, QFormLayout::LabelRole, preset_name_textbox);
- rto = new QSpinBox(centralWidget);
- rto->setObjectName(QStringLiteral("rto"));
- rto->setMaximum(255);
+ preset_save_button = new QPushButton(presets_tab);
+ preset_save_button->setObjectName(QStringLiteral("preset_save_button"));
+ preset_save_button->setMaximumSize(QSize(90, 16777215));
- gridLayout->addWidget(rto, 1, 2, 1, 1);
+ formLayout_4->setWidget(3, QFormLayout::FieldRole, preset_save_button);
- gfrom = new QSpinBox(centralWidget);
- gfrom->setObjectName(QStringLiteral("gfrom"));
- gfrom->setMaximum(255);
+ preset_delete_button = new QPushButton(presets_tab);
+ preset_delete_button->setObjectName(QStringLiteral("preset_delete_button"));
+ preset_delete_button->setMaximumSize(QSize(90, 16777215));
- gridLayout->addWidget(gfrom, 3, 0, 1, 1);
+ formLayout_4->setWidget(4, QFormLayout::FieldRole, preset_delete_button);
- r_to_label = new QLabel(centralWidget);
- r_to_label->setObjectName(QStringLiteral("r_to_label"));
+ display_tab->addTab(presets_tab, QString());
+ irc_tab = new QWidget();
+ irc_tab->setObjectName(QStringLiteral("irc_tab"));
+ formLayout_5 = new QFormLayout(irc_tab);
+ formLayout_5->setSpacing(6);
+ formLayout_5->setContentsMargins(11, 11, 11, 11);
+ formLayout_5->setObjectName(QStringLiteral("formLayout_5"));
+ irc_bot_label = new QLabel(irc_tab);
+ irc_bot_label->setObjectName(QStringLiteral("irc_bot_label"));
- gridLayout->addWidget(r_to_label, 1, 1, 1, 1);
+ formLayout_5->setWidget(0, QFormLayout::LabelRole, irc_bot_label);
- rfrom = new QSpinBox(centralWidget);
- rfrom->setObjectName(QStringLiteral("rfrom"));
- rfrom->setMaximum(255);
+ irc_server_label = new QLabel(irc_tab);
+ irc_server_label->setObjectName(QStringLiteral("irc_server_label"));
- gridLayout->addWidget(rfrom, 1, 0, 1, 1);
+ formLayout_5->setWidget(2, QFormLayout::LabelRole, irc_server_label);
- g_to_label = new QLabel(centralWidget);
- g_to_label->setObjectName(QStringLiteral("g_to_label"));
+ irc_server_input = new QLineEdit(irc_tab);
+ irc_server_input->setObjectName(QStringLiteral("irc_server_input"));
- gridLayout->addWidget(g_to_label, 3, 1, 1, 1);
+ formLayout_5->setWidget(5, QFormLayout::LabelRole, irc_server_input);
- bto = new QSpinBox(centralWidget);
- bto->setObjectName(QStringLiteral("bto"));
- bto->setMaximum(255);
+ 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);
- gridLayout->addWidget(bto, 4, 2, 1, 1);
+ formLayout_5->setWidget(5, QFormLayout::FieldRole, irc_bot_spinbox);
- gto = new QSpinBox(centralWidget);
- gto->setObjectName(QStringLiteral("gto"));
- gto->setMaximum(255);
+ irc_channel_label = new QLabel(irc_tab);
+ irc_channel_label->setObjectName(QStringLiteral("irc_channel_label"));
- gridLayout->addWidget(gto, 3, 2, 1, 1);
+ formLayout_5->setWidget(6, QFormLayout::LabelRole, irc_channel_label);
- green_fade_button = new QPushButton(centralWidget);
- green_fade_button->setObjectName(QStringLiteral("green_fade_button"));
+ irc_channel_input = new QLineEdit(irc_tab);
+ irc_channel_input->setObjectName(QStringLiteral("irc_channel_input"));
- gridLayout->addWidget(green_fade_button, 3, 3, 1, 1);
+ formLayout_5->setWidget(7, QFormLayout::LabelRole, irc_channel_input);
- red_fade_button = new QPushButton(centralWidget);
- red_fade_button->setObjectName(QStringLiteral("red_fade_button"));
+ irc_name_label = new QLabel(irc_tab);
+ irc_name_label->setObjectName(QStringLiteral("irc_name_label"));
- gridLayout->addWidget(red_fade_button, 1, 3, 1, 1);
+ formLayout_5->setWidget(8, QFormLayout::LabelRole, irc_name_label);
- _to_label = new QLabel(centralWidget);
- _to_label->setObjectName(QStringLiteral("_to_label"));
+ irc_name_input = new QLineEdit(irc_tab);
+ irc_name_input->setObjectName(QStringLiteral("irc_name_input"));
- gridLayout->addWidget(_to_label, 4, 1, 1, 1);
+ formLayout_5->setWidget(9, QFormLayout::LabelRole, irc_name_input);
- fade_label = new QLabel(centralWidget);
- fade_label->setObjectName(QStringLiteral("fade_label"));
+ irc_port_label = new QLabel(irc_tab);
+ irc_port_label->setObjectName(QStringLiteral("irc_port_label"));
- gridLayout->addWidget(fade_label, 0, 0, 1, 1);
+ formLayout_5->setWidget(2, QFormLayout::FieldRole, irc_port_label);
+ irc_connect_button = new QPushButton(irc_tab);
+ irc_connect_button->setObjectName(QStringLiteral("irc_connect_button"));
- gridLayout_2->addLayout(gridLayout, 14, 0, 1, 2);
+ formLayout_5->setWidget(10, QFormLayout::LabelRole, irc_connect_button);
- arduino_port_label = new QLabel(centralWidget);
- arduino_port_label->setObjectName(QStringLiteral("arduino_port_label"));
- arduino_port_label->setMinimumSize(QSize(120, 0));
+ display_tab->addTab(irc_tab, QString());
+ server_tab = new QWidget();
+ server_tab->setObjectName(QStringLiteral("server_tab"));
+ gridLayout_6 = new QGridLayout(server_tab);
+ gridLayout_6->setSpacing(6);
+ gridLayout_6->setContentsMargins(11, 11, 11, 11);
+ gridLayout_6->setObjectName(QStringLiteral("gridLayout_6"));
+ server_tab_layout = new QFormLayout();
+ server_tab_layout->setSpacing(6);
+ server_tab_layout->setObjectName(QStringLiteral("server_tab_layout"));
+ server_start_button = new QPushButton(server_tab);
+ server_start_button->setObjectName(QStringLiteral("server_start_button"));
- gridLayout_2->addWidget(arduino_port_label, 1, 0, 1, 1);
+ server_tab_layout->setWidget(0, QFormLayout::LabelRole, server_start_button);
- b_speed_label = new QLabel(centralWidget);
- b_speed_label->setObjectName(QStringLiteral("b_speed_label"));
- gridLayout_2->addWidget(b_speed_label, 17, 1, 1, 1);
+ gridLayout_6->addLayout(server_tab_layout, 0, 0, 1, 1);
- speed_button = new QPushButton(centralWidget);
- speed_button->setObjectName(QStringLiteral("speed_button"));
+ display_tab->addTab(server_tab, QString());
+ log_tab = new QWidget();
+ log_tab->setObjectName(QStringLiteral("log_tab"));
+ gridLayout_3 = new QGridLayout(log_tab);
+ gridLayout_3->setSpacing(6);
+ gridLayout_3->setContentsMargins(11, 11, 11, 11);
+ gridLayout_3->setObjectName(QStringLiteral("gridLayout_3"));
+ serial_input = new QLineEdit(log_tab);
+ serial_input->setObjectName(QStringLiteral("serial_input"));
- gridLayout_2->addWidget(speed_button, 18, 1, 1, 1);
+ gridLayout_3->addWidget(serial_input, 5, 0, 1, 1);
- speed_slider = new QSlider(centralWidget);
- speed_slider->setObjectName(QStringLiteral("speed_slider"));
- speed_slider->setMinimum(10);
- speed_slider->setMaximum(500);
- speed_slider->setOrientation(Qt::Horizontal);
+ serial_send_button = new QPushButton(log_tab);
+ serial_send_button->setObjectName(QStringLiteral("serial_send_button"));
+
+ gridLayout_3->addWidget(serial_send_button, 5, 1, 1, 1);
+
+ info_log_textarea = new QTextEdit(log_tab);
+ info_log_textarea->setObjectName(QStringLiteral("info_log_textarea"));
+
+ gridLayout_3->addWidget(info_log_textarea, 4, 0, 1, 2);
+
+ info_log_label = new QLabel(log_tab);
+ info_log_label->setObjectName(QStringLiteral("info_log_label"));
+
+ gridLayout_3->addWidget(info_log_label, 0, 0, 1, 1);
+
+ ping_count_label = new QLabel(log_tab);
+ ping_count_label->setObjectName(QStringLiteral("ping_count_label"));
+
+ gridLayout_3->addWidget(ping_count_label, 0, 1, 1, 1);
- gridLayout_2->addWidget(speed_slider, 18, 0, 1, 1);
+ display_tab->addTab(log_tab, QString());
+
+ gridLayout_2->addWidget(display_tab, 7, 1, 1, 1);
controllerWindow->setCentralWidget(centralWidget);
retranslateUi(controllerWindow);
+ display_tab->setCurrentIndex(5);
+
+
QMetaObject::connectSlotsByName(controllerWindow);
} // setupUi
void retranslateUi(QMainWindow *controllerWindow)
{
controllerWindow->setWindowTitle(QApplication::translate("controllerWindow", "RGB Controller", Q_NULLPTR));
- reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", Q_NULLPTR));
- off_button->setText(QApplication::translate("controllerWindow", "Off", Q_NULLPTR));
- preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", Q_NULLPTR));
- presets_label->setText(QApplication::translate("controllerWindow", "Presets", Q_NULLPTR));
- disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", Q_NULLPTR));
- arduino_status_label->setText(QApplication::translate("controllerWindow", "<font color = red>Disconnected</font>", Q_NULLPTR));
- info_log_label->setText(QApplication::translate("controllerWindow", "Information log", Q_NULLPTR));
- green_button->setText(QApplication::translate("controllerWindow", "Green", Q_NULLPTR));
+ arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", Q_NULLPTR));
refresh_port_button->setText(QApplication::translate("controllerWindow", "Refresh", Q_NULLPTR));
- rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", Q_NULLPTR));
status_label->setText(QApplication::translate("controllerWindow", "Status", Q_NULLPTR));
- preset_save_button->setText(QApplication::translate("controllerWindow", "Save", Q_NULLPTR));
- g_speed_label->setText(QApplication::translate("controllerWindow", "Green speed", Q_NULLPTR));
+ arduino_status_label->setText(QApplication::translate("controllerWindow", "<font color = red>Disconnected</font>", Q_NULLPTR));
+ disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", Q_NULLPTR));
+ connect_button->setText(QApplication::translate("controllerWindow", "Connect", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(status_tab), QApplication::translate("controllerWindow", "Status", Q_NULLPTR));
+ rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", Q_NULLPTR));
red_button->setText(QApplication::translate("controllerWindow", "Red", Q_NULLPTR));
+ green_button->setText(QApplication::translate("controllerWindow", "Green", Q_NULLPTR));
blue_button->setText(QApplication::translate("controllerWindow", "Blue", Q_NULLPTR));
- connect_button->setText(QApplication::translate("controllerWindow", "Connect", Q_NULLPTR));
- r_speed_label->setText(QApplication::translate("controllerWindow", "Red speed", Q_NULLPTR));
- set_preset_button->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR));
+ off_button->setText(QApplication::translate("controllerWindow", "Off", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(color_tab), QApplication::translate("controllerWindow", "Color", Q_NULLPTR));
blue_fade_button->setText(QApplication::translate("controllerWindow", "Blue toggle", Q_NULLPTR));
- r_to_label->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR));
g_to_label->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR));
+ r_to_label->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR));
green_fade_button->setText(QApplication::translate("controllerWindow", "Green toggle", Q_NULLPTR));
red_fade_button->setText(QApplication::translate("controllerWindow", "Red toggle", Q_NULLPTR));
_to_label->setText(QApplication::translate("controllerWindow", "to", Q_NULLPTR));
fade_label->setText(QApplication::translate("controllerWindow", "Fade", Q_NULLPTR));
- arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", Q_NULLPTR));
+ r_speed_label->setText(QApplication::translate("controllerWindow", "Red speed", Q_NULLPTR));
+ g_speed_label->setText(QApplication::translate("controllerWindow", "Green speed", Q_NULLPTR));
b_speed_label->setText(QApplication::translate("controllerWindow", "Blue speed", Q_NULLPTR));
speed_button->setText(QApplication::translate("controllerWindow", "Speed", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(fade_tab), QApplication::translate("controllerWindow", "Fade", Q_NULLPTR));
+ presets_label->setText(QApplication::translate("controllerWindow", "Presets", Q_NULLPTR));
+ set_preset_button->setText(QApplication::translate("controllerWindow", "Set", Q_NULLPTR));
+ reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", Q_NULLPTR));
+ preset_save_button->setText(QApplication::translate("controllerWindow", "Save", Q_NULLPTR));
+ preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(presets_tab), QApplication::translate("controllerWindow", "Presets", Q_NULLPTR));
+ irc_bot_label->setText(QApplication::translate("controllerWindow", "IRC bot", Q_NULLPTR));
+ irc_server_label->setText(QApplication::translate("controllerWindow", "Server", Q_NULLPTR));
+ irc_server_input->setText(QApplication::translate("controllerWindow", "irc.danieljon.es", Q_NULLPTR));
+ irc_channel_label->setText(QApplication::translate("controllerWindow", "Channel", Q_NULLPTR));
+ irc_channel_input->setText(QApplication::translate("controllerWindow", "#csgo", Q_NULLPTR));
+ irc_name_label->setText(QApplication::translate("controllerWindow", "Name", Q_NULLPTR));
+ irc_name_input->setText(QApplication::translate("controllerWindow", "LightBot", Q_NULLPTR));
+ irc_port_label->setText(QApplication::translate("controllerWindow", "Port", Q_NULLPTR));
+ irc_connect_button->setText(QApplication::translate("controllerWindow", "Connect", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(irc_tab), QApplication::translate("controllerWindow", "IRC", Q_NULLPTR));
+ server_start_button->setText(QApplication::translate("controllerWindow", "Start server", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(server_tab), QApplication::translate("controllerWindow", "Server", Q_NULLPTR));
+ serial_send_button->setText(QApplication::translate("controllerWindow", "Send", Q_NULLPTR));
+ info_log_label->setText(QApplication::translate("controllerWindow", "Information log", Q_NULLPTR));
+ ping_count_label->setText(QApplication::translate("controllerWindow", "Ping", Q_NULLPTR));
+ display_tab->setTabText(display_tab->indexOf(log_tab), QApplication::translate("controllerWindow", "Log", Q_NULLPTR));
} // retranslateUi
};