Action - Open File
ClosedPublic

Authored by eliakinalmeida on Dec 9 2016, 3:09 AM.

Details

Summary
  • A Open action was added for the File menu, this action creates a QFileDialog with a filter for .py files.
  • To manager the active document was created a DocumentController with a openDocument method and activeDocument property.
  • A new class Document will load the data of the file.
  • The UiController has a new method(setDocumentEditor) to set the Document in the Editor
Test Plan

You can open python files. If filter for python files will removed and you to open a different file, one QMessageBox will be opened.

Fixes T4551

Ref T1625

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 Action - Open File.
eliakinalmeida edited the test plan for this revision. (Show Details)
eliakinalmeida added a reviewer: rempt.
eliakinalmeida updated this object.
eliakinalmeida added a subscriber: eliakinalmeida.
eliakinalmeida edited the test plan for this revision. (Show Details)Dec 9 2016, 3:10 AM
woltherav accepted this revision.Dec 7 2017, 3:07 PM
This revision is now accepted and ready to land.Dec 7 2017, 3:07 PM
woltherav closed this revision.Dec 7 2017, 3:07 PM

This was pushed :)