[Pharo-project] Tiling windows

2011-05-22 Thread laurent laffont
Hi,

what do you think of adding this in Pharo ?

|taskbar tileWindowsBlock|

tileWindowsBlock := [
  |windows numberOfColumns numberOfRows windowWidth windowHeight|
  windows := (World submorphs select: [:m| m isSystemWindow and: [m
isNotMinimized]]) asOrderedCollection.
  numberOfColumns := windows size sqrtFloor.
  numberOfRows := (windows size / numberOfColumns) rounded.
  windowWidth := World width // numberOfColumns..
  windowHeight := World height  - taskbar height // numberOfRows.

  Matrix
rows: numberOfRows
columns: numberOfColumns
tabulate: [:row :column|  |window|
  windows ifNotEmpty: [
  window := windows remove: windows first.
  window
  bounds: (
  ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
  extent: (windowWidth) @  windowHeight)
  ]
]
].


taskbar := (World submorphs detect: [:m| m isTaskbar]).

taskbar
  addMorph: (IconicButton new
target: tileWindowsBlock;
actionSelector: #value;
labelGraphic: taskbar theme smallWindowIcon;
color: Color transparent;
yourself).


Laurent Laffont - @lolgzs 

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
Developer group: http://cara74.seasidehosting.st


Re: [Pharo-project] Tiling windows

2011-05-22 Thread laurent laffont
On Sun, May 22, 2011 at 8:25 PM, laurent laffont
wrote:

> Hi,
>
> what do you think of adding this in Pharo ?
>


(I forgot I've hacked TaskBarMorph to make it working well but the idea is
here :)



>
> |taskbar tileWindowsBlock|
>
> tileWindowsBlock := [
>   |windows numberOfColumns numberOfRows windowWidth windowHeight|
>   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
>   numberOfColumns := windows size sqrtFloor.
>   numberOfRows := (windows size / numberOfColumns) rounded.
>   windowWidth := World width // numberOfColumns..
>   windowHeight := World height  - taskbar height // numberOfRows.
>
>   Matrix
> rows: numberOfRows
> columns: numberOfColumns
> tabulate: [:row :column|  |window|
>   windows ifNotEmpty: [
>   window := windows remove: windows first.
>   window
>   bounds: (
>   ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
>   extent: (windowWidth) @  windowHeight)
>   ]
> ]
> ].
>
>
> taskbar := (World submorphs detect: [:m| m isTaskbar]).
>
> taskbar
>   addMorph: (IconicButton new
> target: tileWindowsBlock;
> actionSelector: #value;
> labelGraphic: taskbar theme smallWindowIcon;
> color: Color transparent;
> yourself).
>
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Stéphane Ducasse
send a cs that we can play with it :)

On May 22, 2011, at 8:25 PM, laurent laffont wrote:

> Hi,
> 
> what do you think of adding this in Pharo ?
> 
> |taskbar tileWindowsBlock|
> 
> tileWindowsBlock := [ 
>   |windows numberOfColumns numberOfRows windowWidth windowHeight|
>   windows := (World submorphs select: [:m| m isSystemWindow and: [m 
> isNotMinimized]]) asOrderedCollection.   
>   numberOfColumns := windows size sqrtFloor.
>   numberOfRows := (windows size / numberOfColumns) rounded.
>   windowWidth := World width // numberOfColumns..
>   windowHeight := World height  - taskbar height // numberOfRows.
> 
>   Matrix 
> rows: numberOfRows 
> columns: numberOfColumns 
> tabulate: [:row :column|  |window| 
>   windows ifNotEmpty: [  
>   window := windows remove: windows first.
>   window 
>   bounds: (
>   ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
>   extent: (windowWidth) @  windowHeight)
>   ]
> ]
> ].
> 
> 
> taskbar := (World submorphs detect: [:m| m isTaskbar]).
> 
> taskbar 
>   addMorph: (IconicButton new
> target: tileWindowsBlock;
> actionSelector: #value;
> labelGraphic: taskbar theme smallWindowIcon;
> color: Color transparent;
> yourself).  
> 
> 
> Laurent Laffont - @lolgzs
> 
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
> 




Re: [Pharo-project] Tiling windows

2011-05-23 Thread laurent laffont
On 1.2:

Gofer it
squeaksource: 'LaurentLSandbox';
version: 'Polymorph-Widgets-LaurentLaffont.388';
 load.


Then open or move a window so the TaskBar is updated and you have a new
"magic" button on bottom left.

(note this is hacky actually, I will write a nicer version this week if
people like it).

Laurent.

On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse  wrote:

> send a cs that we can play with it :)
>
> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>
> > Hi,
> >
> > what do you think of adding this in Pharo ?
> >
> > |taskbar tileWindowsBlock|
> >
> > tileWindowsBlock := [
> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
> >   numberOfColumns := windows size sqrtFloor.
> >   numberOfRows := (windows size / numberOfColumns) rounded.
> >   windowWidth := World width // numberOfColumns..
> >   windowHeight := World height  - taskbar height // numberOfRows.
> >
> >   Matrix
> > rows: numberOfRows
> > columns: numberOfColumns
> > tabulate: [:row :column|  |window|
> >   windows ifNotEmpty: [
> >   window := windows remove: windows first.
> >   window
> >   bounds: (
> >   ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
> >   extent: (windowWidth) @  windowHeight)
> >   ]
> > ]
> > ].
> >
> >
> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> >
> > taskbar
> >   addMorph: (IconicButton new
> > target: tileWindowsBlock;
> > actionSelector: #value;
> > labelGraphic: taskbar theme smallWindowIcon;
> > color: Color transparent;
> > yourself).
> >
> >
> > Laurent Laffont - @lolgzs
> >
> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > Blog: http://magaloma.blogspot.com/
> > Developer group: http://cara74.seasidehosting.st
> >
>
>
>


Re: [Pharo-project] Tiling windows

2011-05-23 Thread laurent laffont
2011/5/23 Gastón Dall' Oglio 

> Laurent, I attached a package I've added some improvements to your work, I
> have found useful. Of course I am not knowledgeable about morph, just added
> some and perhaps can serve as inspiration.
>

Thanks Gastón, I like the idea. It will be a good step forward in having
better window management. Now we should rewrite this clean + tests (may be
adding the notion of widgets like in KDE / Gnome).

As windows fill all the space, would be good to have a button to open the
world menu.

I would love having the possibility of splitting the World + back and
forward configuration like Emacs winner mode, keyboard driven.

Since several days I use http://most-advantageous.com/optimal-layout/ on OSX
and there's some great ideas too.

Laurent.


>
> 2011/5/23 laurent laffont 
>
>> On 1.2:
>>
>> Gofer it
>> squeaksource: 'LaurentLSandbox';
>> version: 'Polymorph-Widgets-LaurentLaffont.388';
>>  load.
>>
>>
>> Then open or move a window so the TaskBar is updated and you have a new
>> "magic" button on bottom left.
>>
>> (note this is hacky actually, I will write a nicer version this week if
>> people like it).
>>
>> Laurent.
>>
>> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
>> stephane.duca...@inria.fr> wrote:
>>
>>> send a cs that we can play with it :)
>>>
>>> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>>>
>>> > Hi,
>>> >
>>> > what do you think of adding this in Pharo ?
>>> >
>>> > |taskbar tileWindowsBlock|
>>> >
>>> > tileWindowsBlock := [
>>> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
>>> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
>>> isNotMinimized]]) asOrderedCollection.
>>> >   numberOfColumns := windows size sqrtFloor.
>>> >   numberOfRows := (windows size / numberOfColumns) rounded.
>>> >   windowWidth := World width // numberOfColumns..
>>> >   windowHeight := World height  - taskbar height // numberOfRows.
>>> >
>>> >   Matrix
>>> > rows: numberOfRows
>>> > columns: numberOfColumns
>>> > tabulate: [:row :column|  |window|
>>> >   windows ifNotEmpty: [
>>> >   window := windows remove: windows first.
>>> >   window
>>> >   bounds: (
>>> >   ((column - 1 * windowWidth) @ (row - 1 *
>>> windowHeight))
>>> >   extent: (windowWidth) @  windowHeight)
>>> >   ]
>>> > ]
>>> > ].
>>> >
>>> >
>>> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
>>> >
>>> > taskbar
>>> >   addMorph: (IconicButton new
>>> > target: tileWindowsBlock;
>>> > actionSelector: #value;
>>> > labelGraphic: taskbar theme smallWindowIcon;
>>> > color: Color transparent;
>>> > yourself).
>>> >
>>> >
>>> > Laurent Laffont - @lolgzs
>>> >
>>> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> > Blog: http://magaloma.blogspot.com/
>>> > Developer group: http://cara74.seasidehosting.st
>>> >
>>>
>>>
>>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Sean Allen
I love this.

On Sun, May 22, 2011 at 2:25 PM, laurent laffont
wrote:

> Hi,
>
> what do you think of adding this in Pharo ?
>
> |taskbar tileWindowsBlock|
>
> tileWindowsBlock := [
>   |windows numberOfColumns numberOfRows windowWidth windowHeight|
>   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
>   numberOfColumns := windows size sqrtFloor.
>   numberOfRows := (windows size / numberOfColumns) rounded.
>   windowWidth := World width // numberOfColumns..
>   windowHeight := World height  - taskbar height // numberOfRows.
>
>   Matrix
> rows: numberOfRows
> columns: numberOfColumns
> tabulate: [:row :column|  |window|
>   windows ifNotEmpty: [
>   window := windows remove: windows first.
>   window
>   bounds: (
>   ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
>   extent: (windowWidth) @  windowHeight)
>   ]
> ]
> ].
>
>
> taskbar := (World submorphs detect: [:m| m isTaskbar]).
>
> taskbar
>   addMorph: (IconicButton new
> target: tileWindowsBlock;
> actionSelector: #value;
> labelGraphic: taskbar theme smallWindowIcon;
> color: Color transparent;
> yourself).
>
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Mariano Martinez Peck
Be careful, in 1.3 it hangs my image and I was forced to kill it.

2011/5/23 Gastón Dall' Oglio 

> Laurent, I attached a package I've added some improvements to your work, I
> have found useful. Of course I am not knowledgeable about morph, just added
> some and perhaps can serve as inspiration.
>
>
> 2011/5/23 laurent laffont 
>
>> On 1.2:
>>
>> Gofer it
>> squeaksource: 'LaurentLSandbox';
>> version: 'Polymorph-Widgets-LaurentLaffont.388';
>>  load.
>>
>>
>> Then open or move a window so the TaskBar is updated and you have a new
>> "magic" button on bottom left.
>>
>> (note this is hacky actually, I will write a nicer version this week if
>> people like it).
>>
>> Laurent.
>>
>> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
>> stephane.duca...@inria.fr> wrote:
>>
>>> send a cs that we can play with it :)
>>>
>>> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>>>
>>> > Hi,
>>> >
>>> > what do you think of adding this in Pharo ?
>>> >
>>> > |taskbar tileWindowsBlock|
>>> >
>>> > tileWindowsBlock := [
>>> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
>>> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
>>> isNotMinimized]]) asOrderedCollection.
>>> >   numberOfColumns := windows size sqrtFloor.
>>> >   numberOfRows := (windows size / numberOfColumns) rounded.
>>> >   windowWidth := World width // numberOfColumns..
>>> >   windowHeight := World height  - taskbar height // numberOfRows.
>>> >
>>> >   Matrix
>>> > rows: numberOfRows
>>> > columns: numberOfColumns
>>> > tabulate: [:row :column|  |window|
>>> >   windows ifNotEmpty: [
>>> >   window := windows remove: windows first.
>>> >   window
>>> >   bounds: (
>>> >   ((column - 1 * windowWidth) @ (row - 1 *
>>> windowHeight))
>>> >   extent: (windowWidth) @  windowHeight)
>>> >   ]
>>> > ]
>>> > ].
>>> >
>>> >
>>> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
>>> >
>>> > taskbar
>>> >   addMorph: (IconicButton new
>>> > target: tileWindowsBlock;
>>> > actionSelector: #value;
>>> > labelGraphic: taskbar theme smallWindowIcon;
>>> > color: Color transparent;
>>> > yourself).
>>> >
>>> >
>>> > Laurent Laffont - @lolgzs
>>> >
>>> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> > Blog: http://magaloma.blogspot.com/
>>> > Developer group: http://cara74.seasidehosting.st
>>> >
>>>
>>>
>>>
>>
>


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Gastón Dall' Oglio
Sorry Mariano, I omitted to say that I tried this on a one-click image
1.2.1, but still is not the code so try to share with you but the idea of
separating the types of windows, which I found very useful when I have many
windows.

2011/5/23 Mariano Martinez Peck 

> Be careful, in 1.3 it hangs my image and I was forced to kill it.
>
> 2011/5/23 Gastón Dall' Oglio 
>
>> Laurent, I attached a package I've added some improvements to your work, I
>> have found useful. Of course I am not knowledgeable about morph, just added
>> some and perhaps can serve as inspiration.
>>
>>
>> 2011/5/23 laurent laffont 
>>
>>> On 1.2:
>>>
>>> Gofer it
>>> squeaksource: 'LaurentLSandbox';
>>> version: 'Polymorph-Widgets-LaurentLaffont.388';
>>>  load.
>>>
>>>
>>> Then open or move a window so the TaskBar is updated and you have a new
>>> "magic" button on bottom left.
>>>
>>> (note this is hacky actually, I will write a nicer version this week if
>>> people like it).
>>>
>>> Laurent.
>>>
>>> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
>>> stephane.duca...@inria.fr> wrote:
>>>
 send a cs that we can play with it :)

 On May 22, 2011, at 8:25 PM, laurent laffont wrote:

 > Hi,
 >
 > what do you think of adding this in Pharo ?
 >
 > |taskbar tileWindowsBlock|
 >
 > tileWindowsBlock := [
 >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
 >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
 isNotMinimized]]) asOrderedCollection.
 >   numberOfColumns := windows size sqrtFloor.
 >   numberOfRows := (windows size / numberOfColumns) rounded.
 >   windowWidth := World width // numberOfColumns..
 >   windowHeight := World height  - taskbar height // numberOfRows.
 >
 >   Matrix
 > rows: numberOfRows
 > columns: numberOfColumns
 > tabulate: [:row :column|  |window|
 >   windows ifNotEmpty: [
 >   window := windows remove: windows first.
 >   window
 >   bounds: (
 >   ((column - 1 * windowWidth) @ (row - 1 *
 windowHeight))
 >   extent: (windowWidth) @  windowHeight)
 >   ]
 > ]
 > ].
 >
 >
 > taskbar := (World submorphs detect: [:m| m isTaskbar]).
 >
 > taskbar
 >   addMorph: (IconicButton new
 > target: tileWindowsBlock;
 > actionSelector: #value;
 > labelGraphic: taskbar theme smallWindowIcon;
 > color: Color transparent;
 > yourself).
 >
 >
 > Laurent Laffont - @lolgzs
 >
 > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 > Blog: http://magaloma.blogspot.com/
 > Developer group: http://cara74.seasidehosting.st
 >



