~ubuntu-branches/ubuntu/maverick/datakiosk/maverick

« back to all changes in this revision

Viewing changes to src/src/kcombotable.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-06-27 22:48:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050627224806-8farkci1dc2onhbs
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
*   Copyright (C) 2005 by Adam Treat                                      *
 
3
*   treat@kde.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 KCOMBOTABLE_H
 
13
#define KCOMBOTABLE_H
 
14
 
 
15
#include <kcombobox.h>
 
16
 
 
17
class QStringList;
 
18
class KTableEdit;
 
19
class KCompletionTable;
 
20
 
 
21
class KComboTable : public KComboBox
 
22
{
 
23
    Q_OBJECT
 
24
public:
 
25
    KComboTable( QWidget *parent = 0, const char *name = 0 );
 
26
    ~KComboTable();
 
27
 
 
28
    void clearAll();
 
29
    QValueList<int> columnWidths() const;
 
30
    void setColumnWidths( QValueList<int> &colWidths );
 
31
    void insertRow( QStringList &list, bool calculateWidths = true );
 
32
 
 
33
public slots:
 
34
    void slotMakeCompletion( const QString &txt );
 
35
 
 
36
private:
 
37
    KTableEdit *m_tableEdit;
 
38
    KCompletionTable *m_tableBox;
 
39
    KCompletionTable *m_completionTable;
 
40
};
 
41
 
 
42
#endif