Changes between Version 26 and Version 27 of DevDocs
- Timestamp:
- 08/19/08 14:26:17 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevDocs
v26 v27 13 13 == Creating Modules for the SEATREE GUI == 14 14 15 A modules is simply a python class which extends the [source: python/seatree/modules/module.py Module] class (located inseatree/modules/module.py).15 A modules is simply a python class which extends the [source:trunk/python/seatree/modules/module.py Module] class (located in python/seatree/modules/module.py). 16 16 17 To create your own module, first look at the [source: python/seatree/modules/example/exampleModule.py simple example module] (located in python/seatree/modules/example/exampleModule.py). You can also look at the code of the existing modules.17 To create your own module, first look at the [source:trunk/python/seatree/modules/example/exampleModule.py simple example module] (located in python/seatree/modules/example/exampleModule.py). You can also look at the code of the existing modules. 18 18 19 Each module should also contain a plotter, which extends the [source: python/seatree/plotter/plotter.py Plotter] class. The currently available plotters are:19 Each module should also contain a plotter, which extends the [source:trunk/python/seatree/plotter/plotter.py Plotter] class. The currently available plotters are: 20 20 21 * [source: python/seatree/plotter/imagePlotter.py ImagePlotter] A plotter for simply displaying images in the SEATREE GUI.22 * [source: python/seatree/plotter/gmt/gmtPlotter.py GMTPlotter] A plotter that extends [source:python/seatree/plotter/imagePlotter.py ImagePlotter] and displays GMT plots23 * [source: python/seatree/plotter/matPlotLib/matPlotLibPlotter.py MatPlotLibPlotter] A plotter that for displaying [http://matplotlib.sourceforge.net/ MatPlotLib] plots (IN DEVOLOPMENT)21 * [source:trunk/python/seatree/plotter/imagePlotter.py ImagePlotter] A plotter for simply displaying images in the SEATREE GUI. 22 * [source:trunk/python/seatree/plotter/gmt/gmtPlotter.py GMTPlotter] A plotter that extends [source:trunk/python/seatree/plotter/imagePlotter.py ImagePlotter] and displays GMT plots 23 * [source:trunk/python/seatree/plotter/matPlotLib/matPlotLibPlotter.py MatPlotLibPlotter] A plotter that for displaying [http://matplotlib.sourceforge.net/ MatPlotLib] plots (IN DEVOLOPMENT) 24 24 25 25 == Installing Your Modules == … … 27 27 === Using the SEATREE Installer (preferred) === 28 28 29 To install your module you need to create a configuration file inside the python/conf/install directory. For the [source: python/seatree/modules/example/exampleModule.py ExampleModule], the configuration file should look like this:29 To install your module you need to create a configuration file inside the python/conf/install directory. For the [source:trunk/python/seatree/modules/example/exampleModule.py ExampleModule], the configuration file should look like this: 30 30 31 31 {{{ … … 45 45 The <importName> tag is the filename of the your module's main class, so for exampleModule.py it is simply exampleModule. If the module is within the SEATREE package structure, you could enter something like: seatree.modules.example.exampleModule . 46 46 47 The <className> tag is the name of the class that extends [source: python/seatree/modules/module.py Module], [source:python/seatree/modules/example/exampleModule.py ExampleModule] in this case.47 The <className> tag is the name of the class that extends [source:trunk/python/seatree/modules/module.py Module], [source:trunk/python/seatree/modules/example/exampleModule.py ExampleModule] in this case. 48 48 49 49 The <directory> tag is the name of the directory within seatree.modules where your module resides. … … 51 51 The <installImportName> and <installClassName> tags are the same as <importName> and <className> except that they correspond to the installer. If no installer is necessary, just omit these values. 52 52 53 An [source: python/seatree/modules/example/exampleInstaller.py example installer] can be found in python/seatree/modules/example/exampleInstaller.py.53 An [source:trunk/python/seatree/modules/example/exampleInstaller.py example installer] can be found in python/seatree/modules/example/exampleInstaller.py. 54 54 55 55 === Manual Installation === … … 59 59 If you want the change to only affect your user or don't have write privileges to the SEATREE directory, you can copy the conf.xml file to the .seatree folder created in your home directory (ex: 'cp python/conf/conf.xml ~/.seatree/'). SEATREE will load 1 configuration file, first looking in your home directory, and then defaulting to the main conf.xml file in python/conf if ~/.seatree/conf.xml doesn't exist. 60 60 61 The SEATREE configuration file for an installation with only [source: python/seatree/modules/example/exampleModule.py ExampleModule] installed would look like this:61 The SEATREE configuration file for an installation with only [source:trunk/python/seatree/modules/example/exampleModule.py ExampleModule] installed would look like this: 62 62 63 63 {{{ … … 77 77 The <importName> tag is the filename of the your module's main class, so for exampleModule.py it is simply exampleModule. If the module is within the SEATREE package structure, you could enter something like: seatree.modules.example.exampleModule. 78 78 79 The <className> tag is the name of the class that extends [source: python/seatree/modules/module.py Module], [source:python/seatree/modules/example/exampleModule.py ExampleModule] in this case.79 The <className> tag is the name of the class that extends [source:trunk/python/seatree/modules/module.py Module], [source:trunk/python/seatree/modules/example/exampleModule.py ExampleModule] in this case. 80 80 81 81 The <directory> tag is the path to the directory containing your module.