>>>
>>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Mariano Martinez Peck
Yes Gaston, don't worry ;)  I didn't have any useful in the image. I just
warned in case some other folks do.

2011/5/23 Gastón Dall' Oglio 

> Sorry Mariano, I omitted to say that I tried this on a one-click image
> 1.2.1, but still is not the code so try to share with you but the idea of
> separating the types of windows, which I found very useful when I have many
> windows.
>
> 2011/5/23 Mariano Martinez Peck 
>
>> Be careful, in 1.3 it hangs my image and I was forced to kill it.
>>
>> 2011/5/23 Gastón Dall' Oglio 
>>
>>> Laurent, I attached a package I've added some improvements to your work,
>>> I have found useful. Of course I am not knowledgeable about morph, just
>>> added some and perhaps can serve as inspiration.
>>>
>>>
>>> 2011/5/23 laurent laffont 
>>>
 On 1.2:

 Gofer it
 squeaksource: 'LaurentLSandbox';
 version: 'Polymorph-Widgets-LaurentLaffont.388';
  load.


 Then open or move a window so the TaskBar is updated and you have a new
 "magic" button on bottom left.

 (note this is hacky actually, I will write a nicer version this week if
 people like it).

 Laurent.

 On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
 stephane.duca...@inria.fr> wrote:

> send a cs that we can play with it :)
>
> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>
> > Hi,
> >
> > what do you think of adding this in Pharo ?
> >
> > |taskbar tileWindowsBlock|
> >
> > tileWindowsBlock := [
> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
> >   numberOfColumns := windows size sqrtFloor.
> >   numberOfRows := (windows size / numberOfColumns) rounded.
> >   windowWidth := World width // numberOfColumns..
> >   windowHeight := World height  - taskbar height // numberOfRows.
> >
> >   Matrix
> > rows: numberOfRows
> > columns: numberOfColumns
> > tabulate: [:row :column|  |window|
> >   windows ifNotEmpty: [
> >   window := windows remove: windows first.
> >   window
> >   bounds: (
> >   ((column - 1 * windowWidth) @ (row - 1 *
> windowHeight))
> >   extent: (windowWidth) @  windowHeight)
> >   ]
> > ]
> > ].
> >
> >
> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> >
> > taskbar
> >   addMorph: (IconicButton new
> > target: tileWindowsBlock;
> > actionSelector: #value;
> > labelGraphic: taskbar theme smallWindowIcon;
> > color: Color transparent;
> > yourself).
> >
> >
> > Laurent Laffont - @lolgzs
> >
> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > Blog: http://magaloma.blogspot.com/
> > Developer group: http://cara74.seasidehosting.st
> >
>
>
>

>>>
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-project] Tiling windows

2011-05-23 Thread Gastón Dall' Oglio
Laurent and corious :)

I add some TasklistMorph behavior. With the open list (cmd-rigth or
cmd-left):
* cmd-up: maximize all windows
* cmd-down: minimize all windows
* cmd-b: apply SystemBrowser windows's filter
* cmd-w: apply Worspace windows's filter
* cmd-a: remove windows's filter

** The cmd-b work in 1.2.1, in 1.3 you have to change
TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of
example and therefore does not perform properly filtered.


2011/5/23 laurent laffont 

> 2011/5/23 Gastón Dall' Oglio 
>
>> Laurent, I attached a package I've added some improvements to your work, I
>> have found useful. Of course I am not knowledgeable about morph, just added
>> some and perhaps can serve as inspiration.
>>
>
> Thanks Gastón, I like the idea. It will be a good step forward in having
> better window management. Now we should rewrite this clean + tests (may be
> adding the notion of widgets like in KDE / Gnome).
>
> As windows fill all the space, would be good to have a button to open the
> world menu.
>
> I would love having the possibility of splitting the World + back and
> forward configuration like Emacs winner mode, keyboard driven.
>
> Since several days I use http://most-advantageous.com/optimal-layout/ on
> OSX and there's some great ideas too.
>
> Laurent.
>
>
>>
>> 2011/5/23 laurent laffont 
>>
>>> On 1.2:
>>>
>>> Gofer it
>>> squeaksource: 'LaurentLSandbox';
>>> version: 'Polymorph-Widgets-LaurentLaffont.388';
>>>  load.
>>>
>>>
>>> Then open or move a window so the TaskBar is updated and you have a new
>>> "magic" button on bottom left.
>>>
>>> (note this is hacky actually, I will write a nicer version this week if
>>> people like it).
>>>
>>> Laurent.
>>>
>>> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
>>> stephane.duca...@inria.fr> wrote:
>>>
 send a cs that we can play with it :)

 On May 22, 2011, at 8:25 PM, laurent laffont wrote:

 > Hi,
 >
 > what do you think of adding this in Pharo ?
 >
 > |taskbar tileWindowsBlock|
 >
 > tileWindowsBlock := [
 >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
 >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
 isNotMinimized]]) asOrderedCollection.
 >   numberOfColumns := windows size sqrtFloor.
 >   numberOfRows := (windows size / numberOfColumns) rounded.
 >   windowWidth := World width // numberOfColumns..
 >   windowHeight := World height  - taskbar height // numberOfRows.
 >
 >   Matrix
 > rows: numberOfRows
 > columns: numberOfColumns
 > tabulate: [:row :column|  |window|
 >   windows ifNotEmpty: [
 >   window := windows remove: windows first.
 >   window
 >   bounds: (
 >   ((column - 1 * windowWidth) @ (row - 1 *
 windowHeight))
 >   extent: (windowWidth) @  windowHeight)
 >   ]
 > ]
 > ].
 >
 >
 > taskbar := (World submorphs detect: [:m| m isTaskbar]).
 >
 > taskbar
 >   addMorph: (IconicButton new
 > target: tileWindowsBlock;
 > actionSelector: #value;
 > labelGraphic: taskbar theme smallWindowIcon;
 > color: Color transparent;
 > yourself).
 >
 >
 > Laurent Laffont - @lolgzs
 >
 > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 > Blog: http://magaloma.blogspot.com/
 > Developer group: http://cara74.seasidehosting.st
 >



>>>
>>
>


TasklistMorph.st
Description: Binary data


Re: [Pharo-project] Tiling windows

2011-05-23 Thread laurent laffont
2011/5/24 Gastón Dall' Oglio 

> Laurent and corious :)
>
> I add some TasklistMorph behavior. With the open list (cmd-rigth or
> cmd-left):
> * cmd-up: maximize all windows
> * cmd-down: minimize all windows
> * cmd-b: apply SystemBrowser windows's filter
> * cmd-w: apply Worspace windows's filter
> * cmd-a: remove windows's filter
>
> ** The cmd-b work in 1.2.1, in 1.3 you have to change
> TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of
> example and therefore does not perform properly filtered.
>
>
I did not understand until I enable the setting "Keep task list open" :)

I've started a TilingWindowManager project (I will upload it this evening on
SS) so we can put all our stuff + tests without polluting TaskBar & Tasklist
too much.

Indeed, after 3 days I can't live without the tiling buttons :)

Laurent.



>
> 2011/5/23 laurent laffont 
>
>> 2011/5/23 Gastón Dall' Oglio 
>>
>>> Laurent, I attached a package I've added some improvements to your work,
>>> I have found useful. Of course I am not knowledgeable about morph, just
>>> added some and perhaps can serve as inspiration.
>>>
>>
>> Thanks Gastón, I like the idea. It will be a good step forward in having
>> better window management. Now we should rewrite this clean + tests (may be
>> adding the notion of widgets like in KDE / Gnome).
>>
>> As windows fill all the space, would be good to have a button to open the
>> world menu.
>>
>> I would love having the possibility of splitting the World + back and
>> forward configuration like Emacs winner mode, keyboard driven.
>>
>> Since several days I use http://most-advantageous.com/optimal-layout/ on
>> OSX and there's some great ideas too.
>>
>> Laurent.
>>
>>
>>>
>>> 2011/5/23 laurent laffont 
>>>
 On 1.2:

 Gofer it
 squeaksource: 'LaurentLSandbox';
 version: 'Polymorph-Widgets-LaurentLaffont.388';
  load.


 Then open or move a window so the TaskBar is updated and you have a new
 "magic" button on bottom left.

 (note this is hacky actually, I will write a nicer version this week if
 people like it).

 Laurent.

 On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
 stephane.duca...@inria.fr> wrote:

> send a cs that we can play with it :)
>
> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>
> > Hi,
> >
> > what do you think of adding this in Pharo ?
> >
> > |taskbar tileWindowsBlock|
> >
> > tileWindowsBlock := [
> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
> >   numberOfColumns := windows size sqrtFloor.
> >   numberOfRows := (windows size / numberOfColumns) rounded.
> >   windowWidth := World width // numberOfColumns..
> >   windowHeight := World height  - taskbar height // numberOfRows.
> >
> >   Matrix
> > rows: numberOfRows
> > columns: numberOfColumns
> > tabulate: [:row :column|  |window|
> >   windows ifNotEmpty: [
> >   window := windows remove: windows first.
> >   window
> >   bounds: (
> >   ((column - 1 * windowWidth) @ (row - 1 *
> windowHeight))
> >   extent: (windowWidth) @  windowHeight)
> >   ]
> > ]
> > ].
> >
> >
> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> >
> > taskbar
> >   addMorph: (IconicButton new
> > target: tileWindowsBlock;
> > actionSelector: #value;
> > labelGraphic: taskbar theme smallWindowIcon;
> > color: Color transparent;
> > yourself).
> >
> >
> > Laurent Laffont - @lolgzs
> >
> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > Blog: http://magaloma.blogspot.com/
> > Developer group: http://cara74.seasidehosting.st
> >
>
>
>

>>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-24 Thread Stéphane Ducasse
Ok we need a 1.3 version because now we get excited.

Stef

On May 24, 2011, at 8:51 AM, laurent laffont wrote:

> 
> 
> 2011/5/24 Gastón Dall' Oglio 
> Laurent and corious :)
> 
> I add some TasklistMorph behavior. With the open list (cmd-rigth or cmd-left):
> * cmd-up: maximize all windows
> * cmd-down: minimize all windows
> * cmd-b: apply SystemBrowser windows's filter
> * cmd-w: apply Worspace windows's filter
> * cmd-a: remove windows's filter
> 
> ** The cmd-b work in 1.2.1, in 1.3 you have to change 
> TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of 
> example and therefore does not perform properly filtered.
> 
> 
> I did not understand until I enable the setting "Keep task list open" :) 
> 
> I've started a TilingWindowManager project (I will upload it this evening on 
> SS) so we can put all our stuff + tests without polluting TaskBar & Tasklist 
> too much.
> 
> Indeed, after 3 days I can't live without the tiling buttons :)
> 
> Laurent.
> 
>  
> 
> 2011/5/23 laurent laffont 
> 2011/5/23 Gastón Dall' Oglio 
> Laurent, I attached a package I've added some improvements to your work, I 
> have found useful. Of course I am not knowledgeable about morph, just added 
> some and perhaps can serve as inspiration.
> 
> Thanks Gastón, I like the idea. It will be a good step forward in having 
> better window management. Now we should rewrite this clean + tests (may be 
> adding the notion of widgets like in KDE / Gnome).
> 
> As windows fill all the space, would be good to have a button to open the 
> world menu. 
> 
> I would love having the possibility of splitting the World + back and forward 
> configuration like Emacs winner mode, keyboard driven.
> 
> Since several days I use http://most-advantageous.com/optimal-layout/ on OSX 
> and there's some great ideas too.
> 
> Laurent.
> 
> 
> 
> 2011/5/23 laurent laffont 
> On 1.2:
> 
> Gofer it
>   squeaksource: 'LaurentLSandbox';
>   version: 'Polymorph-Widgets-LaurentLaffont.388';
>   load.
> 
> 
> Then open or move a window so the TaskBar is updated and you have a new 
> "magic" button on bottom left.
> 
> (note this is hacky actually, I will write a nicer version this week if 
> people like it).
> 
> Laurent.
> 
> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse  
> wrote:
> send a cs that we can play with it :)
> 
> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
> 
> > Hi,
> >
> > what do you think of adding this in Pharo ?
> >
> > |taskbar tileWindowsBlock|
> >
> > tileWindowsBlock := [
> >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> >   windows := (World submorphs select: [:m| m isSystemWindow and: [m 
> > isNotMinimized]]) asOrderedCollection.
> >   numberOfColumns := windows size sqrtFloor.
> >   numberOfRows := (windows size / numberOfColumns) rounded.
> >   windowWidth := World width // numberOfColumns..
> >   windowHeight := World height  - taskbar height // numberOfRows.
> >
> >   Matrix
> > rows: numberOfRows
> > columns: numberOfColumns
> > tabulate: [:row :column|  |window|
> >   windows ifNotEmpty: [
> >   window := windows remove: windows first.
> >   window
> >   bounds: (
> >   ((column - 1 * windowWidth) @ (row - 1 * windowHeight))
> >   extent: (windowWidth) @  windowHeight)
> >   ]
> > ]
> > ].
> >
> >
> > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> >
> > taskbar
> >   addMorph: (IconicButton new
> > target: tileWindowsBlock;
> > actionSelector: #value;
> > labelGraphic: taskbar theme smallWindowIcon;
> > color: Color transparent;
> > yourself).
> >
> >
> > Laurent Laffont - @lolgzs
> >
> > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > Blog: http://magaloma.blogspot.com/
> > Developer group: http://cara74.seasidehosting.st
> >
> 
> 
> 
> 
> 
> 
> 




