┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphincategorydrawer.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-07-30 20:13:09 +0200
committerPeter Penz <[email protected]>2011-07-30 20:13:41 +0200
commitf23e9496f303995557b744c03178f5dbd9b35016 (patch)
tree1139c4340ac173718d1fa847e0124d6175781fd9 /src/views/dolphincategorydrawer.h
parent69e4007e5e330f2ca87c0176a186967b5ca156e8 (diff)
Merged very early alpha-version of Dolphin 2.0
Dolphin 2.0 will get a new view-engine with the following improvements: - Better performance - Animated transitions - No clipped filenames due to dynamic item-sizes - Grouping support for all view-modes - Non-rectangular selection areas - Simplified code for better maintenance More details will be provided in a blog-entry during the next days. Please note that the code is in a very early alpha-stage and although the most tricky parts have been implemented already very basic things like drag and drop or selections have not been pushed yet. Those things are rather trivial to implement but this still will take some time.
Diffstat (limited to 'src/views/dolphincategorydrawer.h')
-rw-r--r--src/views/dolphincategorydrawer.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/src/views/dolphincategorydrawer.h b/src/views/dolphincategorydrawer.h
deleted file mode 100644
index 94c9e69ef..000000000
--- a/src/views/dolphincategorydrawer.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/* This file is part of the KDE project
- * Copyright (C) 2007 Rafael Fernández López <[email protected]>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
-*/
-
-#ifndef DOLPHINCATEGORYDRAWER_H
-#define DOLPHINCATEGORYDRAWER_H
-
-#include <kcategorydrawer.h>
-
-#include <QStyleOption>
-#include <QModelIndex>
-
-#include <libdolphin_export.h>
-
-class LIBDOLPHINPRIVATE_EXPORT DolphinCategoryDrawer
- : public KCategoryDrawerV3
-{
-public:
- using KCategoryDrawerV2::mouseButtonPressed;
- using KCategoryDrawerV2::mouseButtonReleased;
-
- enum Action {
- SelectAll = 0,
- UnselectAll
- };
-
- DolphinCategoryDrawer(KCategorizedView *view);
-
- virtual ~DolphinCategoryDrawer();
-
- bool allCategorySelected(const QString &category) const;
-
- bool someCategorySelected(const QString &category) const;
-
- virtual void drawCategory(const QModelIndex &index, int sortRole,
- const QStyleOption &option, QPainter *painter) const;
-
- virtual int categoryHeight(const QModelIndex &index, const QStyleOption &option) const;
-
-protected:
- virtual void mouseButtonPressed(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
-
- virtual void mouseButtonReleased(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
-
- virtual void mouseMoved(const QModelIndex &index, const QRect &blockRect, QMouseEvent *event);
-
- virtual void mouseLeft(const QModelIndex &index,const QRect &blockRect);
-
-private:
- enum HotSpot {
- NoneHotSpot = 0,
- SelectAllHotSpot,
- UnselectAllHotSpot
- };
-
- HotSpot hotSpotPressed;
- QModelIndex categoryPressed;
-
- QPixmap selectAll;
- QPixmap selectAllHovered;
- QPixmap selectAllDisabled;
- QPixmap unselectAll;
- QPixmap unselectAllHovered;
- QPixmap unselectAllDisabled;
-
- QPoint pos;
- QString category;
-};
-
-#endif // DOLPHINCATEGORYDRAWER_H