classtoolwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 1999 by Jonas Nordin * 00003 * jonas.nordin@syncom.se * 00004 * Copyright (C) 2000-2001 by Bernd Gehrmann * 00005 * bernd@kdevelop.org * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 ***************************************************************************/ 00013 00014 #ifndef _CLASSTOOLWIDGET_H_ 00015 #define _CLASSTOOLWIDGET_H_ 00016 00017 #include "classtreebase.h" 00018 00019 00020 class ClassToolWidget : public ClassTreeBase 00021 { 00022 Q_OBJECT 00023 00024 public: 00025 ClassToolWidget(ClassViewPart *part, QWidget *parent=0); 00026 ~ClassToolWidget(); 00027 00028 void insertClassAndClasses(ParsedClass *parsedClass, QValueList<ParsedClass*> classList); 00029 void insertClassAndClasses(ParsedClass *parsedClass, const QPtrList<ParsedParent> &parentList); 00030 void insertAllClassMethods(ParsedClass *parsedClass, PIAccess filter); 00031 void insertAllClassAttributes(ParsedClass *parsedClass, PIAccess filter); 00032 00033 protected: 00034 virtual KPopupMenu *createPopup(); 00035 00036 private: 00037 void addClassAndAttributes(ParsedClass *parsedClass, PIAccess filter, ClassTreeItem **lastItem); 00038 void addClassAndMethods(ParsedClass *parsedClass, PIAccess filter, ClassTreeItem **lastItem); 00039 }; 00040 00041 #endif