mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-29 23:40:51 +01:00
Diagram editor : dock used to edit the shape item, can now edit several items in the same time
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5756 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -36,9 +36,11 @@ class ShapeGraphicsItemPropertiesWidget : public PropertiesEditorWidget
|
||||
|
||||
public:
|
||||
explicit ShapeGraphicsItemPropertiesWidget(QetShapeItem *item, QWidget *parent = nullptr);
|
||||
ShapeGraphicsItemPropertiesWidget(QList<QetShapeItem *> items_list, QWidget *parent =nullptr);
|
||||
~ShapeGraphicsItemPropertiesWidget() override;
|
||||
|
||||
void setItem(QetShapeItem *shape);
|
||||
void setItems(QList<QetShapeItem *> shapes_list);
|
||||
|
||||
public slots:
|
||||
void apply() override;
|
||||
@@ -52,6 +54,7 @@ class ShapeGraphicsItemPropertiesWidget : public PropertiesEditorWidget
|
||||
private:
|
||||
void setPenColorButton(const QColor &color);
|
||||
void setBrushColorButton(const QColor &color);
|
||||
void setUpEditConnection();
|
||||
|
||||
private slots:
|
||||
void on_m_lock_pos_cb_clicked();
|
||||
@@ -63,6 +66,9 @@ class ShapeGraphicsItemPropertiesWidget : public PropertiesEditorWidget
|
||||
private:
|
||||
Ui::ShapeGraphicsItemPropertiesWidget *ui;
|
||||
QetShapeItem *m_shape;
|
||||
QList <QPointer<QetShapeItem>> m_shapes_list;
|
||||
QList <QMetaObject::Connection> m_connect_list,
|
||||
m_edit_connection;
|
||||
};
|
||||
|
||||
#endif // SHAPEGRAPHICSITEMPROPERTIESWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user