katecmds.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KATE_CMDS_H__
00022 #define __KATE_CMDS_H__
00023
00024 #include "../interfaces/document.h"
00025 #include "../interfaces/view.h"
00026
00027 namespace KateCommands
00028 {
00029
00036 class CoreCommands : public Kate::Command
00037 {
00038 public:
00046 bool exec( class Kate::View *view, const QString &cmd, QString &errorMsg );
00047
00048 bool help( class Kate::View *, const QString &, QString & ) {return false;};
00049
00054 QStringList cmds();
00055 };
00056
00067 class SedReplace : public Kate::Command
00068 {
00069 public:
00077 bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
00078
00079 bool help (class Kate::View *, const QString &, QString &) { return false; };
00080
00085 QStringList cmds () { return QStringList("s"); };
00086
00087 private:
00088 static QString sedMagic(QString textLine, const QString &find, const QString &replace, bool noCase, bool repeat);
00089 };
00090
00099 class Character : public Kate::Command
00100 {
00101 public:
00109 bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
00110
00111 bool help (class Kate::View *, const QString &, QString &) { return false; };
00112
00117 QStringList cmds () { return QStringList("char"); };
00118 };
00119
00123 class Goto : public Kate::Command
00124 {
00125 public:
00126 bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
00127
00128 bool help (class Kate::View *, const QString &, QString &) { return false; };
00129
00134 QStringList cmds () { return QStringList("goto"); };
00135 };
00136
00140 class Date : public Kate::Command
00141 {
00142 public:
00150 bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg);
00151
00152 bool help (class Kate::View *, const QString &, QString &) { return false; };
00153
00158 QStringList cmds () { return QStringList("date"); };
00159 };
00160
00161 }
00162
00163 #endif
00164
00165
This file is part of the documentation for kate Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 23 17:13:29 2004 by
doxygen 1.3.8-20040913 written by
Dimitri van Heesch, © 1997-2003