Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

katecmd.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002                           katecmd.cpp  -  description
00003                              -------------------
00004     begin                : Mon Feb 5 2001
00005     copyright            : (C) 2001 by Christoph Cullmann
00006                            (C) 2002 by Joseph Wenninger
00007     email                : crossfire@babylon2k.de
00008                            jowenn@kde.org
00009 
00010  ***************************************************************************/
00011 
00012 /***************************************************************************
00013  *                                                                         *
00014  *   This program is free software; you can redistribute it and/or modify  *
00015  *   it under the terms of the GNU General Public License as published by  *
00016  *   the Free Software Foundation; either version 2 of the License, or     *
00017  *   (at your option) any later version.                                   *
00018  *                                                                         *
00019  ***************************************************************************/
00020 
00021 #include "katecmd.h"
00022 #include "katecmds.h"
00023 
00024 
00025 #include "katedocument.h"
00026 
00027 KateCmd::KateCmd (KateDocument *doc) : QObject (doc)
00028 {
00029   myDoc = doc;
00030 
00031   myParser.append (new KateCommands::InsertTime (myDoc));
00032   myParser.append (new KateCommands::SedReplace (myDoc));
00033   myParser.append (new KateCommands::Character (myDoc));
00034 }
00035 
00036 KateCmd::~KateCmd ()
00037 {
00038 }
00039 
00040 void KateCmd::execCmd (QString cmd, KateView *view)
00041 {
00042   for (uint i=0; i<myParser.count(); i++)
00043   {
00044     if (myParser.at(i)->execCmd (cmd, view))
00045       break;
00046   }
00047 }
00048 
00049 KateCmdParser::KateCmdParser (KateDocument *doc)
00050 {
00051   myDoc = doc;
00052 }
00053 
00054 KateCmdParser::~KateCmdParser()
00055 {
00056 }
00057 
00058 

Generated on Sat Nov 5 16:17:09 2005 for OPIE by  doxygen 1.4.2