[vwnc] Changing TabControl dynamically

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Changing TabControl dynamically

Shiro Ogawa
I would like to change the number of tabs and labels of TabControl
based on the situation, similar to Firefox. RefactoringBrowser changes
tabs based on the selection (Class or Name Space etc). I tried to read
through the RefactoringBrowser source, but it is hard. I think it is
possible to change the label specifications and install a new
TabControl on a Subcanvas. Is there a way to change without
reinstalling a new TabControl? Any hints would be appreciated.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Changing TabControl dynamically

Henrik Sperre Johansen
You could check out the RBTabbedToolSet-Ext in the public store,  which
amongst other things include code where tabs are added/deleted dynamically.

Cheers,
Henry

Shiro Ogawa wrote:

> I would like to change the number of tabs and labels of TabControl
> based on the situation, similar to Firefox. RefactoringBrowser changes
> tabs based on the selection (Class or Name Space etc). I tried to read
> through the RefactoringBrowser source, but it is hard. I think it is
> possible to change the label specifications and install a new
> TabControl on a Subcanvas. Is there a way to change without
> reinstalling a new TabControl? Any hints would be appreciated.
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>  
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Changing TabControl dynamically

Henrik Sperre Johansen
Was a little quick there, the code isn't located in the package itself.
Starting from the close/open methods in the Controller should take you
to the spot where it's done pretty fast though.

Henrik Johansen wrote:

> You could check out the RBTabbedToolSet-Ext in the public store,  
> which amongst other things include code where tabs are added/deleted
> dynamically.
>
> Cheers,
> Henry
>
> Shiro Ogawa wrote:
>> I would like to change the number of tabs and labels of TabControl
>> based on the situation, similar to Firefox. RefactoringBrowser changes
>> tabs based on the selection (Class or Name Space etc). I tried to read
>> through the RefactoringBrowser source, but it is hard. I think it is
>> possible to change the label specifications and install a new
>> TabControl on a Subcanvas. Is there a way to change without
>> reinstalling a new TabControl? Any hints would be appreciated.
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>  
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Changing TabControl dynamically

Shiro Ogawa
In reply to this post by Henrik Sperre Johansen
Thanks Henrik. I notice the RBTabbedToolSet-Ext after I posted the
message. I will look into the package.

Thanks

Shiro

On Sat, Nov 29, 2008 at 1:21 PM, Henrik Johansen
<[hidden email]> wrote:

> You could check out the RBTabbedToolSet-Ext in the public store,  which
> amongst other things include code where tabs are added/deleted dynamically.
>
> Cheers,
> Henry
>
> Shiro Ogawa wrote:
>> I would like to change the number of tabs and labels of TabControl
>> based on the situation, similar to Firefox. RefactoringBrowser changes
>> tabs based on the selection (Class or Name Space etc). I tried to read
>> through the RefactoringBrowser source, but it is hard. I think it is
>> possible to change the label specifications and install a new
>> TabControl on a Subcanvas. Is there a way to change without
>> reinstalling a new TabControl? Any hints would be appreciated.
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Changing TabControl dynamically

Lautaro Fernández
In reply to this post by Shiro Ogawa
2008/11/29 Shiro Ogawa <[hidden email]>
I would like to change the number of tabs and labels of TabControl
based on the situation, similar to Firefox. RefactoringBrowser changes
tabs based on the selection (Class or Name Space etc). I tried to read
through the RefactoringBrowser source, but it is hard. I think it is
possible to change the label specifications and install a new
TabControl on a Subcanvas. Is there a way to change without
reinstalling a new TabControl? Any hints would be appreciated.

1)Do you want to change the controller of a tabbed view dynamically? (reading your subject)
2) Or you just want to change the labels of the tabbed view?

I think doing 1) is bad, but I'm not sure that I did understand you 100%.

If you want to do 2), what I recommend you is to change the visualBlock of the tabbed view. As Henrik Johansen said, in the package RBTabbedToolsets-Ext you can see how I changed the visualBlock for each tab.

If you need more info about that implementation, don't hesitate asking me about it.

Hope it helps,
Lautaro Fernández


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
Luke LAut SkyFernadezWalker

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Changing TabControl dynamically

reinier van oosten
In reply to this post by Shiro Ogawa
A number of years ago I had the same problem. In the end I defined a  
new ApplicationModel, a TabMainModel and a TabSubModel that did the  
trick.

The fundamental problem is the fact that bindings are maintained in  
the UIBuilder. This is replaced when a new page is displayed. I  
therefor chose to move bindings from the builder to the  
applicationmodel. I started with the ideas of Tim Howard.

I work with this for years and it works fine. It is not only possible  
to change the tabs, but also the menu displayed with a tab.

The problem currently is that it is not well documented and that it  
has some elements which are application specific. In order to publish  
it I have to clean up things and to document it.


On 29 Nov 2008, at 22:44, Shiro Ogawa wrote:

> Thanks Henrik. I notice the RBTabbedToolSet-Ext after I posted the
> message. I will look into the package.
>
> Thanks
>
> Shiro
>
> On Sat, Nov 29, 2008 at 1:21 PM, Henrik Johansen
> <[hidden email]> wrote:
>> You could check out the RBTabbedToolSet-Ext in the public store,  
>> which
>> amongst other things include code where tabs are added/deleted  
>> dynamically.
>>
>> Cheers,
>> Henry
>>
>> Shiro Ogawa wrote:
>>> I would like to change the number of tabs and labels of TabControl
>>> based on the situation, similar to Firefox. RefactoringBrowser  
>>> changes
>>> tabs based on the selection (Class or Name Space etc). I tried to  
>>> read
>>> through the RefactoringBrowser source, but it is hard. I think it is
>>> possible to change the label specifications and install a new
>>> TabControl on a Subcanvas. Is there a way to change without
>>> reinstalling a new TabControl? Any hints would be appreciated.
>>> _______________________________________________
>>> vwnc mailing list
>>> [hidden email]
>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>
>>>
>>>
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Reinier van Oosten
Decide
Grote Rozenstraat 31

tel: 050-3636907
gsm: 0651335993
email: [hidden email]





_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

[vwnc] CodeCity 1.3 is out

Richard Wettel-2
In reply to this post by Shiro Ogawa
Dear VisualWorks community,

I wanted to let you know that a new version of CodeCity (visualization of software using a 3D city metaphore) with a lot of new features is out.
The new release of CodeCity adds support for evolution analysis and for scripting visualizations, and more stylish configurations.
Please have a look and tell me what you think. You can get the release from:

All the best,
Ricky

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc