breakpointwidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
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
00055 void slotToggleWatchpoint(const QString &varName);
00056
00057
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
This file is part of the documentation for KDevelop Version 3.1.2.