kexi

kexibrowseritem.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2003 Lucijan Busch <lucijan@gmx.at>
3 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KEXIBROWSERITEM_H
22#define KEXIBROWSERITEM_H
23
24#include <tdelistview.h>
25#include <tqstring.h>
26
27#include <core/kexipartitem.h>
28
29namespace KexiPart
30{
31 class Info;
32}
33
36class KEXIEXTWIDGETS_EXPORT KexiBrowserItem : public TDEListViewItem
37{
38 public:
40 KexiBrowserItem(TDEListView *parent, KexiPart::Info *i);
41
43 KexiBrowserItem(TDEListViewItem *parent, KexiPart::Info *i, KexiPart::Item *item);
44
47 KexiBrowserItem(TDEListView *parent, KexiPart::Info *i, KexiPart::Item *item);
48
49 virtual ~KexiBrowserItem();
50
51 void clearChildren();
52
54 KexiPart::Info *info() const { return m_info; }
55
57 KexiPart::Item* item() const { return m_item; }
58
59 protected:
60 void initItem();
61 virtual TQString key( int column, bool ascending ) const;
62
63 KexiPart::Info *m_info;
64 KexiPart::Item *m_item;
65
66 TQString m_sortKey;
67 bool m_fifoSorting : 1;
68};
69
70#endif
KexiPart::Info * info() const
KexiPart::Item * item() const
KexiBrowserItem(TDEListView *parent, KexiPart::Info *i)
Creates group item for part i.
Information about a Kexi Part (plugin).
Information about a single object that can be instantiated using Kexi Part.