#include <qetelementeditor.h>
Inherits QMainWindow.
◆ QETElementEditor()
| QETElementEditor::QETElementEditor |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ ~QETElementEditor()
| QETElementEditor::~QETElementEditor |
( |
| ) |
|
|
override |
◆ canClose()
| bool QETElementEditor::canClose |
( |
| ) |
|
|
private |
◆ checkElement()
| bool QETElementEditor::checkElement |
( |
| ) |
|
◆ clearToolsDock()
| QWidget * QETElementEditor::clearToolsDock |
( |
| ) |
|
|
private |
QETElementEditor::clearToolsDock Remove and hide the widget displayed by the dock used to edit primitives.
- Returns
- Return the removed widget or nullptr if there is no widget to remove.
◆ closeEvent()
| void QETElementEditor::closeEvent |
( |
QCloseEvent * | qce | ) |
|
|
overrideprotected |
◆ contextMenu()
| void QETElementEditor::contextMenu |
( |
QPoint | p, |
|
|
QList< QAction * > | actions = QList<QAction *>() ) |
QETElementEditor::contextMenu Display a context menu, with all available action.
- Parameters
-
| p | : the pos of the menu, in screen coordinate |
| actions | : a list of actions who can be prepended to the context menu. |
◆ copyAndPasteXml()
| void QETElementEditor::copyAndPasteXml |
( |
const QDomDocument & | xml_document | ) |
|
|
private |
◆ elementScene()
◆ elementView()
◆ event()
| bool QETElementEditor::event |
( |
QEvent * | event | ) |
|
|
overrideprotected |
◆ fileName()
| QString QETElementEditor::fileName |
( |
| ) |
const |
◆ fillPartsList()
| void QETElementEditor::fillPartsList |
( |
| ) |
|
◆ fromFile()
| void QETElementEditor::fromFile |
( |
const QString & | filepath | ) |
|
◆ fromLocation()
◆ getOpenElementFileName()
| QString QETElementEditor::getOpenElementFileName |
( |
QWidget * | parent = nullptr, |
|
|
const QString & | dir = QString() ) |
|
static |
◆ initGui()
| void QETElementEditor::initGui |
( |
| ) |
|
|
private |
◆ isEditing() [1/2]
◆ isEditing() [2/2]
| bool QETElementEditor::isEditing |
( |
const QString & | filepath | ) |
|
◆ isReadOnly()
| bool QETElementEditor::isReadOnly |
( |
| ) |
const |
◆ location()
◆ on_m_about_qet_action_triggered
| void QETElementEditor::on_m_about_qet_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_about_qt_action_triggered
| void QETElementEditor::on_m_about_qt_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_copy_action_triggered
| void QETElementEditor::on_m_copy_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_cut_action_triggered
| void QETElementEditor::on_m_cut_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_delete_action_triggered
| void QETElementEditor::on_m_delete_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_deselect_all_action_triggered
| void QETElementEditor::on_m_deselect_all_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_donate_action_triggered
| void QETElementEditor::on_m_donate_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_edit_author_action_triggered
| void QETElementEditor::on_m_edit_author_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_edit_element_properties_action_triggered
| void QETElementEditor::on_m_edit_element_properties_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_edit_names_action_triggered
| void QETElementEditor::on_m_edit_names_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_export_svg_action_triggered
| bool QETElementEditor::on_m_export_svg_action_triggered |
( |
| ) |
|
|
privateslot |
QETElementEditor::on_m_export_svg_action_triggered Export the element currently open in this editor to a standalone SVG file.
Renders the live ElementScene directly, the same way ExportDialog::generateSvg() renders the live Diagram for the diagram editor's own SVG export – not ElementPictureFactory's cached picture. That cache is keyed by the element's saved-to-disk uuid and is never invalidated on edit (nothing in this editor ever tells it to), so it would silently export stale content for any element already previewed once in the elements panel, and nothing at all for one that has never been saved. Rendering the scene directly has neither problem and always reflects exactly what is currently on screen, saved or not.
- Returns
- true if the file was written
◆ on_m_import_dxf_triggered
| void QETElementEditor::on_m_import_dxf_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_import_scaled_element_triggered
| void QETElementEditor::on_m_import_scaled_element_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_new_action_triggered
| void QETElementEditor::on_m_new_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_online_manual_triggered
| void QETElementEditor::on_m_online_manual_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_open_action_triggered
| void QETElementEditor::on_m_open_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_open_from_file_action_triggered
| void QETElementEditor::on_m_open_from_file_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_paste_action_triggered
| void QETElementEditor::on_m_paste_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_paste_from_element_action_triggered
| void QETElementEditor::on_m_paste_from_element_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_paste_from_file_action_triggered
| void QETElementEditor::on_m_paste_from_file_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_paste_in_area_action_triggered
| void QETElementEditor::on_m_paste_in_area_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_quit_action_triggered
| void QETElementEditor::on_m_quit_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_reload_action_triggered
| void QETElementEditor::on_m_reload_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_revert_selection_action_triggered
| void QETElementEditor::on_m_revert_selection_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_save_action_triggered
| bool QETElementEditor::on_m_save_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_save_as_action_triggered
| bool QETElementEditor::on_m_save_as_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_save_as_file_action_triggered
| bool QETElementEditor::on_m_save_as_file_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_select_all_act_triggered
| void QETElementEditor::on_m_select_all_act_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_youtube_action_triggered
| void QETElementEditor::on_m_youtube_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_fit_best_action_triggered
| void QETElementEditor::on_m_zoom_fit_best_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_in_action_triggered
| void QETElementEditor::on_m_zoom_in_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_original_action_triggered
| void QETElementEditor::on_m_zoom_original_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_out_action_triggered
| void QETElementEditor::on_m_zoom_out_action_triggered |
( |
| ) |
|
|
privateslot |
◆ openElement()
| void QETElementEditor::openElement |
( |
const QString & | filepath | ) |
|
◆ pasteOffset()
| QPointF QETElementEditor::pasteOffset |
( |
| ) |
|
|
static |
◆ readSettings()
| void QETElementEditor::readSettings |
( |
| ) |
|
|
private |
◆ readSettingsState()
| void QETElementEditor::readSettingsState |
( |
| ) |
|
|
private |
◆ saveToLocation
◆ setFileName()
| void QETElementEditor::setFileName |
( |
const QString & | file_name | ) |
|
◆ setLocation()
◆ setNames()
| void QETElementEditor::setNames |
( |
const NamesList & | name_list | ) |
|
◆ setReadOnly()
| void QETElementEditor::setReadOnly |
( |
bool | ro | ) |
|
◆ setupActions()
| void QETElementEditor::setupActions |
( |
| ) |
|
|
private |
◆ setupConnection()
| void QETElementEditor::setupConnection |
( |
| ) |
|
|
private |
◆ toFile()
| bool QETElementEditor::toFile |
( |
const QString & | filepath | ) |
|
QETElementEditor::toFile Save to a file the current edited element.
- Parameters
-
| filepath | : path of the file |
- Returns
- true if success
◆ toLocation()
◆ UncheckAddPrimitive()
| void QETElementEditor::UncheckAddPrimitive |
( |
| ) |
|
◆ updateAction()
| void QETElementEditor::updateAction |
( |
| ) |
|
|
private |
◆ updateCurrentPartEditor()
| void QETElementEditor::updateCurrentPartEditor |
( |
| ) |
|
◆ updateInformations()
| void QETElementEditor::updateInformations |
( |
| ) |
|
◆ updatePartsList()
| void QETElementEditor::updatePartsList |
( |
| ) |
|
◆ updateSelectionFromPartsList()
| void QETElementEditor::updateSelectionFromPartsList |
( |
| ) |
|
◆ updateTitle()
| void QETElementEditor::updateTitle |
( |
| ) |
|
◆ writeSettings()
| void QETElementEditor::writeSettings |
( |
| ) |
const |
|
private |
◆ m_add_part_action_grp
| QActionGroup* QETElementEditor::m_add_part_action_grp = nullptr |
|
private |
◆ m_context_menu_action_list
| QList<QAction *> QETElementEditor::m_context_menu_action_list |
|
private |
◆ m_default_informations
| QLabel* QETElementEditor::m_default_informations = nullptr |
|
private |
◆ m_depth_action_group
| QActionGroup * QETElementEditor::m_depth_action_group = nullptr |
|
private |
◆ m_editors
Hash associating primitive names with their matching edition widget.
◆ m_elmt_scene
◆ m_file_name
| QString QETElementEditor::m_file_name |
|
private |
◆ m_first_activation
| bool QETElementEditor::m_first_activation = true |
|
private |
◆ m_location
◆ m_min_title
| QString QETElementEditor::m_min_title |
|
private |
◆ m_opened_from_file
| bool QETElementEditor::m_opened_from_file = false |
|
private |
◆ m_parts_list
| QListWidget* QETElementEditor::m_parts_list = nullptr |
|
private |
◆ m_position_label
| QLabel* QETElementEditor::m_position_label = nullptr |
|
private |
◆ m_read_only
| bool QETElementEditor::m_read_only = false |
|
private |
◆ m_redo_action
| QAction * QETElementEditor::m_redo_action = nullptr |
|
private |
◆ m_tools_dock_stack
| QStackedWidget* QETElementEditor::m_tools_dock_stack = nullptr |
|
private |
◆ m_undo_action
| QAction* QETElementEditor::m_undo_action = nullptr |
|
private |
◆ m_view
◆ ui
| Ui::QETElementEditor* QETElementEditor::ui |
|
private |
The documentation for this class was generated from the following files: