2
* Copyright (C) 2003 Roberto Raggi (roberto@kdevelop.org)
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; see the file COPYING.LIB. If not, write to
16
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
21
#ifndef QUICKOPENCLASSDIALOG_H
22
#define QUICKOPENCLASSDIALOG_H
24
#include "quickopendialog.h"
25
#include <codemodel.h>
26
#include <qstringlist.h>
30
class QuickOpenClassDialog : public QuickOpenDialog
34
QuickOpenClassDialog(QuickOpenPart* part, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
35
virtual ~QuickOpenClassDialog();
38
virtual void slotExecuted( QListBoxItem* );
39
virtual void slotReturnPressed();
42
void findAllClasses( QStringList& classList );
43
void findAllClasses( QStringList& classList, const ClassDom klass );
44
void findAllClasses( QStringList& classList, const NamespaceDom ns );
46
ClassDom findClass( const QString& name );
47
ClassDom findClass( QStringList& path, const NamespaceDom ns );
48
ClassDom findClass( QStringList& path, const ClassDom klass );
51
virtual void accept();
54
QStringList m_classList;