1/***************************************************************************
2 arealistview.cpp - description
3 -------------------
4 begin : Weg Feb 26 2003
5 copyright : (C) 2003 by Jan Schäfer
6 email : janschaefer@users.sourceforge.net
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18// QT
19#include <QTreeWidget>
20#include <qpushbutton.h>
21
22
23#include <qtooltip.h>
24
25// KDE
26#include <kiconloader.h>
27#include <klocale.h>
28#include <kvbox.h>
29
30// local
31#include "kimearea.h"
32#include "arealistview.h"
33
34
35AreaListView::AreaListView(QWidget *parent)
36 : KVBox(parent)
37{
38 listView = new QTreeWidget(this);
39 listView->setColumnCount(2);
40 listView->setHeaderLabels(QStringList()
41 << i18n("Areas")
42 << i18n("Preview"));
43 listView->setRootIsDecorated(false);
44 listView->setSelectionMode(QAbstractItemView::ExtendedSelection);
45 listView->setSortingEnabled(false);
46 // FIXME:
47 //listView->setFullWidth(true);
48 /*listView->setWhatsThis( i18n("<h3>Area List</h3>The area list shows you all areas of the map.<br>"
49 "The left column shows the link associated with the area; the right "
50 "column shows the part of the image that is covered by the area.<br>"
51 "The maximum size of the preview images can be configured."));
52 */
53 //listView->setToolTip( i18n("A list of all areas"));
54
55 KHBox *hbox= new KHBox(this);
56 upBtn= new QPushButton("",hbox);
57 upBtn->setIcon(SmallIcon("go-up"));
58
59 downBtn= new QPushButton("",hbox);
60 downBtn->setIcon(SmallIcon("go-down"));
61
62}
63
64
65AreaListView::~AreaListView()
66{
67}
68
69#include "arealistview.moc"
70