mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-10 08:40:00 +02:00
Basic Shapes: XML export/import added.
Many files were changed, so debugging required. Minor Bug exists: If we export to xml first time, it is OK. But if we then add another shape and then export, then the new shape is not added in XML. Reason: UndoAction not implemented at present for basi shape addition. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2888 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -18,10 +18,12 @@
|
||||
#ifndef DIAGRAM_CONTENT_H
|
||||
#define DIAGRAM_CONTENT_H
|
||||
#include <QtGui>
|
||||
#include "qetgraphicsitem/qetshapeitem.h"
|
||||
class Conductor;
|
||||
class Element;
|
||||
class IndependentTextItem;
|
||||
class DiagramImageItem;
|
||||
|
||||
/**
|
||||
This class provides a container that makes the transmission of diagram content
|
||||
to other functions/methods easier. The different kind of items are made
|
||||
@@ -47,7 +49,8 @@ class DiagramContent {
|
||||
OtherConductors = 32,
|
||||
AnyConductor = 56,
|
||||
All = 63,
|
||||
SelectedOnly = 64
|
||||
SelectedOnly = 64,
|
||||
Shapes = 128
|
||||
};
|
||||
|
||||
/// Hold electrical elements
|
||||
@@ -56,6 +59,8 @@ class DiagramContent {
|
||||
QSet<IndependentTextItem *> textFields;
|
||||
/// Hold image
|
||||
QSet<DiagramImageItem *> images;
|
||||
/// Hold shape
|
||||
QSet<QetShapeItem *> shapes;
|
||||
/// Hold conductors that would get updated considering electrical elements are moved
|
||||
QSet<Conductor *> conductorsToUpdate;
|
||||
/// Hold conductors that would be moved as is considering electrical elements are moved
|
||||
|
||||
Reference in New Issue
Block a user