languages/java/debugger/framestackwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 framestack.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 _FRAMESTACKWIDGET_H_ 00019 #define _FRAMESTACKWIDGET_H_ 00020 00021 #include <qlistbox.h> 00022 #include <qstrlist.h> 00023 00024 namespace JAVADebugger 00025 { 00026 00027 class FramestackWidget : public QListBox 00028 { 00029 Q_OBJECT 00030 00031 public: 00032 FramestackWidget( QWidget *parent=0, const char *name=0 ); 00033 virtual ~FramestackWidget(); 00034 00035 void parseJDBBacktraceList(char *str); 00036 void addItem(QCString s); 00037 void updateDone(); 00038 void clearList(); 00039 QCString getFrameParams(int frame); 00040 QString getFrameName(int frame); 00041 00042 public slots: 00043 void slotHighlighted(int index); 00044 void slotSelectFrame(int frame); 00045 00046 signals: 00047 void selectFrame(int selectFrame); 00048 00049 private: 00050 int currentFrame_; 00051 QStrList *currentList_; 00052 }; 00053 00054 } 00055 #endif