languages/java/debugger/disassemblewidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 disassemble.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 _DISASSEMBLEWIDGET_H_ 00019 #define _DISASSEMBLEWIDGET_H_ 00020 00021 #include <keditcl.h> 00022 00023 namespace JAVADebugger 00024 { 00025 00026 class Breakpoint; 00027 00028 /***************************************************************************/ 00029 /***************************************************************************/ 00030 /***************************************************************************/ 00031 00032 class DisassembleWidget : public KEdit 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 DisassembleWidget( QWidget *parent=0, const char *name=0 ); 00038 virtual ~DisassembleWidget(); 00039 00040 public slots: 00041 void slotDisassemble(char *buf); 00042 void slotActivate(bool activate); 00043 void slotShowStepInSource(const QString &fileName, int lineNum, const QString &address); 00044 void slotBPState(const Breakpoint *BP); 00045 00046 signals: 00047 void disassemble(const QString &start, const QString &end); 00048 00049 private: 00050 virtual void showEvent(QShowEvent*); 00051 virtual void hideEvent(QHideEvent*); 00052 00053 bool displayCurrent(); 00054 void getNextDisplay(); 00055 00056 bool active_; 00057 long lower_; 00058 long upper_; 00059 long address_; 00060 QString currentAddress_; 00061 }; 00062 /***************************************************************************/ 00063 /***************************************************************************/ 00064 /***************************************************************************/ 00065 } 00066 00067 #endif