home *** CD-ROM | disk | FTP | other *** search
-
- # This is a template file to help you create your own plugins
-
- # Determine my current directory
-
- set currentDir [file dirname [file join [pwd] [info script]]]
-
- # Process messages catalogs
-
- catch {::mesg::processMesgCatalogDir [file join $currentDir messages]}
-
- source [file join $currentDir resolv.tcl]
-
- # Create our own namespace and save the location of any relevant files for
- # future use by plugin instances. In this case we are saving the location
- # of the XML description of a property page
-
- namespace eval ::resolv:: {
- variable pp
- }
-
- set ::resolv::pp [file join $currentDir pp.xml]
-
-
- # Convention: Create init function with the name of your plugin_init
-
- proc resolv_init { args } {
- array set options $args
- [nameserversPlugIn ::#auto] init -namespace $options(-namespace) \
- -moduledirectory $options(-moduledirectory)
- }
-
- # Some data about your plugin
-
- proc resolv_info {} {
- array set info [list description [mesg::get resolv_description]]
- array set info {name {hostname}}
- array set info {version {1.0}}
- array set info {icon network}
- return [array get info]
- }
-
-
-
-