KDevelop API Documentation

parts/tools/tools_part.h

Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2001 Matthias Hoelzer-Kluepfel <mhk@caldera.de> 00003 */ 00004 00005 00006 #ifndef __KDEVPART_TOOLS_H__ 00007 #define __KDEVPART_TOOLS_H__ 00008 00009 00010 #include <qguardedptr.h> 00011 #include <kdevplugin.h> 00012 #include <kdevgenericfactory.h> 00013 00014 00015 class QPopupMenu; 00016 class KDialogBase; 00017 class Context; 00018 00019 00020 class ToolsWidget; 00021 00022 00023 class ToolsPart : public KDevPlugin 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 00029 ToolsPart( QObject *parent, const char *name, const QStringList & ); 00030 ~ToolsPart(); 00031 00032 00033 private slots: 00034 00035 void configWidget(KDialogBase *dlg); 00036 00037 void updateMenu(); 00038 00039 void slotToolActivated(); 00040 00041 void contextMenu(QPopupMenu *popup, const Context *context); 00042 void updateToolsMenu(); 00043 void toolsMenuActivated(); 00044 void fileContextActivated(int id); 00045 void dirContextActivated(int id); 00046 00047 private: 00048 void startCommand(QString cmdline, bool captured, QString fileName); 00049 00050 QPopupMenu *m_contextPopup; 00051 QString m_contextFileName; 00052 }; 00053 00054 typedef KDevGenericFactory<ToolsPart> ToolsFactory; 00055 00056 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003