gnumed-devel
[Top][All Lists]
Advanced

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

[Gnumed-devel] Changes on CVS


From: Ian Haywood
Subject: [Gnumed-devel] Changes on CVS
Date: Mon, 8 Jul 2002 13:00:53 +1000 (AEST)

I have made some changes to the plugin mechanism. Thre are two types of
plugins:

- wxNotebookPlugin. These define a new notebook page. You declare a 
subclass, methods to override
are

        name (self):
returns the name of the widget

        GetWidget (self, parent):
returns the widget to display inside the notebook, using the provided
parent

        MenuInfo (self):
returns a tuple (<menu>, <menu-item>), where <menu> is one of "tools",
"view", "help", and "file"

Optionally, the Shown (self) method can be overriden. It is called whenver
the notebook page is displayed. (i.e for on-demand fetching of data from
the backend)

These plugins live in gnumed/client/wxpython/gui
The name of the plugin class MUST be identical to that of the file

These plugins now all get their own toolbar, accessible using the
GuiBroker class , the key is "toolbar.<name>", where <name> is the plugin
name as return by the name () function above.

Another type is the wxPatientPlugin. These define pages in the "Patient"
window (which is itself a plugin, now)

These live in gnumed/client/wxpython/patient. The methods are the same as
above, with one extra: 

        def GetIcon (self):

Returns the wxBitmap defining a 16x16 icon for the toolbar.

gmContacts has been "pluginised" and is working.

I am working on a demonstration .EXE but there are still problems,
wxWindows seems to have subtle differences between the two platforms.

I can say the .EXE will be about 7M (about 90% support libraries!)

Tony/Horst: can I have  space on the gnumed.org or gnumed.net site
(melb Uni only give us 5M) 

The shell server at gnu.org is down, so write to this address (if this get
through) if I seem to be unresponsive.

Ian Haywood





reply via email to

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