texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] New features for menus in TeXmacs 1.0.0.11


From: David Allouche
Subject: Re: [Texmacs-dev] New features for menus in TeXmacs 1.0.0.11
Date: Thu, 1 Aug 2002 21:18:54 +0200
User-agent: Mutt/1.4i

I have started the first stage of the new menu reorganization. Of
course I have dozens of proposals, requests, new bugs, etc... but I
just want to talk of a few immediate problems.

First, I need several new predicates and observer functions in GUILE
 for the enabled state of the menu items or they checkmarks:

    get-clipboard: string -> tree
    full-screen?: -> bool
    get-shrinking-factor: -> int
    session-use-math-input?: -> bool
    get-insertion-positions: -> string

I would also need predicates related to selection translation:

    selection-get-import: -> string
    selection-get-export: -> string

But I am wondering why not move all the selection/translation related
logic to the Scheme layer...

More importantly, I think the current "implicit rule" mechanism is way
to rigid. It could be simple to implement an extensible system of
implicit rules using the following procedure properties:

  -- check-mark: "*", "v" or "o"

  -- check-test: predicate to apply to the same parameter list as the
     procedure to which it is associated and which return the checked
     state of the menu item.

Here too, it may be possible to do with minimal hacking in C++, but
since widgets now have a GUILE interface, why not move the menu
construction code (at least make_menu_item) to GUILE?

> * Please do *not* make other changes; since we are in the middle of
>   a big reorganization, so things should be done in the right order.

The problem is that I am not sure of what you mean here...

I am not pretending to mess with the actual menu layout here, just to
do help on moving all GUI logic to GUILE.

-- 

                             -- David --




reply via email to

[Prev in Thread] Current Thread [Next in Thread]