Kate
editsnippet.cpp
Go to the documentation of this file.
49 KParts::ReadWritePart* part= KMimeTypeTrader::self()->createPartInstanceFromQuery<KParts::ReadWritePart>(
111 connect(m_ui->snippetShortcutWidget, SIGNAL(shortcutChanged(KShortcut)), this, SLOT(topBoxModified()));
112 connect(m_snippetView->document(), SIGNAL(textChanged(KTextEditor::Document*)), this, SLOT(validate()));
211 if (m_topBoxModified || m_snippetView->document()->isModified() || m_scriptsView->document()->isModified()) {
void setSnippet(const QString &snippet)
Sets the actual contents of this snippet.
Definition: snippet.cpp:52
virtual bool setMode(const QString &name)=0
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
void setArguments(const QString &arguments)
Sets the display arguments of this snippet.
Definition: snippet.cpp:82
void setPrefix(const QString &prefix)
Sets the display prefix of this snippet.
Definition: snippet.cpp:62
static T * createPartInstanceFromQuery(const QString &mimeType, QWidget *parentWidget=0, QObject *parent=0, const QString &constraint=QString(), const QVariantList &args=QVariantList(), QString *error=0)
const char * name(StandardAction id)
KShortcut shortcut
void setModified()
virtual bool setText(const QString &text)=0
static void invokeHelp(const QString &anchor=QString(), const QString &appname=QString(), const QByteArray &startup_id=QByteArray())
EditSnippet(SnippetRepository *repo, Snippet *snippet, QWidget *parent=0)
snippet set to 0 when you want to create a new snippet.
Definition: editsnippet.cpp:72
virtual bool isEmpty() const
virtual Document * document() const =0
static KMimeTypeTrader * self()
void setPostfix(const QString &postfix)
Sets the display postfix of this snippet.
Definition: snippet.cpp:72
QString script() const
The QtScript(s) associated with this repository.
Definition: snippetrepository.cpp:137
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
virtual QString text() const =0
void setShortcut(const KShortcut &shortcut, ShortcutTypes type=ShortcutTypes(ActiveShortcut|DefaultShortcut))
void setScript(const QString &script)
Sets the QtScript(s) associated with this repository.
Definition: snippetrepository.cpp:147
QPair< KTextEditor::View *, QToolButton * > getViewForTab(QWidget *tabWidget)
Definition: editsnippet.cpp:45
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
QStringList fileTypes() const
The valid filetypes for the snippets contained in this repository.
Definition: snippetrepository.cpp:103
bool isModified() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.