gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] modified notebook page behaviour


From: Karsten Hilbert
Subject: [Gnumed-devel] modified notebook page behaviour
Date: Thu, 19 Jun 2003 17:42:33 +0200
User-agent: Mutt/1.3.22.1i

All,

many notebook page plugins need a patient to be selected in
order to be meaningful. Implemented page change vetoing in the
main notebook. Default (no code change in plugins) vetoing of
plugin selection happens when a) no patient is selected
(implemented) or b) the notebook is locked (not implemented).
The veto is notified to the user by a
 "Cannot switch to [plugin name]: no patient selected"
in the statusline (do people think this is sufficient or do
you want a beep and a popup box?). Use the top panel patient
selector to select a patient. Plugins that need to get their
own can_receive_focus() method due to not being dependant on
whether a patient is selected or not: Demographics, User
Manual, StiKo Browser, Contacts, etc. None of them converted
yet but easy to do: add

def can_receive_focus():
    pass

to each of the plugins.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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