mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-27 18:59:58 +01:00
Texts group item can be rotate.
The keybord shortcut for texts group alignment change. Now it's ctrl + arrow-left/up/right git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5141 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -28,6 +28,9 @@ class DiagramImageItem;
|
||||
class ElementTextItem;
|
||||
class QetShapeItem;
|
||||
class DynamicElementTextItem;
|
||||
class ElementTextItemGroup;
|
||||
class Diagram;
|
||||
class DiagramTextItem;
|
||||
|
||||
/**
|
||||
This class provides a container that makes the transmission of diagram content
|
||||
@@ -42,6 +45,7 @@ class DiagramContent
|
||||
{
|
||||
public:
|
||||
DiagramContent();
|
||||
DiagramContent(Diagram *diagram);
|
||||
DiagramContent(const DiagramContent &);
|
||||
~DiagramContent();
|
||||
|
||||
@@ -56,8 +60,9 @@ class DiagramContent
|
||||
OtherConductors = 64,
|
||||
AnyConductor = 112,
|
||||
Shapes = 128,
|
||||
All = 255,
|
||||
SelectedOnly = 256
|
||||
TextGroup = 256,
|
||||
All = 511,
|
||||
SelectedOnly = 512
|
||||
};
|
||||
|
||||
QSet<Element *> m_elements;
|
||||
@@ -68,7 +73,11 @@ class DiagramContent
|
||||
QSet<Conductor *> m_conductors_to_move;
|
||||
QSet<Conductor *> m_other_conductors;
|
||||
QSet<DynamicElementTextItem *> m_element_texts;
|
||||
QSet<ElementTextItemGroup *> m_texts_groups;
|
||||
QList<QGraphicsItem *> m_selected_items;
|
||||
|
||||
QList<DiagramTextItem *> selectedTexts() const;
|
||||
QList<ElementTextItemGroup *> selectedTextsGroup() const;
|
||||
QList<Conductor *> conductors(int = AnyConductor) const;
|
||||
QList<QGraphicsItem *> items(int = All) const;
|
||||
QString sentence(int = All) const;
|
||||
|
||||
Reference in New Issue
Block a user