Refactor Part7
AbandonedPublic

Authored by rizzitello on Mar 18 2018, 7:35 PM.

Details

Reviewers
patrickelectric
tcanabrava
laysrodrigues
Commits
R231:1ecf630c932d: Fix position of the Needles
R231:334205e5b929: Wire for adjusting temps when they changes
R231:0b7f6e0db926: Fix Crash
R231:eb3b0e10d28d: Find Qwt6 and use it.
R231:c77d258dfcfc: Implement arrow keys for fine tuning the thermo
R231:63a55c396250: Wire for adjusting temps when they changes
R231:9cea3cfb3f4d: Display current and target texts
R231:6beb89e8f08b: Clean some extra lines Shade the pie better
R231:c4d4957f9c8a: Start the thermo-shading
R231:49426f028feb: Clean some extra lines Shade the pie better
R231:49e5b15a9295: FindQwt cmake module
R231:699337e2a331: Add label to thermowidget
R231:74db36b7bbc0: Find Qwt6 and use it.
R231:53ef2ba62a8f: Start the thermo-shading
R231:d6fed5d469b4: Add label to thermowidget
R231:29b03bf9ec7f: Refactor of BedExtruderWidget
R231:8e2fd4f8bd87: Shade of the Thermo partially done
R231:9119303719d4: Add user Hints for input area
R231:07217b0acdd8: Display current and target texts
R231:cdf4ae3eee13: Implement mouse wheel for the thermo
R231:6d4937efb55d: Add thermo widget to display the temperature
R231:7001e58ee078: Implemented Page Up / Down handling
R231:20861a8fa19c: Shade of the Thermo partially done
R231:590e8ddb645c: Adjust Labels and Add Copyright info
R231:a533c12d3c9a: Adjust Labels and Add Copyright info
R231:b8810d4f1b9c: Fix Crash
R231:b6de14254d3b: FindQwt cmake module
R231:010740d6f03e: Refactor of BedExtruderWidget
R231:16ee9b65a323: Fix position of the Needles
R231:0f3fcac8a2f2: Implement arrow keys for fine tuning the thermo
R231:4e7f11aab5f5: finish the shade on the thermo
R231:6b45dbbe9481: Use the keyboard to set the values for the Thermo
R231:9a9928515454: finish the shade on the thermo
R231:8368682f98be: Implement mouse wheel for the thermo
R231:c498357e7b06: Implemented Page Up / Down handling
R231:6f0d67d3fcfe: Add thermo widget to display the temperature
R231:c8c06ddf0337: Textcursor with basic editing
Summary

Find Qwt6 and use it.

Add thermo widget to display the temperature

Fix position of the Needles

Wire for adjusting temps when they changes

Signed-off-by: Chris Rizzitello <rizzitello@kde.org>

Use the keyboard to set the values for the Thermo

Fix Crash

Implement arrow keys for fine tuning the thermo

Implemented Page Up / Down handling

Display current and target texts

Implement mouse wheel for the thermo

Start the thermo-shading

Shade of the Thermo partially done

finish the shade on the thermo

Clean some extra lines Shade the pie better

Signed-off-by: Chris Rizzitello <rizzitello@kde.org>

Refactor of BedExtruderWidget

  • Remove the use of ui file
  • Remove non used includes
  • Remove non used methods
  • Build a simple layout that adds the thermos

and a widget to control the active extruder

  • The 'andWait' feature for now it's not implemented.

The signal to change bed/extruder temps goes with a 'false'
value.

Signed-off-by: Lays Rodrigues <laysrodriguessilva@gmail.com>

Add label to thermowidget

  • Added on constructor a QString that will be the name displayed

on the label inside the dial.

  • Use color for the text based on the pallet of the system

Signed-off-by: Lays Rodrigues <laysrodriguessilva@gmail.com>

Adjust Labels and Add Copyright info

Signed-off-by: Chris Rizzitello <rizzitello@kde.org>

Diff Detail

Repository
R231 Atelier
Branch
part7
Lint
No Linters Available
Unit
No Unit Test Coverage
laysrodrigues requested review of this revision.Mar 18 2018, 7:35 PM
laysrodrigues created this revision.
laysrodrigues retitled this revision from Add ThermoWidget FindQwt cmake module to Add ThermoWidgetFindQwt cmake module.Mar 18 2018, 7:43 PM
patrickelectric requested changes to this revision.Mar 18 2018, 8:08 PM
patrickelectric added inline comments.
cmake/FindQwt6.cmake
2

From where this file come from ?

src/widgets/bedextruderwidget.h
52

space = space

src/widgets/thermowidget.cpp
39โ€“40

Move to constructor initialization list.

108

