mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-28 00:10:01 +02:00
Debut du support des annulations dans l'editeur d'elements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@102 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
26
qgimanager.h
Normal file
26
qgimanager.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef QGI_MANAGER_H
|
||||
#define QGI_MANAGER_H
|
||||
#include <QtCore>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsItem>
|
||||
class QGIManager {
|
||||
// constructeurs, destructeurs
|
||||
public:
|
||||
QGIManager(QGraphicsScene *);
|
||||
virtual ~QGIManager();
|
||||
private:
|
||||
QGIManager(const QGIManager &);
|
||||
|
||||
// attributs
|
||||
private:
|
||||
QGraphicsScene *scene;
|
||||
QHash<QGraphicsItem *, int> qgi_manager;
|
||||
bool destroy_qgi_on_delete;
|
||||
|
||||
//methodes
|
||||
public:
|
||||
void manage(QGraphicsItem *);
|
||||
void release(QGraphicsItem *);
|
||||
void setDestroyQGIOnDelete(bool);
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user