Merged Rolf Schmidt's illysam branch
[hooke.git] / hooke / ui / gui / plugin.py
1 #!/usr/bin/env python\r
2 \r
3 '''\r
4 plugin.py\r
5 \r
6 ConfigObj plugin class for Hooke.\r
7 \r
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)\r
9 \r
10 This program is released under the GNU General Public License version 2.\r
11 '''\r
12 \r
13 class Plugin(object):\r
14     '''\r
15     Plugin is a class that is used to facilitate accessing\r
16     configuration parameters in a ConfigObj from different plugins.\r
17     '''\r
18 \r
19     def __init__(self):\r
20         self.name = ''\r
21         #if the calling plugin uses a prefix, this can be added to the name\r
22         #e.g. autopeak.ini: [[peak_color]]\r
23         #flatfilts.ini [[color]]\r
24         #are both used to set the color of the peak plot (scatter plot)\r
25         #in order to access 'peak_color' rather than 'color', the prefix needs to\r
26         #be set to 'peak_'\r
27         #if the names are identical, set prefix to ''\r
28         self.prefix = ''\r
29         self.section = ''\r