QElectroTech
0.8-dev
|
#include <styleeditor.h>
Public Slots | |
void | updateForm () override |
StyleEditor::updateForm Update the edition form according to the value of edited part(s) More... | |
void | updatePartAntialiasing () |
Update antialiasing with undo command. More... | |
void | updatePartColor () |
Update color with undo command. More... | |
void | updatePartLineStyle () |
Update style with undo command. More... | |
void | updatePartLineWeight () |
Update weight with undo command. More... | |
void | updatePartFilling () |
Update color filling with undo command. More... | |
Public Member Functions | |
StyleEditor (QETElementEditor *, CustomElementGraphicPart *=nullptr, QWidget *=nullptr) | |
~StyleEditor () override | |
Destructeur. More... | |
bool | setPart (CustomElementPart *) override |
StyleEditor::setPart Set the part to edit by this editor. Note : editor can accept or refuse to edit a part. More... | |
bool | setParts (QList< CustomElementPart * >) override |
StyleEditor::setParts Set several parts to edit by this editor. Note : editor can accept or refuse to edit several parts. More... | |
CustomElementPart * | currentPart () const override |
QList< CustomElementPart * > | currentParts () const override |
Public Member Functions inherited from ElementItemEditor | |
ElementItemEditor (QETElementEditor *, QWidget *=nullptr) | |
~ElementItemEditor () override | |
virtual QETElementEditor * | elementEditor () const |
virtual ElementScene * | elementScene () const |
virtual QUndoStack & | undoStack () const |
virtual QString | elementTypeName () const |
virtual void | setElementTypeName (const QString &) |
virtual void | detach () |
virtual void | updateForm ()=0 |
Static Public Member Functions | |
static bool | isStyleEditable (QList< CustomElementPart * > cep_list) |
StyleEditor::isStyleEditable. More... | |
Private Member Functions | |
StyleEditor (const StyleEditor &) | |
void | activeConnections (bool) |
void | makeUndo (const QString &undo_text, const char *property_name, const QVariant &new_value) |
Private Attributes | |
CustomElementGraphicPart * | part |
QList< CustomElementGraphicPart * > | m_part_list |
QList< CustomElementPart * > | m_cep_list |
QCheckBox * | antialiasing |
QComboBox * | filling_color |
QComboBox * | outline_color |
QComboBox * | size_weight |
QComboBox * | line_style |
This class provides a widget to edit styles (color, pen style and thickness, filling, antialiasing) common to most primitives within the element editor. Its appendWidget() method makes the insertion of another widget below it easier.
StyleEditor::StyleEditor | ( | QETElementEditor * | editor, |
CustomElementGraphicPart * | p = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Constructeur
editor | L'editeur d'element concerne |
p | La partie a editer |
parent | le Widget parent |
|
override |
Destructeur.
|
private |
|
private |
Active ou desactive les connexionx signaux/slots entre les widgets internes.
active | true pour activer les connexions, false pour les desactiver |
|
overridevirtual |
Implements ElementItemEditor.
|
overridevirtual |
|
static |
cep_list |
|
private |
|
overridevirtual |
StyleEditor::setPart Set the part to edit by this editor. Note : editor can accept or refuse to edit a part.
new_part | : part to edit |
Implements ElementItemEditor.
|
overridevirtual |
StyleEditor::setParts Set several parts to edit by this editor. Note : editor can accept or refuse to edit several parts.
part_list |
Reimplemented from ElementItemEditor.
|
overrideslot |
StyleEditor::updateForm Update the edition form according to the value of edited part(s)
|
slot |
Update antialiasing with undo command.
|
slot |
Update color with undo command.
|
slot |
Update color filling with undo command.
|
slot |
Update style with undo command.
|
slot |
Update weight with undo command.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |