• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kate

KateExternalTool Class Reference

This class defines a single external tool. More...

#include <kateexternaltools.h>

List of all members.


Public Member Functions

bool checkExec ()
 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)
bool valid (const QString &mimetype) const
 ~KateExternalTool ()

Public Attributes

QString acname
QString cmdname
QString command
bool hasexec
QString icon
QStringList mimetypes
QString name
int save
QString tryexec

Detailed Description

This class defines a single external tool.

Definition at line 100 of file kateexternaltools.h.


Constructor & Destructor Documentation

KateExternalTool::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 
)

Definition at line 68 of file kateexternaltools.cpp.

KateExternalTool::~KateExternalTool (  )  [inline]

Definition at line 111 of file kateexternaltools.h.


Member Function Documentation

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.

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.


Member Data Documentation

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

The name for the commandline.

Definition at line 120 of file kateexternaltools.h.

QString KateExternalTool::command

The command to execute.

Definition at line 114 of file kateexternaltools.h.

bool KateExternalTool::hasexec

This is set by the constructor by calling checkExec(), if a value is present.

Definition at line 118 of file kateexternaltools.h.

QString KateExternalTool::icon

the icon to use in the menu.

Definition at line 115 of file kateexternaltools.h.

QStringList KateExternalTool::mimetypes

Optional list of mimetypes for which this action is valid.

Definition at line 117 of file kateexternaltools.h.

QString KateExternalTool::name

The name used in the menu.

Definition at line 111 of file kateexternaltools.h.

int KateExternalTool::save

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.

QString KateExternalTool::tryexec

The name or path of the executable.

Definition at line 116 of file kateexternaltools.h.


The documentation for this class was generated from the following files:
  • kateexternaltools.h
  • kateexternaltools.cpp

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kate
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal