New and Save actions added
ClosedPublic

Authored by eliakinalmeida on Dec 13 2016, 4:48 AM.

Details

Summary

In this review two new action was added for the editor, New and Save.

  • Save Action
    • In the case of a new document will open a QFileDialog to create a new file and fill a new document.
    • If exist a active document the ui doc is compared with the document(Document Controller).
    • A new label was added in the bottom to represents the actual file path or untitled for not saved files.
  • New Action
    • It opens a new QMessageBox with options to Save the old document, discard or cancel the operation.
    • The Save option will invoke the save action towards UIControlle instance and create a new empty document.
    • Discards option will clean the document and the Editor in the UI.
    • Cancel will avoid the all previous operations.

Fixes T4551

Ref T1625

Test Plan

None

Diff Detail

Repository
R37 Krita
Branch
eliakinalmeida/T4551-interactive-python-scripting
Lint
No Linters Available
Unit
No Unit Test Coverage
eliakinalmeida retitled this revision from to New and Save actions added.
eliakinalmeida edited the test plan for this revision. (Show Details)
eliakinalmeida added a reviewer: rempt.
eliakinalmeida updated this object.
eliakinalmeida added a subscriber: eliakinalmeida.
woltherav accepted this revision.Dec 7 2017, 3:08 PM
This revision is now accepted and ready to land.Dec 7 2017, 3:08 PM
woltherav closed this revision.Dec 7 2017, 3:08 PM

This was pushed :)