18 #ifndef CUSTOM_ELEMENT_EDITOR_H 19 #define CUSTOM_ELEMENT_EDITOR_H 101 bool toFile(
const QString &);
110 void contextMenu(QPoint p, QList<QAction *> actions = QList<QAction*>());
~QETElementEditor() override
Destructeur.
void slot_setNoDragToView()
void slot_setRubberBandToView()
QHash< QString, ElementItemEditor * > m_editors
Hash associating primitive names with their matching edition widget.
QToolBar * element_toolbar
void saveToLocation(ElementsLocation loc)
QString filename_
filename of the currently edited element
void addArc()
QETElementEditor::addArc Set arc creation interface to scene.
bool toLocation(const ElementsLocation &location)
QETElementEditor::toLocation Save the element to Location.
ElementsLocation location_
location of the currently edited element
void addEllipse()
QETElementEditor::addEllipse Set ellipse creation interface to scene.
ElementView * m_view
view widget for the editing scene
QActionGroup * m_depth_action_group
bool opened_from_file
whether the currently edited element comes from a file or a location
QDockWidget * m_tools_dock
container for widgets dedicated to primitive edition
ElementScene * m_elmt_scene
editing scene
void copyAndPasteXml(const QDomDocument &)
void slot_updateSelectionFromPartsList()
ElementScene * elementScene() const
void UncheckAddPrimitive()
QETElementEditor::UncheckAddPrimitive Uncheck all action related to primitive.
bool read_only
whether the editor is "read-only"
void addLine()
QETElementEditor::addLine Set line creation interface to scene.
void slot_updateInformations()
void addTerminal()
QETElementEditor::addTerminal Set terminal creation interface to scene.
bool slot_saveAsFile()
QETElementEditor::slot_saveAsFile Ask a file to user and save the current edited element to this file...
void slot_openDxf()
QETElementEditor::slot_openDxf.
void setupMenus()
QETElementEditor::setupMenus.
QAction * new_element
actions for the "file" menu
void updateCurrentPartEditor()
bool checkElement()
QETElementEditor::checkElement Do several check about element. If error is occurred return false...
bool slot_saveAs()
QETElementEditor::slot_saveAs Ask a location to user and save the current edited element to this loca...
void addRect()
QETElementEditor::addRect Set rectangle creation interface to scene.
QETElementEditor(QWidget *=nullptr)
static QPointF pasteOffset()
QActionGroup * parts
Action group.
void fromLocation(const ElementsLocation &)
QETElementEditor::fromLocation Location of the element to edit.
void openElement(const QString &)
bool slot_save()
QETElementEditor::slot_save Save the current editing element. If the filepath or location is unknow...
void setLocation(const ElementsLocation &)
QETElementEditor::setLocation The new location to edit.
QDockWidget * m_parts_dock
Container for the list of existing primitives.
QAction * selectall
actions for the "edit" menu
void openRecentFile(const QString &)
QDockWidget * m_undo_dock
container for the undo list
QAction * paste_from_elmt
void readSettings()
QETElementEditor::readSettings Read settings.
void closeEvent(QCloseEvent *) override
static QString getOpenElementFileName(QWidget *=nullptr, const QString &=QString())
QString min_title
minimum window title
QLabel * m_default_informations
label displayed when several primitives are selected
void slot_createPartsList()
void fromFile(const QString &)
QAction * m_edit_properties
void addDynamicTextField()
QETElementEditor::addDynamicTextField Set dynamic text field creation interface to scene...
QListWidget * m_parts_list
List of primitives.
void firstActivation(QEvent *) override
void addText()
QETElementEditor::addText Set text creation interface to scene.
void contextMenu(QPoint p, QList< QAction *> actions=QList< QAction *>())
QETElementEditor::contextMenu Display a context menu, with all available action.
void pasteFromElement()
QETElementEditor::pasteFromElement Ask an element to user, copy the xml definition of the element to ...
void addPolygon()
QETElementEditor::addPolygon Set polygon creation interface to scene.
bool toFile(const QString &)
QETElementEditor::toFile Save to file the drawed element.
void setupActions()
QETElementEditor::setupActions Create action used in Element editor.
QToolBar * parts_toolbar
toolbars
void slot_reload()
QETElementEditor::slot_reload Reload the element from the file or location.
void setNames(const NamesList &)
bool isEditing(const ElementsLocation &)
void setFileName(const QString &)
void writeSettings()
QETElementEditor::writeSettings Write the settings.
QAction * paste_from_file
QWidget * clearToolsDock()
ElementsLocation location() const
void setupInterface()
QETElementEditor::setupInterface.
void slot_updatePartsList()
QStackedWidget * m_tools_dock_stack
Stack of widgets for tools_dock.