From 38d8f89f2f2b27fb25e0b4b9a34b45b76f6dc6f2 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Mon, 13 Feb 2017 16:06:14 +1030 Subject: added fade ability to Arduino sketch, using psuedo threading. Rework of serial communication also started, the Qt interface is currently under development to support fading. --- qt/build-RGBController-Desktop-Debug/Makefile | 247 ++++++++++++++ .../ui_controllerwindow.h | 357 +++++++++++++++++++++ 2 files changed, 604 insertions(+) create mode 100644 qt/build-RGBController-Desktop-Debug/Makefile create mode 100644 qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h (limited to 'qt/build-RGBController-Desktop-Debug') diff --git a/qt/build-RGBController-Desktop-Debug/Makefile b/qt/build-RGBController-Desktop-Debug/Makefile new file mode 100644 index 0000000..7c3deb5 --- /dev/null +++ b/qt/build-RGBController-Desktop-Debug/Makefile @@ -0,0 +1,247 @@ +############################################################################# +# Makefile for building: RGBController +# Generated by qmake (2.01a) (Qt 4.8.7) on: Tue Jan 17 02:39:24 2017 +# Project: ../RGBController/RGBController.pro +# Template: app +# Command: /usr/lib/qt4/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I../RGBController -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I../RGBController -I. +LINK = g++ +LFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro +LIBS = $(SUBLIBS) -L/usr/lib -lQtGui -lQtNetwork -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/lib/qt4/bin/qmake +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = ../RGBController/main.cpp \ + ../RGBController/controllerwindow.cpp \ + ../RGBController/serial_communication.cpp moc_controllerwindow.cpp +OBJECTS = main.o \ + controllerwindow.o \ + serial_communication.o \ + moc_controllerwindow.o +DIST = /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + ../RGBController/RGBController.pro +QMAKE_TARGET = RGBController +DESTDIR = +TARGET = RGBController + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): ui_controllerwindow.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9][^0-9]*\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true + +Makefile: ../RGBController/RGBController.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \ + /usr/share/qt4/mkspecs/common/linux.conf \ + /usr/share/qt4/mkspecs/common/gcc-base.conf \ + /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \ + /usr/share/qt4/mkspecs/common/g++-base.conf \ + /usr/share/qt4/mkspecs/common/g++-unix.conf \ + /usr/share/qt4/mkspecs/qconfig.pri \ + /usr/share/qt4/mkspecs/features/qt_functions.prf \ + /usr/share/qt4/mkspecs/features/qt_config.prf \ + /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /usr/share/qt4/mkspecs/features/default_pre.prf \ + /usr/share/qt4/mkspecs/features/debug.prf \ + /usr/share/qt4/mkspecs/features/default_post.prf \ + /usr/share/qt4/mkspecs/features/shared.prf \ + /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \ + /usr/share/qt4/mkspecs/features/warn_on.prf \ + /usr/share/qt4/mkspecs/features/qt.prf \ + /usr/share/qt4/mkspecs/features/unix/thread.prf \ + /usr/share/qt4/mkspecs/features/moc.prf \ + /usr/share/qt4/mkspecs/features/resources.prf \ + /usr/share/qt4/mkspecs/features/uic.prf \ + /usr/share/qt4/mkspecs/features/yacc.prf \ + /usr/share/qt4/mkspecs/features/lex.prf \ + /usr/share/qt4/mkspecs/features/include_source_dir.prf \ + /usr/lib/libQtGui.prl \ + /usr/lib/libQtNetwork.prl \ + /usr/lib/libQtCore.prl + $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro +/usr/share/qt4/mkspecs/common/unix.conf: +/usr/share/qt4/mkspecs/common/linux.conf: +/usr/share/qt4/mkspecs/common/gcc-base.conf: +/usr/share/qt4/mkspecs/common/gcc-base-unix.conf: +/usr/share/qt4/mkspecs/common/g++-base.conf: +/usr/share/qt4/mkspecs/common/g++-unix.conf: +/usr/share/qt4/mkspecs/qconfig.pri: +/usr/share/qt4/mkspecs/features/qt_functions.prf: +/usr/share/qt4/mkspecs/features/qt_config.prf: +/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/usr/share/qt4/mkspecs/features/default_pre.prf: +/usr/share/qt4/mkspecs/features/debug.prf: +/usr/share/qt4/mkspecs/features/default_post.prf: +/usr/share/qt4/mkspecs/features/shared.prf: +/usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf: +/usr/share/qt4/mkspecs/features/warn_on.prf: +/usr/share/qt4/mkspecs/features/qt.prf: +/usr/share/qt4/mkspecs/features/unix/thread.prf: +/usr/share/qt4/mkspecs/features/moc.prf: +/usr/share/qt4/mkspecs/features/resources.prf: +/usr/share/qt4/mkspecs/features/uic.prf: +/usr/share/qt4/mkspecs/features/yacc.prf: +/usr/share/qt4/mkspecs/features/lex.prf: +/usr/share/qt4/mkspecs/features/include_source_dir.prf: +/usr/lib/libQtGui.prl: +/usr/lib/libQtNetwork.prl: +/usr/lib/libQtCore.prl: +qmake: FORCE + @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../RGBController/RGBController.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/RGBController1.0.0 || $(MKDIR) .tmp/RGBController1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/controllerwindow.h ../RGBController/serial_communication.h .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/main.cpp ../RGBController/controllerwindow.cpp ../RGBController/serial_communication.cpp .tmp/RGBController1.0.0/ && $(COPY_FILE) --parents ../RGBController/controllerwindow.ui .tmp/RGBController1.0.0/ && (cd `dirname .tmp/RGBController1.0.0` && $(TAR) RGBController1.0.0.tar RGBController1.0.0 && $(COMPRESS) RGBController1.0.0.tar) && $(MOVE) `dirname .tmp/RGBController1.0.0`/RGBController1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/RGBController1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_controllerwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_controllerwindow.cpp +moc_controllerwindow.cpp: ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h \ + ../RGBController/controllerwindow.h + /usr/lib/qt4/bin/moc $(DEFINES) $(INCPATH) ../RGBController/controllerwindow.h -o moc_controllerwindow.cpp + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_controllerwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_controllerwindow.h +ui_controllerwindow.h: ../RGBController/controllerwindow.ui + /usr/lib/qt4/bin/uic ../RGBController/controllerwindow.ui -o ui_controllerwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: ../RGBController/main.cpp ../RGBController/controllerwindow.h \ + ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../RGBController/main.cpp + +controllerwindow.o: ../RGBController/controllerwindow.cpp ../RGBController/controllerwindow.h \ + ../RGBController/serial_communication.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o controllerwindow.o ../RGBController/controllerwindow.cpp + +serial_communication.o: ../RGBController/serial_communication.cpp ../RGBController/serial_communication.h \ + ../RGBController/controllerwindow.h \ + ../RGBController/ui_controllerwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o serial_communication.o ../RGBController/serial_communication.cpp + +moc_controllerwindow.o: moc_controllerwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_controllerwindow.o moc_controllerwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h new file mode 100644 index 0000000..57f3a75 --- /dev/null +++ b/qt/build-RGBController-Desktop-Debug/ui_controllerwindow.h @@ -0,0 +1,357 @@ +/******************************************************************************** +** Form generated from reading UI file 'controllerwindow.ui' +** +** Created by: Qt User Interface Compiler version 4.8.7 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_CONTROLLERWINDOW_H +#define UI_CONTROLLERWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_controllerWindow +{ +public: + QWidget *centralWidget; + QGridLayout *gridLayout_2; + QLabel *arduino_status_label; + QLabel *arduino_port_label; + QComboBox *arduino_port_dropdown; + QPushButton *refresh_port_button; + QSlider *r_slider; + QPushButton *connect_button; + QPushButton *disconnect_button; + QLabel *rgb_label; + QComboBox *presets_dropdown; + QPushButton *red_button; + QSlider *g_slider; + QPushButton *green_button; + QSlider *b_slider; + QPushButton *blue_button; + QPushButton *off_button; + QPushButton *set_preset_button; + QPushButton *reload_preset_button; + QLineEdit *preset_name_textbox; + QPushButton *preset_save_button; + QLabel *presets_label; + QLabel *status_label; + QPushButton *preset_delete_button; + QGridLayout *gridLayout; + QPushButton *pushButton_3; + QSpinBox *spinBox; + QSpinBox *spinBox_4; + QSpinBox *spinBox_3; + QLabel *label; + QSpinBox *spinBox_2; + QLabel *label_2; + QSpinBox *spinBox_6; + QSpinBox *spinBox_5; + QPushButton *pushButton_2; + QPushButton *pushButton; + QLabel *label_3; + QLabel *label_4; + QLabel *info_log_label; + QTextEdit *info_log_textarea; + QSlider *horizontalSlider; + QPushButton *pushButton_4; + + void setupUi(QMainWindow *controllerWindow) + { + if (controllerWindow->objectName().isEmpty()) + controllerWindow->setObjectName(QString::fromUtf8("controllerWindow")); + controllerWindow->setWindowModality(Qt::WindowModal); + controllerWindow->resize(227, 499); + centralWidget = new QWidget(controllerWindow); + centralWidget->setObjectName(QString::fromUtf8("centralWidget")); + gridLayout_2 = new QGridLayout(centralWidget); + gridLayout_2->setSpacing(6); + gridLayout_2->setContentsMargins(11, 11, 11, 11); + gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); + arduino_status_label = new QLabel(centralWidget); + arduino_status_label->setObjectName(QString::fromUtf8("arduino_status_label")); + + gridLayout_2->addWidget(arduino_status_label, 0, 1, 1, 1); + + arduino_port_label = new QLabel(centralWidget); + arduino_port_label->setObjectName(QString::fromUtf8("arduino_port_label")); + arduino_port_label->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(arduino_port_label, 1, 0, 1, 1); + + arduino_port_dropdown = new QComboBox(centralWidget); + arduino_port_dropdown->setObjectName(QString::fromUtf8("arduino_port_dropdown")); + + gridLayout_2->addWidget(arduino_port_dropdown, 1, 1, 1, 1); + + refresh_port_button = new QPushButton(centralWidget); + refresh_port_button->setObjectName(QString::fromUtf8("refresh_port_button")); + + gridLayout_2->addWidget(refresh_port_button, 2, 1, 1, 1); + + r_slider = new QSlider(centralWidget); + r_slider->setObjectName(QString::fromUtf8("r_slider")); + r_slider->setMinimumSize(QSize(120, 0)); + r_slider->setMaximumSize(QSize(120, 16777215)); + r_slider->setMaximum(255); + r_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(r_slider, 5, 0, 1, 1); + + connect_button = new QPushButton(centralWidget); + connect_button->setObjectName(QString::fromUtf8("connect_button")); + + gridLayout_2->addWidget(connect_button, 3, 0, 1, 1); + + disconnect_button = new QPushButton(centralWidget); + disconnect_button->setObjectName(QString::fromUtf8("disconnect_button")); + + gridLayout_2->addWidget(disconnect_button, 3, 1, 1, 1); + + rgb_label = new QLabel(centralWidget); + rgb_label->setObjectName(QString::fromUtf8("rgb_label")); + + gridLayout_2->addWidget(rgb_label, 4, 0, 1, 1); + + presets_dropdown = new QComboBox(centralWidget); + presets_dropdown->setObjectName(QString::fromUtf8("presets_dropdown")); + presets_dropdown->setMinimumSize(QSize(120, 0)); + + gridLayout_2->addWidget(presets_dropdown, 10, 0, 1, 1); + + red_button = new QPushButton(centralWidget); + red_button->setObjectName(QString::fromUtf8("red_button")); + + gridLayout_2->addWidget(red_button, 5, 1, 1, 1); + + g_slider = new QSlider(centralWidget); + g_slider->setObjectName(QString::fromUtf8("g_slider")); + g_slider->setMinimumSize(QSize(120, 0)); + g_slider->setMaximumSize(QSize(120, 16777215)); + g_slider->setMaximum(255); + g_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(g_slider, 6, 0, 1, 1); + + green_button = new QPushButton(centralWidget); + green_button->setObjectName(QString::fromUtf8("green_button")); + + gridLayout_2->addWidget(green_button, 6, 1, 1, 1); + + b_slider = new QSlider(centralWidget); + b_slider->setObjectName(QString::fromUtf8("b_slider")); + b_slider->setMinimumSize(QSize(120, 0)); + b_slider->setMaximumSize(QSize(120, 16777215)); + b_slider->setMaximum(255); + b_slider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(b_slider, 7, 0, 1, 1); + + blue_button = new QPushButton(centralWidget); + blue_button->setObjectName(QString::fromUtf8("blue_button")); + + gridLayout_2->addWidget(blue_button, 7, 1, 1, 1); + + off_button = new QPushButton(centralWidget); + off_button->setObjectName(QString::fromUtf8("off_button")); + + gridLayout_2->addWidget(off_button, 8, 1, 1, 1); + + set_preset_button = new QPushButton(centralWidget); + set_preset_button->setObjectName(QString::fromUtf8("set_preset_button")); + + gridLayout_2->addWidget(set_preset_button, 10, 1, 1, 1); + + reload_preset_button = new QPushButton(centralWidget); + reload_preset_button->setObjectName(QString::fromUtf8("reload_preset_button")); + + gridLayout_2->addWidget(reload_preset_button, 11, 0, 1, 1); + + preset_name_textbox = new QLineEdit(centralWidget); + preset_name_textbox->setObjectName(QString::fromUtf8("preset_name_textbox")); + + gridLayout_2->addWidget(preset_name_textbox, 12, 0, 1, 1); + + preset_save_button = new QPushButton(centralWidget); + preset_save_button->setObjectName(QString::fromUtf8("preset_save_button")); + + gridLayout_2->addWidget(preset_save_button, 12, 1, 1, 1); + + presets_label = new QLabel(centralWidget); + presets_label->setObjectName(QString::fromUtf8("presets_label")); + + gridLayout_2->addWidget(presets_label, 9, 0, 1, 1); + + status_label = new QLabel(centralWidget); + status_label->setObjectName(QString::fromUtf8("status_label")); + + gridLayout_2->addWidget(status_label, 0, 0, 1, 1); + + preset_delete_button = new QPushButton(centralWidget); + preset_delete_button->setObjectName(QString::fromUtf8("preset_delete_button")); + + gridLayout_2->addWidget(preset_delete_button, 13, 1, 1, 1); + + gridLayout = new QGridLayout(); + gridLayout->setSpacing(6); + gridLayout->setObjectName(QString::fromUtf8("gridLayout")); + pushButton_3 = new QPushButton(centralWidget); + pushButton_3->setObjectName(QString::fromUtf8("pushButton_3")); + + gridLayout->addWidget(pushButton_3, 4, 3, 1, 1); + + spinBox = new QSpinBox(centralWidget); + spinBox->setObjectName(QString::fromUtf8("spinBox")); + spinBox->setMaximum(255); + + gridLayout->addWidget(spinBox, 4, 0, 1, 1); + + spinBox_4 = new QSpinBox(centralWidget); + spinBox_4->setObjectName(QString::fromUtf8("spinBox_4")); + spinBox_4->setMaximum(255); + + gridLayout->addWidget(spinBox_4, 1, 2, 1, 1); + + spinBox_3 = new QSpinBox(centralWidget); + spinBox_3->setObjectName(QString::fromUtf8("spinBox_3")); + spinBox_3->setMaximum(255); + + gridLayout->addWidget(spinBox_3, 3, 0, 1, 1); + + label = new QLabel(centralWidget); + label->setObjectName(QString::fromUtf8("label")); + + gridLayout->addWidget(label, 1, 1, 1, 1); + + spinBox_2 = new QSpinBox(centralWidget); + spinBox_2->setObjectName(QString::fromUtf8("spinBox_2")); + spinBox_2->setMaximum(255); + + gridLayout->addWidget(spinBox_2, 1, 0, 1, 1); + + label_2 = new QLabel(centralWidget); + label_2->setObjectName(QString::fromUtf8("label_2")); + + gridLayout->addWidget(label_2, 3, 1, 1, 1); + + spinBox_6 = new QSpinBox(centralWidget); + spinBox_6->setObjectName(QString::fromUtf8("spinBox_6")); + spinBox_6->setMaximum(255); + + gridLayout->addWidget(spinBox_6, 4, 2, 1, 1); + + spinBox_5 = new QSpinBox(centralWidget); + spinBox_5->setObjectName(QString::fromUtf8("spinBox_5")); + spinBox_5->setMaximum(255); + + gridLayout->addWidget(spinBox_5, 3, 2, 1, 1); + + pushButton_2 = new QPushButton(centralWidget); + pushButton_2->setObjectName(QString::fromUtf8("pushButton_2")); + + gridLayout->addWidget(pushButton_2, 3, 3, 1, 1); + + pushButton = new QPushButton(centralWidget); + pushButton->setObjectName(QString::fromUtf8("pushButton")); + + gridLayout->addWidget(pushButton, 1, 3, 1, 1); + + label_3 = new QLabel(centralWidget); + label_3->setObjectName(QString::fromUtf8("label_3")); + + gridLayout->addWidget(label_3, 4, 1, 1, 1); + + label_4 = new QLabel(centralWidget); + label_4->setObjectName(QString::fromUtf8("label_4")); + + gridLayout->addWidget(label_4, 0, 0, 1, 1); + + + gridLayout_2->addLayout(gridLayout, 14, 0, 1, 2); + + info_log_label = new QLabel(centralWidget); + info_log_label->setObjectName(QString::fromUtf8("info_log_label")); + + gridLayout_2->addWidget(info_log_label, 16, 0, 1, 1); + + info_log_textarea = new QTextEdit(centralWidget); + info_log_textarea->setObjectName(QString::fromUtf8("info_log_textarea")); + + gridLayout_2->addWidget(info_log_textarea, 17, 0, 1, 2); + + horizontalSlider = new QSlider(centralWidget); + horizontalSlider->setObjectName(QString::fromUtf8("horizontalSlider")); + horizontalSlider->setMinimum(10); + horizontalSlider->setMaximum(500); + horizontalSlider->setOrientation(Qt::Horizontal); + + gridLayout_2->addWidget(horizontalSlider, 15, 0, 1, 1); + + pushButton_4 = new QPushButton(centralWidget); + pushButton_4->setObjectName(QString::fromUtf8("pushButton_4")); + + gridLayout_2->addWidget(pushButton_4, 15, 1, 1, 1); + + controllerWindow->setCentralWidget(centralWidget); + + retranslateUi(controllerWindow); + + QMetaObject::connectSlotsByName(controllerWindow); + } // setupUi + + void retranslateUi(QMainWindow *controllerWindow) + { + controllerWindow->setWindowTitle(QApplication::translate("controllerWindow", "RGB Controller", 0, QApplication::UnicodeUTF8)); + arduino_status_label->setText(QApplication::translate("controllerWindow", "Disconnected", 0, QApplication::UnicodeUTF8)); + arduino_port_label->setText(QApplication::translate("controllerWindow", "Arduino port", 0, QApplication::UnicodeUTF8)); + refresh_port_button->setText(QApplication::translate("controllerWindow", "Refresh", 0, QApplication::UnicodeUTF8)); + connect_button->setText(QApplication::translate("controllerWindow", "Connect", 0, QApplication::UnicodeUTF8)); + disconnect_button->setText(QApplication::translate("controllerWindow", "Disconnect", 0, QApplication::UnicodeUTF8)); + rgb_label->setText(QApplication::translate("controllerWindow", "RGB colors", 0, QApplication::UnicodeUTF8)); + red_button->setText(QApplication::translate("controllerWindow", "Red", 0, QApplication::UnicodeUTF8)); + green_button->setText(QApplication::translate("controllerWindow", "Green", 0, QApplication::UnicodeUTF8)); + blue_button->setText(QApplication::translate("controllerWindow", "Blue", 0, QApplication::UnicodeUTF8)); + off_button->setText(QApplication::translate("controllerWindow", "Off", 0, QApplication::UnicodeUTF8)); + set_preset_button->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + reload_preset_button->setText(QApplication::translate("controllerWindow", "Reload", 0, QApplication::UnicodeUTF8)); + preset_save_button->setText(QApplication::translate("controllerWindow", "Save", 0, QApplication::UnicodeUTF8)); + presets_label->setText(QApplication::translate("controllerWindow", "Presets", 0, QApplication::UnicodeUTF8)); + status_label->setText(QApplication::translate("controllerWindow", "Status", 0, QApplication::UnicodeUTF8)); + preset_delete_button->setText(QApplication::translate("controllerWindow", "Delete", 0, QApplication::UnicodeUTF8)); + pushButton_3->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + label->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + label_2->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + pushButton_2->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + pushButton->setText(QApplication::translate("controllerWindow", "Set", 0, QApplication::UnicodeUTF8)); + label_3->setText(QApplication::translate("controllerWindow", "to", 0, QApplication::UnicodeUTF8)); + label_4->setText(QApplication::translate("controllerWindow", "Fade", 0, QApplication::UnicodeUTF8)); + info_log_label->setText(QApplication::translate("controllerWindow", "Information log", 0, QApplication::UnicodeUTF8)); + pushButton_4->setText(QApplication::translate("controllerWindow", "Speed", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class controllerWindow: public Ui_controllerWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_CONTROLLERWINDOW_H -- cgit v1.2.3