Re: [Pharo-project] Tiling windows

2011-05-24 Thread Gastón Dall' Oglio
Yes! it's really exciting :)

"Keep task list open": go to World menu => System => Settings => Search for
"task" =>check "Keep task list open". Now, open various system Browsers,
Workspaces and other types of windows, and then hold cmd (or alt in linux)
and next press right next b next w next a, and so on. Of this manner you can
filter various windows of different kind using the task list.

TilingWindowManager :/ ... LayoutWindowManager?

Sorry for short answer, my English is very poor :(

2011/5/24 Stéphane Ducasse 

> Ok we need a 1.3 version because now we get excited.
>
> Stef
>
> On May 24, 2011, at 8:51 AM, laurent laffont wrote:
>
> >
> >
> > 2011/5/24 Gastón Dall' Oglio 
> > Laurent and corious :)
> >
> > I add some TasklistMorph behavior. With the open list (cmd-rigth or
> cmd-left):
> > * cmd-up: maximize all windows
> > * cmd-down: minimize all windows
> > * cmd-b: apply SystemBrowser windows's filter
> > * cmd-w: apply Worspace windows's filter
> > * cmd-a: remove windows's filter
> >
> > ** The cmd-b work in 1.2.1, in 1.3 you have to change
> TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of
> example and therefore does not perform properly filtered.
> >
> >
> > I did not understand until I enable the setting "Keep task list open" :)
> >
> > I've started a TilingWindowManager project (I will upload it this evening
> on SS) so we can put all our stuff + tests without polluting TaskBar &
> Tasklist too much.
> >
> > Indeed, after 3 days I can't live without the tiling buttons :)
> >
> > Laurent.
> >
> >
> >
> > 2011/5/23 laurent laffont 
> > 2011/5/23 Gastón Dall' Oglio 
> > Laurent, I attached a package I've added some improvements to your work,
> I have found useful. Of course I am not knowledgeable about morph, just
> added some and perhaps can serve as inspiration.
> >
> > Thanks Gastón, I like the idea. It will be a good step forward in having
> better window management. Now we should rewrite this clean + tests (may be
> adding the notion of widgets like in KDE / Gnome).
> >
> > As windows fill all the space, would be good to have a button to open the
> world menu.
> >
> > I would love having the possibility of splitting the World + back and
> forward configuration like Emacs winner mode, keyboard driven.
> >
> > Since several days I use http://most-advantageous.com/optimal-layout/ on
> OSX and there's some great ideas too.
> >
> > Laurent.
> >
> >
> >
> > 2011/5/23 laurent laffont 
> > On 1.2:
> >
> > Gofer it
> >   squeaksource: 'LaurentLSandbox';
> >   version: 'Polymorph-Widgets-LaurentLaffont.388';
> >   load.
> >
> >
> > Then open or move a window so the TaskBar is updated and you have a new
> "magic" button on bottom left.
> >
> > (note this is hacky actually, I will write a nicer version this week if
> people like it).
> >
> > Laurent.
> >
> > On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
> stephane.duca...@inria.fr> wrote:
> > send a cs that we can play with it :)
> >
> > On May 22, 2011, at 8:25 PM, laurent laffont wrote:
> >
> > > Hi,
> > >
> > > what do you think of adding this in Pharo ?
> > >
> > > |taskbar tileWindowsBlock|
> > >
> > > tileWindowsBlock := [
> > >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> > >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
> > >   numberOfColumns := windows size sqrtFloor.
> > >   numberOfRows := (windows size / numberOfColumns) rounded.
> > >   windowWidth := World width // numberOfColumns..
> > >   windowHeight := World height  - taskbar height // numberOfRows.
> > >
> > >   Matrix
> > > rows: numberOfRows
> > > columns: numberOfColumns
> > > tabulate: [:row :column|  |window|
> > >   windows ifNotEmpty: [
> > >   window := windows remove: windows first.
> > >   window
> > >   bounds: (
> > >   ((column - 1 * windowWidth) @ (row - 1 *
> windowHeight))
> > >   extent: (windowWidth) @  windowHeight)
> > >   ]
> > > ]
> > > ].
> > >
> > >
> > > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> > >
> > > taskbar
> > >   addMorph: (IconicButton new
> > > target: tileWindowsBlock;
> > > actionSelector: #value;
> > > labelGraphic: taskbar theme smallWindowIcon;
> > > color: Color transparent;
> > > yourself).
> > >
> > >
> > > Laurent Laffont - @lolgzs
> > >
> > > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > > Blog: http://magaloma.blogspot.com/
> > > Developer group: http://cara74.seasidehosting.st
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
>


Re: [Pharo-project] Tiling windows

2011-05-24 Thread laurent laffont
On Tue, May 24, 2011 at 9:48 AM, Stéphane Ducasse  wrote:

> Ok we need a 1.3 version because now we get excited.
>

Here's a first shot (not integrated to TaskBarMorph though) which works in
1.3:

Gofer it
 squeaksource: 'TilingWindowManager';
package: 'TWM';
load.
 TWMBar new open.

The real manager is TilingWM. Try:

(TilingWM forWorld: World) tileVisibleWindows.
(TilingWM forWorld: World) tileBrowsers.
(TilingWM forWorld: World) tileWorkspaces.


Laurent.



> Stef
>
> On May 24, 2011, at 8:51 AM, laurent laffont wrote:
>
> >
> >
> > 2011/5/24 Gastón Dall' Oglio 
> > Laurent and corious :)
> >
> > I add some TasklistMorph behavior. With the open list (cmd-rigth or
> cmd-left):
> > * cmd-up: maximize all windows
> > * cmd-down: minimize all windows
> > * cmd-b: apply SystemBrowser windows's filter
> > * cmd-w: apply Worspace windows's filter
> > * cmd-a: remove windows's filter
> >
> > ** The cmd-b work in 1.2.1, in 1.3 you have to change
> TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of
> example and therefore does not perform properly filtered.
> >
> >
> > I did not understand until I enable the setting "Keep task list open" :)
> >
> > I've started a TilingWindowManager project (I will upload it this evening
> on SS) so we can put all our stuff + tests without polluting TaskBar &
> Tasklist too much.
> >
> > Indeed, after 3 days I can't live without the tiling buttons :)
> >
> > Laurent.
> >
> >
> >
> > 2011/5/23 laurent laffont 
> > 2011/5/23 Gastón Dall' Oglio 
> > Laurent, I attached a package I've added some improvements to your work,
> I have found useful. Of course I am not knowledgeable about morph, just
> added some and perhaps can serve as inspiration.
> >
> > Thanks Gastón, I like the idea. It will be a good step forward in having
> better window management. Now we should rewrite this clean + tests (may be
> adding the notion of widgets like in KDE / Gnome).
> >
> > As windows fill all the space, would be good to have a button to open the
> world menu.
> >
> > I would love having the possibility of splitting the World + back and
> forward configuration like Emacs winner mode, keyboard driven.
> >
> > Since several days I use http://most-advantageous.com/optimal-layout/ on
> OSX and there's some great ideas too.
> >
> > Laurent.
> >
> >
> >
> > 2011/5/23 laurent laffont 
> > On 1.2:
> >
> > Gofer it
> >   squeaksource: 'LaurentLSandbox';
> >   version: 'Polymorph-Widgets-LaurentLaffont.388';
> >   load.
> >
> >
> > Then open or move a window so the TaskBar is updated and you have a new
> "magic" button on bottom left.
> >
> > (note this is hacky actually, I will write a nicer version this week if
> people like it).
> >
> > Laurent.
> >
> > On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
> stephane.duca...@inria.fr> wrote:
> > send a cs that we can play with it :)
> >
> > On May 22, 2011, at 8:25 PM, laurent laffont wrote:
> >
> > > Hi,
> > >
> > > what do you think of adding this in Pharo ?
> > >
> > > |taskbar tileWindowsBlock|
> > >
> > > tileWindowsBlock := [
> > >   |windows numberOfColumns numberOfRows windowWidth windowHeight|
> > >   windows := (World submorphs select: [:m| m isSystemWindow and: [m
> isNotMinimized]]) asOrderedCollection.
> > >   numberOfColumns := windows size sqrtFloor.
> > >   numberOfRows := (windows size / numberOfColumns) rounded.
> > >   windowWidth := World width // numberOfColumns..
> > >   windowHeight := World height  - taskbar height // numberOfRows.
> > >
> > >   Matrix
> > > rows: numberOfRows
> > > columns: numberOfColumns
> > > tabulate: [:row :column|  |window|
> > >   windows ifNotEmpty: [
> > >   window := windows remove: windows first.
> > >   window
> > >   bounds: (
> > >   ((column - 1 * windowWidth) @ (row - 1 *
> windowHeight))
> > >   extent: (windowWidth) @  windowHeight)
> > >   ]
> > > ]
> > > ].
> > >
> > >
> > > taskbar := (World submorphs detect: [:m| m isTaskbar]).
> > >
> > > taskbar
> > >   addMorph: (IconicButton new
> > > target: tileWindowsBlock;
> > > actionSelector: #value;
> > > labelGraphic: taskbar theme smallWindowIcon;
> > > color: Color transparent;
> > > yourself).
> > >
> > >
> > > Laurent Laffont - @lolgzs
> > >
> > > Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> > > Blog: http://magaloma.blogspot.com/
> > > Developer group: http://cara74.seasidehosting.st
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
>


Re: [Pharo-project] Tiling windows

2011-05-25 Thread Adrian Lienhard
I like it :)

Adrian

On May 24, 2011, at 22:25 , laurent laffont wrote:

> On Tue, May 24, 2011 at 9:48 AM, Stéphane Ducasse > wrote:
> 
>> Ok we need a 1.3 version because now we get excited.
>> 
> 
> Here's a first shot (not integrated to TaskBarMorph though) which works in
> 1.3:
> 
> Gofer it
> squeaksource: 'TilingWindowManager';
> package: 'TWM';
> load.
> TWMBar new open.
> 
> The real manager is TilingWM. Try:
> 
> (TilingWM forWorld: World) tileVisibleWindows.
> (TilingWM forWorld: World) tileBrowsers.
> (TilingWM forWorld: World) tileWorkspaces.
> 
> 
> Laurent.
> 
> 
> 
>> Stef
>> 
>> On May 24, 2011, at 8:51 AM, laurent laffont wrote:
>> 
>>> 
>>> 
>>> 2011/5/24 Gastón Dall' Oglio 
>>> Laurent and corious :)
>>> 
>>> I add some TasklistMorph behavior. With the open list (cmd-rigth or
>> cmd-left):
>>> * cmd-up: maximize all windows
>>> * cmd-down: minimize all windows
>>> * cmd-b: apply SystemBrowser windows's filter
>>> * cmd-w: apply Worspace windows's filter
>>> * cmd-a: remove windows's filter
>>> 
>>> ** The cmd-b work in 1.2.1, in 1.3 you have to change
>> TasklistMorph>>keyStroke: because I use OBSystemBrowser class by way of
>> example and therefore does not perform properly filtered.
>>> 
>>> 
>>> I did not understand until I enable the setting "Keep task list open" :)
>>> 
>>> I've started a TilingWindowManager project (I will upload it this evening
>> on SS) so we can put all our stuff + tests without polluting TaskBar &
>> Tasklist too much.
>>> 
>>> Indeed, after 3 days I can't live without the tiling buttons :)
>>> 
>>> Laurent.
>>> 
>>> 
>>> 
>>> 2011/5/23 laurent laffont 
>>> 2011/5/23 Gastón Dall' Oglio 
>>> Laurent, I attached a package I've added some improvements to your work,
>> I have found useful. Of course I am not knowledgeable about morph, just
>> added some and perhaps can serve as inspiration.
>>> 
>>> Thanks Gastón, I like the idea. It will be a good step forward in having
>> better window management. Now we should rewrite this clean + tests (may be
>> adding the notion of widgets like in KDE / Gnome).
>>> 
>>> As windows fill all the space, would be good to have a button to open the
>> world menu.
>>> 
>>> I would love having the possibility of splitting the World + back and
>> forward configuration like Emacs winner mode, keyboard driven.
>>> 
>>> Since several days I use http://most-advantageous.com/optimal-layout/ on
>> OSX and there's some great ideas too.
>>> 
>>> Laurent.
>>> 
>>> 
>>> 
>>> 2011/5/23 laurent laffont 
>>> On 1.2:
>>> 
>>> Gofer it
>>>  squeaksource: 'LaurentLSandbox';
>>>  version: 'Polymorph-Widgets-LaurentLaffont.388';
>>>  load.
>>> 
>>> 
>>> Then open or move a window so the TaskBar is updated and you have a new
>> "magic" button on bottom left.
>>> 
>>> (note this is hacky actually, I will write a nicer version this week if
>> people like it).
>>> 
>>> Laurent.
>>> 
>>> On Mon, May 23, 2011 at 9:06 AM, Stéphane Ducasse <
>> stephane.duca...@inria.fr> wrote:
>>> send a cs that we can play with it :)
>>> 
>>> On May 22, 2011, at 8:25 PM, laurent laffont wrote:
>>> 
 Hi,
 
 what do you think of adding this in Pharo ?
 
 |taskbar tileWindowsBlock|
 
 tileWindowsBlock := [
  |windows numberOfColumns numberOfRows windowWidth windowHeight|
  windows := (World submorphs select: [:m| m isSystemWindow and: [m
>> isNotMinimized]]) asOrderedCollection.
  numberOfColumns := windows size sqrtFloor.
  numberOfRows := (windows size / numberOfColumns) rounded.
  windowWidth := World width // numberOfColumns..
  windowHeight := World height  - taskbar height // numberOfRows.
 
  Matrix
rows: numberOfRows
columns: numberOfColumns
tabulate: [:row :column|  |window|
  windows ifNotEmpty: [
  window := windows remove: windows first.
  window
  bounds: (
  ((column - 1 * windowWidth) @ (row - 1 *
>> windowHeight))
  extent: (windowWidth) @  windowHeight)
  ]
]
 ].
 
 
 taskbar := (World submorphs detect: [:m| m isTaskbar]).
 
 taskbar
  addMorph: (IconicButton new
target: tileWindowsBlock;
actionSelector: #value;
labelGraphic: taskbar theme smallWindowIcon;
color: Color transparent;
yourself).
 
 
 Laurent Laffont - @lolgzs
 
 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st
 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 




Re: [Pharo-project] Tiling windows

2011-05-25 Thread Stéphane Ducasse
I do not understand.

how can I get a browser?
once this is one is created I get the browser full screen 
but then how do I get a chance to create a new one if I want.

dividing the browsers based on the screen size results in rather small browsers 
:)

Stef


> TWMBar new open.
> 
> The real manager is TilingWM. Try:
> 
> (TilingWM forWorld: World) tileVisibleWindows.
> (TilingWM forWorld: World) tileBrowsers.
> (TilingWM forWorld: World) tileWorkspaces.
> 




Re: [Pharo-project] Tiling windows

2011-05-25 Thread laurent laffont
On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
stephane.duca...@inria.fr> wrote:

> I do not understand.
>
> how can I get a browser?
>

Hey, this is just a start :)  I will add a button to open the world menu.


once this is one is created I get the browser full screen
> but then how do I get a chance to create a new one if I want.
>
> dividing the browsers based on the screen size results in rather small
> browsers :)
>

yes, but because browsers waste space IMHO. Maybe we could get rid of
windows borders when tiled.

Laurent.



>
> Stef
>
>
> > TWMBar new open.
> >
> > The real manager is TilingWM. Try:
> >
> > (TilingWM forWorld: World) tileVisibleWindows.
> > (TilingWM forWorld: World) tileBrowsers.
> > (TilingWM forWorld: World) tileWorkspaces.
> >
>
>
>


Re: [Pharo-project] Tiling windows

2011-05-25 Thread laurent laffont
Now there's a button to open the world menu.

Laurent Laffont - @lolgzs 

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
Developer group: http://cara74.seasidehosting.st



On Wed, May 25, 2011 at 11:20 AM, laurent laffont  wrote:

> On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
> stephane.duca...@inria.fr> wrote:
>
>> I do not understand.
>>
>> how can I get a browser?
>>
>
> Hey, this is just a start :)  I will add a button to open the world menu.
>
>
> once this is one is created I get the browser full screen
>> but then how do I get a chance to create a new one if I want.
>>
>> dividing the browsers based on the screen size results in rather small
>> browsers :)
>>
>
> yes, but because browsers waste space IMHO. Maybe we could get rid of
> windows borders when tiled.
>
> Laurent.
>
>
>
>>
>> Stef
>>
>>
>> > TWMBar new open.
>> >
>> > The real manager is TilingWM. Try:
>> >
>> > (TilingWM forWorld: World) tileVisibleWindows.
>> > (TilingWM forWorld: World) tileBrowsers.
>> > (TilingWM forWorld: World) tileWorkspaces.
>> >
>>
>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-25 Thread Gastón Dall' Oglio
2011/5/25 laurent laffont 

> 2011/5/25 Gastón Dall' Oglio 
>
>> Excelent!
>>
>> IMHO, it's better that's not integrated to TaskBarMorph, lets it free :)
>> For example, click in unused space of the TWMBar and you can move it
>> around you wish in the screen, similar to use DockingBarMorph>>beFloating. I
>> attach screenshot.
>>
>> Laurent, I improved (or not? :)) your work, if you think that is bad for
>> TWM simply undo it ;)
>>
>
> Feel free to play. Just try to write tests for TilingWM please :)
>
>
ok. I load a new version to ss. Now teh button tile visible windows only. I
fixed the test...


> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
> keyboard driven, I have to play with KeyMapping.
>
>
yes, sure.


> I also think the UI theme Patrick has cleaned fits better with TilingWM:
>
> To try it:
>
> Gofer it
> squeaksource: 'PBASandbox';
> package: 'PBSandbox';
>  load.
> StandardUITheme beCurrent.
>
> See screenshot.
>
>
>
I try, yes.


> Patrick, could you push this with a nice package name ?
>
>
> Laurent.
>
>
>
>> 2011/5/25 laurent laffont 
>>
>>> Now there's a button to open the world menu.
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> On Wed, May 25, 2011 at 11:20 AM, laurent laffont <
>>> laurent.laff...@gmail.com> wrote:
>>>
 On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
 stephane.duca...@inria.fr> wrote:

> I do not understand.
>
> how can I get a browser?
>

 Hey, this is just a start :)  I will add a button to open the world
 menu.


 once this is one is created I get the browser full screen
> but then how do I get a chance to create a new one if I want.
>
> dividing the browsers based on the screen size results in rather small
> browsers :)
>

 yes, but because browsers waste space IMHO. Maybe we could get rid of
 windows borders when tiled.

 Laurent.



>
> Stef
>
>
> > TWMBar new open.
> >
> > The real manager is TilingWM. Try:
> >
> > (TilingWM forWorld: World) tileVisibleWindows.
> > (TilingWM forWorld: World) tileBrowsers.
> > (TilingWM forWorld: World) tileWorkspaces.
> >
>
>
>

>>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-25 Thread laurent laffont
Gastòn,

I've downloaded the new version - thanks a lot for contributing, it brings
fun :)

Some comment:

- tiling browsers don't work any more with
OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser anymore
but a Browser

- you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
"visible" was not innocent, because tileVisibleWindows cares about windows
that are not minimized. On the other side, tileWorkspaces tile all
workspaces, minimized or not. So I think in final we may have:

#tileVisibleWindows
#tileWindows  (maybe #tileAllWindows is a better name)
#tileVisibleWorkspaces
#tileWorkspaces / #tileAllWorkspaces
..

- I will add tests to TWMBar finally as it seems to grow

- I want TilingWM to be 100% test coverage

- Balloon and spaces for TWMBar is a good idea - we need to make this work
effectively :)

- Great to have all the buttons per type of applications !

I've merge some of your changes in TWM-LaurentLaffont.5


Laurent Laffont - @lolgzs 

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
Developer group: http://cara74.seasidehosting.st



2011/5/26 Gastón Dall' Oglio 

>
>
> 2011/5/25 laurent laffont 
>
>> 2011/5/25 Gastón Dall' Oglio 
>>
>>> Excelent!
>>>
>>> IMHO, it's better that's not integrated to TaskBarMorph, lets it free :)
>>> For example, click in unused space of the TWMBar and you can move it
>>> around you wish in the screen, similar to use DockingBarMorph>>beFloating. I
>>> attach screenshot.
>>>
>>> Laurent, I improved (or not? :)) your work, if you think that is bad for
>>> TWM simply undo it ;)
>>>
>>
>> Feel free to play. Just try to write tests for TilingWM please :)
>>
>>
> ok. I load a new version to ss. Now teh button tile visible windows only. I
> fixed the test...
>
>
>> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
>> keyboard driven, I have to play with KeyMapping.
>>
>>
> yes, sure.
>
>
>> I also think the UI theme Patrick has cleaned fits better with TilingWM:
>>
>> To try it:
>>
>> Gofer it
>> squeaksource: 'PBASandbox';
>> package: 'PBSandbox';
>>  load.
>> StandardUITheme beCurrent.
>>
>> See screenshot.
>>
>>
>>
> I try, yes.
>
>
>>  Patrick, could you push this with a nice package name ?
>>
>>
>> Laurent.
>>
>>
>>
>>> 2011/5/25 laurent laffont 
>>>
 Now there's a button to open the world menu.

 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st



 On Wed, May 25, 2011 at 11:20 AM, laurent laffont <
 laurent.laff...@gmail.com> wrote:

> On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
> stephane.duca...@inria.fr> wrote:
>
>> I do not understand.
>>
>> how can I get a browser?
>>
>
> Hey, this is just a start :)  I will add a button to open the world
> menu.
>
>
> once this is one is created I get the browser full screen
>> but then how do I get a chance to create a new one if I want.
>>
>> dividing the browsers based on the screen size results in rather small
>> browsers :)
>>
>
> yes, but because browsers waste space IMHO. Maybe we could get rid of
> windows borders when tiled.
>
> Laurent.
>
>
>
>>
>> Stef
>>
>>
>> > TWMBar new open.
>> >
>> > The real manager is TilingWM. Try:
>> >
>> > (TilingWM forWorld: World) tileVisibleWindows.
>> > (TilingWM forWorld: World) tileBrowsers.
>> > (TilingWM forWorld: World) tileWorkspaces.
>> >
>>
>>
>>
>

>>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-26 Thread Gastón Dall' Oglio
2011/5/26 laurent laffont 

> Gastòn,
>
> I've downloaded the new version - thanks a lot for contributing, it brings
> fun :)
>
> Some comment:
>
> - tiling browsers don't work any more with
> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser anymore
> but a Browser
>

In 1.3 core there's not OBBrowser, then, when trying to modify a method with
reference to OBBrowser obtained an error. So I remove their references.


>
> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
> "visible" was not innocent, because tileVisibleWindows cares about windows
> that are not minimized. On the other side, tileWorkspaces tile all
> workspaces, minimized or not. So I think in final we may have:
>
> #tileVisibleWindows
> #tileWindows  (maybe #tileAllWindows is a better name)
> #tileVisibleWorkspaces
> #tileWorkspaces / #tileAllWorkspaces
> ..
>
>
Please, see you the comment in de versión 5 of de package, "Now all botton
tile visibles windows.". I think it's better to just get organized visible
windows, even when done on a particular kind (such as workspaces). For this
is that the word was redundant now visible.


> - I will add tests to TWMBar finally as it seems to grow
>
> - I want TilingWM to be 100% test coverage
>

Sorry, give me some time for learn about this...


>
> - Balloon and spaces for TWMBar is a good idea - we need to make this work
> effectively :)
>
>
yes


> - Great to have all the buttons per type of applications !
>

it is still very rudimentary way to filter the windows, but it was helpful
to learn about the hierarchy of classes 1.3, in regard to the Models for
example.


>
> I've merge some of your changes in TWM-LaurentLaffont.5
>


:)


>
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>>
>> 2011/5/25 laurent laffont 
>>
>>> 2011/5/25 Gastón Dall' Oglio 
>>>
 Excelent!

 IMHO, it's better that's not integrated to TaskBarMorph, lets it free :)
 For example, click in unused space of the TWMBar and you can move it
 around you wish in the screen, similar to use DockingBarMorph>>beFloating. 
 I
 attach screenshot.

 Laurent, I improved (or not? :)) your work, if you think that is bad for
 TWM simply undo it ;)

>>>
>>> Feel free to play. Just try to write tests for TilingWM please :)
>>>
>>>
>> ok. I load a new version to ss. Now teh button tile visible windows only.
>> I fixed the test...
>>
>>
>>> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
>>> keyboard driven, I have to play with KeyMapping.
>>>
>>>
>> yes, sure.
>>
>>
>>> I also think the UI theme Patrick has cleaned fits better with TilingWM:
>>>
>>> To try it:
>>>
>>> Gofer it
>>> squeaksource: 'PBASandbox';
>>> package: 'PBSandbox';
>>>  load.
>>> StandardUITheme beCurrent.
>>>
>>> See screenshot.
>>>
>>>
>>>
>> I try, yes.
>>
>>
>>>  Patrick, could you push this with a nice package name ?
>>>
>>>
>>> Laurent.
>>>
>>>
>>>
 2011/5/25 laurent laffont 

> Now there's a button to open the world menu.
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> On Wed, May 25, 2011 at 11:20 AM, laurent laffont <
> laurent.laff...@gmail.com> wrote:
>
>> On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
>> stephane.duca...@inria.fr> wrote:
>>
>>> I do not understand.
>>>
>>> how can I get a browser?
>>>
>>
>> Hey, this is just a start :)  I will add a button to open the world
>> menu.
>>
>>
>> once this is one is created I get the browser full screen
>>> but then how do I get a chance to create a new one if I want.
>>>
>>> dividing the browsers based on the screen size results in rather
>>> small browsers :)
>>>
>>
>> yes, but because browsers waste space IMHO. Maybe we could get rid of
>> windows borders when tiled.
>>
>> Laurent.
>>
>>
>>
>>>
>>> Stef
>>>
>>>
>>> > TWMBar new open.
>>> >
>>> > The real manager is TilingWM. Try:
>>> >
>>> > (TilingWM forWorld: World) tileVisibleWindows.
>>> > (TilingWM forWorld: World) tileBrowsers.
>>> > (TilingWM forWorld: World) tileWorkspaces.
>>> >
>>>
>>>
>>>
>>
>

>>>
>>
>


Re: [Pharo-project] Tiling windows

2011-05-26 Thread laurent laffont
2011/5/26 Gastón Dall' Oglio 

>
>
> 2011/5/26 laurent laffont 
>
>> Gastòn,
>>
>> I've downloaded the new version - thanks a lot for contributing, it brings
>> fun :)
>>
>> Some comment:
>>
>> - tiling browsers don't work any more with
>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser anymore
>> but a Browser
>>
>
> In 1.3 core there's not OBBrowser, then, when trying to modify a method
> with reference to OBBrowser obtained an error. So I remove their references.
>


I see. I will refactor this so it will be compatible with Core and still
work with OB (quite easy).



> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
>> "visible" was not innocent, because tileVisibleWindows cares about windows
>> that are not minimized. On the other side, tileWorkspaces tile all
>> workspaces, minimized or not. So I think in final we may have:
>>
>> #tileVisibleWindows
>> #tileWindows  (maybe #tileAllWindows is a better name)
>> #tileVisibleWorkspaces
>> #tileWorkspaces / #tileAllWorkspaces
>> ..
>>
>>
> Please, see you the comment in de versión 5 of de package, "Now all botton
> tile visibles windows.". I think it's better to just get organized visible
> windows, even when done on a particular kind (such as workspaces). For this
> is that the word was redundant now visible.
>


I will think about this.


- I will add tests to TWMBar finally as it seems to grow
>>
>> - I want TilingWM to be 100% test coverage
>>
>
> Sorry, give me some time for learn about this...
>


Don't hesitate to ask.


- Balloon and spaces for TWMBar is a good idea - we need to make this work
>> effectively :)
>>
>>
> yes
>
>
>> - Great to have all the buttons per type of applications !
>>
>
> it is still very rudimentary way to filter the windows, but it was helpful
> to learn about the hierarchy of classes 1.3, in regard to the Models for
> example.
>


Indeed I've disable TaskBarMorph in my image as it's useless now :)


Laurent.


>
>
>>
>> I've merge some of your changes in TWM-LaurentLaffont.5
>>
>
>
> :)
>
>
>>
>>
>> Laurent Laffont - @lolgzs 
>>
>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>> Blog: http://magaloma.blogspot.com/
>> Developer group: http://cara74.seasidehosting.st
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/25 laurent laffont 
>>>
 2011/5/25 Gastón Dall' Oglio 

> Excelent!
>
> IMHO, it's better that's not integrated to TaskBarMorph, lets it free
> :)
> For example, click in unused space of the TWMBar and you can move it
> around you wish in the screen, similar to use 
> DockingBarMorph>>beFloating. I
> attach screenshot.
>
> Laurent, I improved (or not? :)) your work, if you think that is bad
> for TWM simply undo it ;)
>

 Feel free to play. Just try to write tests for TilingWM please :)


>>> ok. I load a new version to ss. Now teh button tile visible windows only.
>>> I fixed the test...
>>>
>>>
 For TWMBar I'm not sure this will be a final GUI. Ideally all will be
 keyboard driven, I have to play with KeyMapping.


>>> yes, sure.
>>>
>>>
 I also think the UI theme Patrick has cleaned fits better with TilingWM:

 To try it:

 Gofer it
 squeaksource: 'PBASandbox';
 package: 'PBSandbox';
  load.
 StandardUITheme beCurrent.

 See screenshot.



>>> I try, yes.
>>>
>>>
  Patrick, could you push this with a nice package name ?


 Laurent.



> 2011/5/25 laurent laffont 
>
>> Now there's a button to open the world menu.
>>
>> Laurent Laffont - @lolgzs 
>>
>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>> Blog: http://magaloma.blogspot.com/
>> Developer group: http://cara74.seasidehosting.st
>>
>>
>>
>> On Wed, May 25, 2011 at 11:20 AM, laurent laffont <
>> laurent.laff...@gmail.com> wrote:
>>
>>> On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
>>> stephane.duca...@inria.fr> wrote:
>>>
 I do not understand.

 how can I get a browser?

>>>
>>> Hey, this is just a start :)  I will add a button to open the world
>>> menu.
>>>
>>>
>>> once this is one is created I get the browser full screen
 but then how do I get a chance to create a new one if I want.

 dividing the browsers based on the screen size results in rather
 small browsers :)

>>>
>>> yes, but because browsers waste space IMHO. Maybe we could get rid of
>>> windows borders when tiled.
>>>
>>> Laurent.
>>>
>>>
>>>

 Stef


 > TWMBar new open.
 >
 > The real manager is TilingWM. Try:
 >
 > (TilingWM forWorld: World) tileVisibleWindows.
 > (TilingWM forWorld: World) tileBrows

Re: [Pharo-project] Tiling windows

2011-05-26 Thread Gastón Dall' Oglio
2011/5/26 laurent laffont 

> 2011/5/26 Gastón Dall' Oglio 
>
>>
>>
>> 2011/5/26 laurent laffont 
>>
>>> Gastòn,
>>>
>>> I've downloaded the new version - thanks a lot for contributing, it
>>> brings fun :)
>>>
>>> Some comment:
>>>
>>> - tiling browsers don't work any more with
>>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser anymore
>>> but a Browser
>>>
>>
>> In 1.3 core there's not OBBrowser, then, when trying to modify a method
>> with reference to OBBrowser obtained an error. So I remove their references.
>>
>
>
> I see. I will refactor this so it will be compatible with Core and still
> work with OB (quite easy).
>


This would be great, because now I think, in a core are never the most
useful tools (Seaside control panel, memory monitor), and TWM should know
about them in some way (you apply a pattern to solve this problem?).



>
>
>
>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
>>> "visible" was not innocent, because tileVisibleWindows cares about windows
>>> that are not minimized. On the other side, tileWorkspaces tile all
>>> workspaces, minimized or not. So I think in final we may have:
>>>
>>> #tileVisibleWindows
>>> #tileWindows  (maybe #tileAllWindows is a better name)
>>> #tileVisibleWorkspaces
>>> #tileWorkspaces / #tileAllWorkspaces
>>> ..
>>>
>>>
>> Please, see you the comment in de versión 5 of de package, "Now all botton
>> tile visibles windows.". I think it's better to just get organized visible
>> windows, even when done on a particular kind (such as workspaces). For this
>> is that the word was redundant now visible.
>>
>
>
> I will think about this.
>

When you have many windows, minimizing them is the way to let them
"suspended", therefore I think it should be organized only visibles.



>
>
> - I will add tests to TWMBar finally as it seems to grow
>>>
>>> - I want TilingWM to be 100% test coverage
>>>
>>
>> Sorry, give me some time for learn about this...
>>
>
>
> Don't hesitate to ask.
>
>
ok.


>
> - Balloon and spaces for TWMBar is a good idea - we need to make this work
>>> effectively :)
>>>
>>>
>> yes
>>
>>
>>> - Great to have all the buttons per type of applications !
>>>
>>
>> it is still very rudimentary way to filter the windows, but it was helpful
>> to learn about the hierarchy of classes 1.3, in regard to the Models for
>> example.
>>
>
>
> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>


Great!!!

I'll be honest, this is my first serious development in Squeak / Pharo, so
it gives me much encouragement your comment, there is still much to learn
and improve, but it is very encouraging to devote time to something that
might be useful to others.




>
>
> Laurent.
>
>
>>
>>
>>>
>>> I've merge some of your changes in TWM-LaurentLaffont.5
>>>
>>
>>
>> :)
>>
>>
>>>
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/25 laurent laffont 

> 2011/5/25 Gastón Dall' Oglio 
>
>> Excelent!
>>
>> IMHO, it's better that's not integrated to TaskBarMorph, lets it free
>> :)
>> For example, click in unused space of the TWMBar and you can move it
>> around you wish in the screen, similar to use 
>> DockingBarMorph>>beFloating. I
>> attach screenshot.
>>
>> Laurent, I improved (or not? :)) your work, if you think that is bad
>> for TWM simply undo it ;)
>>
>
> Feel free to play. Just try to write tests for TilingWM please :)
>
>
 ok. I load a new version to ss. Now teh button tile visible windows
 only. I fixed the test...


> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
> keyboard driven, I have to play with KeyMapping.
>
>
 yes, sure.


> I also think the UI theme Patrick has cleaned fits better with
> TilingWM:
>
> To try it:
>
> Gofer it
> squeaksource: 'PBASandbox';
> package: 'PBSandbox';
>  load.
> StandardUITheme beCurrent.
>
> See screenshot.
>
>
>
 I try, yes.


>  Patrick, could you push this with a nice package name ?
>
>
> Laurent.
>
>
>
>> 2011/5/25 laurent laffont 
>>
>>> Now there's a button to open the world menu.
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> On Wed, May 25, 2011 at 11:20 AM, laurent laffont <
>>> laurent.laff...@gmail.com> wrote:
>>>
 On Wed, May 25, 2011 at 11:06 AM, Stéphane Ducasse <
 stephane.duca...@inria.fr> wrote:

>>>

Re: [Pharo-project] Tiling windows

2011-05-26 Thread laurent laffont
- Now loads in PharoCore
- more tests
- fill all space even if number of windows is not square.

Laurent Laffont - @lolgzs 

Pharo Smalltalk Screencasts: http://www.pharocasts.com/
Blog: http://magaloma.blogspot.com/
Developer group: http://cara74.seasidehosting.st



2011/5/26 Gastón Dall' Oglio 

>
> 2011/5/26 laurent laffont 
>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 Gastòn,

 I've downloaded the new version - thanks a lot for contributing, it
 brings fun :)

 Some comment:

 - tiling browsers don't work any more with
 OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
 anymore
 but a Browser

>>>
>>> In 1.3 core there's not OBBrowser, then, when trying to modify a method
>>> with reference to OBBrowser obtained an error. So I remove their references.
>>>
>>
>>
>> I see. I will refactor this so it will be compatible with Core and still
>> work with OB (quite easy).
>>
>
>
> This would be great, because now I think, in a core are never the most
> useful tools (Seaside control panel, memory monitor), and TWM should know
> about them in some way (you apply a pattern to solve this problem?).
>
>
>
>>
>>
>>
>>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
 "visible" was not innocent, because tileVisibleWindows cares about windows
 that are not minimized. On the other side, tileWorkspaces tile all
 workspaces, minimized or not. So I think in final we may have:

 #tileVisibleWindows
 #tileWindows  (maybe #tileAllWindows is a better name)
 #tileVisibleWorkspaces
 #tileWorkspaces / #tileAllWorkspaces
 ..


>>> Please, see you the comment in de versión 5 of de package, "Now all
>>> botton tile visibles windows.". I think it's better to just get organized
>>> visible windows, even when done on a particular kind (such as workspaces).
>>> For this is that the word was redundant now visible.
>>>
>>
>>
>> I will think about this.
>>
>
> When you have many windows, minimizing them is the way to let them
> "suspended", therefore I think it should be organized only visibles.
>
>
>
>>
>>
>> - I will add tests to TWMBar finally as it seems to grow

 - I want TilingWM to be 100% test coverage

>>>
>>> Sorry, give me some time for learn about this...
>>>
>>
>>
>> Don't hesitate to ask.
>>
>>
> ok.
>
>
>>
>> - Balloon and spaces for TWMBar is a good idea - we need to make this work
 effectively :)


>>> yes
>>>
>>>
 - Great to have all the buttons per type of applications !

>>>
>>> it is still very rudimentary way to filter the windows, but it was
>>> helpful to learn about the hierarchy of classes 1.3, in regard to the Models
>>> for example.
>>>
>>
>>
>> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>>
>
>
> Great!!!
>
> I'll be honest, this is my first serious development in Squeak / Pharo, so
> it gives me much encouragement your comment, there is still much to learn
> and improve, but it is very encouraging to devote time to something that
> might be useful to others.
>
>
>
>
>>
>>
>> Laurent.
>>
>>
>>>
>>>

 I've merge some of your changes in TWM-LaurentLaffont.5

>>>
>>>
>>> :)
>>>
>>>


 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st



 2011/5/26 Gastón Dall' Oglio 

>
>
> 2011/5/25 laurent laffont 
>
>> 2011/5/25 Gastón Dall' Oglio 
>>
>>> Excelent!
>>>
>>> IMHO, it's better that's not integrated to TaskBarMorph, lets it free
>>> :)
>>> For example, click in unused space of the TWMBar and you can move it
>>> around you wish in the screen, similar to use 
>>> DockingBarMorph>>beFloating. I
>>> attach screenshot.
>>>
>>> Laurent, I improved (or not? :)) your work, if you think that is bad
>>> for TWM simply undo it ;)
>>>
>>
>> Feel free to play. Just try to write tests for TilingWM please :)
>>
>>
> ok. I load a new version to ss. Now teh button tile visible windows
> only. I fixed the test...
>
>
>> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
>> keyboard driven, I have to play with KeyMapping.
>>
>>
> yes, sure.
>
>
>> I also think the UI theme Patrick has cleaned fits better with
>> TilingWM:
>>
>> To try it:
>>
>> Gofer it
>> squeaksource: 'PBASandbox';
>> package: 'PBSandbox';
>>  load.
>> StandardUITheme beCurrent.
>>
>> See screenshot.
>>
>>
>>
> I try, yes.
>
>
>>  Patrick, could you push this with a nice package name ?
>>
>>
>> Laurent.
>>
>>
>>
>>> 2011/5/25 laurent laffont 
>>>

Re: [Pharo-project] Tiling windows

2011-05-26 Thread Gastón Dall' Oglio
:)

2011/5/26 laurent laffont 

> - Now loads in PharoCore
> - more tests
> - fill all space even if number of windows is not square.
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>> 2011/5/26 laurent laffont 
>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/26 laurent laffont 

> Gastòn,
>
> I've downloaded the new version - thanks a lot for contributing, it
> brings fun :)
>
> Some comment:
>
> - tiling browsers don't work any more with
> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
> anymore
> but a Browser
>

 In 1.3 core there's not OBBrowser, then, when trying to modify a method
 with reference to OBBrowser obtained an error. So I remove their 
 references.

>>>
>>>
>>> I see. I will refactor this so it will be compatible with Core and still
>>> work with OB (quite easy).
>>>
>>
>>
>> This would be great, because now I think, in a core are never the most
>> useful tools (Seaside control panel, memory monitor), and TWM should know
>> about them in some way (you apply a pattern to solve this problem?).
>>
>>
>>
>>>
>>>
>>>
 - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
> "visible" was not innocent, because tileVisibleWindows cares about windows
> that are not minimized. On the other side, tileWorkspaces tile all
> workspaces, minimized or not. So I think in final we may have:
>
> #tileVisibleWindows
> #tileWindows  (maybe #tileAllWindows is a better name)
> #tileVisibleWorkspaces
> #tileWorkspaces / #tileAllWorkspaces
> ..
>
>
 Please, see you the comment in de versión 5 of de package, "Now all
 botton tile visibles windows.". I think it's better to just get organized
 visible windows, even when done on a particular kind (such as workspaces).
 For this is that the word was redundant now visible.

