Tuesday, 14 December 2010

Thumb class

OK, Let's look at thumbnails.I've added a name field so yuou can have a shorthand to remind you what the picture is when all you can see is a treenode. It might also serve to put a name above the dialog box as well

class Thumb(NarrativeItem):
        [Property(name)]        _name   as string
        [Property(path)]        _path   as string
        [Property(op)]          _op     as string
        [Property(location)]    _location as string

        def constructor():
                _path = ""
                _op = ""
                _location = ""

        tree_node_name as string:
                get:
                        return "Thumb: ${_name}"


The other thing this started me thinking about is configuration. In particular, where to look for images, and where to store them on import. I think a config screen and an XML file to store the configuration. Better not give it the same name as the clonemaster config...

No comments: