[Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello everyone,

I saw that a Python activity, Turtle art, has two toolbars (a main toolbar,
and a personalized toolbar just below, which content is set by the
selection of the main toolbar). I would like to do something like this
inside my LearningChess activity :

   - Is this easy to do in sugar web activity ?
   - Can I even go further : I mean use three toolbars instead of 2 (one
   main toolbar, the second rely on the choice of the main toolbar, and the
   third on the choice of the second) ?
   - Is my second request suitable for an Android adaptation ? (As I know
   there are experimentations in order to port standard activities to Android).


Regards
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread Gonzalo Odiard
Sugar implement a primary and a secondary toolbar, attached to a button.
You can't add a third. And by design is probably a bad idea.
I think in the web activities, the secondary toolbars are not implemented
yet.

Gonzalo


On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe
laurent.bern...@gmail.comwrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2 (one
main toolbar, the second rely on the choice of the main toolbar, and the
third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I know
there are experimentations in order to port standard activities to 
 Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




-- 
Gonzalo Odiard

SugarLabs - Learning Software for children
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Thank you for your answer. So I'll try to do without them.

Regards


2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not implemented
 yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2 (one
main toolbar, the second rely on the choice of the main toolbar, and the
third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread Sam Parkinson
Hi,

Couldn't you just create another toolbar div and .show and .hide when
needed?

Sam
On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not implemented
 yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2
(one main toolbar, the second rely on the choice of the main toolbar, and
the third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello,

thank you for your answer and your idea.

So I can add, for example, 10 versions of the toolbar overlapping just
below the main-toolbar, and to show only one toolbar (or zero) at one time.
Or maybe, my idea is the wrong way to do ?

As for the third dynamic toolbar, I am still wondering why Gonzola Odiard
said that it is probably a bad idea by design.

Indeed, I would like to split the learning in 4 steps, then in each step,
there is a kind of piece to choose in the second toolbar : and the third is
choosing either a lesson or an exercice.

Theme
  |
Piece
 |
Lesson or exercice


Regards


2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:

 Hi,

 Couldn't you just create another toolbar div and .show and .hide when
 needed?

 Sam
 On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not
 implemented yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2
(one main toolbar, the second rely on the choice of the main toolbar, 
 and
the third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel


___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
I've just realised that I can do without a 3rd toolbar :

___
Theme_Lesson or Them_Exercice = T1_LEsson, T1_exercice, T2_lesson ...
|
Piece_kind = pawn, knight ... king
___

That way I can save a toolbar :).

I still have to find what is the best way to handle the second toolbar and
its dynamic content.

Regards


2014-03-22 21:24 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hello,

 thank you for your answer and your idea.

 So I can add, for example, 10 versions of the toolbar overlapping just
 below the main-toolbar, and to show only one toolbar (or zero) at one time.
 Or maybe, my idea is the wrong way to do ?

 As for the third dynamic toolbar, I am still wondering why Gonzola Odiard
 said that it is probably a bad idea by design.

 Indeed, I would like to split the learning in 4 steps, then in each step,
 there is a kind of piece to choose in the second toolbar : and the third is
 choosing either a lesson or an exercice.

 Theme
   |
 Piece
  |
 Lesson or exercice


 Regards


 2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:

 Hi,

 Couldn't you just create another toolbar div and .show and .hide when
 needed?

 Sam
 On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not
 implemented yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by 
 the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

- Is this easy to do in sugar web activity ?
- Can I even go further : I mean use three toolbars instead of 2
(one main toolbar, the second rely on the choice of the main toolbar, 
 and
the third on the choice of the second) ?
- Is my second request suitable for an Android adaptation ? (As I
know there are experimentations in order to port standard activities to
Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread Manuel Quiñones
hi laurent,

lionel and i discussed secondary toolbars a while ago.
we agreed in not implement them for web because we think that palettes
are more convenient.

in web you can easily make any kind of palette.  just inherit Palette
like ActivityPalette does.

also secondary toolbars make the activity main area [1] change its
height when it appears and dissapears, and i find that very
problematic.

[1] named canvas, not to confuse with html canvas tag

2014-03-22 17:28 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
 I've just realised that I can do without a 3rd toolbar :

 ___
 Theme_Lesson or Them_Exercice = T1_LEsson, T1_exercice, T2_lesson ...
 |
 Piece_kind = pawn, knight ... king
 ___

 That way I can save a toolbar :).

 I still have to find what is the best way to handle the second toolbar and
 its dynamic content.

 Regards


 2014-03-22 21:24 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:

 Hello,

 thank you for your answer and your idea.

 So I can add, for example, 10 versions of the toolbar overlapping just
 below the main-toolbar, and to show only one toolbar (or zero) at one time.
 Or maybe, my idea is the wrong way to do ?

 As for the third dynamic toolbar, I am still wondering why Gonzola Odiard
 said that it is probably a bad idea by design.

 Indeed, I would like to split the learning in 4 steps, then in each step,
 there is a kind of piece to choose in the second toolbar : and the third is
 choosing either a lesson or an exercice.

 Theme
   |
 Piece
  |
 Lesson or exercice


 Regards


 2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:

 Hi,

 Couldn't you just create another toolbar div and .show and .hide when
 needed?

 Sam

 On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
 wrote:

 Thank you for your answer. So I'll try to do without them.

 Regards


 2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:

 Sugar implement a primary and a secondary toolbar, attached to a
 button.
 You can't add a third. And by design is probably a bad idea.
 I think in the web activities, the secondary toolbars are not
 implemented yet.

 Gonzalo


 On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I saw that a Python activity, Turtle art, has two toolbars (a main
 toolbar, and a personalized toolbar just below, which content is set by 
 the
 selection of the main toolbar). I would like to do something like this
 inside my LearningChess activity :

 Is this easy to do in sugar web activity ?
 Can I even go further : I mean use three toolbars instead of 2 (one
 main toolbar, the second rely on the choice of the main toolbar, and the
 third on the choice of the second) ?
 Is my second request suitable for an Android adaptation ? (As I know
 there are experimentations in order to port standard activities to 
 Android).


 Regards

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 --
 Gonzalo Odiard

 SugarLabs - Learning Software for children



 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel




-- 
.. manuq ..
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Hello,

thank you. So I'll have a look at Palette Activity and try to use palettes
in my code.

(Where is the ActivityPalette code hosted ? I've looked at
http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
ActivityPalette).

Regards


2014-03-22 21:50 GMT+01:00 Manuel Quiñones ma...@laptop.org:

 hi laurent,

 lionel and i discussed secondary toolbars a while ago.
 we agreed in not implement them for web because we think that palettes
 are more convenient.

 in web you can easily make any kind of palette.  just inherit Palette
 like ActivityPalette does.

 also secondary toolbars make the activity main area [1] change its
 height when it appears and dissapears, and i find that very
 problematic.

 [1] named canvas, not to confuse with html canvas tag

 2014-03-22 17:28 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
  I've just realised that I can do without a 3rd toolbar :
 
  ___
  Theme_Lesson or Them_Exercice = T1_LEsson, T1_exercice, T2_lesson ...
  |
  Piece_kind = pawn, knight ... king
  ___
 
  That way I can save a toolbar :).
 
  I still have to find what is the best way to handle the second toolbar
 and
  its dynamic content.
 
  Regards
 
 
  2014-03-22 21:24 GMT+01:00 laurent bernabe laurent.bern...@gmail.com:
 
  Hello,
 
  thank you for your answer and your idea.
 
  So I can add, for example, 10 versions of the toolbar overlapping just
  below the main-toolbar, and to show only one toolbar (or zero) at one
 time.
  Or maybe, my idea is the wrong way to do ?
 
  As for the third dynamic toolbar, I am still wondering why Gonzola
 Odiard
  said that it is probably a bad idea by design.
 
  Indeed, I would like to split the learning in 4 steps, then in each
 step,
  there is a kind of piece to choose in the second toolbar : and the
 third is
  choosing either a lesson or an exercice.
 
  Theme
|
  Piece
   |
  Lesson or exercice
 
 
  Regards
 
 
  2014-03-22 21:13 GMT+01:00 Sam Parkinson sam.parkins...@gmail.com:
 
  Hi,
 
  Couldn't you just create another toolbar div and .show and .hide when
  needed?
 
  Sam
 
  On Mar 23, 2014 6:01 AM, laurent bernabe laurent.bern...@gmail.com
  wrote:
 
  Thank you for your answer. So I'll try to do without them.
 
  Regards
 
 
  2014-03-22 19:59 GMT+01:00 Gonzalo Odiard godi...@sugarlabs.org:
 
  Sugar implement a primary and a secondary toolbar, attached to a
  button.
  You can't add a third. And by design is probably a bad idea.
  I think in the web activities, the secondary toolbars are not
  implemented yet.
 
  Gonzalo
 
 
  On Sat, Mar 22, 2014 at 8:22 AM, laurent bernabe
  laurent.bern...@gmail.com wrote:
 
  Hello everyone,
 
  I saw that a Python activity, Turtle art, has two toolbars (a main
  toolbar, and a personalized toolbar just below, which content is
 set by the
  selection of the main toolbar). I would like to do something like
 this
  inside my LearningChess activity :
 
  Is this easy to do in sugar web activity ?
  Can I even go further : I mean use three toolbars instead of 2 (one
  main toolbar, the second rely on the choice of the main toolbar,
 and the
  third on the choice of the second) ?
  Is my second request suitable for an Android adaptation ? (As I know
  there are experimentations in order to port standard activities to
 Android).
 
 
  Regards
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
  --
  Gonzalo Odiard
 
  SugarLabs - Learning Software for children
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



 --
 .. manuq ..

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread Manuel Quiñones
2014-03-22 17:55 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
 Hello,

 thank you. So I'll have a look at Palette Activity and try to use palettes
 in my code.

 (Where is the ActivityPalette code hosted ? I've looked at
 http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
 ActivityPalette).

https://github.com/sugarlabs/sugar-web/blob/master/graphics/activitypalette.js

-- 
.. manuq ..
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Several toolbars in a sugar web activity ?

2014-03-22 Thread laurent bernabe
Thank you.

I didn't realized it was the activitypalette code from the sugar web
activity code.

Regards


2014-03-22 22:18 GMT+01:00 Manuel Quiñones ma...@laptop.org:

 2014-03-22 17:55 GMT-03:00 laurent bernabe laurent.bern...@gmail.com:
  Hello,
 
  thank you. So I'll have a look at Palette Activity and try to use
 palettes
  in my code.
 
  (Where is the ActivityPalette code hosted ? I've looked at
  http://wiki.sugarlabs.org/go/Activities, but it has no reference on the
  ActivityPalette).


 https://github.com/sugarlabs/sugar-web/blob/master/graphics/activitypalette.js

 --
 .. manuq ..

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel