Changes between Version 81 and Version 82 of DevelopGuide
- Timestamp:
- Mar 31, 2009, 3:32:31 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopGuide
v81 v82 124 124 ==== Plugin model ==== 125 125 126 All model classes inherit from the '''{{{AbstractPlugin}}}''' class (defined in {{{the papywizard.common.abstractPlugin}}}module).127 128 Then, plugins implementing 'yawAxis' and 'pitchAxis' capacities must inherit from '''{{{AbstractAxisPlugin}}}''', and plugins implementing the 'shutter' capacity must inherit from '''{{{AbstractShutterPlugin}}}''' (defined in the {{{papywizard.hardware.abstractShutterPlugin}}}module). Depending of the implemented capacity, the plugin must overload some methods for Papywizard to work. Have a look at the above classes to see which ones.126 All model classes inherit from the '''{{{AbstractPlugin}}}''' class (defined in '''{{{the papywizard.common.abstractPlugin}}}''' module). 127 128 Then, plugins implementing 'yawAxis' and 'pitchAxis' capacities must inherit from '''{{{AbstractAxisPlugin}}}''', and plugins implementing the 'shutter' capacity must inherit from '''{{{AbstractShutterPlugin}}}''' (defined in the '''{{{papywizard.hardware.abstractShutterPlugin}}}''' module). Depending of the implemented capacity, the plugin must overload some methods for Papywizard to work. Have a look at the above classes to see which ones. 129 129 130 130 The plugin model may need some user parameters in order to work. These parameters must be defined in the '''{{{_defineConfig()}}}''' method. For example: … … 142 142 ==== Plugin controller ==== 143 143 144 Controller classes inherits from '''{{{AbstractPluginController}}}''' class (defined in the {{{papywizard/controller/}}}package). This abstract class inherits from other classes, which are responsible to load the .ui GUI defining file (see previous chapters). The only method which needs to be oversloaded is '''{{{_defineGui()}}}'''. This is where the dialog interface is defined. For example:144 Controller classes inherits from '''{{{AbstractPluginController}}}''' class (defined in the '''{{{papywizard/controller/}}}''' package). This abstract class inherits from other classes, which are responsible to load the .ui GUI defining file (see previous chapters). The only method which needs to be oversloaded is '''{{{_defineGui()}}}'''. This is where the dialog interface is defined. For example: 145 145 146 146 {{{ … … 172 172 }}} 173 173 174 If the plugin module implements several model/controller capacities, just put additional PluginManager().register()calls.174 If the plugin module implements several model/controller capacities, just put additional '''{{{PluginManager().register()}}}''' calls. 175 175 176 176 ==== Complete example ====