Right now we could actually do that. $toolbar->add(normal stuff); if ( $document->can_debug ) { $toolbar->add(debugging); }
etc etc On 15 July 2010 18:28, Zeno Gantner <zeno.gant...@gmail.com> wrote: > Hi, > > what also would be interesting: > Toolbar items that are only available for a specific document type. > E.g. I don't want to see "Create PDF" provided by a LaTeX plug-in when my > current file is a perl program. > > Best regards, > Z. > > > On Thu, Jul 15, 2010 at 2:01 AM, Adam Kennedy <adamkennedybac...@gmail.com > > wrote: > >> Here's how I'd do it the boring way. >> >> Step 1 is probably to allow registration of "actions". >> >> I've been doing some refactoring of the action system to allow this, it's >> probably close enough to work now. >> >> Step 2 is possibly somehow to have support for more than one toolbar, >> which we don't really do right now. >> >> Step 3 is a toolbar editor and somewhere to save your toolbar preferences >> into. FormBuilder will probably now let you churn out the dialog structure >> fairly quickly. >> >> That wouldn't add anything by default, but it would let you manually add >> tools to the toolbar yourself. >> >> It really depends how big the plugin is. Something with 20 toolbar entries >> of it's own probably demands an entire extra row. Something that only adds >> one toolbar element, not so much. You just want it appended to the normal >> ones. >> >> ... and it has to somehow survive plugin reloading (which would be a >> pretty interesting trick). >> >> Adam K >> >> On 14 July 2010 14:20, Peter Lavender <pla...@internode.on.net> wrote: >> >>> Hi Everyone, >>> >>> The plugins are a really handy feature, however one thing that I think is >>> missing for plugins is a way to access their actions via a toolbar. >>> >>> Accessing the same thing over and over via the menuing system gets a bit >>> cumbersome after a while. >>> >>> I had "whinged" about this before, hoping someone with more knowledge >>> than me might also pick up the itch and have a go at implementing something >>> that would allow plugins to register their own toolbar and then make it >>> visible in the IDE. >>> >>> So, today I had a bit of a go, mostly just cargo culting what has been >>> done already with the directory tree the "bottom" pane etc. >>> >>> And this is the result... Yes, I have just stuck Padre's toolbar in >>> there for now, and spacing isn't so great etc etc.. it's really just a proof >>> of concept. >>> >>> >>> >>> Is this something to go further with do you think? >>> >>> Pete. >>> >>> >>> >>> _______________________________________________ >>> Padre-dev mailing list >>> Padre-dev@perlide.org >>> http://mail.perlide.org/mailman/listinfo/padre-dev >>> >>> >> >> _______________________________________________ >> Padre-dev mailing list >> Padre-dev@perlide.org >> http://mail.perlide.org/mailman/listinfo/padre-dev >> >> > > _______________________________________________ > Padre-dev mailing list > Padre-dev@perlide.org > http://mail.perlide.org/mailman/listinfo/padre-dev > >
_______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev