Logo Search packages:      
Sourcecode: palapeli version File versions  Download package

QList< Palapeli::PatternConfiguration * > Palapeli::RectangularPatternPlugin::createInstances (  )  const [virtual]

Returns Palapeli::PatternConfiguration instances for this plugin. To actually use your plugin, Palapeli needs access to the patterns defined by your plugin. (This will usually be only one pattern per plugin.) Therefore, this method creates Palapeli::PatternConfiguration instances for Palapeli. If you choose to have multiple patterns in one plugin, you can create one Palapeli::PatternConfiguration instance for each plugin.

The Palapeli::PatternConfiguration instances in the list will be deleted automatically, you do not have to bother with this.

Implements Palapeli::PatternPlugin.

Definition at line 117 of file pattern-rectangular.cpp.

References Palapeli::PatternPlugin::displayName(), Palapeli::PatternPlugin::iconName(), and Palapeli::PatternPlugin::pluginName().

      QList<Palapeli::PatternConfiguration*> list;
      list << new Palapeli::RectangularPatternConfiguration(pluginName(), displayName(), iconName());
      return list;

Generated by  Doxygen 1.6.0   Back to index