18 #ifndef TITLEBLOCK_SLASH_QET_TEMPLATE_EDITOR_H 19 #define TITLEBLOCK_SLASH_QET_TEMPLATE_EDITOR_H 52 QAction *
undo_, *
redo_, *
cut_, *
copy_, *
paste_, *
edit_logos_, *
edit_info_, *
add_row_, *
add_col_, *
merge_cells_, *
split_cell_;
111 bool edit(
const QString &);
134 bool saveAs(
const QString &);
void closeEvent(QCloseEvent *) override
bool editCopyOf(const TitleBlockTemplate *)
bool openForDuplication() const
bool read_only_
whether the currently edited template is considered read only
QString filepath_
Filepath of the currently edited template, if opened from a file.
bool first_activation_
Used to track the first activation of the editor main window.
~QETTitleBlockTemplateEditor() override
void pushGridUndoCommand(TitleBlockTemplateCommand *)
void pushUndoCommand(QUndoCommand *)
QAction * open_from_file_
TitleBlockTemplate * tb_template_
Template Object edited.
TitleBlockTemplateCellWidget * template_cell_editor_widget_
void duplicateCurrentLocation()
bool isEditing(const QString &ilepath)
void setOpenForDuplication(bool)
QGraphicsScene * template_edition_area_scene_
Template preview.
TitleBlockTemplateView * template_edition_area_view_
void editTemplateInformation()
void savePreviewWidthToApplicationSettings(int, int)
QETTitleBlockTemplateEditor::savePreviewWidthToApplicationSettings Save the new preview width to appl...
QDockWidget * template_cell_editor_dock_widget_
Individual cell widget edition.
QDockWidget * undo_dock_widget_
TitleBlockTemplateLocation location() const
void pushCellUndoCommand(ModifyTitleBlockCellCommand *)
void writeSettings()
QETTitleBlockTemplateEditor::writeSettings Write the settings.
bool edit(const TitleBlockTemplateLocation &)
void selectedCellsChanged(const QList< TitleBlockCell *> &)
TitleBlockTemplateLocation getTitleBlockTemplateLocationFromUser(const QString &=QString(), bool existing_only=true)
void readSettings()
QETTitleBlockTemplateEditor::readSettings Read settings.
QMenu * file_menu_
menus TODO
TitleBlockTemplateLogoManager * logo_manager_
Logo manager widget.
void firstActivation(QEvent *) override
bool opened_from_file_
Whether to consider the location or the filepath.
QUndoStack * undo_stack_
Undo interface.
QETTitleBlockTemplateEditor(QWidget *=nullptr)
TitleBlockTemplateLocation location_
Location of the currently edited template.
QString currentlyEditedTitle() const