Skip to content

Commit

Permalink
Prepare version 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvi committed Aug 22, 2015
1 parent c103dcc commit dd63bec
Show file tree
Hide file tree
Showing 10 changed files with 132 additions and 76 deletions.
3 changes: 3 additions & 0 deletions combobox.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// This file is a part of "grblControl" application.
// Copyright 2015 Hayrullin Denis Ravilevich

#include <QDebug>
#include <QKeyEvent>
#include "combobox.h"
Expand Down
3 changes: 3 additions & 0 deletions combobox.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// This file is a part of "grblControl" application.
// Copyright 2015 Hayrullin Denis Ravilevich

#ifndef COMBOBOX_H
#define COMBOBOX_H

Expand Down
2 changes: 2 additions & 0 deletions frmabout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ frmAbout::frmAbout(QWidget *parent) :
{
ui->setupUi(this);

ui->lblAbout->setText(ui->lblAbout->text().arg(qApp->applicationVersion()));

QFile file(qApp->applicationDirPath() + "/LICENSE");

if (file.open(QIODevice::ReadOnly)) {
Expand Down
4 changes: 2 additions & 2 deletions frmabout.ui
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="lblAbout">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;grblControl&lt;br/&gt;Version: 0.2&lt;br/&gt;License: GNU GENERAL PUBLIC LICENSE&lt;br/&gt;Visit: &lt;a href=&quot;https://github.com/Denvi/grblControl/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/Denvi/grblControl/&lt;br/&gt;&lt;/span&gt;&lt;/a&gt;© 2015 Hayrullin Denis Ravilevich&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;grblControl&lt;br/&gt;Version: %1&lt;br/&gt;License: GNU GENERAL PUBLIC LICENSE&lt;br/&gt;Visit: &lt;a href=&quot;https://github.com/Denvi/grblControl/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://github.com/Denvi/grblControl/&lt;br/&gt;&lt;/span&gt;&lt;/a&gt;© 2015 Hayrullin Denis Ravilevich&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
Expand Down
8 changes: 4 additions & 4 deletions frmmain.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>905</width>
<height>976</height>
<width>788</width>
<height>891</height>
</rect>
</property>
<property name="palette">
Expand Down Expand Up @@ -1935,8 +1935,8 @@ QComboBox::drop-down {
<rect>
<x>0</x>
<y>0</y>
<width>905</width>
<height>26</height>
<width>788</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="mnuFile">
Expand Down
37 changes: 35 additions & 2 deletions frmsettings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>366</width>
<height>679</height>
<width>321</width>
<height>579</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -44,6 +44,12 @@ QSpinBox, QDoubleSpinBox {
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Connection</string>
</property>
Expand Down Expand Up @@ -129,6 +135,12 @@ QSpinBox, QDoubleSpinBox {
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Visualizer</string>
</property>
Expand Down Expand Up @@ -309,6 +321,12 @@ QSpinBox, QDoubleSpinBox {
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Tool graphic representation</string>
</property>
Expand Down Expand Up @@ -451,6 +469,12 @@ QSpinBox, QDoubleSpinBox {
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>GRBL</string>
</property>
Expand Down Expand Up @@ -680,6 +704,9 @@ QSpinBox, QDoubleSpinBox {
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="placeholderText">
<string>Command 1; command 2; ...</string>
</property>
</widget>
</item>
</layout>
Expand Down Expand Up @@ -736,6 +763,12 @@ QSpinBox, QDoubleSpinBox {
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Console</string>
</property>
Expand Down
4 changes: 4 additions & 0 deletions grbl_control.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ QT = core gui opengl serialport winextras

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

VERSION = 0.3

DEFINES += APP_VERSION=\\\"$$VERSION\\\"

TARGET = grbl_control
TEMPLATE = app

Expand Down
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ int main(int argc, char *argv[])
if (baseTranslator->load(baseTranslationFileName)) a.installTranslator(baseTranslator); else delete baseTranslator;
}

a.setApplicationVersion(APP_VERSION);

frmMain w;
w.show();

Expand Down
Binary file modified translations/grblControl_ru.qm
Binary file not shown.
Loading

0 comments on commit dd63bec

Please sign in to comment.