┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-10-05 21:00:44 +0000
committerPeter Penz <[email protected]>2007-10-05 21:00:44 +0000
commit29402a79bc09945ccd96201cbb42027b4c581a00 (patch)
treead3664f888c37b7f331bf1bb856aa130d2d5d0d6 /src/dolphincolumnview.h
parent747731077981775cbaefe928068fea4010b6fdb7 (diff)
Refactored DolphinColumnWidget so that it does not need a hierarchical KDirLister. This simplifies the code a lot and also bypasses the current problems with the KDirLister cache when working on hierarchical directories in parallel. There are some minor regressions which will be fixed, but all in all some improvements are visible already:
- the loading of columns is a lot faster - preview in columns is working - no side effects in combination with the treeview-panel because of caching svn path=/trunk/KDE/kdebase/apps/; revision=721678
Diffstat (limited to 'src/dolphincolumnview.h')
-rw-r--r--src/dolphincolumnview.h38
1 files changed, 8 insertions, 30 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h
index 4a6e6140c..b473e790e 100644
--- a/src/dolphincolumnview.h
+++ b/src/dolphincolumnview.h
@@ -24,7 +24,7 @@
#include <QList>
#include <QStyleOption>
-class ColumnWidget;
+class DolphinColumnWidget;
class DolphinController;
class DolphinModel;
class KUrl;
@@ -99,36 +99,14 @@ private slots:
*/
void updateDecorationSize();
- /**
- * Expands the directory model the the currently active URL.
- * Used by DolphinColumnView::reload() after the directory
- * lister has been loaded.
- */
- void expandToActiveUrl();
-
- /**
- * Triggers the updating of columns after the model index
- * \a index has been expanded. Used by DolphinModel::expandToActiveUrl().
- */
- void triggerUpdateColumns(const QModelIndex& index);
-
- /**
- * Adjusts the root index of all columns to represent the reloaded
- * model. Used by DolphinModel::triggerUpdateColumns().
- */
- void updateColumns();
-
- /**
- * Is invoked when the directory lister has completed the loading
- * and invokes expandToActiveUrl() asynchronously.
- */
- void triggerExpandToActiveUrl();
+ void slotShowHiddenFilesChanged(bool show);
+ void slotShowPreviewChanged(bool show);
private:
bool isZoomInPossible() const;
bool isZoomOutPossible() const;
- ColumnWidget* activeColumn() const;
+ DolphinColumnWidget* activeColumn() const;
/**
* Deactivates the currently active column and activates
@@ -152,23 +130,23 @@ private:
* that the columns gets fully visible by adjusting the horizontal
* position of the content.
*/
- void requestActivation(ColumnWidget* column);
+ void requestActivation(DolphinColumnWidget* column);
private:
DolphinController* m_controller;
bool m_restoreActiveColumnFocus;
int m_index;
int m_contentX;
- QList<ColumnWidget*> m_columns;
+ QList<DolphinColumnWidget*> m_columns;
QTimeLine* m_animation;
DolphinModel* m_dolphinModel;
QAbstractProxyModel* m_proxyModel;
- friend class ColumnWidget;
+ friend class DolphinColumnWidget;
};
-inline ColumnWidget* DolphinColumnView::activeColumn() const
+inline DolphinColumnWidget* DolphinColumnView::activeColumn() const
{
return m_columns[m_index];
}