mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@102 bfdf4180-ca20-0410-9c96-a3a8aa849046
27 lines
523 B
C++
27 lines
523 B
C++
#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
|