diff options
Diffstat (limited to 'src/panels/folders/folderspanel.h')
| -rw-r--r-- | src/panels/folders/folderspanel.h | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/src/panels/folders/folderspanel.h b/src/panels/folders/folderspanel.h index 70390da60..d249f850f 100644 --- a/src/panels/folders/folderspanel.h +++ b/src/panels/folders/folderspanel.h @@ -63,37 +63,14 @@ protected: /** @see QWidget::showEvent() */ virtual void showEvent(QShowEvent* event); - /** @see QWidget::contextMenuEvent() */ - virtual void contextMenuEvent(QContextMenuEvent* event); - /** @see QWidget::keyPressEvent() */ virtual void keyPressEvent(QKeyEvent* event); private slots: - /** - * Updates the active view to the URL - * which is given by the item with the index \a index. - */ - //void updateActiveView(const QModelIndex& index); - - /** - * Is emitted if URLs have been dropped - * to the index \a index. - */ - //void dropUrls(const QModelIndex& index, QDropEvent* event); - - /** - * Expands the treeview to show the directory - * specified by \a index. - */ - //void expandToDir(const QModelIndex& index); - - /** - * Assures that the leaf folder gets visible. - */ - //void scrollToLeaf(); - - void updateMouseButtons(); + void slotItemActivated(int index); + void slotItemMiddleClicked(int index); + void slotItemContextMenuRequested(int index, const QPointF& pos); + void slotViewContextMenuRequested(const QPointF& pos); void slotLoadingCompleted(); @@ -101,6 +78,12 @@ private slots: void slotVerticalScrollBarMoved(int value); + /** + * Increases the opacity of the view step by step until it is fully + * opaque. + */ + void startFadeInAnimation(); + private: /** * Initializes the base URL of the tree and expands all @@ -110,20 +93,17 @@ private: void loadTree(const KUrl& url); /** - * Selects the current leaf directory m_leafDir and assures - * that the directory is visible if the leaf has been set by - * FoldersPanel::setUrl(). + * Sets the item with the index \a index as current item, selects + * the item and assures that the item will be visible. */ - void selectLeafDirectory(); + void updateCurrentItem(int index); KFileItemModel* fileItemModel() const; private: - bool m_setLeafVisible; - Qt::MouseButtons m_mouseButtons; + bool m_updateCurrentItem; KDirLister* m_dirLister; KItemListController* m_controller; - KUrl m_leafDir; }; #endif // FOLDERSPANEL_H |