>>>
>>>
>>> I will think about this.
>>>
>>
>> When you have many windows, minimizing them is the way to let them
>> "suspended", therefore I think it should be organized only visibles.
>>
>>
>>
>>>
>>>
>>> - I will add tests to TWMBar finally as it seems to grow
>
> - I want TilingWM to be 100% test coverage
>

 Sorry, give me some time for learn about this...

>>>
>>>
>>> Don't hesitate to ask.
>>>
>>>
>> ok.
>>
>>
>>>
>>> - Balloon and spaces for TWMBar is a good idea - we need to make this
> work effectively :)
>
>
 yes


> - Great to have all the buttons per type of applications !
>

 it is still very rudimentary way to filter the windows, but it was
 helpful to learn about the hierarchy of classes 1.3, in regard to the 
 Models
 for example.

>>>
>>>
>>> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>>>
>>
>>
>> Great!!!
>>
>> I'll be honest, this is my first serious development in Squeak / Pharo, so
>> it gives me much encouragement your comment, there is still much to learn
>> and improve, but it is very encouraging to devote time to something that
>> might be useful to others.
>>
>>
>>
>>
>>>
>>>
>>> Laurent.
>>>
>>>


>
> I've merge some of your changes in TWM-LaurentLaffont.5
>


 :)


>
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>>
>> 2011/5/25 laurent laffont 
>>
>>> 2011/5/25 Gastón Dall' Oglio 
>>>
 Excelent!

 IMHO, it's better that's not integrated to TaskBarMorph, lets it
 free :)
 For example, click in unused space of the TWMBar and you can move it
 around you wish in the screen, similar to use 
 DockingBarMorph>>beFloating. I
 attach screenshot.

 Laurent, I improved (or not? :)) your work, if you think that is bad
 for TWM simply undo it ;)

>>>
>>> Feel free to play. Just try to write tests for TilingWM please :)
>>>
>>>
>> ok. I load a new version to ss. Now teh button tile visible windows
>> only. I fixed the test...
>>
>>
>>> For TWMBar I'm not sure this will be a final GUI. Ideally all will be
>>> keyboard driven, I have to play with KeyMapping.
>>>
>>>
>> yes, sure.
>>
>>
>>> I also think the UI theme Patrick has cleaned fits better with
>>> TilingWM:
>>>
>>> To try it:
>>>
>>> Gofer it
>>> squeaksource: 'PBASandbox';
>>> package: 'PBSandbox';
>>>  load.
>>> StandardUIThe

Re: [Pharo-project] Tiling windows

2011-05-26 Thread laurent laffont
Now added top window placement à la OptimizeLayout.

Need to find nice icons. Someone ?

Laurent.


2011/5/26 Gastón Dall' Oglio 

> :)
>
>
> 2011/5/26 laurent laffont 
>
>> - Now loads in PharoCore
>> - more tests
>> - fill all space even if number of windows is not square.
>>
>> Laurent Laffont - @lolgzs 
>>
>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>> Blog: http://magaloma.blogspot.com/
>> Developer group: http://cara74.seasidehosting.st
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 2011/5/26 Gastón Dall' Oglio 

>
>
> 2011/5/26 laurent laffont 
>
>> Gastòn,
>>
>> I've downloaded the new version - thanks a lot for contributing, it
>> brings fun :)
>>
>> Some comment:
>>
>> - tiling browsers don't work any more with
>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
>> anymore
>> but a Browser
>>
>
> In 1.3 core there's not OBBrowser, then, when trying to modify a method
> with reference to OBBrowser obtained an error. So I remove their 
> references.
>


 I see. I will refactor this so it will be compatible with Core and still
 work with OB (quite easy).

>>>
>>>
>>> This would be great, because now I think, in a core are never the most
>>> useful tools (Seaside control panel, memory monitor), and TWM should know
>>> about them in some way (you apply a pattern to solve this problem?).
>>>
>>>
>>>



> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
>> "visible" was not innocent, because tileVisibleWindows cares about 
>> windows
>> that are not minimized. On the other side, tileWorkspaces tile all
>> workspaces, minimized or not. So I think in final we may have:
>>
>> #tileVisibleWindows
>> #tileWindows  (maybe #tileAllWindows is a better name)
>> #tileVisibleWorkspaces
>> #tileWorkspaces / #tileAllWorkspaces
>> ..
>>
>>
> Please, see you the comment in de versión 5 of de package, "Now all
> botton tile visibles windows.". I think it's better to just get organized
> visible windows, even when done on a particular kind (such as workspaces).
> For this is that the word was redundant now visible.
>


 I will think about this.

>>>
>>> When you have many windows, minimizing them is the way to let them
>>> "suspended", therefore I think it should be organized only visibles.
>>>
>>>
>>>


 - I will add tests to TWMBar finally as it seems to grow
>>
>> - I want TilingWM to be 100% test coverage
>>
>
> Sorry, give me some time for learn about this...
>


 Don't hesitate to ask.


>>> ok.
>>>
>>>

 - Balloon and spaces for TWMBar is a good idea - we need to make this
>> work effectively :)
>>
>>
> yes
>
>
>> - Great to have all the buttons per type of applications !
>>
>
> it is still very rudimentary way to filter the windows, but it was
> helpful to learn about the hierarchy of classes 1.3, in regard to the 
> Models
> for example.
>


 Indeed I've disable TaskBarMorph in my image as it's useless now :)

>>>
>>>
>>> Great!!!
>>>
>>> I'll be honest, this is my first serious development in Squeak / Pharo,
>>> so it gives me much encouragement your comment, there is still much to learn
>>> and improve, but it is very encouraging to devote time to something that
>>> might be useful to others.
>>>
>>>
>>>
>>>


 Laurent.


>
>
>>
>> I've merge some of your changes in TWM-LaurentLaffont.5
>>
>
>
> :)
>
>
>>
>>
>> Laurent Laffont - @lolgzs 
>>
>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>> Blog: http://magaloma.blogspot.com/
>> Developer group: http://cara74.seasidehosting.st
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/25 laurent laffont 
>>>
 2011/5/25 Gastón Dall' Oglio 

> Excelent!
>
> IMHO, it's better that's not integrated to TaskBarMorph, lets it
> free :)
> For example, click in unused space of the TWMBar and you can move
> it around you wish in the screen, similar to use
> DockingBarMorph>>beFloating. I attach screenshot.
>
> Laurent, I improved (or not? :)) your work, if you think that is
> bad for TWM simply undo it ;)
>

 Feel free to play. Just try to write tests for TilingWM please :)


>>> ok. I load a new version to ss. Now teh button tile visible windows
>>> only. I fixed the test...
>>>
>>>
 For TWMBar I'm not sure this will be a final GUI. Ideally all will
 be keyboard driven, 

Re: [Pharo-project] Tiling windows

2011-05-27 Thread laurent laffont
Now with icons, and thanks Patrick for the icon generation idea :)

Laurent.

2011/5/27 laurent laffont 

> Now added top window placement à la OptimizeLayout.
>
> Need to find nice icons. Someone ?
>
> Laurent.
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>> :)
>>
>>
>> 2011/5/26 laurent laffont 
>>
>>> - Now loads in PharoCore
>>> - more tests
>>> - fill all space even if number of windows is not square.
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>

 2011/5/26 laurent laffont 

> 2011/5/26 Gastón Dall' Oglio 
>
>>
>>
>> 2011/5/26 laurent laffont 
>>
>>> Gastòn,
>>>
>>> I've downloaded the new version - thanks a lot for contributing, it
>>> brings fun :)
>>>
>>> Some comment:
>>>
>>> - tiling browsers don't work any more with
>>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
>>> anymore
>>> but a Browser
>>>
>>
>> In 1.3 core there's not OBBrowser, then, when trying to modify a
>> method with reference to OBBrowser obtained an error. So I remove their
>> references.
>>
>
>
> I see. I will refactor this so it will be compatible with Core and
> still work with OB (quite easy).
>


 This would be great, because now I think, in a core are never the most
 useful tools (Seaside control panel, memory monitor), and TWM should know
 about them in some way (you apply a pattern to solve this problem?).



>
>
>
>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
>>> "visible" was not innocent, because tileVisibleWindows cares about 
>>> windows
>>> that are not minimized. On the other side, tileWorkspaces tile all
>>> workspaces, minimized or not. So I think in final we may have:
>>>
>>> #tileVisibleWindows
>>> #tileWindows  (maybe #tileAllWindows is a better name)
>>> #tileVisibleWorkspaces
>>> #tileWorkspaces / #tileAllWorkspaces
>>> ..
>>>
>>>
>> Please, see you the comment in de versión 5 of de package, "Now all
>> botton tile visibles windows.". I think it's better to just get organized
>> visible windows, even when done on a particular kind (such as 
>> workspaces).
>> For this is that the word was redundant now visible.
>>
>
>
> I will think about this.
>

 When you have many windows, minimizing them is the way to let them
 "suspended", therefore I think it should be organized only visibles.



>
>
> - I will add tests to TWMBar finally as it seems to grow
>>>
>>> - I want TilingWM to be 100% test coverage
>>>
>>
>> Sorry, give me some time for learn about this...
>>
>
>
> Don't hesitate to ask.
>
>
 ok.


>
> - Balloon and spaces for TWMBar is a good idea - we need to make this
>>> work effectively :)
>>>
>>>
>> yes
>>
>>
>>> - Great to have all the buttons per type of applications !
>>>
>>
>> it is still very rudimentary way to filter the windows, but it was
>> helpful to learn about the hierarchy of classes 1.3, in regard to the 
>> Models
>> for example.
>>
>
>
> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>


 Great!!!

 I'll be honest, this is my first serious development in Squeak / Pharo,
 so it gives me much encouragement your comment, there is still much to 
 learn
 and improve, but it is very encouraging to devote time to something that
 might be useful to others.




>
>
> Laurent.
>
>
>>
>>
>>>
>>> I've merge some of your changes in TWM-LaurentLaffont.5
>>>
>>
>>
>> :)
>>
>>
>>>
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/25 laurent laffont 

> 2011/5/25 Gastón Dall' Oglio 
>
>> Excelent!
>>
>> IMHO, it's better that's not integrated to TaskBarMorph, lets it
>> free :)
>> For example, click in unused space of the TWMBar and you can move
>> it around you wish in the screen, similar to use
>> DockingBarMorph>>beFloating. I attach screenshot.
>>
>> Laurent, I improved (or not? :)) your work, if you think that is
>> bad for TWM simply undo it ;)
>>
>
>>>

Re: [Pharo-project] Tiling windows

2011-05-27 Thread Gastón Dall' Oglio
Ohhh look good and simple! I would suggest you use these renovated, but it's
too late, and also do not know if there may be some licensing issue:
http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png

A question, the correct way to load external icons in the image is used
ThemeIcons>>createIconMethodsFromDirectory: directory? that particular class
should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
instance side?

2011/5/27 laurent laffont 

> Now with icons, and thanks Patrick for the icon generation idea :)
>
> Laurent.
>
>
> 2011/5/27 laurent laffont 
>
>> Now added top window placement à la OptimizeLayout.
>>
>> Need to find nice icons. Someone ?
>>
>> Laurent.
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>> :)
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 - Now loads in PharoCore
 - more tests
 - fill all space even if number of windows is not square.

 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st



 2011/5/26 Gastón Dall' Oglio 

>
> 2011/5/26 laurent laffont 
>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 Gastòn,

 I've downloaded the new version - thanks a lot for contributing, it
 brings fun :)

 Some comment:

 - tiling browsers don't work any more with
 OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
 anymore
 but a Browser

>>>
>>> In 1.3 core there's not OBBrowser, then, when trying to modify a
>>> method with reference to OBBrowser obtained an error. So I remove their
>>> references.
>>>
>>
>>
>> I see. I will refactor this so it will be compatible with Core and
>> still work with OB (quite easy).
>>
>
>
> This would be great, because now I think, in a core are never the most
> useful tools (Seaside control panel, memory monitor), and TWM should know
> about them in some way (you apply a pattern to solve this problem?).
>
>
>
>>
>>
>>
>>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
 "visible" was not innocent, because tileVisibleWindows cares about 
 windows
 that are not minimized. On the other side, tileWorkspaces tile all
 workspaces, minimized or not. So I think in final we may have:

 #tileVisibleWindows
 #tileWindows  (maybe #tileAllWindows is a better name)
 #tileVisibleWorkspaces
 #tileWorkspaces / #tileAllWorkspaces
 ..


>>> Please, see you the comment in de versión 5 of de package, "Now all
>>> botton tile visibles windows.". I think it's better to just get 
>>> organized
>>> visible windows, even when done on a particular kind (such as 
>>> workspaces).
>>> For this is that the word was redundant now visible.
>>>
>>
>>
>> I will think about this.
>>
>
> When you have many windows, minimizing them is the way to let them
> "suspended", therefore I think it should be organized only visibles.
>
>
>
>>
>>
>> - I will add tests to TWMBar finally as it seems to grow

 - I want TilingWM to be 100% test coverage

>>>
>>> Sorry, give me some time for learn about this...
>>>
>>
>>
>> Don't hesitate to ask.
>>
>>
> ok.
>
>
>>
>> - Balloon and spaces for TWMBar is a good idea - we need to make this
 work effectively :)


>>> yes
>>>
>>>
 - Great to have all the buttons per type of applications !

>>>
>>> it is still very rudimentary way to filter the windows, but it was
>>> helpful to learn about the hierarchy of classes 1.3, in regard to the 
>>> Models
>>> for example.
>>>
>>
>>
>> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>>
>
>
> Great!!!
>
> I'll be honest, this is my first serious development in Squeak / Pharo,
> so it gives me much encouragement your comment, there is still much to 
> learn
> and improve, but it is very encouraging to devote time to something that
> might be useful to others.
>
>
>
>
>>
>>
>> Laurent.
>>
>>
>>>
>>>

 I've merge some of your changes in TWM-LaurentLaffont.5

