~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to parts/quickopen/quickopenclassdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2003 Roberto Raggi (roberto@kdevelop.org)
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
19
 */
 
20
 
 
21
#ifndef QUICKOPENCLASSDIALOG_H
 
22
#define QUICKOPENCLASSDIALOG_H
 
23
 
 
24
#include "quickopendialog.h"
 
25
#include <codemodel.h>
 
26
#include <qstringlist.h>
 
27
 
 
28
class QuickOpenPart;
 
29
 
 
30
class QuickOpenClassDialog : public QuickOpenDialog
 
31
{
 
32
    Q_OBJECT
 
33
public:
 
34
    QuickOpenClassDialog(QuickOpenPart* part, QWidget* parent = 0, const char* name = 0, bool modal = TRUE, WFlags fl = 0 );
 
35
    virtual ~QuickOpenClassDialog();
 
36
 
 
37
public slots:
 
38
    virtual void slotExecuted( QListBoxItem* );
 
39
    virtual void slotReturnPressed();
 
40
 
 
41
protected:
 
42
    void findAllClasses( QStringList& classList );
 
43
    void findAllClasses( QStringList& classList, const ClassDom klass );
 
44
    void findAllClasses( QStringList& classList, const NamespaceDom ns );
 
45
 
 
46
    ClassDom findClass( const QString& name );
 
47
    ClassDom findClass( QStringList& path, const NamespaceDom ns );
 
48
    ClassDom findClass( QStringList& path, const ClassDom klass );
 
49
 
 
50
protected slots:
 
51
    virtual void accept();
 
52
 
 
53
private:
 
54
    QStringList m_classList;
 
55
};
 
56
 
 
57
#endif
 
58