Hi all, and Takashi in particular,
I just got image pasting to work, although in a bit hackish manner:
drag an image from web activity to sugar frame switch to Etoys enable "honorDesktopCmdKeys" preference press Alt-B, edit DownloadingImageMorph>>url: t1 url := t1 asUrl. [downloadQueue nextPut: url retrieveContents] fork click on background, press Alt-V
This only works in latest sugar-jbuild, needs new sugar and web- activity.
Very cool - thanks Takashi!
Now, there are several problems here:
- we should use ctrl-x/c/v for cut/copy/paste (that's what other activities do, no general spec yet) - this actually pastes an HTML-formatted text - it also pastes form elements and buttons - perhaps not what we wanted - an image is a url that is downloaded again. Better to use the image downloaded by the browser (text/uri-list)
I just pushed a new rpm (1361), but likely the Sugar and Web activity in the build is too old for testing. Btw, the sources now include a generated changelog which might come handy sometimes:
http://etoys.laptop.org/src/ChangeLog
- Bert -
On Jun 14, 2007, at 19:57 , Bert Freudenberg wrote:
- we should use ctrl-x/c/v for cut/copy/paste (that's what other
activities do, no general spec yet)
I submitted a ticket about this, and Eben responded promptly:
http://dev.laptop.org/ticket/1721#comment:2
So we'll need to revisit the use of short-cuts in etoys ...
- Bert -
Bert,
I submitted a ticket about this, and Eben responded promptly:
http://dev.laptop.org/ticket/1721#comment:2
So we'll need to revisit the use of short-cuts in etoys ...
I think it is a matter of setting #swapControlAndAltKeys preference to true (in cambridge theme), right? I will publish that change and make up an image with that theme installed.
And, this is a different question, but what is the best way nowadays to tell that Squeak is running under sugar and XO or on other combinations of platforms? I'd like to make it so that (as you suggested) the zoom button doesn't appear on XO, and on the other platform, show it with a better explanation.
-- Yoshiki
On Jun 20, 2007, at 0:06 , Yoshiki Ohshima wrote:
Bert,
I submitted a ticket about this, and Eben responded promptly:
http://dev.laptop.org/ticket/1721#comment:2
So we'll need to revisit the use of short-cuts in etoys ...
I think it is a matter of setting #swapControlAndAltKeys preference to true (in cambridge theme), right? I will publish that change and make up an image with that theme installed.
Well I guess there will be a lot of other short cuts. Like paste on World is hard-wired to Alt.
And, this is a different question, but what is the best way nowadays to tell that Squeak is running under sugar and XO or on other combinations of platforms? I'd like to make it so that (as you suggested) the zoom button doesn't appear on XO, and on the other platform, show it with a better explanation.
We should add
SugarLauncher isSugar
which would be equivalent to SugarLauncher current isSugar which would return true if either dbus or pipe is non-nil.
No real way to tell if you're on an XO I think, but what would you need that for?
- Bert -
Bert,
I think it is a matter of setting #swapControlAndAltKeys preference to true (in cambridge theme), right? I will publish that change and make up an image with that theme installed.
Well I guess there will be a lot of other short cuts. Like paste on World is hard-wired to Alt.
Ah, ok.
And, this is a different question, but what is the best way nowadays to tell that Squeak is running under sugar and XO or on other combinations of platforms? I'd like to make it so that (as you suggested) the zoom button doesn't appear on XO, and on the other platform, show it with a better explanation.
We should add
SugarLauncher isSugar
which would be equivalent to
SugarLauncher current isSugar
which would return true if either dbus or pipe is non-nil.
No real way to tell if you're on an XO I think, but what would you need that for?
So far, I see two things: whether the screen size is 1200x900, and whether the session is going to be able to get buddys via Sugar. (So, detecting whether it is running on the XO hardware is not a real requirement.)
-- Yoshiki
On Jun 20, 2007, at 0:59 , Yoshiki Ohshima wrote:
Bert,
I think it is a matter of setting #swapControlAndAltKeys preference to true (in cambridge theme), right? I will publish that change and make up an image with that theme installed.
Well I guess there will be a lot of other short cuts. Like paste on World is hard-wired to Alt.
Ah, ok.
And, this is a different question, but what is the best way nowadays to tell that Squeak is running under sugar and XO or on other combinations of platforms? I'd like to make it so that (as you suggested) the zoom button doesn't appear on XO, and on the other platform, show it with a better explanation.
We should add
SugarLauncher isSugar
which would be equivalent to
SugarLauncher current isSugar
which would return true if either dbus or pipe is non-nil.
No real way to tell if you're on an XO I think, but what would you need that for?
So far, I see two things: whether the screen size is 1200x900, and whether the session is going to be able to get buddys via Sugar. (So, detecting whether it is running on the XO hardware is not a real requirement.)
Right. So for screen size we have the primitive, and what I described above detects whether we are in Sugar.
- Bert -
etoys-dev@lists.squeakfoundation.org