10#include "templateparser_export.h"
12#include <QStyledItemDelegate>
13#include <QTreeWidgetItem>
18class Ui_CustomTemplatesBase;
20namespace TemplateParser
22class CustomTemplateItem;
46 void templatesUpdated();
49 TEMPLATEPARSER_NO_EXPORT
void slotInsertCommand(
const QString &cmd,
int adjustCursor = 0);
50 TEMPLATEPARSER_NO_EXPORT
void slotTextChanged();
51 TEMPLATEPARSER_NO_EXPORT
void slotAddClicked();
52 TEMPLATEPARSER_NO_EXPORT
void slotRemoveClicked();
53 TEMPLATEPARSER_NO_EXPORT
void slotListSelectionChanged();
54 TEMPLATEPARSER_NO_EXPORT
void slotTypeActivated(
int index);
55 TEMPLATEPARSER_NO_EXPORT
void slotShortcutChanged(
const QKeySequence &newSeq);
56 TEMPLATEPARSER_NO_EXPORT
void slotItemChanged(
QTreeWidgetItem *item,
int column);
57 TEMPLATEPARSER_NO_EXPORT
void slotHelpLinkClicked(
const QString &);
58 TEMPLATEPARSER_NO_EXPORT
void slotNameChanged(
const QString &text);
59 TEMPLATEPARSER_NO_EXPORT
void slotDuplicateClicked();
62 [[nodiscard]] TEMPLATEPARSER_NO_EXPORT
bool nameAlreadyExists(
const QString &str,
QTreeWidgetItem *item =
nullptr);
63 [[nodiscard]] TEMPLATEPARSER_NO_EXPORT
QString indexToType(
int index);
64 [[nodiscard]] TEMPLATEPARSER_NO_EXPORT
QString createUniqueName(
const QString &name)
const;
65 TEMPLATEPARSER_NO_EXPORT
void iconFromType(CustomTemplates::Type type, CustomTemplateItem *item);
76 bool mBlockChangeSignal =
false;
78 Ui_CustomTemplatesBase *
const mUi;
88 CustomTemplates::Type
type,
91 ~CustomTemplateItem()
override;
92 void setCustomType(CustomTemplates::Type
type);
93 [[nodiscard]] CustomTemplates::Type customType()
const;
95 [[nodiscard]]
QString to()
const;
96 [[nodiscard]]
QString cc()
const;
101 [[nodiscard]]
QString content()
const;
102 void setContent(
const QString &);
107 [[nodiscard]]
QString oldName()
const;
108 void setOldName(
const QString &);
113 CustomTemplates::Type mType;
121 explicit CustomTemplateItemDelegate(
QObject *
parent =
nullptr);
122 ~CustomTemplateItemDelegate()
override;
The CustomTemplates class.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.