Commit Graph

942 Commits

Author SHA1 Message Date
Tomeu Vizoso
e8a21bf6a0 Use color.HTMLColor instead of the color string. 2007-03-16 11:53:22 +01:00
Dan Williams
b45c810ca1 Make access points have persistent colors 2007-03-15 22:03:42 -04:00
Dan Williams
dee3953e34 Add property for mode 2007-03-15 22:00:35 -04:00
Dan Williams
0e1ec97663 Add accessor for mode 2007-03-15 22:00:22 -04:00
Dan Williams
902fcd069b Expose AP capabilities 2007-03-15 16:37:28 -04:00
Dan Williams
85f8ef218d Rearrange network device handling bits 2007-03-15 16:37:15 -04:00
Dan Williams
672d06d85e Add accessor for AP capabilties 2007-03-15 16:17:08 -04:00
Tomeu Vizoso
d001c70443 Tweaked sizes of home xo icon, donut radius and device icons. 2007-03-15 19:19:38 +01:00
Tomeu Vizoso
0fe529b78a Avoid multiple simultaneous launches of the same activity. 2007-03-15 16:21:37 +01:00
Dan Williams
b4e4b3875a Better removal of intro video chooser 2007-03-14 14:44:58 -04:00
Dan Williams
f2dcadaff5 Revert "Remove picture selection from intro screen for now"
This reverts commit b97edec4db.
2007-03-14 14:43:53 -04:00
Dan Williams
93e9d164c0 Auto-open some downloaded files 2007-03-14 14:43:42 -04:00
Dan Williams
b97edec4db Remove picture selection from intro screen for now 2007-03-14 10:06:45 -04:00
Tomeu Vizoso
6227b96215 Support selection of the clipboard object to be pasted. 2007-03-14 13:32:05 +01:00
Dan Williams
8b4ccf3eb1 Cleanup clipboard D-Bus API
- The clipboard now determines each objects unique id and
    returns it from add_object()
- The ID is opaque to the client and should not be used/accessed
    other than with the clipboard service
- Add object type hints for dbus-python
- Sugar clipboard bindings for get_object() now return a dict rather
    than a tuple
- ClipboardIcon now retrieves the real file path and uses that
    to open the file
- Adapt sugar bits to clipboard changes
2007-03-14 00:50:06 -04:00
Dan Williams
bfe04c2073 Add copyright header 2007-03-13 23:57:29 -04:00
Marco Pesenti Gritti
4960ddae25 Adapt to the new hippo canvas sizing API 2007-03-14 03:19:24 +01:00
Marco Pesenti Gritti
d041eadf92 Give up on the save/restore logic, it seem too unpredictable to be clear to the user.
Try a simpler logic where the frame state is reset when switching zoom levels.
2007-03-13 00:19:21 +01:00
Marco Pesenti Gritti
2c468110ba Go back to the home page when all activities are closed. 2007-03-12 22:47:17 +01:00
Marco Pesenti Gritti
3bfd94899a Bunch of fixes 2007-03-12 22:29:11 +01:00
Marco Pesenti Gritti
bf80cb55b9 Some cleanups in the Shell. Add a way to save/restore the frame state. 2007-03-12 20:18:55 +01:00
Marco Pesenti Gritti
2bd609e5fd Cleanup 2007-03-12 19:14:02 +01:00
Marco Pesenti Gritti
ed454220e6 Cleanup 2007-03-12 19:13:09 +01:00
Marco Pesenti Gritti
ce91f2df99 Force hiding when running an activity even if the user hover the frame again. 2007-03-12 16:57:52 +01:00
Marco Pesenti Gritti
978965bfa8 Fix a race 2007-03-12 16:30:53 +01:00
Marco Pesenti Gritti
0d90a7b4e7 More fixes to the hover logic.. 2007-03-12 16:22:03 +01:00
Marco Pesenti Gritti
49b0db642e Fix hover checking logic 2007-03-12 16:09:41 +01:00
Eduardo Silva
84f6bdd0c9 Battery status update 2007-03-12 11:02:36 -04:00
Marco Pesenti Gritti
acaac29906 Add the frame when starting an activity 2007-03-12 14:54:55 +01:00
Marco Pesenti Gritti
540cef4b0d Implement modes, some fixes 2007-03-12 14:48:02 +01:00
Marco Pesenti Gritti
a3a6d0cd89 Implement mouse logic 2007-03-12 14:05:50 +01:00
Marco Pesenti Gritti
c4fbb41bcd Complete the key logic 2007-03-12 13:35:07 +01:00
Marco Pesenti Gritti
0984938f95 New animation API. Start rewriting the frame slidein slideout logic.
(Use the keys for now, mouse is not working)
2007-03-12 12:39:29 +01:00
Marco Pesenti Gritti
158d933a10 Complete the UI for the battery 2007-03-12 10:51:48 +01:00
Dan Williams
a1411040f1 Make frame animation faster and smoother 2007-03-11 21:39:00 -04:00
Dan Williams
f5c60b44c1 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-09 15:36:20 -05:00
Marco Pesenti Gritti
cc7ad2d42b Missing imports 2007-03-09 17:43:55 +01:00
Marco Pesenti Gritti
b8cc8ec68f Drop support for running from source dir. As it is now it's just confusing.
Will have to figure out the exact needs and rewrite in a better way.
2007-03-09 17:38:05 +01:00
Marco Pesenti Gritti
6c5d28ecf5 Save also the sugar session display and use it in sugar-activity. 2007-03-09 17:29:03 +01:00
Marco Pesenti Gritti
a5d303f9ff Smarter bundle name matching 2007-03-09 16:55:18 +01:00
Marco Pesenti Gritti
d3493aea9e Smarter sugar-activity which can make itself the factory and open
one instance.
2007-03-09 16:35:53 +01:00
Dan Williams
f1aa2cf11a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-03-09 10:18:37 -05:00
Dan Williams
723bd21e77 Require jpeg format buddy icon
Since the intro screen ensures that a buddy icon exists and
is in jpg format, we can simplify the buddy icon code in the
ShellOwner object.
2007-03-09 10:18:23 -05:00
Marco Pesenti Gritti
57c928916c Refactor sugar.env and paths 2007-03-09 14:57:54 +01:00
Marco Pesenti Gritti
a380b7f915 Move data to be relative to the code. 2007-03-09 14:07:17 +01:00
Marco Pesenti Gritti
73c1dbe4a7 CLeanup emulator shutdown 2007-03-09 13:53:26 +01:00
Dan Williams
8dc201bc5f Expose owner details through the Shell's DBus service
For security, we need the PresenceService to listen for changes to the
owner's attributes, like changed color, nickname, icon, and current activity,
rather than having D-Bus API in the PS itself that any process could call.

So, the shell provides signals when these attributes change, which the PS
listens to and pushes out over the network accordingly.
2007-03-08 22:17:33 -05:00
Marco Pesenti Gritti
8ddaa516b3 Add a default picture, so that we don't force people to find one.
Implementation is ugly but the cleanest I could come with :(
2007-03-08 01:33:55 +01:00
Marco Pesenti Gritti
655e4018f2 Do not show the battery device since it's not hooked up 2007-03-07 22:30:52 +01:00
Dan Williams
44f00a9cd8 Fix traceback due to bad merge 2007-03-07 16:24:21 -05:00
Dan Williams
a2bd1194f3 Work around bus-python bug with named exceptions 2007-03-07 16:23:52 -05:00
Dan Williams
11320e8883 Ensure entry can accept input 2007-03-07 16:23:33 -05:00
Dan Williams
550fe95b5a Clean up sugar + NM client interaction
Change "init-failed" signal to 'initialized' so uninitialized
devices don't leak in the sugar model.

Get rid of 'ssid-changed' signal on Network objects, makes no
sense conceptually, plus new 'initialized' signal replaces
what it was used for.
2007-03-07 11:40:04 -05:00
Marco Pesenti Gritti
eefad0aeed Do not try to add access points on model removed signal!
Some fixes to access point state.
2007-03-07 14:23:44 +01:00
Owen Williams
195e18d7b0 Merge branch 'master' of git+ssh://ywwg@dev.laptop.org/git/sugar 2007-03-05 21:24:59 -05:00
Owen Williams
3d32c9aaa6 Fix corner and edge frame activation 2007-03-05 21:24:42 -05:00
Marco Pesenti Gritti
1992a8a2d8 Disable journal automatic startup for now 2007-03-06 03:03:28 +01:00
John (J5) Palmieri
05081b3fa5 use hal to detect the presence of a v4l device
* right now we check for anything with the capability of 'video4linux' and
  for info.linux.driver = 'cafe1000-ccic' which is the olpc's webcam
2007-03-05 16:10:14 -05:00
Marco Pesenti Gritti
e62fcbd296 Call remove access point with the right signature 2007-03-05 20:32:39 +01:00
Marco Pesenti Gritti
4d0c540f85 Fix bw/color switch. Patch by Owen Williams. 2007-03-04 00:54:50 +01:00
Marco Pesenti Gritti
b4836718de Fix signal signature 2007-03-03 21:25:34 +01:00
Marco Pesenti Gritti
921bccd48c Tweak video size. People report it's too big on the olpc too.
Dan feel free to tweak this, I'm changing it to get a functional
build in for tonight compose.
2007-03-02 21:02:18 +01:00
Marco Pesenti Gritti
69f8d84663 Make video size resolution dependent at least in the emulator. 2007-03-02 20:39:29 +01:00
Marco Pesenti Gritti
7b89672604 Catch GetActiveNetwork exceptions.
Listen for activation failures.
2007-03-02 16:45:09 +01:00
Marco Pesenti Gritti
d748682ef7 Handle the case where we get an Activating event
but we don't have an active device yet.
2007-03-02 15:56:06 +01:00
Marco Pesenti Gritti
baad778406 Improve logging 2007-03-02 15:11:59 +01:00
Dan Williams
48e9887d92 Fix key release in keyhandler 2007-02-28 15:49:33 -05:00
Dan Williams
9333af3d07 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-28 15:48:48 -05:00
Dan Williams
7ce21d47bd Ensure video is realized before showing live video 2007-02-28 15:41:00 -05:00
Marco Pesenti Gritti
ad17143eb3 Missing file 2007-02-28 18:00:03 +01:00
Tomeu Vizoso
6704e1bfd3 Button fixes and fix launching activities from the clipboard. 2007-02-28 16:41:50 +01:00
Marco Pesenti Gritti
32ac23ce27 Make the icon pulse when connecting 2007-02-28 16:19:01 +01:00
Marco Pesenti Gritti
aec4fcf874 More work on devices, getting there 2007-02-28 15:42:41 +01:00
Tomeu Vizoso
f09a63930f Fix stroke/fill on ZoomBox icons. 2007-02-27 22:35:28 +01:00
Marco Pesenti Gritti
8a9232234b Fix distcheck 2007-02-27 22:21:55 +01:00
Dan Williams
8a53a31c49 Have IntroWindow handle profile creation so it can hide itself before generating keys 2007-02-27 15:03:25 -05:00
Dan Williams
f5051b7c14 Add get_color() function 2007-02-27 15:02:42 -05:00
Dan Williams
f3cedf1bca Don't create already existing config sections 2007-02-27 14:45:06 -05:00
Guillaume Desmottes
17e33c7495 Merge branch 'master' of git+ssh://guillaume@dev.laptop.org/git/sugar 2007-02-27 19:08:29 +01:00
Guillaume Desmottes
5535aefc75 Add a Server section in the config file and use it to register only when needed 2007-02-27 19:08:17 +01:00
Marco Pesenti Gritti
7081909d2d Fix some bugs with frame animation and enable it 2007-02-27 17:04:15 +01:00
Marco Pesenti Gritti
b04c19efb4 Add a window class to graphics, it contains a canvas. 2007-02-27 13:41:51 +01:00
Dan Williams
a1f5684944 Make buddy icon selection a bit more consistent 2007-02-26 11:10:24 -05:00
Marco Pesenti Gritti
df1f01552d Fix overlay box alignment 2007-02-26 14:54:17 +01:00
Marco Pesenti Gritti
8f57bf7c9d Support running without network manager service.
Rework code to run without hardware manager service.
2007-02-26 14:42:39 +01:00
Marco Pesenti Gritti
4c23a821ef Missing file 2007-02-26 14:11:55 +01:00
Marco Pesenti Gritti
d86290426c Restore NetworkManagerInfo.conf 2007-02-26 13:41:03 +01:00
Marco Pesenti Gritti
c433d97db9 Get rid of the old first time dialog 2007-02-26 13:33:02 +01:00
Marco Pesenti Gritti
de2a2011c6 Fix propagation of Device ssid changes 2007-02-26 13:24:21 +01:00
Marco Pesenti Gritti
6fadbde8bc Fix up propagation of the state property changes 2007-02-26 13:20:36 +01:00
Marco Pesenti Gritti
dd74d030c3 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-26 12:26:23 +01:00
Marco Pesenti Gritti
fa1d25d441 Add a device-added signal 2007-02-26 12:26:10 +01:00
Marco Pesenti Gritti
89a91954c9 More work on network devices, getting there 2007-02-26 12:23:00 +01:00
Dan Williams
88728f996e Remove debugging stuff 2007-02-25 22:27:33 -05:00
Dan Williams
a48fe93cc3 Return list of devices, not dict 2007-02-25 22:06:41 -05:00
Dan Williams
0cad068bf4 Merge 2007-02-25 19:27:37 -05:00
Dan Williams
1f91f7f7af New intro/setup screen 2007-02-25 17:53:10 -05:00
Marco Pesenti Gritti
69b48ade35 s/essid/ssid 2007-02-25 21:19:18 +01:00
Tomeu Vizoso
a9c4e4b8e5 Fix bug #920. 2007-02-25 18:03:17 +01:00
Marco Pesenti Gritti
4299dd6765 Cleanups 2007-02-25 17:51:30 +01:00
Marco Pesenti Gritti
66f26e4b8b Fixup tooltips. Still not working for the home page case, since
the active device logic is pretty broken.
2007-02-25 17:34:15 +01:00
Marco Pesenti Gritti
e803f6534f Add ssid tooltip to the home too. Not working yet. 2007-02-25 15:24:04 +01:00
Marco Pesenti Gritti
10bfe004a8 Fix strength propagation 2007-02-25 15:05:56 +01:00
Marco Pesenti Gritti
f907ceeae6 Display strength of wireless device/networks 2007-02-25 14:30:17 +01:00
Marco Pesenti Gritti
81e2e9ed8d Get rid of the old nm applet 2007-02-25 13:40:24 +01:00
Marco Pesenti Gritti
c0c753d169 Add back wep key dialog 2007-02-25 12:44:54 +01:00
Marco Pesenti Gritti
7c135804bc Handle device removal 2007-02-25 12:36:44 +01:00
Marco Pesenti Gritti
38ac42d665 Activate the network on click 2007-02-25 12:17:45 +01:00
Marco Pesenti Gritti
91722dfebc Add a tooltip with the ap name, not working for some reason 2007-02-25 11:52:14 +01:00
Marco Pesenti Gritti
06e0923687 First go at access points on the mesh view 2007-02-25 11:39:35 +01:00
Marco Pesenti Gritti
6a4170a51e Get the wireless device to show. 2007-02-25 02:28:14 +01:00
Marco Pesenti Gritti
755250947a Some work on the network devices 2007-02-25 02:00:40 +01:00
Marco Pesenti Gritti
89aa65d0f6 Move hardwaremanager out of the view to his own module 2007-02-25 01:07:05 +01:00
Owen Williams
d7eb3fd734 Fix part of bug 853, reposition and resize sugar frame after rotate 2007-02-24 13:28:04 -05:00
Tomeu Vizoso
ce800fbc66 Add hover to BuddyIcon in the Frame. 2007-02-24 14:58:38 +01:00
Tomeu Vizoso
940b50b4e6 Add hover to ClipboardIcon. 2007-02-24 14:35:31 +01:00
Tomeu Vizoso
52fc6826ab Typo. 2007-02-24 14:23:18 +01:00
Tomeu Vizoso
a2e5b9308e Rename color property in CanvasIcon to xo-color and added properties fill-color and stroke-color. 2007-02-23 17:08:37 +01:00
Tomeu Vizoso
cb0d75eb59 Rename IconColor to XoColor. 2007-02-23 13:09:33 +01:00
Tomeu Vizoso
6756c00917 Added tooltips to CanvasIcon and implement popup positioning in the Frame. 2007-02-22 22:51:24 +01:00
Marco Pesenti Gritti
2c896e35b1 Pass the right parameters to HomeActivity 2007-02-22 17:55:46 +01:00
Tomeu Vizoso
8679737d86 Rename for new API. 2007-02-22 17:39:06 +01:00
Marco Pesenti Gritti
fc805d3a88 Adapt to activity api change 2007-02-22 17:27:00 +01:00
Marco Pesenti Gritti
995c59cb3e Make sugar-activity-factory just a wrapper. 2007-02-22 14:11:50 +01:00
Marco Pesenti Gritti
0b6b6cd6ac Cleanup the Activity API, code needs more love. 2007-02-22 00:57:49 +01:00
Marco Pesenti Gritti
5cf2b49cc1 Add an handle argument to the factory and to the activity constructor. 2007-02-22 00:07:08 +01:00
Tomeu Vizoso
c9af045e43 Removed MenuIcon. 2007-02-21 21:15:08 +01:00
Tomeu Vizoso
b452b7d718 Make ClipboardIcon use the new Menu. 2007-02-21 21:12:27 +01:00
Marco Pesenti Gritti
9ba487fa1f Generate the id in ActivityFactory. I want it to be easy to
run activities without using the shell. Some regression in
the debug messages, which I'll fix as part of further
refactoring.
2007-02-21 20:56:14 +01:00
Marco Pesenti Gritti
ef3f861954 Fix caps 2007-02-21 20:20:36 +01:00
Marco Pesenti Gritti
2627f7ff93 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-21 18:06:52 +01:00
Marco Pesenti Gritti
11264b48b2 Split factory client and server 2007-02-21 18:06:39 +01:00
Tomeu Vizoso
7be3333671 Make BuddyIcon and BuddyMenu use the new Menu. 2007-02-21 17:55:44 +01:00
Marco Pesenti Gritti
3fbc00f74a Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar 2007-02-21 17:54:01 +01:00
Marco Pesenti Gritti
7db372cc1c Make bundle registry a singleton. Get the object path from the registry. 2007-02-21 17:53:44 +01:00
Marco Pesenti Gritti
f5b13b716e Do not expose the service names from Activity.
This create quite a bit of duplication, but I have to start somewhere cleaning this mess :/
2007-02-21 17:28:49 +01:00
Tomeu Vizoso
3ce2a67304 Refactored Menu out of Popup. 2007-02-21 17:05:41 +01:00
Tomeu Vizoso
500f979302 Renamed Button to IconButton. 2007-02-21 13:01:20 +01:00
Tomeu Vizoso
bbfe539429 Renamed Rollover to Popup. 2007-02-21 10:16:03 +01:00
Marco Pesenti Gritti
0ae5f61a07 Ooops changed the installation path by mistake 2007-02-20 22:12:33 +01:00
Tomeu Vizoso
f3cf928f31 Added Rollover control. 2007-02-20 16:38:25 +01:00
Marco Pesenti Gritti
5f65056d78 Cleanups 2007-02-20 16:35:07 +01:00
Marco Pesenti Gritti
7e96b1afb7 Get rid of the old grid. Never use absolute positioning. 2007-02-20 16:23:49 +01:00
Marco Pesenti Gritti
3de915db96 Completely drop stylesheets. Move some of it inside the nm service, don't want to touch that code because it will be rewritten. 2007-02-20 15:10:18 +01:00
Marco Pesenti Gritti
ee66b2237d More work to get rid of stylesheets, some regressions. 2007-02-20 14:57:50 +01:00
Marco Pesenti Gritti
7ba58f68b0 Position the device icons around the donut 2007-02-20 12:01:58 +01:00
Marco Pesenti Gritti
e0dd1f5232 Infrastructure for the home page devices 2007-02-20 11:48:03 +01:00
Marco Pesenti Gritti
e24193c551 Get rid of stylesheets for MyIcon. 2007-02-19 17:59:29 +01:00
Marco Pesenti Gritti
d199e99514 Do not use Grid here, use units 2007-02-19 17:53:03 +01:00
Marco Pesenti Gritti
927926b49a Remove reference to a stylesheet 2007-02-16 15:38:14 +01:00