From 868530ab52908c695089c5be93171ac6f9f72132 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Tue, 3 Mar 2015 18:02:59 +0300 Subject: [PATCH] Updated UI and added asymetric step selection --- aboutwindow.ui | 9 +- graphics.qrc | 3 + icons/g.png | Bin 0 -> 604 bytes icons/sd.png | Bin 0 -> 1301 bytes icons/settings.png | Bin 0 -> 699 bytes mainwindow.cpp | 14 + mainwindow.h | 4 + mainwindow.ui | 639 +++++++++++++++++++++++++-------------------- 8 files changed, 374 insertions(+), 295 deletions(-) create mode 100644 icons/g.png create mode 100644 icons/sd.png create mode 100644 icons/settings.png diff --git a/aboutwindow.ui b/aboutwindow.ui index 9e1c1c8..064d63c 100644 --- a/aboutwindow.ui +++ b/aboutwindow.ui @@ -34,13 +34,12 @@ p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src=":/icons/logo.png" /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">RepRaptor</span> is a free and open source software for controlling RepRap and similar mashines. This software is distributed by terms of <a href="https://www.gnu.org/licenses/gpl-2.0.html"><span style=" text-decoration: underline; color:#0000ff;">GPL v2 licence.</span></a></p> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;"><br /></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">RepRaptor's main goal is to be as simple as possible and fast, yet functional. This software is being developed as a primary host software for <span style=" font-weight:600;">MGTU MIREA</span> university's 3D printing labratory by</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:repraptor-dev@repraptor.33mail.com"><span style=" text-decoration: underline; color:#0000ff;">Nickolay (aka &quot;NeoTheFox&quot;) Mardanov.</span></a></p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;"> RepRaptor</span> is a free and open source software for controlling RepRap and similar mashines. This software is distributed by terms of <a href="https://www.gnu.org/licenses/gpl-2.0.html"><span style=" text-decoration: underline; color:#0000ff;">GPL v2 licence.</span></a> Some graphical images (Fugue Icons) are distributed by terms of <a href="https://creativecommons.org/licenses/by/3.0/deed.ru"><span style=" text-decoration: underline; color:#0000ff;">Creative Commons 3 licence</span></a>.</p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> RepRaptor's main goal is to be as simple as possible and fast, yet functional. This software is being developed as a primary host software for <span style=" font-weight:600;">MGTU MIREA</span> university's 3D printing labratory by</p> +<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="mailto:repraptor-dev@repraptor.33mail.com"><span style=" text-decoration: underline; color:#0000ff;">Nickolay (aka &quot;NeoTheFox&quot;) Mardanov.</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/NeoTheFox/RepRaptor"><span style=" text-decoration: underline; color:#0000ff;">GitHub</span></a></p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.reprap.org"><span style=" text-decoration: underline; color:#0000ff;">RepRap</span></a></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://www.reprap.org"><span style=" text-decoration: underline; color:#0000ff;">RepRap wiki</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;"><br /></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; text-decoration: underline; color:#0000ff;"><br /></p></body></html> diff --git a/graphics.qrc b/graphics.qrc index 1cfb75b..d10ffa5 100644 --- a/graphics.qrc +++ b/graphics.qrc @@ -4,5 +4,8 @@ icons/logo.png icons/error_a.png icons/error_b.png + icons/g.png + icons/sd.png + icons/settings.png diff --git a/icons/g.png b/icons/g.png new file mode 100644 index 0000000000000000000000000000000000000000..1f943c5a9a6550e44960f2a5bbc40bb35ee3e4fb GIT binary patch literal 604 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztF#hv&aSW-r)f2SQTRKtX|J`!&+Zjy(vo3I5TWR95 zwB+Rzk?DGKUxl!Xv;Sw>F2x~cRifn-E4pdtmTs>F0tE#x3MPwal>`U|>Sqb*&DgEK z?|V`C&K0_~A3oLI`CYgF`|rKt$!VFKGHr=_mOj?}Cu_gu+V5N6FTO1Kke$vh7H{!F zCQ@H4eErHB&#p+>T|Klb_jbhk5V0NNPxJpxn?0*3X`2G?*#%|MpLShsx}CG=V#b2F z^{00RYOTGrJM)koziOmiW3$1GsEhfBOsW^z^2-TY_cc!~l5DN{_j-EKPv+2Rtq$Kg zM4G2wc);hmFhIciWr@`7ZL!@V6@{#ZO}{-NI%7`eoo5owi|#m{E0pInqndM<*c7G} zmk&M@?K68VSoW#d&2O{!f-12jmW52$KYo0E+cK_R=I8-s;aPiLC(KpT{PfRB!T3SW z+^rWEney5BC1mIMcdZw5H~gc-Ia#F2kX!4Hb?TA?gUJF+(>w01dHVF6^n+Ou3$`n+ zyU(P(pnc^V=O_1U4}SkSKj?%XPqK!w0!!N&qqK*ge$42axleb){pp*NXVm=nu{zC@ zvB4@pFe+o-Jg2wes|)z}f97YiHg{O9Oi+7RcIf?|X@)(inkSp@-hGq0_M3v)S&jqF zkGEv}nwEM}?1yf$#Oc_{IiFuWd7@-$_mA_x;H^@9iNlX~2qrM}%1Gpyy?TCvfq{X+ M)78&qol`;+05;(gegFUf literal 0 HcmV?d00001 diff --git a/icons/sd.png b/icons/sd.png new file mode 100644 index 0000000000000000000000000000000000000000..2615d959bf1509a8935abec337815500cfbbde4e GIT binary patch literal 1301 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7BuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFlT0lM3hAM`dB6B=jtVb)aX^@7BGN-jeSKyVsdtB zi9%9pdS;%j()-=}l@u~lY?Z=IeGPmIoKrJ0J*tXQgRA^PlB=?lEmM^2?G$V(tSWK~ za#KqZ6)JLb@`|l0Y?Z*~TICg6frRyy6u?SKvTcwn`Gtf;oFf&jv zGt@IQHZeCh*HJJsFf`CNFw!?P(ls=E?jkSNl+@n@mS3-4yi0i)elN7&Mz%WP7O*;Q$}(iev3c~p?*=;&nOY-((2;9_CwWa?zB1l5>=sVtGX8GEap{uAP1&E&}gZ*93WaXntqd*YJbI zu6-$c)znxm#RqAdKgv($?KZ!|$yc)><=@Zpyk})swypi)-y`s?hP|)+#r&$a4|6_y z&U^lO*Sedh6gXU_r3$$}x>z^8&rNHoOK7N0YGl_Ujb|6;e$SDTNIqhAf+cpIWA#J6 zgGDo!y?p(<>aLW}wC18Eifh*v^LC`?`mElPwooSXj?~ZWu;kvY*L)89YU$Fa8 z+6Bo6+aH;Uol^BQYJE2=`fd7eChB1zK{(JaZG%Q-e|yQz{EjrrIztFvWVhIEGZ*N=iAvWMXQ1P=am7j2SHwl9Fc|d^iQ_ zzrMPYY82I|?3Nte|8%@}; zbg62DTwcS54F)kE-rwJU;#m|6JA3QtlP4{iUhccTK0e>f)U;MjMMZ^o%5Q!%h7*Yf z#>UA%K0oI-llMG*!eh4241>heoxxriO+A!`!1EK0o(g z^W*#b`*Zf!|9|M~2|9$bFA0Lz7-`iWwJMGWM$L!1(EER4a z_}9*=An=2MS77_5O+`;1K4g?SbtWMrL!rLOZAd_#}#EDz;vtOUm)j9LF_V>59 ztYKl-zV0xo|NCodV`G0m|C|mL6&0sBb7Iow+SNYYzjfstepspin->setSingleStep(0.1); + else if(arg1 >=10) ui->stepspin->setSingleStep(10); + else if((int)arg1 >= 1) ui->stepspin->setSingleStep(1); +} + +void MainWindow::on_estepspin_valueChanged(double arg1) +{ + if(arg1 < 1l) ui->estepspin->setSingleStep(0.1); + else if(arg1 >=10) ui->estepspin->setSingleStep(10); + else if((int)arg1 >= 1) ui->estepspin->setSingleStep(1); +} diff --git a/mainwindow.h b/mainwindow.h index bd2a420..52c10cb 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -120,6 +120,10 @@ private slots: void checkSDStatus(); void updateSDStatus(); + void on_stepspin_valueChanged(double arg1); + + void on_estepspin_valueChanged(double arg1); + signals: void sdReady(); }; diff --git a/mainwindow.ui b/mainwindow.ui index e2427c7..438ce59 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -61,296 +61,6 @@ - - - - - 0 - 0 - - - - - 261 - 500 - - - - Control - - - true - - - - - - - 0 - 0 - - - - H X - - - - - - - X- - - - - - - - H Y - - - - - - - H Z - - - - - - - - - - 0.100000000000000 - - - 150.000000000000000 - - - - - - - SET - - - - - - - E tmp - - - - - - - B tmp - - - - - - - SET - - - - - - - OFF - - - - - - - FAN ON - - - - - - - FAN OFF - - - - - - - ATX ON - - - - - - - E+ - - - - - - - ATX OFF - - - - - - - Z+ - - - - - - - E0 - - - - - - - C - - - - - - - Y+ - - - - - - - Y- - - - - - - - E- - - - - - - - Z- - - - - - - - 500 - - - - - - - 500 - - - - - - - Home All - - - - - - - Release - - - - - - - - - - 0.100000000000000 - - - 100.000000000000000 - - - 1.000000000000000 - - - - - - - X+ - - - - - - - - 16777215 - 15 - - - - Step - - - - - - - - 16777215 - 15 - - - - E Step - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - OFF - - - - - - @@ -511,6 +221,299 @@ + + + + + 0 + 0 + + + + + 261 + 500 + + + + Control + + + true + + + + + + + 0 + 0 + + + + H X + + + + + + + X- + + + + + + + H Y + + + + + + + H Z + + + + + + + + + + 0.100000000000000 + + + 150.000000000000000 + + + 1.000000000000000 + + + + + + + B tmp + + + + + + + E tmp + + + + + + + SET + + + + + + + SET + + + + + + + OFF + + + + + + + FAN ON + + + + + + + FAN OFF + + + + + + + ATX ON + + + + + + + E+ + + + + + + + Z+ + + + + + + + ATX OFF + + + + + + + E0 + + + + + + + C + + + + + + + Y+ + + + + + + + Y- + + + + + + + E- + + + + + + + Z- + + + + + + + 500 + + + + + + + 500 + + + + + + + Home All + + + + + + + Release + + + + + + + X+ + + + + + + + + 16777215 + 15 + + + + Step + + + + + + + + + + 0.100000000000000 + + + 100.000000000000000 + + + 1.000000000000000 + + + + + + + + 16777215 + 15 + + + + E Step + + + + + + + OFF + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 20 + + + + + + + @@ -553,7 +556,55 @@ + + + + 0 + 0 + + + + + 16777215 + 26 + + + + Toolbar + + + true + + + Qt::AllToolBarAreas + + + + 16 + 16 + + + + Qt::ToolButtonTextOnly + + + true + + + TopToolBarArea + + + false + + + + + + + + :/icons/g.png:/icons/g.png + Open... @@ -578,6 +629,10 @@ + + + :/icons/settings.png:/icons/settings.png + Settings @@ -594,6 +649,10 @@ true + + + :/icons/sd.png:/icons/sd.png + Print from SD...