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

« back to all changes in this revision

Viewing changes to languages/sql/sqlactions.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 by Harald Fernengel                                *
 
3
 *   harry@kdevelop.org                                                    *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 ***************************************************************************/
 
11
 
 
12
#ifndef _SQLACTION_H_
 
13
#define _SQLACTION_H_
 
14
 
 
15
#include <kdeversion.h>
 
16
#include <kaction.h>
 
17
 
 
18
//only for KDE < 3.1
 
19
#if KDE_VERSION <= 305
 
20
#include <kdevwidgetaction.h>
 
21
using namespace KDevCompat;
 
22
#endif
 
23
 
 
24
class SQLSupportPart;
 
25
class KComboBox;
 
26
 
 
27
class SqlListAction : public KWidgetAction
 
28
{
 
29
    Q_OBJECT
 
30
public:
 
31
    SqlListAction( SQLSupportPart *part, const QString &text, const KShortcut& cut,
 
32
                     const QObject *receiver, const char *slot,
 
33
                     KActionCollection *parent, const char *name );
 
34
    void setCurrentConnectionName(const QString &name);
 
35
    QString currentConnectionName() const;
 
36
    void refresh();
 
37
 
 
38
private slots:
 
39
    void activated(int);
 
40
 
 
41
private:
 
42
    SQLSupportPart *m_part;
 
43
    KComboBox* m_combo;
 
44
};
 
45
 
 
46
#endif