>>>
>>>
>>> :)
>>>
>>>


 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.s

Re: [Pharo-project] Tiling windows

2011-05-27 Thread Gastón Dall' Oglio
version 11:Added screenshot of bounding of visible windows

test comming soon, give some time :)

2011/5/27 Gastón Dall' Oglio 

> Ohhh look good and simple! I would suggest you use these renovated, but
> it's too late, and also do not know if there may be some licensing issue:
> http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
>
> A question, the correct way to load external icons in the image is used
> ThemeIcons>>createIconMethodsFromDirectory: directory? that particular class
> should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
> instance side?
>
> 2011/5/27 laurent laffont 
>
>> Now with icons, and thanks Patrick for the icon generation idea :)
>>
>> Laurent.
>>
>>
>> 2011/5/27 laurent laffont 
>>
>>> Now added top window placement à la OptimizeLayout.
>>>
>>> Need to find nice icons. Someone ?
>>>
>>> Laurent.
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>
 :)


 2011/5/26 laurent laffont 

> - Now loads in PharoCore
> - more tests
> - fill all space even if number of windows is not square.
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>> 2011/5/26 laurent laffont 
>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/26 laurent laffont 

> Gastòn,
>
> I've downloaded the new version - thanks a lot for contributing, it
> brings fun :)
>
> Some comment:
>
> - tiling browsers don't work any more with
> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
> anymore
> but a Browser
>

 In 1.3 core there's not OBBrowser, then, when trying to modify a
 method with reference to OBBrowser obtained an error. So I remove their
 references.

>>>
>>>
>>> I see. I will refactor this so it will be compatible with Core and
>>> still work with OB (quite easy).
>>>
>>
>>
>> This would be great, because now I think, in a core are never the most
>> useful tools (Seaside control panel, memory monitor), and TWM should know
>> about them in some way (you apply a pattern to solve this problem?).
>>
>>
>>
>>>
>>>
>>>
 - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
> "visible" was not innocent, because tileVisibleWindows cares about 
> windows
> that are not minimized. On the other side, tileWorkspaces tile all
> workspaces, minimized or not. So I think in final we may have:
>
> #tileVisibleWindows
> #tileWindows  (maybe #tileAllWindows is a better name)
> #tileVisibleWorkspaces
> #tileWorkspaces / #tileAllWorkspaces
> ..
>
>
 Please, see you the comment in de versión 5 of de package, "Now all
 botton tile visibles windows.". I think it's better to just get 
 organized
 visible windows, even when done on a particular kind (such as 
 workspaces).
 For this is that the word was redundant now visible.

>>>
>>>
>>> I will think about this.
>>>
>>
>> When you have many windows, minimizing them is the way to let them
>> "suspended", therefore I think it should be organized only visibles.
>>
>>
>>
>>>
>>>
>>> - I will add tests to TWMBar finally as it seems to grow
>
> - I want TilingWM to be 100% test coverage
>

 Sorry, give me some time for learn about this...

>>>
>>>
>>> Don't hesitate to ask.
>>>
>>>
>> ok.
>>
>>
>>>
>>> - Balloon and spaces for TWMBar is a good idea - we need to make this
> work effectively :)
>
>
 yes


> - Great to have all the buttons per type of applications !
>

 it is still very rudimentary way to filter the windows, but it was
 helpful to learn about the hierarchy of classes 1.3, in regard to the 
 Models
 for example.

>>>
>>>
>>> Indeed I've disable TaskBarMorph in my image as it's useless now :)
>>>
>>
>>
>> Great!!!
>>
>> I'll be honest, this is my first serious development in Squeak /
>> Pharo, so it gives me much encouragement your comment, there is still 
>> much
>> to learn and improve, but it is very encouraging to devote time to 
>> something
>> that might be useful to others.
>>
>>
>>
>>
>>>
>>>
>>> Laurent.
>>>
>>>


>
> I've merge some of your changes in TWM-L

Re: [Pharo-project] Tiling windows

2011-05-27 Thread laurent laffont
2011/5/27 Gastón Dall' Oglio 

> version 11:Added screenshot of bounding of visible windows
>
> test comming soon, give some time :)
>


No problem. Tell me when it's ready I will check & merge.

Laurent.




>
> 2011/5/27 Gastón Dall' Oglio 
>
>> Ohhh look good and simple! I would suggest you use these renovated, but
>> it's too late, and also do not know if there may be some licensing issue:
>> http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
>>
>> A question, the correct way to load external icons in the image is used
>> ThemeIcons>>createIconMethodsFromDirectory: directory? that particular class
>> should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
>> instance side?
>>
>> 2011/5/27 laurent laffont 
>>
>>> Now with icons, and thanks Patrick for the icon generation idea :)
>>>
>>> Laurent.
>>>
>>>
>>> 2011/5/27 laurent laffont 
>>>
 Now added top window placement à la OptimizeLayout.

 Need to find nice icons. Someone ?

 Laurent.



 2011/5/26 Gastón Dall' Oglio 

> :)
>
>
> 2011/5/26 laurent laffont 
>
>> - Now loads in PharoCore
>> - more tests
>> - fill all space even if number of windows is not square.
>>
>> Laurent Laffont - @lolgzs 
>>
>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>> Blog: http://magaloma.blogspot.com/
>> Developer group: http://cara74.seasidehosting.st
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 2011/5/26 Gastón Dall' Oglio 

>
>
> 2011/5/26 laurent laffont 
>
>> Gastòn,
>>
>> I've downloaded the new version - thanks a lot for contributing,
>> it brings fun :)
>>
>> Some comment:
>>
>> - tiling browsers don't work any more with
>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an OBBrowser 
>> anymore
>> but a Browser
>>
>
> In 1.3 core there's not OBBrowser, then, when trying to modify a
> method with reference to OBBrowser obtained an error. So I remove 
> their
> references.
>


 I see. I will refactor this so it will be compatible with Core and
 still work with OB (quite easy).

>>>
>>>
>>> This would be great, because now I think, in a core are never the
>>> most useful tools (Seaside control panel, memory monitor), and TWM 
>>> should
>>> know about them in some way (you apply a pattern to solve this 
>>> problem?).
>>>
>>>
>>>



> - you've changed TilingWM>>visibleWindows to TilingWM>>windows. The
>> "visible" was not innocent, because tileVisibleWindows cares about 
>> windows
>> that are not minimized. On the other side, tileWorkspaces tile all
>> workspaces, minimized or not. So I think in final we may have:
>>
>> #tileVisibleWindows
>> #tileWindows  (maybe #tileAllWindows is a better name)
>> #tileVisibleWorkspaces
>> #tileWorkspaces / #tileAllWorkspaces
>> ..
>>
>>
> Please, see you the comment in de versión 5 of de package, "Now all
> botton tile visibles windows.". I think it's better to just get 
> organized
> visible windows, even when done on a particular kind (such as 
> workspaces).
> For this is that the word was redundant now visible.
>


 I will think about this.

>>>
>>> When you have many windows, minimizing them is the way to let them
>>> "suspended", therefore I think it should be organized only visibles.
>>>
>>>
>>>


 - I will add tests to TWMBar finally as it seems to grow
>>
>> - I want TilingWM to be 100% test coverage
>>
>
> Sorry, give me some time for learn about this...
>


 Don't hesitate to ask.


>>> ok.
>>>
>>>

 - Balloon and spaces for TWMBar is a good idea - we need to make
>> this work effectively :)
>>
>>
> yes
>
>
>> - Great to have all the buttons per type of applications !
>>
>
> it is still very rudimentary way to filter the windows, but it was
> helpful to learn about the hierarchy of classes 1.3, in regard to the 
> Models
> for example.
>


 Indeed I've disable TaskBarMorph in my image as it's useless now :)

>>>
>>>
>>> Great!!!
>>>
>>> I'll be honest, this is my first serious development in Squeak /
>>> Pharo, so it gives me much encouragement your comment, there i

Re: [Pharo-project] Tiling windows

2011-05-27 Thread Gastón Dall' Oglio
Well, I coded 2 test, that's something: (
Laurent, at this point both my changes in your work must be something heavy
to do, but the less load my package in a clean image to see the idea of
keeping the UserTiles:)
http://www.squeaksource.com/TilingWindowManager/TWM-GastonDallOglio.14.mcz

Thanks ;)


2011/5/27 laurent laffont 

>
> 2011/5/27 Gastón Dall' Oglio 
>
>> version 11:Added screenshot of bounding of visible windows
>>
>> test comming soon, give some time :)
>>
>
>
> No problem. Tell me when it's ready I will check & merge.
>
> Laurent.
>
>
>
>
>>
>> 2011/5/27 Gastón Dall' Oglio 
>>
>>> Ohhh look good and simple! I would suggest you use these renovated, but
>>> it's too late, and also do not know if there may be some licensing issue:
>>> http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
>>>
>>> A question, the correct way to load external icons in the image is used
>>> ThemeIcons>>createIconMethodsFromDirectory: directory? that particular class
>>> should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
>>> instance side?
>>>
>>> 2011/5/27 laurent laffont 
>>>
 Now with icons, and thanks Patrick for the icon generation idea :)

 Laurent.


 2011/5/27 laurent laffont 

> Now added top window placement à la OptimizeLayout.
>
> Need to find nice icons. Someone ?
>
> Laurent.
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>> :)
>>
>>
>> 2011/5/26 laurent laffont 
>>
>>> - Now loads in PharoCore
>>> - more tests
>>> - fill all space even if number of windows is not square.
>>>
>>> Laurent Laffont - @lolgzs 
>>>
>>> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
>>> Blog: http://magaloma.blogspot.com/
>>> Developer group: http://cara74.seasidehosting.st
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>

 2011/5/26 laurent laffont 

> 2011/5/26 Gastón Dall' Oglio 
>
>>
>>
>> 2011/5/26 laurent laffont 
>>
>>> Gastòn,
>>>
>>> I've downloaded the new version - thanks a lot for contributing,
>>> it brings fun :)
>>>
>>> Some comment:
>>>
>>> - tiling browsers don't work any more with
>>> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an 
>>> OBBrowser anymore
>>> but a Browser
>>>
>>
>> In 1.3 core there's not OBBrowser, then, when trying to modify a
>> method with reference to OBBrowser obtained an error. So I remove 
>> their
>> references.
>>
>
>
> I see. I will refactor this so it will be compatible with Core and
> still work with OB (quite easy).
>


 This would be great, because now I think, in a core are never the
 most useful tools (Seaside control panel, memory monitor), and TWM 
 should
 know about them in some way (you apply a pattern to solve this 
 problem?).



>
>
>
>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows.
>>> The "visible" was not innocent, because tileVisibleWindows cares 
>>> about
>>> windows that are not minimized. On the other side, tileWorkspaces 
>>> tile all
>>> workspaces, minimized or not. So I think in final we may have:
>>>
>>> #tileVisibleWindows
>>> #tileWindows  (maybe #tileAllWindows is a better name)
>>> #tileVisibleWorkspaces
>>> #tileWorkspaces / #tileAllWorkspaces
>>> ..
>>>
>>>
>> Please, see you the comment in de versión 5 of de package, "Now
>> all botton tile visibles windows.". I think it's better to just get
>> organized visible windows, even when done on a particular kind (such 
>> as
>> workspaces). For this is that the word was redundant now visible.
>>
>
>
> I will think about this.
>

 When you have many windows, minimizing them is the way to let them
 "suspended", therefore I think it should be organized only visibles.



>
>
> - I will add tests to TWMBar finally as it seems to grow
>>>
>>> - I want TilingWM to be 100% test coverage
>>>
>>
>> Sorry, give me some time for learn about this...
>>
>
>
> Don't hesitate to ask.
>
>
 ok.


>
> - Balloon and spaces for TWMBar is a good idea - we need to make
>>> this work effectively :)
>>>
>>>
>> yes
>>
>>
>>> - Great to have all the buttons per type of applications !
>>>
>>>

Re: [Pharo-project] Tiling windows

2011-05-27 Thread Bernardo Ezequiel Contreras
Hi,

TilingWM class>>numberOfLastUsedWindows was returning a boolean instead of a
number. therefore i submitted a fix with a small test
could you check it?

the idea is awesome!![?]

2011/5/27 Gastón Dall' Oglio 

> Well, I coded 2 test, that's something: (
> Laurent, at this point both my changes in your work must be something heavy
> to do, but the less load my package in a clean image to see the idea of
> keeping the UserTiles:)
> http://www.squeaksource.com/TilingWindowManager/TWM-GastonDallOglio.14.mcz
>
> Thanks ;)
>
>
> 2011/5/27 laurent laffont 
>
>>
>> 2011/5/27 Gastón Dall' Oglio 
>>
>>> version 11:Added screenshot of bounding of visible windows
>>>
>>> test comming soon, give some time :)
>>>
>>
>>
>> No problem. Tell me when it's ready I will check & merge.
>>
>> Laurent.
>>
>>
>>
>>
>>>
>>> 2011/5/27 Gastón Dall' Oglio 
>>>
 Ohhh look good and simple! I would suggest you use these renovated, but
 it's too late, and also do not know if there may be some licensing issue:
 http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png

 A question, the correct way to load external icons in the image is used
 ThemeIcons>>createIconMethodsFromDirectory: directory? that particular 
 class
 should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
 instance side?

 2011/5/27 laurent laffont 

> Now with icons, and thanks Patrick for the icon generation idea :)
>
> Laurent.
>
>
> 2011/5/27 laurent laffont 
>
>> Now added top window placement à la OptimizeLayout.
>>
>> Need to find nice icons. Someone ?
>>
>> Laurent.
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>> :)
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 - Now loads in PharoCore
 - more tests
 - fill all space even if number of windows is not square.

 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st



 2011/5/26 Gastón Dall' Oglio 

