Element editor : Editor can change several primitive style in same time. Just select several primitive and edit it with the style editor widget.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3716 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-02-15 10:21:32 +00:00
parent deeac895c3
commit d1819c967f
9 changed files with 385 additions and 124 deletions

View File

@@ -26,41 +26,47 @@ class CustomElementGraphicPart;
Its appendWidget() method makes the insertion of another widget below it
easier.
*/
class StyleEditor : public ElementItemEditor {
Q_OBJECT
// constructors, destructor
class StyleEditor : public ElementItemEditor
{
Q_OBJECT
// constructors, destructor
public:
StyleEditor(QETElementEditor *, CustomElementGraphicPart * = 0, QWidget * = 0);
virtual ~StyleEditor();
StyleEditor(QETElementEditor *, CustomElementGraphicPart * = 0, QWidget * = 0);
virtual ~StyleEditor();
private:
StyleEditor(const StyleEditor &);
StyleEditor(const StyleEditor &);
// attributes
// attributes
private:
CustomElementGraphicPart *part;
QVBoxLayout *main_layout;
QRadioButton *black_color, *white_color, *normal_style, *dashed_style, *dashdotted_style, *dotted_style, *green_color, *red_color, *blue_color;
QRadioButton *none_weight, *thin_weight, *normal_weight, *no_filling;
QRadioButton *black_filling, *white_filling, *green_filling, *red_filling, *blue_filling;
QCheckBox *antialiasing;
QComboBox *filling_color, *outline_color, *size_weight, *line_style;
CustomElementGraphicPart *part;
QList <CustomElementGraphicPart *> m_part_list;
QList <CustomElementPart *> m_cep_list;
QVBoxLayout *main_layout;
QRadioButton *black_color, *white_color, *normal_style, *dashed_style, *dashdotted_style, *dotted_style, *green_color, *red_color, *blue_color;
QRadioButton *none_weight, *thin_weight, *normal_weight, *no_filling;
QRadioButton *black_filling, *white_filling, *green_filling, *red_filling, *blue_filling;
QCheckBox *antialiasing;
QComboBox *filling_color, *outline_color, *size_weight, *line_style;
// methods
// methods
public:
virtual bool setPart(CustomElementPart *);
virtual CustomElementPart *currentPart() const;
virtual bool setPart(CustomElementPart *);
virtual bool setParts(QList<CustomElementPart *>);
virtual CustomElementPart *currentPart() const;
static bool isStyleEditable (QList <CustomElementPart *> cep_list);
public slots:
void updatePart();
void updateForm();
void updatePartAntialiasing();
void updatePartColor();
void updatePartLineStyle();
void updatePartLineWeight();
void updatePartFilling();
void updatePart();
void updateForm();
void updatePartAntialiasing();
void updatePartColor();
void updatePartLineStyle();
void updatePartLineWeight();
void updatePartFilling();
private:
void activeConnections(bool);
void activeConnections(bool);
};
#endif