diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /kimagemapeditor/arealistview.cpp | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimagemapeditor/arealistview.cpp')
-rw-r--r-- | kimagemapeditor/arealistview.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/kimagemapeditor/arealistview.cpp b/kimagemapeditor/arealistview.cpp new file mode 100644 index 00000000..80cd3265 --- /dev/null +++ b/kimagemapeditor/arealistview.cpp @@ -0,0 +1,67 @@ +/*************************************************************************** + arealistview.cpp - description + ------------------- + begin : Weg Feb 26 2003 + copyright : (C) 2003 by Jan Schäfer + email : janschaefer@users.sourceforge.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +// QT +#include <klistview.h> +#include <qpushbutton.h> +#include <qhbox.h> +#include <qwhatsthis.h> +#include <qtooltip.h> + +// KDE +#include <kiconloader.h> +#include <klocale.h> + +// local +#include "kimearea.h" +#include "arealistview.h" + + +AreaListView::AreaListView(QWidget *parent, const char *name) + : QVBox(parent, name) +{ + listView = new KListView(this); + listView->addColumn(i18n("Areas")); + listView->addColumn(i18n("Preview")); + + listView->setMultiSelection(true); + listView->setSelectionMode( QListView::Extended ); + listView->setSorting(-1); // The user can't sort by clicking on the header + listView->setFullWidth(true); + + + QWhatsThis::add( listView, i18n("<h3>Area List</h3>The area list shows you all areas of the map.<br>" + "The left column shows the link associated with the area; the right " + "column shows the part of the image that is covered by the area.<br>" + "The maximum size of the preview images can be configured.")); + QToolTip::add( listView, i18n("A list of all areas")); + + QHBox *hbox= new QHBox(this); + upBtn= new QPushButton("",hbox); + upBtn->setIconSet(SmallIconSet("up")); + + downBtn= new QPushButton("",hbox); + downBtn->setIconSet(SmallIconSet("down")); + +} + + +AreaListView::~AreaListView() +{ +} + +#include "arealistview.moc" |