This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How To Create Custom Dockers ?

Tags: None
(comma "," separated)
Arksider
Registered Member
Posts
3
Karma
0

How To Create Custom Dockers ?

Sun Mar 25, 2018 12:39 pm
Hi , is there any way to create custom dockers (along with custom keys, sliders etc) ? (I have seen customization in blender , I really want to know if I can create custom Krita dockers)
I was using my Surface Pro , and I really wanted something like an onscreeen panel on windows to use Krita faster. I would have made something quick and dirty for windows , but for other OSes I'd need to remake tham over and over again (that's just dumb)(my main system is linux).
I am wondering if that can be done in Krita inbuilt so I don't have to go through hastle of customizing in every diff os.
Here is the idea I came up with. :)
https://imgur.com/a/FZZhk
ahabgreybeard
Registered Member
Posts
1269
Karma
11
OS

Re: How To Create Custom Dockers ?

Sun Mar 25, 2018 1:58 pm
This might be of use or interest to you: viewtopic.php?f=139&t=151589
Or it might not.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: How To Create Custom Dockers ?

Sun Mar 25, 2018 2:16 pm
If you don't feel like editing the touch docker(which, mind you, is basically what you'd wanna do), there's also this in the manual: https://docs.krita.org/How_to_make_a_Kr ... hon_plugin

What you'll proly want to do is...

1. Make that docker. Just follow what is in the documentation so you can understand what is necessary to make the plugin work in the first place.
2. Add in a main widget with a layout
3. Get the actions you wanna use with Krita.instance().action("action_name") (print Krita.instance().actions() to get a list of all possibilities).
4. For each action you'd wanna add, make a QToolButton, and set the action you got in #3 to the default action.
5. add this QToolButton widget to the mainwidget's layout.

And after that play with the size of the widgets or with different types of layouts to arrange the buttons nicer or make them easier to press.
Arksider
Registered Member
Posts
3
Karma
0

Re: How To Create Custom Dockers ?

Sun Mar 25, 2018 2:48 pm
Interesting , nice
Thanks guys :D
I'll get back with what I came up with , might take a few weeks x)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]