author | jowenn <jowenn> | 2002-11-10 21:08:01 (UTC) |
---|---|---|
committer | jowenn <jowenn> | 2002-11-10 21:08:01 (UTC) |
commit | e97a6da57804aa14907dec327fbae71bff9b383e (patch) (unidiff) | |
tree | 15f6ee292dba24bdda72f5c72f6d2224c3516763 /noncore/apps/tinykate/libkate/document/katecmd.h | |
parent | 7c012ee8cd16d8befacc6f6750711443fac0fd5e (diff) | |
download | opie-e97a6da57804aa14907dec327fbae71bff9b383e.zip opie-e97a6da57804aa14907dec327fbae71bff9b383e.tar.gz opie-e97a6da57804aa14907dec327fbae71bff9b383e.tar.bz2 |
import of tiny kate. (saving not possible yet)
Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katecmd.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katecmd.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katecmd.h b/noncore/apps/tinykate/libkate/document/katecmd.h new file mode 100644 index 0000000..72158cc --- a/dev/null +++ b/noncore/apps/tinykate/libkate/document/katecmd.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /*************************************************************************** | ||
2 | katecmd.h - description | ||
3 | ------------------- | ||
4 | begin : Mon Feb 5 2001 | ||
5 | copyright : (C) 2001 by Christoph Cullmann | ||
6 | (C) 2002 by Joseph Wenninger | ||
7 | email : crossfire@babylon2k.de | ||
8 | jowenn@kde.org | ||
9 | |||
10 | ***************************************************************************/ | ||
11 | |||
12 | /*************************************************************************** | ||
13 | * * | ||
14 | * This program is free software; you can redistribute it and/or modify * | ||
15 | * it under the terms of the GNU General Public License as published by * | ||
16 | * the Free Software Foundation; either version 2 of the License, or * | ||
17 | * (at your option) any later version. * | ||
18 | * * | ||
19 | ***************************************************************************/ | ||
20 | |||
21 | #ifndef _KATE_CMD_H | ||
22 | #define _KATE_CMD_H | ||
23 | |||
24 | #include <qobject.h> | ||
25 | #include <qstring.h> | ||
26 | #include <qlist.h> | ||
27 | #include <katedocument.h> | ||
28 | |||
29 | class KateCmdParser | ||
30 | { | ||
31 | public: | ||
32 | KateCmdParser (KateDocument *doc=0L); | ||
33 | virtual ~KateCmdParser (); | ||
34 | |||
35 | virtual bool execCmd (QString cmd=0L, KateView *view=0L)=0; | ||
36 | |||
37 | private: | ||
38 | KateDocument *myDoc; | ||
39 | }; | ||
40 | |||
41 | class KateCmd : public QObject | ||
42 | { | ||
43 | Q_OBJECT | ||
44 | |||
45 | public: | ||
46 | KateCmd (KateDocument *doc=0L); | ||
47 | ~KateCmd (); | ||
48 | |||
49 | void execCmd (QString cmd=0L, KateView *view=0L); | ||
50 | |||
51 | private: | ||
52 | KateDocument *myDoc; | ||
53 | QList<KateCmdParser> myParser; | ||
54 | }; | ||
55 | |||
56 | #endif | ||
57 | |||