This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Interface to the generic menu and toolbar


I partially did this part.  I still have to look at the arguments
though.
But it already has an itcl'sh flavor.



2001-02-01  Fernando Nasser  <fnasser@redhat.com>

	* library/gdbtoolbar.itcl (add): New method.  Emulate the style of the
	toolbar iwidget commands.
	(toolbar_show): Old name.
        (show): New name.
	(toolbar_create_button): Old name.
        (create): New name.
	(toolbar_configure_button): Old name.
        (itemconfigure): New name.
        (toolbar_bind_button): Old name.
        (itembind): New name.
        (toolbar_set_button_balloon): Old name.
        (itemballoon): New name.
        (toolbar_add_button): Make private.
        (toolbar_add_label): Ditto.
        (toolbar_add_button_separator): Ditto.
	(toolbar_remove_button): Ditto.
	(tollbar_insert_button): Ditto.
	* library/srcbar.itcl: Adjust to the above syntax.
	* library/plugins/rhabout/rhabout.itcl: Ditto.




Fernando Nasser wrote:
> 
> The toolbar (which uses libgui TOOLBAR) uses:
> 
> # GDBToolBar
>   public method toolbar_show {}
>   public method set_class_state {enable_list}
>   method toolbar_create_button {name class command balloon args}
>   method toolbar_add_button {name class command balloon args}
>   method toolbar_add_button_separator {}
>   method toolbar_button_right_justify {}
>   method toolbar_add_label {name text balloon args}
>   method toolbar_insert_button {name before}
>   method toolbar_remove_button {name}
>   method toolbar_configure_button {button args}
>   method toolbar_bind_button {button key cmd}
>   method toolbar_set_button_balloon {button text}
>   method toolbar_swap_button_lists {in_list out_list}
> 
> Similarly:
> 
> $Tool add button <name> -class <class> -command <command> -ballon <help
> text>
> 

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]