Clean GCodeWidget
ClosedPublic

Authored by laysrodrigues on Feb 10 2017, 11:40 PM.

Details

Summary

Removed all widgets... Plan: Substitute to KTextEditor

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

Added KTextEditor to GCodeWidget

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

Re-Implement GCodeEditor

  • Used KTextEditor to implement GCodeEditor
  • Added PushButtons to be a toolbar with actions. Still

need to discover how to implement redo and undo

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

Adapt MainWindow to use the new GCodeEditor

Made the necessary updates so MainWindow can work
with GCodeEditor.

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

Diff Detail

Repository
R231 Atelier
Branch
gcodeeditor
Lint
No Linters Available
Unit
No Unit Test Coverage
laysrodrigues retitled this revision from to Clean GCodeWidget.
laysrodrigues updated this object.
laysrodrigues edited the test plan for this revision. (Show Details)
src/widgets/gcodeeditorwidget.cpp
20

Is it necessary ?

laysrodrigues added inline comments.Feb 11 2017, 1:58 PM
src/widgets/gcodeeditorwidget.cpp
20

Not anymore. Thanks for remember =D

Remove unnecessary includes

rizzitello edited edge metadata.Feb 13 2017, 1:34 PM

Looks much better .

  1. Can we solve the issue of needing to be installed to show the widget?
src/widgets/gcodeeditorwidget.ui
0

Can we remove this UI file and do this within code (please)
If needed i can provide a patch for your diff to do so

  • Refactor of GCodeWidget
  • Add a separator
  • Add KXMLGuiFactory

This is to remove the UI file...
Please do so and test to see its still the same

src/widgets/gcodeeditorwidget.cpp
18–19

Remove

24–38

Remove

40–41

Remove

44

view = doc->createView(this);

OR

view = doc->createView();

46

remove

47

this->setLayout(layout);

src/widgets/gcodeeditorwidget.h
20–21

remove

36–40

remove

src/widgets/gcodeeditorwidget.ui
0

remove

  • Remove ui file
rizzitello accepted this revision.Feb 23 2017, 11:28 PM
rizzitello added inline comments.
src/mainwindow.h
27

Blank line? if so please remove.

This revision is now accepted and ready to land.Feb 23 2017, 11:28 PM
This revision was automatically updated to reflect the committed changes.