|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
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 &);
QAction * cut_
Definition: qettemplateeditor.h:52
Definition: templatelogomanager.h:27
QIcon DocumentNew
Definition: qeticons.cpp:53
QIcon UserInformations
Definition: qeticons.cpp:169
QMenu * display_menu_
Definition: qettemplateeditor.h:49
~QETTitleBlockTemplateEditor() override
Definition: qettemplateeditor.cpp:54
static QString customTitleBlockTemplatesDir()
QETApp::customTitleBlockTemplatesDir.
Definition: qetapp.cpp:758
QAction * paste_
Definition: qettemplateeditor.h:52
void editLogos()
Definition: qettemplateeditor.cpp:297
QETTitleBlockTemplateEditor(QWidget *=nullptr)
Definition: qettemplateeditor.cpp:33
void selectedCellsChanged(const QList< TitleBlockCell * > &)
Definition: qettemplateeditor.cpp:620
QIcon ZoomFitBest
Definition: qeticons.cpp:178
QIcon EditTableCellSplit
Definition: qeticons.cpp:74
QIcon EditCopy
Definition: qeticons.cpp:64
QIcon DocumentOpen
Definition: qeticons.cpp:54
static QString realPath(const QString &)
QETApp::realPath Allows you to know the absolute path of the * .elmt file corresponding to a symbolic...
Definition: qetapp.cpp:842
Definition: qettemplateeditor.h:36
bool edit(const TitleBlockTemplateLocation &)
Definition: qettemplateeditor.cpp:187
QString filepath_
Filepath of the currently edited template, if opened from a file.
Definition: qettemplateeditor.h:57
Definition: qetmainwindow.h:26
QIcon ZoomIn
Definition: qeticons.cpp:179
void updateActions()
Definition: qettemplateeditor.cpp:689
void pushCellUndoCommand(ModifyTitleBlockCellCommand *)
Definition: qettemplateeditor.cpp:634
void pushGridUndoCommand(TitleBlockTemplateCommand *)
Definition: qettemplateeditor.cpp:643
Definition: templatelocationsaver.h:30
bool canClose()
Definition: qettemplateeditor.cpp:107
bool saveAsFile()
Definition: qettemplateeditor.cpp:825
QIcon ZoomOut
Definition: qeticons.cpp:181
TitleBlockTemplateLocation getTitleBlockTemplateLocationFromUser(const QString &=QString(), bool existing_only=true)
Definition: qettemplateeditor.cpp:878
void openFromFile()
Definition: qettemplateeditor.cpp:765
QIcon EditUndo
Definition: qeticons.cpp:82
void setName(const QString &)
Definition: templatelocation.cpp:80
void setParentCollection(TitleBlockTemplatesCollection *)
TitleBlockTemplateLocation::setParentCollection.
Definition: templatelocation.cpp:65
bool first_activation_
Used to track the first activation of the editor main window.
Definition: qettemplateeditor.h:68
Definition: templateview.h:32
QAction * save_
Definition: qettemplateeditor.h:51
TitleBlockTemplate * getTemplate(const QString &) override
Definition: templatescollection.cpp:191
TitleBlockTemplateView * template_edition_area_view_
Definition: qettemplateeditor.h:73
QAction * zoom_fit_
Definition: qettemplateeditor.h:53
void editTemplateInformation()
Definition: qettemplateeditor.cpp:927
QAction * quit_
Definition: qettemplateeditor.h:51
Definition: templatelocationchooser.h:28
QAction * edit_info_
Definition: qettemplateeditor.h:52
bool event(QEvent *) override
Definition: qetmainwindow.cpp:233
QString currentlyEditedTitle() const
Definition: qettemplateeditor.cpp:560
void quit()
Definition: qettemplateeditor.cpp:907
TitleBlockTemplateLocation location() const
Definition: qettemplateeditor.cpp:60
TitleBlockTemplatesProjectCollection * embeddedTitleBlockTemplatesCollection()
Definition: qetproject.cpp:243
void initActions()
Definition: qettemplateeditor.cpp:333
QUndoView * undo_view_
Definition: qettemplateeditor.h:81
@ TitleBlockTemplate
Definition: qet.h:105
QAction * save_as_file_
Definition: qettemplateeditor.h:51
void initMenus()
Definition: qettemplateeditor.cpp:405
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
void insertMenu(QMenu *, QMenu *, bool=true)
Definition: qetmainwindow.cpp:172
Definition: templatecommands.h:33
void duplicateCurrentLocation()
Definition: qettemplateeditor.cpp:158
void open()
Definition: qettemplateeditor.cpp:751
QMessageBox::StandardButton question(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:53
QDockWidget * template_cell_editor_dock_widget_
Individual cell widget edition.
Definition: qettemplateeditor.h:75
bool isReadOnly() const
Definition: templatelocation.cpp:156
bool save()
Definition: qettemplateeditor.cpp:789
QAction * save_as_
Definition: qettemplateeditor.h:51
bool isValid() const
Definition: templatelocation.cpp:87
Definition: templatelocation.h:29
QMessageBox::StandardButton information(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:38
bool read_only_
whether the currently edited template is considered read only
Definition: qettemplateeditor.h:61
void savePreviewWidthToApplicationSettings(int, int)
QETTitleBlockTemplateEditor::savePreviewWidthToApplicationSettings Save the new preview width to appl...
Definition: qettemplateeditor.cpp:917
QGraphicsScene * template_edition_area_scene_
Template preview.
Definition: qettemplateeditor.h:72
QString toString() const
Definition: templatelocation.cpp:108
QAction * add_col_
Definition: qettemplateeditor.h:52
QAction * merge_cells_
Definition: qettemplateeditor.h:52
QAction * edit_logos_
Definition: qettemplateeditor.h:52
QAction * split_cell_
Definition: qettemplateeditor.h:52
QIcon EditTableCellMerge
Definition: qeticons.cpp:73
bool editCopyOf(const TitleBlockTemplate *)
Definition: qettemplateeditor.cpp:275
QUndoStack * undo_stack_
Undo interface.
Definition: qettemplateeditor.h:80
QIcon QETLogo
Definition: qeticons.cpp:151
QIcon EditRedo
Definition: qeticons.cpp:68
void initWidgets()
Definition: qettemplateeditor.cpp:476
void setOpenForDuplication(bool)
QETTitleBlockTemplateEditor::setOpenForDuplication.
Definition: qettemplateeditor.cpp:90
QDockWidget * undo_dock_widget_
Definition: qettemplateeditor.h:82
bool compareCanonicalFilePaths(const QString &, const QString &)
Definition: qet.cpp:559
QMenu * file_menu_
menus TODO
Definition: qettemplateeditor.h:49
QAction * zoom_in_
Definition: qettemplateeditor.h:53
TitleBlockTemplateCellWidget * template_cell_editor_widget_
Definition: qettemplateeditor.h:76
QMenu * settings_menu_
Settings menu.
Definition: qetmainwindow.h:65
static QETApp * instance()
QETApp::instance.
Definition: qetapp.cpp:153
bool saveAs()
Definition: qettemplateeditor.cpp:811
QMenu * edit_menu_
Definition: qettemplateeditor.h:49
void writeSettings()
QETTitleBlockTemplateEditor::writeSettings Write the settings.
Definition: qettemplateeditor.cpp:609
QIcon ZoomOriginal
Definition: qeticons.cpp:180
Definition: qetproject.h:51
void newTemplate()
Definition: qettemplateeditor.cpp:324
TitleBlockTemplateLocation location_
Location of the currently edited template.
Definition: qettemplateeditor.h:55
QIcon InsertImage
Definition: qeticons.cpp:116
QAction * redo_
Definition: qettemplateeditor.h:52
TitleBlockTemplate * tb_template_
Template Object edited.
Definition: qettemplateeditor.h:70
QAction * new_
actions
Definition: qettemplateeditor.h:51
void initLogoManager()
Definition: qettemplateeditor.cpp:545
bool duplicate_
Definition: qettemplateeditor.h:66
TitleBlockTemplatesCollection * parentCollection() const
Definition: templatelocation.cpp:57
QIcon EditTableInsertRowAbove
Definition: qeticons.cpp:79
void pushUndoCommand(QUndoCommand *)
Definition: qettemplateeditor.cpp:651
bool opened_from_file_
Whether to consider the location or the filepath.
Definition: qettemplateeditor.h:59
bool openForDuplication() const
Definition: qettemplateeditor.cpp:98
QIcon EditPaste
Definition: qeticons.cpp:67
bool isEditing(const QString &ilepath)
Definition: qettemplateeditor.cpp:68
QIcon DocumentSave
Definition: qeticons.cpp:58
TitleBlockTemplate * getTemplate() const
Definition: templatelocation.cpp:147
TitleBlockTemplateLogoManager * logo_manager_
Logo manager widget.
Definition: qettemplateeditor.h:78
Definition: templatescollection.h:34
void setReadOnly(bool)
Definition: qettemplateeditor.cpp:857
QAction * zoom_reset_
Definition: qettemplateeditor.h:53
static TitleBlockTemplate * defaultTitleBlockTemplate()
QETApp::defaultTitleBlockTemplate.
Definition: qetapp.cpp:1294
QAction * undo_
Definition: qettemplateeditor.h:52
void updateEditorTitle()
Definition: qettemplateeditor.cpp:658
QIcon EditTableInsertColumnRight
Definition: qeticons.cpp:78
void initToolbars()
Definition: qettemplateeditor.cpp:446
#define TITLEBLOCKS_FILE_EXTENSION
Definition: templatescollection.h:20
QAction * add_row_
Definition: qettemplateeditor.h:52
QAction * open_from_file_
Definition: qettemplateeditor.h:51
void firstActivation(QEvent *) override
Definition: qettemplateeditor.cpp:134
void readSettings()
QETTitleBlockTemplateEditor::readSettings Read settings.
Definition: qettemplateeditor.cpp:592
Definition: templatecommands.h:66
QAction * zoom_out_
Definition: qettemplateeditor.h:53
QAction * copy_
Definition: qettemplateeditor.h:52
QIcon tr
Definition: qeticons.cpp:206
QIcon EditCut
Definition: qeticons.cpp:65
QAction * open_
Definition: qettemplateeditor.h:51
QIcon DocumentSaveAs
Definition: qeticons.cpp:60
QIcon Cancel
Definition: qeticons.cpp:34
QString name() const
Definition: templatelocation.cpp:73
void closeEvent(QCloseEvent *) override
Definition: qettemplateeditor.cpp:146
QETTitleBlockTemplateEditor(const QETTitleBlockTemplateEditor &)
QIcon ApplicationExit
Definition: qeticons.cpp:27