Bug 393464 - [API] Add api for closing view and for setting a view document.
Summary: [API] Add api for closing view and for setting a view document.
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: 4.0.1
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-24 12:03 UTC by Jeroen Hoolmans
Modified: 2020-08-30 04:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Hoolmans 2018-04-24 12:03:02 UTC
There are API options for creating new views for documents.
But opening documents into an empty view is not possible at the moment.
Comment 1 Scott Petrovic 2018-05-22 16:33:19 UTC
updating this to a wishlist since it is a feature request
Comment 2 Scott Petrovic 2020-07-31 14:05:31 UTC
This ticket was written a while ago, so apologies for this taking a while to respond to. We might need a bit more information. This is currently how you set a view document. Maybe this didn't exist when this bug was created.

newDocument = Krita.instance().createDocument(1280, 1024, "Document name", "RGBA", "U8", "", 300.0)
Krita.instance().activeWindow().addView(newDocument) # shows it in the application


The only way I know how to close the view is by closing the file from an action...

Krita.instance().action('file_close').trigger()


Here is the current API that might help a little
https://api.kde.org/appscomplete-api/krita-apidocs/libs/libkis/html/classWindow.html

For now I going to set to Needs Info and we can figure out what to do next.
Comment 3 Bug Janitor Service 2020-08-15 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-08-30 04:33:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!