KDevelop API Documentation

ctags2_part.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Jens Dagerbo                                    *
00003  *   jens.dagerbo@swipnet.se                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef __KDEVPART_CTAGS2_H__
00013 #define __KDEVPART_CTAGS2_H__
00014 
00015 #include <qguardedptr.h>
00016 #include <qstring.h>
00017 
00018 #include <kdevplugin.h>
00019 
00020 class QPopupMenu;
00021 class Context;
00022 class KURL;
00023 class QTextStream;
00024 class CTags2Widget;
00025 
00026 class CTags2Part : public KDevPlugin
00027 {
00028   Q_OBJECT
00029 
00030 public:
00031    
00032     CTags2Part(QObject *parent, const char *name, const QStringList &);
00033     ~CTags2Part();
00034 
00035     int getFileLineFromPattern( KURL const & url, QString const & pattern);
00036     bool createTagsFile();
00037 
00038 private slots:
00039     void slotGotoTag();
00040     void contextMenu(QPopupMenu *, const Context *);
00041     
00042 private:
00043     int getFileLineFromStream( QTextStream & stream, QString const & pattern);
00044     
00045     QGuardedPtr<CTags2Widget> m_widget;
00046     QString m_contextString ;
00047 };
00048 
00049 
00050 #endif
00051 
00052 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:54 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003