KDevelop API Documentation

languages/java/debugger/breakpointwidget.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 brkptmanager.h - description 00003 ------------------- 00004 begin : Sun Aug 8 1999 00005 copyright : (C) 1999 by John Birch 00006 email : jbb@kdevelop.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef _BREAKPOINTWIDGET_H_ 00019 #define _BREAKPOINTWIDGET_H_ 00020 00021 #include <klistbox.h> 00022 00023 namespace JAVADebugger 00024 { 00025 00026 00027 class Breakpoint; 00028 class QMouseEvent; 00029 00030 /***************************************************************************/ 00031 /***************************************************************************/ 00032 /***************************************************************************/ 00033 00036 00037 class BreakpointWidget : public KListBox 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 BreakpointWidget( QWidget* parent=0, const char* name=0 ); 00043 virtual ~BreakpointWidget(); 00044 00045 void reset(); 00046 void refreshBP(const QString &filename); 00047 00048 public slots: 00049 // Connected to from the editor widget: 00050 void slotToggleBreakpoint(const QString &filename, int lineNum); 00051 void slotEditBreakpoint(const QString &fileName, int lineNum); 00052 void slotToggleBreakpointEnabled(const QString &fileName, int lineNum); 00053 00054 // Conncected to from the variable widget: 00055 void slotToggleWatchpoint(const QString &varName); 00056 00057 // Connected to from the dbgcontroller: 00058 void slotSetPendingBPs(); 00059 void slotUnableToSetBPNow(int BPNo); 00060 void slotParseJDBBrkptList(char *str); 00061 void slotParseJDBBreakpointSet(char *str, int BPKey); 00062 00063 private slots: 00064 void slotExecuted(QListBoxItem *item); 00065 void slotContextMenu(QListBoxItem *item); 00066 00067 signals: 00068 void publishBPState(Breakpoint *brkpt); 00069 void refreshBPState(Breakpoint *brkpt); 00070 void gotoSourcePosition(const QString &fileName, int lineNum); 00071 void clearAllBreakpoints(); 00072 00073 private: 00074 int findIndex(const Breakpoint *BP) const; 00075 Breakpoint *findId(int id) const; 00076 Breakpoint *findKey(int BPKey) const; 00077 00078 void setActive(); 00079 void addBreakpoint(Breakpoint *BP); 00080 void removeBreakpoint(Breakpoint *BP); 00081 void modifyBreakpoint(Breakpoint *BP); 00082 void toggleBPEnabled(Breakpoint *BP); 00083 void removeAllBreakpoints(); 00084 00085 private: 00086 int activeFlag_; 00087 }; 00088 /***************************************************************************/ 00089 /***************************************************************************/ 00090 /***************************************************************************/ 00091 } 00092 00093 #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 Tue Oct 19 08:01:43 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003