|
From: Kevin W. <sw...@wo...> - 2005-01-30 07:28:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm pleased to announce the release of v. 0.1 of VuMan, a Mac OS X graphical user interface to the main system of Unix software documentation, the man page. VuMan provides a friendlier interface to the Unix man page system than typing in "man foo" into the terminal. It links together a number of Unix command-line tools to make searching, reading, and printing man page documentation a simple task. Apart from being a useful little tool, this application is notable for a couple of reasons: 1. It is, to my knowledge, the first widely-released and announced application using the Tk Tile extension. 2. It is, to my knowledge, one of the first Tcl/Tk applications developed on, and for, the Mac OS X platform, with the specific goal of being a fully native, Aqua-compliant Mac application (as opposed to a port from another platform). VuMan is open source, available under the Tcl license. VuMan can be downloaded at this site: http://www.wordtech-software.com/vuman.html You can find out more about the development techniques and design of VuMan here: http://www.kevin-walzer.com/pivot/entry.php?id=18 VuMan is an offshoot of the work I'm doing on a much more complicated project, my DarwinPorts GUI. It gave me a chance to take a portion of the code from that project and test some design and coding approaches to optimize the interface for OS X. I'll be folding what I've learned from this project back into the DarwinPorts GUI application. As always, feedback, comments and suggestions are welcome. Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:sw...@wo... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/IypJmdQs+6YVcoRAiPXAJ4ifjmmnafUbCXpANBlc+VpnYWV3wCeO8lY pFAjpMRpdwn2rOSXws273lg= =v6HX -----END PGP SIGNATURE----- |
|
From: Steve L. <st...@Di...> - 2005-01-30 09:10:27
|
On 30/01/2005, at 3:28 PM, Kevin Walzer wrote: > I'm pleased to announce the release of v. 0.1 of VuMan, a Mac OS X > graphical user interface to the main system of Unix software > documentation, the man page. Cool - nice work! > As always, feedback, comments and suggestions are welcome I might have missed something obvious, but is there a way of specifying the section of the manual that a command comes from. For example, to get the Tcl string command I'd use $ man n string Regards Steve |
|
From: Jeff H. <je...@Ac...> - 2005-01-30 18:24:20
|
Kevin Walzer wrote: > I'm pleased to announce the release of v. 0.1 of VuMan, a Mac OS X ... > 1. It is, to my knowledge, the first widely-released and announced > application using the Tk Tile extension. > > 2. It is, to my knowledge, one of the first Tcl/Tk applications > developed on, and for, the Mac OS X platform, with the specific goal of > being a fully native, Aqua-compliant Mac application (as opposed to a > port from another platform). I'll give you point #2, but #1 actually belongs to: http://www.activestate.com/Products/Perl_Dev_Kit/ Yes, a perl product - UI coded in Tk + Tile using a Perl/Tcl bridge. ;) -- Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos |
|
From: Kevin W. <sw...@wo...> - 2005-01-30 19:00:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | |> 1. It is, to my knowledge, the first widely-released and announced |> application using the Tk Tile extension. |> |> 2. It is, to my knowledge, one of the first Tcl/Tk applications |> developed on, and for, the Mac OS X platform, with the specific goal of |> being a fully native, Aqua-compliant Mac application (as opposed to a |> port from another platform). | | | I'll give you point #2, but #1 actually belongs to: | http://www.activestate.com/Products/Perl_Dev_Kit/ | | Yes, a perl product - UI coded in Tk + Tile using a Perl/Tcl | bridge. ;) | Cool! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/S6pJmdQs+6YVcoRAr/lAJ0bcj/RZ5bsVplDr83l7GVLZG6jXQCfeH1u gItuDwwO3g0YtnPnr+sXuQY= =8hSq -----END PGP SIGNATURE----- |
|
From: Steve L. <st...@Di...> - 2005-01-31 00:39:33
|
On 30/01/2005, at 3:28 PM, Kevin Walzer wrote: > I'm pleased to announce the release of v. 0.1 of VuMan, a Mac OS X > graphical user interface to the main system of Unix software > documentation, the man page. ... > As always, feedback, comments and suggestions are welcome. I run a non-typical directory layout - /usr/local is symbolically linked to /local (i.e. /local is the read directory). The VuMan installer breaks this - it removes the symlink and creates a new /usr/local hierarchy containing html2ps. Irrespective of whether it makes sense to have this directory layout (I happen to think it does, for various reasons) the installer should just follow the symlink if it exists rather than silently removing it. Steve |
|
From: Kevin W. <sw...@wo...> - 2005-01-31 00:56:19
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OK, I think there are some settings in Packagemaker to address this, I'll see what I can do. Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:sw...@wo... Steve Landers wrote: | | On 30/01/2005, at 3:28 PM, Kevin Walzer wrote: | |> I'm pleased to announce the release of v. 0.1 of VuMan, a Mac OS X |> graphical user interface to the main system of Unix software |> documentation, the man page. | | ... | |> As always, feedback, comments and suggestions are welcome. | | | I run a non-typical directory layout - /usr/local is symbolically linked | to /local (i.e. /local is the read directory). | | The VuMan installer breaks this - it removes the symlink and creates a | new /usr/local hierarchy containing html2ps. | | Irrespective of whether it makes sense to have this directory layout (I | happen to think it does, for various reasons) the installer should just | follow the symlink if it exists rather than silently removing it. | | Steve | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/YIvJmdQs+6YVcoRAkBcAJ9mPhi/NW2dNZKaredwUFqwI4BquACdFcXF UJM1jC8Q1ao/np6sj0XmRt8= =vokZ -----END PGP SIGNATURE----- |
|
From: Kevin W. <sw...@wo...> - 2005-01-31 01:13:27
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not sure I follow you. How would they be able to execute commands if they were labels instead of buttons? (I tried changing one to a ttk::label and just got an error.) Cheers, Kevin Walzer, PhD WordTech Software--Open Source Applications and Packages for OS X http://www.wordtech-software.com http://www.smallbizmac.com http://www.kevin-walzer.com mailto:sw...@wo... Michael Kirkham wrote: | On Sun, 30 Jan 2005, Kevin Walzer wrote: | |> As always, feedback, comments and suggestions are welcome. | | | Are those buttons in the toolbar ever in the disabled state? If not, | you might consider using ttk::label instead of ttk::button for them. | You can make them flat that way so they look more like, say, the XCode | or System Preferences buttons (though I find XCode's buttons kind of | annoying behavior-wise (no interactive feedback), but I like the flat | look). | | Unfortunately, Tk and Tile both have the same problem that images turn | into white squares in labels that are in the disabled state because | there's no provision for stippling in the XFillRectangle wrapper on | Aqua. But that's not a problem if the labels are never disabled. | | -- | Michael Kirkham | www.muonics.com | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/YYvJmdQs+6YVcoRAn52AJ0c+L2BT3bDS07W4axfdjkTQxiP5gCfVLA3 eMrIRoZy4sTpYGVXB4Q/S50= =f7wG -----END PGP SIGNATURE----- |
|
From: Michael K. <mi...@mu...> - 2005-01-31 01:17:34
|
bind $label <ButtonRelease-1> { whatever your button's -command was }
On Sun, 30 Jan 2005, Kevin Walzer wrote:
> Date: Sun, 30 Jan 2005 20:13:20 -0500
> From: Kevin Walzer <sw...@wo...>
> To: Michael Kirkham <mi...@mu...>
> Cc: tc...@li..., tkt...@li...
> Subject: Re: [Tile-dev] ANN: VuMan,
> a Man Page Viewer for OS X: written with TclTkAqua and Tile
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm not sure I follow you. How would they be able to execute commands if
> they were labels instead of buttons? (I tried changing one to a
> ttk::label and just got an error.)
>
> Cheers,
>
> Kevin Walzer, PhD
> WordTech Software--Open Source Applications and Packages for OS X
> http://www.wordtech-software.com
> http://www.smallbizmac.com
> http://www.kevin-walzer.com
> mailto:sw...@wo...
>
> Michael Kirkham wrote:
> | On Sun, 30 Jan 2005, Kevin Walzer wrote:
> |
> |> As always, feedback, comments and suggestions are welcome.
> |
> |
> | Are those buttons in the toolbar ever in the disabled state? If not,
> | you might consider using ttk::label instead of ttk::button for them.
> | You can make them flat that way so they look more like, say, the XCode
> | or System Preferences buttons (though I find XCode's buttons kind of
> | annoying behavior-wise (no interactive feedback), but I like the flat
> | look).
> |
> | Unfortunately, Tk and Tile both have the same problem that images turn
> | into white squares in labels that are in the disabled state because
> | there's no provision for stippling in the XFillRectangle wrapper on
> | Aqua. But that's not a problem if the labels are never disabled.
> |
> | --
> | Michael Kirkham
> | www.muonics.com
> |
> |
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFB/YYvJmdQs+6YVcoRAn52AJ0c+L2BT3bDS07W4axfdjkTQxiP5gCfVLA3
> eMrIRoZy4sTpYGVXB4Q/S50=
> =f7wG
> -----END PGP SIGNATURE-----
>
--
Michael Kirkham
www.muonics.com
|
|
From: Michael K. <mi...@mu...> - 2005-01-31 00:57:50
|
On Sun, 30 Jan 2005, Kevin Walzer wrote: > As always, feedback, comments and suggestions are welcome. Are those buttons in the toolbar ever in the disabled state? If not, you might consider using ttk::label instead of ttk::button for them. You can make them flat that way so they look more like, say, the XCode or System Preferences buttons (though I find XCode's buttons kind of annoying behavior-wise (no interactive feedback), but I like the flat look). Unfortunately, Tk and Tile both have the same problem that images turn into white squares in labels that are in the disabled state because there's no provision for stippling in the XFillRectangle wrapper on Aqua. But that's not a problem if the labels are never disabled. -- Michael Kirkham www.muonics.com |
|
From: Joe E. <jen...@fl...> - 2005-01-31 15:36:49
|
Michael Kirkham wrote:
> [ Kevin Walzer ]
> > [Michael Kirkham]
> > | [...]
> > | you might consider using ttk::label instead of ttk::button for them.
> > | You can make them flat that way so they look more like, say, the XCode
> > | or System Preferences buttons (though I find XCode's buttons kind of
> > | annoying behavior-wise (no interactive feedback), but I like the flat
> > | look).
> >
> > I'm not sure I follow you. How would they be able to execute commands if
> > they were labels instead of buttons? (I tried changing one to a
> > ttk::label and just got an error.)
>
> bind $label <ButtonRelease-1> { whatever your button's -command was }
Doing it that way you won't get most of the standard
button behaviour (e.g., no active/"hot-track" feedback,
user can't cancel a button press by dragging the mouse
off the button, etc.)
[ttk::button .b -style toolbutton ...] will probably be
closer to the desired effect. (I don't know what XCode's
buttons look like, and don't have a Mac handy to check
how well "-style toolbutton" is currently supported, but
that's the recommended mechanism for doing toolbar buttons
on other platforms).
--Joe English
jen...@fl...
|
|
From: Kevin W. <sw...@wo...> - 2005-01-31 16:05:18
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe English wrote: | | Doing it that way you won't get most of the standard | button behaviour (e.g., no active/"hot-track" feedback, | user can't cancel a button press by dragging the mouse | off the button, etc.) | | [ttk::button .b -style toolbutton ...] will probably be | closer to the desired effect. (I don't know what XCode's | buttons look like, and don't have a Mac handy to check | how well "-style toolbutton" is currently supported, but | that's the recommended mechanism for doing toolbar buttons | on other platforms). | | | --Joe English | Joe, It doesn't seem to be supported at all on the Mac: I get an error when I try to define it as such, and I can't find any setting for "toolbutton" in the button.tcl file of my Tile library (I'm running 0.6, built from CVS as part of the TkAqua distro). That's okay, however: after trying the various alternatives that you and Michael suggested, I'm comfortable with the design as it is. By the way, I have hacked the combobox.tcl file to provide standard Tk scrollbars, since the Tile scrollbars don't work as well on the Mac as the native ones; I also adjusted the font code in that file so the text in the combobox integrates better. I'm distributing the modified file as part of my application. Should I submit a patch of some sort? I don't want to muddy the waters of the main distribution with a Mac-specific hack, but I'll put something together (I'll send the file for you to diff, if nothing else) if you want. Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/lc4JmdQs+6YVcoRAqINAJ9Nwe0zo2nDeq6Fj0KDGKi3jQad5ACcDYa2 unz/i3uWliKMGtCCyDXWfz4= =+IgY -----END PGP SIGNATURE----- |
|
From: Joe E. <jen...@fl...> - 2005-01-31 16:58:50
|
Kevin Walzer wrote: > Joe English wrote: > | [ttk::button .b -style toolbutton ...] will probably be > | closer to the desired effect [...] > > It doesn't seem to be supported at all on the Mac: I get an error when I > try to define it as such, Sorry, my mistake: that should be "-style Toolbutton" (with a capital T). > and I can't find any setting for "toolbutton" > in the button.tcl file of my Tile library The Toolbutton style is defined by individual themes not by the widget; see e.g., library/aquaTheme.tcl, macosx/aquaTheme.c. On OSX, the Toolbutton style is mapped to an Aqua "Bevel Button". > By the way, I have hacked the combobox.tcl file to provide standard Tk > scrollbars, since the Tile scrollbars don't work as well on the Mac as > the native ones; I also adjusted the font code in that file so the text > in the combobox integrates better. I'm distributing the modified file > as part of my application. We do intend to make ttk::scrollbars look native on OSX, as soon as we can resolve the impedance mismatch between Tile and Carbon -- but that looks like it will take a while, so distributing a patched copy of Tile with your application is the best way to go for now. > Should I submit a patch of some sort? I don't > want to muddy the waters of the main distribution with a Mac-specific > hack, but I'll put something together (I'll send the file for you to > diff, if nothing else) if you want. Yes, please do post it to SourceForge. --Joe English jen...@fl... |
|
From: Kevin W. <sw...@wo...> - 2005-01-31 17:35:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe English wrote: | Kevin Walzer wrote: | |>Joe English wrote: |>| [ttk::button .b -style toolbutton ...] will probably be |>| closer to the desired effect [...] |> |>It doesn't seem to be supported at all on the Mac: I get an error when I |>try to define it as such, | | | Sorry, my mistake: that should be "-style Toolbutton" (with a | capital T). I tried it, but it doesn't seem to look as good as a regular button. In both cases, when the button is selected, you get a thin "aqua" highlight around the button. It looks okay with the regular button, but very weird around the toolbutton. Setting -highlightbackground to a neutral color and -border to 0 had no effect. So, looks like I'll stay with the regular button for now. | |>Should I submit a patch of some sort? I don't |>want to muddy the waters of the main distribution with a Mac-specific |>hack, but I'll put something together (I'll send the file for you to |>diff, if nothing else) if you want. | | | Yes, please do post it to SourceForge. OK, will do. Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB/mxgJmdQs+6YVcoRAvEvAJ4rrWHWk3ROYuSIcc2A3Ys5akFfxgCfYDcJ Is9jrS6fznK8ZAdcawZaE9w= =RE0j -----END PGP SIGNATURE----- |
|
From: Michael K. <mi...@mu...> - 2005-01-31 20:01:12
|
On Mon, 31 Jan 2005, Joe English wrote:
> The Toolbutton style is defined by individual themes
> not by the widget; see e.g., library/aquaTheme.tcl, macosx/aquaTheme.c.
> On OSX, the Toolbutton style is mapped to an Aqua "Bevel Button".
Most of the toolbar buttons I have seen in Aqua apps aren't bevel buttons.
They are just icons flat on the frame - the look you get with a label
rather than a button, the way other platforms look with the "flat" relief.
Tk's button (and probably Tile's) don't allow you to get a flat relief on
Aqua, though. Flat -> bevel button, whereas with label flat is really
flat.
>> By the way, I have hacked the combobox.tcl file to provide standard Tk
>> scrollbars, since the Tile scrollbars don't work as well on the Mac as
>> the native ones; I also adjusted the font code in that file so the text
>> in the combobox integrates better. I'm distributing the modified file
>> as part of my application.
>
> We do intend to make ttk::scrollbars look native on OSX,
> as soon as we can resolve the impedance mismatch between
> Tile and Carbon -- but that looks like it will take a while,
> so distributing a patched copy of Tile with your application
> is the best way to go for now.
For Kevin: what I've done for MIB Smithy is just...
if {[string equal [tk windowingsystem] "aqua"]}
interp alias {} ::ttk::scrollbar {} ::scrollbar
}
That way the scrollbar gets overrided on Aqua without changes to Tile.
It's only 3 lines...
--
Michael Kirkham
www.muonics.com
|