some thoughts...

We really need to enance the minibuffer a bit. First of all it is very
wrong to have the minibuffer know about LyXfunc.

The LyXFunc should call the minibuffer not the other way around. Son a
sense the minibuffer should be a lot dumber that it is now.

What functions do we need in the minibuffer:

        - clear the window
        - set a message with or without a timeout.
        - input user responses with a program given question text.
                - when using the minibuffer to imput it should be
                  possible to upload a completion list, and also a
                  history list. 

I also belive tat it should not be possible to use the mouse to
activate te minibuffer since tat require the minibuffer to know too
much.


class MiniBuffer {
...
public:
        void clear();
        void set(string const &, int timeout);
        string const getInput(string const & question,
                              map<string> const & completion_list,
                              vector<string> const & history_list);
...
};

This also removes all bookkeeping from the Minibuffer, which is a good
thing.

If we really want something to happen if we click on te minibuffer, we
could do this by registring a callback function or using a signal. We
also need a way to register a way to cancel the ongoing input...

        Lgb

Reply via email to