classbrowser_widget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Roberto Raggi * 00003 * roberto@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 #ifndef CLASSBROWSER_WIDGET_H 00012 #define CLASSBROWSER_WIDGET_H 00013 00014 #include <klistview.h> 00015 #include <qmap.h> 00016 00017 class ClassBrowserPart; 00018 class KComboBox; 00019 class Catalog; 00020 class KDevLanguageSupport; 00021 00022 class ClassBrowserWidget : public KListView 00023 { 00024 Q_OBJECT 00025 public: 00026 ClassBrowserWidget( ClassBrowserPart* part ); 00027 virtual ~ClassBrowserWidget(); 00028 00029 void init(); 00030 00031 KDevLanguageSupport* languageSupport(); 00032 00033 public slots: 00034 void addCatalog( Catalog* catalog ); 00035 void removeCatalog( Catalog* catalog ); 00036 00037 private slots: 00038 void slotStartSearch(); 00039 void slotCatalogChanged( Catalog* catalog ); 00040 void slotItemExecuted( QListViewItem* item ); 00041 00042 private: 00043 ClassBrowserPart* m_part; 00044 QMap<Catalog*, QListViewItem*> m_items; 00045 }; 00046 00047 #endif