Commit 7014b4bc authored by Dirk Wilden's avatar Dirk Wilden

changed interfaces for backup and selection

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11274 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3d9b3ef3
This diff is collapsed.
......@@ -787,11 +787,11 @@ class SelectionInterface {
* This connects to slotToggleSelection(QPoint,QString) which has to be implemented
* by each type selection plugin if this interactive selection mode should be provided.
*
* @param _position The 2-D position of the mouse cursor in local screen coordinates
* @param _event The mouse event that currently is performed
* @param _currentType The currently active primitive type
* @param _deselect True if entities should be deselected
*/
virtual void toggleSelection(QPoint _position, PrimitiveType _currentType, bool _deselect) {};
virtual void toggleSelection(QMouseEvent* _event, PrimitiveType _currentType, bool _deselect) {};
/** \brief Emitted by selection base plugin whenever the user performs a lasso selection
*
......@@ -831,35 +831,35 @@ class SelectionInterface {
* This connects to slotSphereSelection(QPoint,QString) which has to be implemented
* by each type selection plugin if this interactive selection mode should be provided.
*
* @param _position The 2-D position of the mouse cursor
* @param _event The mouse event that currently is performed
* @param _radius The current radius of the selection sphere
* @param _currentType The currently active primitive type
* @param _deselect True if entities should be deselected
*/
virtual void sphereSelection(QPoint _position, double _radius, PrimitiveType _currentType, bool _deselect) {};
virtual void sphereSelection(QMouseEvent* _event, double _radius, PrimitiveType _currentType, bool _deselect) {};
/** \brief Emitted by selection base plugin whenever the user performs a closest boundary selection
*
* This connects to slotClosestBoundarySelection(QPoint,QString) which has to be implemented
* by each type selection plugin if this interactive selection mode should be provided.
*
* @param _position The 2-D position of the mouse cursor in local screen coordinates
* @param _event The mouse event that currently is performed
* @param _currentType The currently active primitive type
* @param _deselect True if entities should be deselected
*/
virtual void closestBoundarySelection(QPoint _position, PrimitiveType _currentType, bool _deselect) {};
virtual void closestBoundarySelection(QMouseEvent* _event, PrimitiveType _currentType, bool _deselect) {};
/** \brief Emitted by selection base plugin whenever the user performs a flood fill selection
*
* This connects to slotFloodFillSelection(QPoint,QString) which has to be implemented
* by each type selection plugin if this interactive selection mode should be provided.
*
* @param _position The 2-D position of the mouse cursor in local screen coordinates
* @param _event The mouse event that currently is performed
* @param _maxAngle The maximum angle used for flood filling
* @param _currentType The currently active primitive type
* @param _deselect True if entities should be deselected
*/
virtual void floodFillSelection(QPoint _position, double _maxAngle, PrimitiveType _currentType, bool _deselect) {};
virtual void floodFillSelection(QMouseEvent* _event, double _maxAngle, PrimitiveType _currentType, bool _deselect) {};
/** \brief Emitted by selection base plugin whenever the user performs a custom selection
*
......
......@@ -66,18 +66,18 @@
class TypeInterface {
signals:
/** \brief Emit this signal if an empty object has been created
*
* @param _id Id of the added object
*/
virtual void emptyObjectAdded( int _id ) {};
public:
/// Destructor
virtual ~TypeInterface() {};
public slots:
virtual bool registerType() = 0;
......@@ -95,6 +95,15 @@ class TypeInterface {
* a given dataType. If so, your addEmpty function will be invoked to create it.
*/
virtual DataType supportedType() = 0;
/** \brief This slot should be implemented in a TypePlugin to generate type specific backups
*
* @param _id Id of the added object
* @param _name name of the backup
* @param _type the type of backup that needs to be done
*/
virtual void generateBackup( int _id, QString _name, UpdateType _type ){};
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment