Commit 60daac6a authored by Adam Honse's avatar Adam Honse

Update version to 4.00 and move version definition to QMake project

parent 47f2a72b
......@@ -16,9 +16,26 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
#-----------------------------------------------------------------------#
# Application Configuration #
#-----------------------------------------------------------------------#
VERSION = 4.00
TARGET = KeyboardVisualizer
TEMPLATE = app
#-----------------------------------------------------------------------#
# Automatically generated build information #
#-----------------------------------------------------------------------#
win32:BUILDDATE = $$system(date /t)
unix:BUILDDATE = $$system(date -R)
GIT_COMMIT_ID = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD)
GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD)
GIT_BRANCH = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD)
DEFINES += \
VERSION_STRING=\\"\"\"$$VERSION\\"\"\" \
BUILDDATE_STRING=\\"\"\"$$BUILDDATE\\"\"\" \
GIT_COMMIT_ID=\\"\"\"$$GIT_COMMIT_ID\\"\"\" \
GIT_COMMIT_DATE=\\"\"\"$$GIT_COMMIT_DATE\\"\"\" \
GIT_BRANCH=\\"\"\"$$GIT_BRANCH\\"\"\" \
#-----------------------------------------------------------------------#
# Keyboard Visualizer #
#-----------------------------------------------------------------------#
......
......@@ -25,6 +25,11 @@ KeyboardVisDlg::KeyboardVisDlg(QWidget *parent) : QMainWindow(parent), ui(new Ke
firstrun = true;
ui->setupUi(this);
std::string titleString = "Keyboard Visualizer ";
titleString.append(VERSION_STRING);
setWindowTitle(titleString.c_str());
QIcon icon(":Icon.png");
setWindowIcon(icon);
......
......@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Keyboard Visualizer - OpenRGB SDK Dev Build</string>
<string>Keyboard Visualizer</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QGridLayout" name="gridLayout">
......
......@@ -230,20 +230,6 @@ bool parse_command_line(int argc, char *argv[])
printf(" client - Configure this instance as a client for synchronization\r\n");
printf(" - Takes the IP/hostname of the server and port as arguments,\r\n");
printf(" - i.e. client=192.168.1.100,1234\r\n");
printf(" ledstrip - LED config strings :\r\n");
printf(" - Serial : ledstrip=port,baud,num_leds\r\n");
printf(" - (ex.ledstrip=COM1,115200,30)\r\n");
printf(" - UDP : ledstrip=udp:client,port,num_leds\r\n");
printf(" - (ex.ledstrip=udp:192.168.1.5,1234,30)\r\n");
printf(" xmas - COM port, ex. xmas=COM2\r\n");
printf(" hueplus - HUE+ config:\r\n");
printf(" - hueplus=port,channel,num_leds\r\n");
printf(" - channel: 0 -> both channels, 1 -> channel 1, 2 -> channel 2\r\n");
printf(" - num_leds: Fans * 8 ex. 3 Fans -> 24\r\n");
printf(" - Important for Fans: If you have connected fans on both channels only count the fans on the channel with the most fans\r\n");
printf(" ex. 3 Fans on Ch. 1 4 Fans on CH. 2: num_leds 32 for the 4 Fans\r\n");
printf(" For best Visualizer results don`t connect on one channel 3 fans more than on the other channel\r\n");
printf(" - (ex. hueplus=COM4,1,24\r\n");
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment