On Wed, 1 Jun 2005, James Graham wrote:

Attached is a patch to reload linked datasets. It _seems to_ work. You need to add the icon to the windows/icons directory - it assumes the stock refresh icon from bluecurve. The patch adds a command ReloadData() (Reload should maybe be saved to reload an entire file) There's nothing complex (like a button in the Edit Datasets dialog to reload a linked dataset) - but having to continually open and close windows was getting me down :).

Thanks James. I've put the functionality in, but I've rewritten the code as it needs to be a little more complex.

The program needs to take into account the cases where datasets have been unlinked from files (and shouldn't be reloaded by the reload command), and where a dataset has been loaded from multiple files (only the final one should be reloaded).

I've also made a little dialog to show what has been reloaded and any errors in the reload process.

I've also put icons in for dataset editting and creation.

I tried to put hte reload functionality in the document class, as that means the undo command will be easier to do in the future...

Jeremy

--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053

Répondre à