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 /quanta/treeviews/uploadtreeview.h | |
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 'quanta/treeviews/uploadtreeview.h')
-rw-r--r-- | quanta/treeviews/uploadtreeview.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/quanta/treeviews/uploadtreeview.h b/quanta/treeviews/uploadtreeview.h new file mode 100644 index 00000000..85676e41 --- /dev/null +++ b/quanta/treeviews/uploadtreeview.h @@ -0,0 +1,60 @@ +/*************************************************************************** + uploadtreeview.h - description + ------------------- + begin : Sun Aug 25 2002 + copyright : (C) 2002, 2003 by Andras Mantia <amantia@kde.org> + ***************************************************************************/ + +/*************************************************************************** + * * + * 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; version 2 of the License. * + * * + ***************************************************************************/ + +#ifndef UPLOADTREEVIEW_H +#define UPLOADTREEVIEW_H + +#include <qdir.h> +#include <qpixmap.h> +#include <qheader.h> + +#include "uploadtreefolder.h" +#include "uploadtreefile.h" + +class KFileItem; + +/** + *@author George Vilches & Andras Mantia + */ + +class UploadTreeView : public KListView { + Q_OBJECT +public: + UploadTreeView( QWidget *parent, const char *name=0L ); + ~UploadTreeView(); + UploadTreeFile* addItem( const KURL &a_url, const KFileItem &a_fileItem); + QListViewItem* findItem( const QString& ); + int checkboxTree( QListViewItem *it = 0); + void expandAll( QListViewItem * = 0 ); + void collapseAll( QListViewItem * = 0 ); + void invertAll( QListViewItem * = 0 ); + virtual void selectAll( bool select); + /** No descriptions */ + QListViewItem* itemByUrl(const KURL& a_url); + +public slots: + void slotSelectFile( QListViewItem * ); + void slotSelectFile( ); + void selectAllUnderNode( QListViewItem *it, bool select ); + +private slots: + void slotDoubleClicked(QListViewItem *, const QPoint &, int ); + +private: + UploadTreeFolder* findFolder( UploadTreeFolder *, const QString&); + UploadTreeFolder* printTree( UploadTreeFolder *, const QString&); +}; + +#endif |