Where this font() comes from ?

142

why not y()/15 ?
delta value is a multiple of 120; i.e., 120 units * 1/8 = 15 degrees.

163

Why not remove dir ?

src/widgets/thermowidget.h
21

pragma once

40

try to keep an alphabetic order.

47

variables name ?

57

Put double after or before the classes to maintain the memory alignment.

This revision now requires changes to proceed.Mar 18 2018, 8:08 PM
rizzitello added inline comments.Mar 19 2018, 12:38 PM
src/widgets/thermowidget.cpp
108

font() is the current font used by the application.

src/widgets/thermowidget.cpp
108

It comes from QPainter, I was searching again today, this is inherent by the Qwt item.

rizzitello added inline comments.Mar 19 2018, 1:19 PM
src/widgets/thermowidget.cpp
108

QWidget::font() Any subclass of QWidget will have this property.

rizzitello added inline comments.Mar 21 2018, 1:16 AM
src/widgets/thermowidget.cpp
163

This function overrides QWTDial::drawNeedle.

This revision was not accepted when it landed; it landed in state Needs Revision.Mar 21 2018, 10:42 AM
Closed by commit R231:49e5b15a9295: FindQwt cmake module (authored by tcanabrava, committed by Lays Rodrigues <laysrodriguessilva@gmail.com>). ยท Explain Why
This revision was automatically updated to reflect the committed changes.
laysrodrigues reopened this revision.Mar 21 2018, 11:03 AM
rizzitello updated this revision to Diff 30366.Mar 24 2018, 3:08 AM
  • Add patricks suggestions
rizzitello updated this revision to Diff 30367.Mar 24 2018, 3:17 AM
  • more fixes
rizzitello commandeered this revision.Mar 25 2018, 1:37 AM
rizzitello edited reviewers, added: laysrodrigues; removed: rizzitello.
rizzitello marked 10 inline comments as done.
rizzitello marked an inline comment as done.Mar 25 2018, 1:39 AM
rizzitello updated this revision to Diff 30549.Mar 25 2018, 7:25 PM
  • Add user Hints for input area
rizzitello retitled this revision from Add ThermoWidgetFindQwt cmake module to Refactor Part7.Mar 25 2018, 7:26 PM
laysrodrigues requested changes to this revision.Mar 25 2018, 9:24 PM
laysrodrigues added inline comments.
CMakeLists.txt
13

remove new line

src/widgets/bedextruderwidget.cpp
4โ€“6

needs to add tomaz email

This revision now requires changes to proceed.Mar 25 2018, 9:24 PM
rizzitello marked 2 inline comments as done.Mar 25 2018, 11:27 PM
  • remove extra space
  • add tomaz's to bedwidget
laysrodrigues requested changes to this revision.Mar 26 2018, 12:47 AM
laysrodrigues added inline comments.
src/widgets/bedextruderwidget.cpp
53โ€“56

idk if this is a case to use [&] instead of [this], any thoughts?

src/widgets/bedextruderwidget.h
24

headers in alphabetical order

This revision now requires changes to proceed.Mar 26 2018, 12:47 AM
rizzitello updated this revision to Diff 30578.Mar 26 2018, 2:58 AM
  • Textcursor with basic editing
rizzitello marked 2 inline comments as done.Mar 26 2018, 3:21 AM
rizzitello added inline comments.
src/widgets/bedextruderwidget.cpp
53โ€“56

I think in this case they are the same. [&] will auto capture all used in the block by referance and [this] grabs the current object "this" by referance. Our block has only
a call for BedExtruderWidget::bedTemperatureChanged therefore [&] should only grab "this".

rizzitello updated this revision to Diff 30579.Mar 26 2018, 3:22 AM
rizzitello marked an inline comment as done.
  • lays Suggestions
tcanabrava accepted this revision.Mar 26 2018, 10:53 AM
laysrodrigues accepted this revision.Mar 27 2018, 2:59 AM
cmake/FindQwt6.cmake
2

?

src/widgets/thermowidget.cpp
142

void ThermoWidget::wheelEvent(QWheelEvent* event)

rizzitello updated this revision to Diff 30811.Mar 28 2018, 8:50 PM
  • patrick suggestions
rizzitello marked an inline comment as done.Mar 28 2018, 8:51 PM
rizzitello marked 2 inline comments as done.Mar 28 2018, 8:58 PM
rizzitello added inline comments.
rizzitello updated this revision to Diff 30814.Mar 28 2018, 9:17 PM
rizzitello marked an inline comment as done.
  • fix base
laysrodrigues accepted this revision.Mar 29 2018, 12:21 AM
rizzitello abandoned this revision.Mar 31 2018, 1:26 AM

MERGED