>
> 2011/5/26 laurent laffont 
>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 Gastòn,

 I've downloaded the new version - thanks a lot for contributing,
 it brings fun :)

 Some comment:

 - tiling browsers don't work any more with
 OB, WMWithAnOBBrowserAndDockingBarsTest does not create an 
 OBBrowser anymore
 but a Browser

>>>
>>> In 1.3 core there's not OBBrowser, then, when trying to modify a
>>> method with reference to OBBrowser obtained an error. So I remove 
>>> their
>>> references.
>>>
>>
>>
>> I see. I will refactor this so it will be compatible with Core and
>> still work with OB (quite easy).
>>
>
>
> This would be great, because now I think, in a core are never the
> most useful tools (Seaside control panel, memory monitor), and TWM 
> should
> know about them in some way (you apply a pattern to solve this 
> problem?).
>
>
>
>>
>>
>>
>>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows.
 The "visible" was not innocent, because tileVisibleWindows cares 
 about
 windows that are not minimized. On the other side, tileWorkspaces 
 tile all
 workspaces, minimized or not. So I think in final we may have:

 #tileVisibleWindows
 #tileWindows  (maybe #tileAllWindows is a better name)
 #tileVisibleWorkspaces
 #tileWorkspaces / #tileAllWorkspaces
 ..


>>> Please, see you the comment in de versión 5 of de package, "Now
>>> all botton tile visibles windows.". I think it's better to just get
>>> organized visible windows, even when done on a particular kind 
>>> (such as
>>> workspaces). For this is that the word was redundant now visible.
>>>
>>
>>
>> I will think about this.
>>
>
> When you have many windows, minimizing them is the way to let them
> "suspended", therefore I think it should be organized only visibles.
>
>
>
>>
>>
>> - I will add tests to TWMBar finally as it seems to grow

 - I want TilingWM to be 100% test coverage

>>>
>>> Sorry, give me some time for learn about thi

Re: [Pharo-project] Tiling windows

2011-05-27 Thread laurent laffont
Thanks a lot Bernardo.

Laurent.

On Sat, May 28, 2011 at 2:38 AM, Bernardo Ezequiel Contreras <
vonbecm...@gmail.com> wrote:

> Hi,
>
> TilingWM class>>numberOfLastUsedWindows was returning a boolean instead of
> a number. therefore i submitted a fix with a small test
> could you check it?
>
> the idea is awesome!![?]
>
>
> 2011/5/27 Gastón Dall' Oglio 
>
>> Well, I coded 2 test, that's something: (
>> Laurent, at this point both my changes in your work must be something
>> heavy to do, but the less load my package in a clean image to see the idea
>> of keeping the UserTiles:)
>> http://www.squeaksource.com/TilingWindowManager/TWM-GastonDallOglio.14.mcz
>>
>> Thanks ;)
>>
>>
>> 2011/5/27 laurent laffont 
>>
>>>
>>> 2011/5/27 Gastón Dall' Oglio 
>>>
 version 11:Added screenshot of bounding of visible windows

 test comming soon, give some time :)

>>>
>>>
>>> No problem. Tell me when it's ready I will check & merge.
>>>
>>> Laurent.
>>>
>>>
>>>
>>>

 2011/5/27 Gastón Dall' Oglio 

> Ohhh look good and simple! I would suggest you use these renovated, but
> it's too late, and also do not know if there may be some licensing issue:
> http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
>
> A question, the correct way to load external icons in the image is used
> ThemeIcons>>createIconMethodsFromDirectory: directory? that particular 
> class
> should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
> instance side?
>
> 2011/5/27 laurent laffont 
>
>> Now with icons, and thanks Patrick for the icon generation idea :)
>>
>> Laurent.
>>
>>
>> 2011/5/27 laurent laffont 
>>
>>> Now added top window placement à la OptimizeLayout.
>>>
>>> Need to find nice icons. Someone ?
>>>
>>> Laurent.
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>
 :)


 2011/5/26 laurent laffont 

> - Now loads in PharoCore
> - more tests
> - fill all space even if number of windows is not square.
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>> 2011/5/26 laurent laffont 
>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/26 laurent laffont 

> Gastòn,
>
> I've downloaded the new version - thanks a lot for
> contributing, it brings fun :)
>
> Some comment:
>
> - tiling browsers don't work any more with
> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an 
> OBBrowser anymore
> but a Browser
>

 In 1.3 core there's not OBBrowser, then, when trying to modify a
 method with reference to OBBrowser obtained an error. So I remove 
 their
 references.

>>>
>>>
>>> I see. I will refactor this so it will be compatible with Core
>>> and still work with OB (quite easy).
>>>
>>
>>
>> This would be great, because now I think, in a core are never the
>> most useful tools (Seaside control panel, memory monitor), and TWM 
>> should
>> know about them in some way (you apply a pattern to solve this 
>> problem?).
>>
>>
>>
>>>
>>>
>>>
 - you've changed TilingWM>>visibleWindows to TilingWM>>windows.
> The "visible" was not innocent, because tileVisibleWindows cares 
> about
> windows that are not minimized. On the other side, tileWorkspaces 
> tile all
> workspaces, minimized or not. So I think in final we may have:
>
> #tileVisibleWindows
> #tileWindows  (maybe #tileAllWindows is a better name)
> #tileVisibleWorkspaces
> #tileWorkspaces / #tileAllWorkspaces
> ..
>
>
 Please, see you the comment in de versión 5 of de package, "Now
 all botton tile visibles windows.". I think it's better to just get
 organized visible windows, even when done on a particular kind 
 (such as
 workspaces). For this is that the word was redundant now visible.

>>>
>>>
>>> I will think about this.
>>>
>>
>> When you have many windows, minimizing them is the way to let them
>> "suspended", therefore I think it should be 

Re: [Pharo-project] Tiling windows

2011-05-27 Thread laurent laffont
2011/5/28 Gastón Dall' Oglio 

> Well, I coded 2 test, that's something: (
> Laurent, at this point both my changes in your work must be something heavy
> to do, but the less load my package in a clean image to see the idea of
> keeping the UserTiles:)
> http://www.squeaksource.com/TilingWindowManager/TWM-GastonDallOglio.14.mcz
>
>
OK Gastón I see the functionality.

I will merge and refactor as I have some ideas on it (maybe tomorrow I will
be busy today).

Thanks a lot for the tests !!!

Laurent.




> Thanks ;)
>
>
> 2011/5/27 laurent laffont 
>
>>
>> 2011/5/27 Gastón Dall' Oglio 
>>
>>> version 11:Added screenshot of bounding of visible windows
>>>
>>> test comming soon, give some time :)
>>>
>>
>>
>> No problem. Tell me when it's ready I will check & merge.
>>
>> Laurent.
>>
>>
>>
>>
>>>
>>> 2011/5/27 Gastón Dall' Oglio 
>>>
 Ohhh look good and simple! I would suggest you use these renovated, but
 it's too late, and also do not know if there may be some licensing issue:
 http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png

 A question, the correct way to load external icons in the image is used
 ThemeIcons>>createIconMethodsFromDirectory: directory? that particular 
 class
 should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
 instance side?

 2011/5/27 laurent laffont 

> Now with icons, and thanks Patrick for the icon generation idea :)
>
> Laurent.
>
>
> 2011/5/27 laurent laffont 
>
>> Now added top window placement à la OptimizeLayout.
>>
>> Need to find nice icons. Someone ?
>>
>> Laurent.
>>
>>
>>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>> :)
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 - Now loads in PharoCore
 - more tests
 - fill all space even if number of windows is not square.

 Laurent Laffont - @lolgzs 

 Pharo Smalltalk Screencasts: http://www.pharocasts.com/
 Blog: http://magaloma.blogspot.com/
 Developer group: http://cara74.seasidehosting.st



 2011/5/26 Gastón Dall' Oglio 

>
> 2011/5/26 laurent laffont 
>
>> 2011/5/26 Gastón Dall' Oglio 
>>
>>>
>>>
>>> 2011/5/26 laurent laffont 
>>>
 Gastòn,

 I've downloaded the new version - thanks a lot for contributing,
 it brings fun :)

 Some comment:

 - tiling browsers don't work any more with
 OB, WMWithAnOBBrowserAndDockingBarsTest does not create an 
 OBBrowser anymore
 but a Browser

>>>
>>> In 1.3 core there's not OBBrowser, then, when trying to modify a
>>> method with reference to OBBrowser obtained an error. So I remove 
>>> their
>>> references.
>>>
>>
>>
>> I see. I will refactor this so it will be compatible with Core and
>> still work with OB (quite easy).
>>
>
>
> This would be great, because now I think, in a core are never the
> most useful tools (Seaside control panel, memory monitor), and TWM 
> should
> know about them in some way (you apply a pattern to solve this 
> problem?).
>
>
>
>>
>>
>>
>>> - you've changed TilingWM>>visibleWindows to TilingWM>>windows.
 The "visible" was not innocent, because tileVisibleWindows cares 
 about
 windows that are not minimized. On the other side, tileWorkspaces 
 tile all
 workspaces, minimized or not. So I think in final we may have:

 #tileVisibleWindows
 #tileWindows  (maybe #tileAllWindows is a better name)
 #tileVisibleWorkspaces
 #tileWorkspaces / #tileAllWorkspaces
 ..


>>> Please, see you the comment in de versión 5 of de package, "Now
>>> all botton tile visibles windows.". I think it's better to just get
>>> organized visible windows, even when done on a particular kind 
>>> (such as
>>> workspaces). For this is that the word was redundant now visible.
>>>
>>
>>
>> I will think about this.
>>
>
> When you have many windows, minimizing them is the way to let them
> "suspended", therefore I think it should be organized only visibles.
>
>
>
>>
>>
>> - I will add tests to TWMBar finally as it seems to grow

 - I want TilingWM to be 100% test coverage

>>>
>>> Sorry, give me some time for learn about this...

Re: [Pharo-project] Tiling windows

2011-05-28 Thread Gastón Dall' Oglio
Thanks. If there are more ideas and I can encode (and test:), I will send
them to you.

2011/5/28 laurent laffont 

>
>
>
> 2011/5/28 Gastón Dall' Oglio 
>
>> Well, I coded 2 test, that's something: (
>> Laurent, at this point both my changes in your work must be something
>> heavy to do, but the less load my package in a clean image to see the idea
>> of keeping the UserTiles:)
>> http://www.squeaksource.com/TilingWindowManager/TWM-GastonDallOglio.14.mcz
>>
>>
> OK Gastón I see the functionality.
>
> I will merge and refactor as I have some ideas on it (maybe tomorrow I will
> be busy today).
>
> Thanks a lot for the tests !!!
>
> Laurent.
>
>
>
>
>> Thanks ;)
>>
>>
>> 2011/5/27 laurent laffont 
>>
>>>
>>> 2011/5/27 Gastón Dall' Oglio 
>>>
 version 11:Added screenshot of bounding of visible windows

 test comming soon, give some time :)

>>>
>>>
>>> No problem. Tell me when it's ready I will check & merge.
>>>
>>> Laurent.
>>>
>>>
>>>
>>>

 2011/5/27 Gastón Dall' Oglio 

> Ohhh look good and simple! I would suggest you use these renovated, but
> it's too late, and also do not know if there may be some licensing issue:
> http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
>
> A question, the correct way to load external icons in the image is used
> ThemeIcons>>createIconMethodsFromDirectory: directory? that particular 
> class
> should be loaded? PharoUIThemeIcons or TWMBar, for example? in class o
> instance side?
>
> 2011/5/27 laurent laffont 
>
>> Now with icons, and thanks Patrick for the icon generation idea :)
>>
>> Laurent.
>>
>>
>> 2011/5/27 laurent laffont 
>>
>>> Now added top window placement à la OptimizeLayout.
>>>
>>> Need to find nice icons. Someone ?
>>>
>>> Laurent.
>>>
>>>
>>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>
 :)


 2011/5/26 laurent laffont 

> - Now loads in PharoCore
> - more tests
> - fill all space even if number of windows is not square.
>
> Laurent Laffont - @lolgzs 
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
> Developer group: http://cara74.seasidehosting.st
>
>
>
> 2011/5/26 Gastón Dall' Oglio 
>
>>
>> 2011/5/26 laurent laffont 
>>
>>> 2011/5/26 Gastón Dall' Oglio 
>>>


 2011/5/26 laurent laffont 

> Gastòn,
>
> I've downloaded the new version - thanks a lot for
> contributing, it brings fun :)
>
> Some comment:
>
> - tiling browsers don't work any more with
> OB, WMWithAnOBBrowserAndDockingBarsTest does not create an 
> OBBrowser anymore
> but a Browser
>

 In 1.3 core there's not OBBrowser, then, when trying to modify a
 method with reference to OBBrowser obtained an error. So I remove 
 their
 references.

>>>
>>>
>>> I see. I will refactor this so it will be compatible with Core
>>> and still work with OB (quite easy).
>>>
>>
>>
>> This would be great, because now I think, in a core are never the
>> most useful tools (Seaside control panel, memory monitor), and TWM 
>> should
>> know about them in some way (you apply a pattern to solve this 
>> problem?).
>>
>>
>>
>>>
>>>
>>>
 - you've changed TilingWM>>visibleWindows to TilingWM>>windows.
> The "visible" was not innocent, because tileVisibleWindows cares 
> about
> windows that are not minimized. On the other side, tileWorkspaces 
> tile all
> workspaces, minimized or not. So I think in final we may have:
>
> #tileVisibleWindows
> #tileWindows  (maybe #tileAllWindows is a better name)
> #tileVisibleWorkspaces
> #tileWorkspaces / #tileAllWorkspaces
> ..
>
>
 Please, see you the comment in de versión 5 of de package, "Now
 all botton tile visibles windows.". I think it's better to just get
 organized visible windows, even when done on a particular kind 
 (such as
 workspaces). For this is that the word was redundant now visible.

>>>
>>>
>>> I will think about this.
>>>
>>
>> When you have many windows, minimizing them is the way to let them
>> "suspended", therefore I think it should be organized o