Kate
snippetview.cpp
Go to the documentation of this file.
106 connect(snippetTree->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(validateActions()));
327 // no, listening to activated() is not enough since that would also trigger the edit mode which we _dont_ want here
331 if ( (!singleClick && e->type() == QEvent::MouseButtonDblClick) || (singleClick && e->type() == QEvent::MouseButtonRelease) ) {
void customContextMenuRequested(const QPoint &pos)
Type type() const
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
void setSeparator(bool b)
void insertSnippet(Snippet *snippet)
Inserts the given snippet into the currently active view.
Definition: katesnippetglobal.cpp:95
void addAction(QAction *action)
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void removeRow(int row)
QString text() const
void setWindowIcon(const QIcon &icon)
void changeFilter(const QString &filter)
Definition: snippetfilterproxymodel.cpp:54
bool isValid() const
This dialog is used to create/edit snippet repositories and the snippets in them. ...
Definition: editrepository.h:39
QWidget * activeWindow()
SnippetRepository * repositoryForFile(const QString &file)
Returns the repository for the given file if there is any.
Definition: snippetstore.cpp:116
QStandardItem * parent() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual bool eventFilter(QObject *watched, QEvent *event)
Each object of this type represents a repository of snippets.
Definition: snippetrepository.h:52
QModelIndex parent() const
void accept()
This is the main class of KDevelop's snippet plugin.
Definition: katesnippetglobal.h:39
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
const QString & file() const
The path to this repository's file.
Definition: snippetrepository.cpp:88
QStandardItem * itemFromIndex(const QModelIndex &index) const
void setWindowTitle(const QString &)
SnippetView(KateSnippetGlobal *plugin, QWidget *parent=0)
Definition: snippetview.cpp:45
This dialog is used to create/edit snippets in a given repository.
Definition: editsnippet.h:49
const QPoint & pos() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int row() const
void appendRow(const QList< QStandardItem * > &items)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.