Changes between Version 81 and Version 82 of DevelopGuide


Ignore:
Timestamp:
Mar 31, 2009, 3:32:31 PM (16 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopGuide

    v81 v82  
    124124==== Plugin model ====
    125125
    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.
     126All model classes inherit from the '''{{{AbstractPlugin}}}''' class (defined in '''{{{the papywizard.common.abstractPlugin}}}''' module).
     127
     128Then, 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.
    129129
    130130The plugin model may need some user parameters in order to work. These parameters must be defined in the '''{{{_defineConfig()}}}''' method. For example:
     
    142142==== Plugin controller ====
    143143
    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:
     144Controller 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:
    145145
    146146{{{
     
    172172}}}
    173173
    174 If the plugin module implements several model/controller capacities, just put additional PluginManager().register() calls.
     174If the plugin module implements several model/controller capacities, just put additional '''{{{PluginManager().register()}}}''' calls.
    175175
    176176==== Complete example ====