Here is a UGLY changeset, just to show you what I was talking about :)
For now you have to defined your method with pragma before displaying the dock bar, and only support vertical bar, but like that you can see :)
(and yes, using MenuSpec to build buttons is bad ;) but the pragma hierarchy is a bit weird, so you can't properly inherits :s )
So by example add the method:
finderButtonOn: aBuilder "I build a menu" <shortcutTWM> (aBuilder item: #Finder) action: [self open]; order: 0; parent: #Tools; help: 'Looking for something ?'; icon: self icon
on Finder class side, open the Dock bar :)
Ben
PS: if you like it, I can do a better implementation ;) On Jun 8, 2011, at 5:07 PM, laurent laffont wrote: On Wed, Jun 8, 2011 at 4:32 PM, Benjamin Van Ryseghem <[email protected]> wrote:
On Wed, Jun 8, 2011 at 4:05 PM, Benjamin Van Ryseghem <[email protected]> wrote:
On Jun 8, 2011, at 7:50 AM, laurent laffont wrote: On Wed, Jun 8, 2011 at 7:35 AM, Stéphane Ducasse <[email protected]> wrote: the snapshotting looks really cool! In nautilus benjmain added groups.
And TWM has already support for nautilus ;)
Cool :-)
I would like to know if we can use TWM as a kind of toolbar and add some custom shortcuts ?
What kind of shortcuts ?
I dunno, a button like when I click on it, it opens a Browser or something like that
Something like
AbstractTWMBarButton subclass: #MyDoSomethingButton
MyDoSomethingButton>>help ^ 'I do a wonderful thing'
MyDoSomethingButton>>icon ^ blabla asForm
MyDoSomethingButton>>execute MyThing new open.
MyDoSomethingButton>>priority
^ 25
and then TWMBar creates one button per AbstractTWMBarButton subclass.
Is this what you would like ?
And someone want to do this ? :)
Laurent.
|