Desktop API, New features - please comment!!
Desktop API, New features - please comment!!
| ddiego |
Oct 6 2004, 06:21 PM
Post
#1
|
|
VCF Lead Developer ![]() ![]() ![]() Group: Lead Developer Posts: 2834 Joined: 2-August 03 Member No.: 2 |
We currently have the Desktop class with the idea that this class provides a wrapper around the "shell" or desktop that the end user see's. This is roughly analogous to the NSWorkspace ( http://developer.apple.com/documentation/C.../cl/NSWorkspace ) class in Cocoa, and the various SH_XXX shell API's in Win32.
I would like to expand what we currently have to add more features that would (I think) be useful. Also some thing to consider: the name of the class itself. Currently it's called the "Desktop" and links together a number of shell UI related functions. Perhaps a better name might be "Workspace" (like Cocoa uses) or "Shell" ? Any suggestions are most welcome. Currently we have the ability to "draw" on the screen via the Desktop. This lets us grab a section of screen and draw into it like a normal graphics context. This is useful for things like a rubber band effect for tool bar moving, etc. Next we can get the total width and height, as well as the usuable bounds. The usuable bounds takes into account things like the start bar (Win32) or the Dock (Mac OS). Finally we have some file system info, for example whether or not the desktop exists as a real part of the file system like it does on OS X and Win32 (it did not under the old NeXT Step workspace). Some features I'd like to see: The ability to copy/move/delete files. These would use the underlying shell API's for the OS so that we get the standard UI for copying/moving/deleting files. This would make use of the Trash/Recycler where appropriate (for Win32 systems this would be implemented with the SHFileOperation function). Next would be the ability to properly launch/open a program from a docment name. This is similar to the LaunchServices API on Mac OS or the ShellExecute API on Win32. Access to the trash might be nice as well. And the ability to empty it programmically. Getting file information such as the icon image for a file, it's type, what program it opens with, and so on. It might also be nice to have the possibility to create shortcut's/aliases. It would be nice to be able to make file associations too. |
![]() ![]() ![]() |
| marcello |
Oct 6 2004, 07:44 PM
Post
#2
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 965 Joined: 6-April 04 From: Montreal ( Canada ) in this moment of my life ! Member No.: 39 |
I personally welcome this class !
The only thing is the name. I wouldn't use the name 'workspace' because it is a name very much used to indicate the object gathering all the settings a person is working with when doing something. ( see Adobe Premiere, or just VisualStudio for example) I would use the name 'shell' or something like that because it seems to me that this class is going to use many of the capabiities provided by your OS as a shell in Linux does. For the same reason also the 'desktop' name is good, but it seems to me a less generic name. Unfortuynately 'shell' is used under window for the bottom right area of the screen ( where te clock is ). But I don't think this is a big deal. QUOTE It might also be nice to have the possibility to create shortcut's/aliases. I would love that !Cheers, Marcello |
ddiego Desktop API Oct 6 2004, 06:21 PM
ddiego
OK makes sense too.
OK well we may change it ... Oct 7 2004, 02:49 AM
marcello
OK well we may change it to shell, I'd like ... Oct 7 2004, 01:11 PM
vortic
OK well we may change it to shell, I'd like ... Oct 7 2004, 02:10 PM![]() ![]() ![]() |
| Lo-fi Version | : 19th May 2013 - 03:55 PM |