KateExternalTool Class Reference
#include <kateexternaltools.h>
Detailed Description
This class defines a single external tool.
Definition at line 100 of file kateexternaltools.h.
Public Member Functions | |
KateExternalTool (const QString &name=QString::null, const QString &command=QString::null, const QString &icon=QString::null, const QString &tryexec=QString::null, const QStringList &mimetypes=QStringList(), const QString &acname=QString::null, const QString &cmdname=QString::null, int save=0) | |
~KateExternalTool () | |
bool | valid (const QString &mimetype) const |
bool | checkExec () |
Public Attributes | |
QString | name |
QString | command |
QString | icon |
QString | tryexec |
QStringList | mimetypes |
bool | hasexec |
QString | acname |
QString | cmdname |
int | save |
Member Function Documentation
bool KateExternalTool::valid | ( | const QString & | mimetype | ) | const |
- Returns:
- true if mimetypes is empty, or the
mimetype
matches.
Definition at line 128 of file kateexternaltools.cpp.
bool KateExternalTool::checkExec | ( | ) |
- Returns:
- true if "tryexec" exists and has the executable bit set, or is empty.
This is run at least once, and the tool is disabled if it fails.
Definition at line 89 of file kateexternaltools.cpp.
Member Data Documentation
QString KateExternalTool::name |
QString KateExternalTool::command |
QString KateExternalTool::icon |
QString KateExternalTool::tryexec |
QStringList KateExternalTool::mimetypes |
Optional list of mimetypes for which this action is valid.
Definition at line 117 of file kateexternaltools.h.
This is set by the constructor by calling checkExec(), if a value is present.
Definition at line 118 of file kateexternaltools.h.
QString KateExternalTool::acname |
The name for the action. This is generated first time the action is is created.
Definition at line 119 of file kateexternaltools.h.
QString KateExternalTool::cmdname |
We can save documents prior to activating the tool command: 0 = nothing, 1 = current document, 2 = all documents.
Definition at line 121 of file kateexternaltools.h.
The documentation for this class was generated from the following files: