close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Last modified 14 years ago

#838 new enhancement

Extensiones del interfaz de TOLBase creadas desde el propio TOL

Reported by: Víctor de Buen Remiro Owned by: Jorge
Priority: highest Milestone: TOL Packages
Component: GuiTools Version: 2.0.1
Severity: blocker Keywords:
Cc:

Description

Sería muy deseable ampliar desde el propio TOL el menú de contexto que se le asigna a los objetos en el inspector de TOLBase.

Por ejemplo, estoy pensando concretamente en las instancias de clases que hereden de cierta clase base, pongamos @MenuDesc con un método así

//////////////////////////////////////////////////////////////////////////////
//Clase abstracta para asignar menú contextual gráfico a las instancias
Class @MenuDesc
//////////////////////////////////////////////////////////////////////////////
{
  ////////////////////////////////////////////////////////////////////////////
  //Devuelve un conjunto de pares de texto con la etiqueta a mostrar en el 
  //menú y el nombre del método a ejecutar
  Set getMenuEntries(Real void)
  ////////////////////////////////////////////////////////////////////////////
};

Cuando el inspector detecta una instancia heredada lo llama y le devuelve la información necesaria para ampliar el menú. Esto se podría combinar con otra capacidad interesante: la posibilidad de llamar a TCL desde TOL para ejecutar acciones gráficas o de cualquier índole. De esta manera sería posible personalizar TOLBase de una forma tremendamente potente sin andar tocando el código TCL de TOLBase.

Change History (14)

comment:1 Changed 15 years ago by Jorge

(In [1945]) refs #838 : MultiDimSelector & test, still a prototype

comment:2 Changed 15 years ago by Jorge

(In [1951]) refs #838

comment:3 Changed 15 years ago by Jorge

(In [1957]) refs #838, using tablelist instead of listbox

comment:4 Changed 15 years ago by Jorge

(In [1960]) refs #838, error fantasma que no se como lo he resuelto!!!!

comment:5 Changed 15 years ago by Víctor de Buen Remiro

(In [1961]) refs #838 : package require tablelist

comment:6 Changed 15 years ago by Jorge

(In [1962]) refs #838 : processing onAccept button, next step is list of buttons

comment:7 Changed 15 years ago by Jorge

(In [1963]) refs #838 : now an array of buttons can be specified.

comment:8 Changed 15 years ago by Jorge

(In [1964]) refs #838 : checkdImg & uncheckedImg are member of DimTable not DimSelector

comment:9 Changed 15 years ago by Jorge

(In [1966]) refs #838 : selection is returned as indexes

comment:10 Changed 15 years ago by Jorge

(In [1967]) refs #838 : index values must be send as Real not Text

comment:11 Changed 15 years ago by Jorge

(In [1969]) refs #838 : main widget is now a toplevel and the size if "normal"

comment:12 Changed 15 years ago by Jorge

(In [1970]) refs #838 : the size of the tables is adapted to the size of the toplevel, also multiple instances of the windows can be opened

comment:13 Changed 15 years ago by Víctor de Buen Remiro

Milestone: MantainanceTOL Packages

comment:14 Changed 14 years ago by Pedro Gea

Component: InterfaceGuiTools
Note: See TracTickets for help on using tickets.