Author Topic: Creating a dock(palette) plugin  (Read 62 times)


  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Creating a dock(palette) plugin
« on: August 14, 2019, 06:51:05 am »
Ive been playing around with the scribus c++ plugins. I'm wanting to create a simple dock similar to the outline dock.
A few things im getting stuck on....
I have my plugin registering and running, but I cant get the dock to become visible.
Can I have it also link in with the app so it reloads at startup?
- ScribusMainWindow has a function for initPalettes(), is there a way to register my custom dock here?

Ive put my current code here if it helps:


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1993
  • Karma: 26
    • the graphics lab
Re: Creating a dock(palette) plugin
« Reply #1 on: August 14, 2019, 08:13:30 pm »
i had a look at your code and i don't see any sign that you would be displaying a dialog...

if i understand your goals correctly you want to display some sort of palette with buttons that start a script when you click them.

on the one side, i'm not aware of any plugin that shows a palette, that is a dialog that stays open for a longer time. i have not tried it myself and i don't if it's easy / safe to do so.

on the other side, if it's for your own use, i believe that adding the list of your scripts in the script dialog (see the patch i've referenced) and using the action search is a better way to run the scripts.

if it's for other people and you think that they need big buttons... then i see why you want to do that. but i would still refrain from adding even more visual elements that one does not use very often (and if they're used often, it's worth to learn a keyboard shortcut : - )

at the end, without having dived too much into your code, i think that you're missing the line where the dialog gets shown.
something like this: