┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-25 06:44:28 +0000
committerPeter Penz <[email protected]>2007-03-25 06:44:28 +0000
commit8f9baef848c3056cd1df772f0774decad509cff3 (patch)
treeadcad2dcf4d15e0102d0c466b4d4a38ccd4ff875 /src/infosidebarpage.h
parent3b4d05893b4023338d8484dc5c6812bbe0fb0ceb (diff)
Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars.
svn path=/trunk/KDE/kdebase/apps/; revision=646256
Diffstat (limited to 'src/infosidebarpage.h')
-rw-r--r--src/infosidebarpage.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h
index 7cb996327..938b86959 100644
--- a/src/infosidebarpage.h
+++ b/src/infosidebarpage.h
@@ -44,7 +44,6 @@ class QPainter;
class KFileItem;
class QLabel;
class KVBox;
-class Q3Grid;
class PixmapViewer;
class MetaDataWidget;
@@ -58,12 +57,12 @@ class InfoSidebarPage : public SidebarPage
Q_OBJECT
public:
- explicit InfoSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent = 0);
+ explicit InfoSidebarPage(QWidget* parent = 0);
virtual ~InfoSidebarPage();
-protected:
- /** @see SidebarPage::activeViewChanged() */
- virtual void activeViewChanged();
+public slots:
+ void setUrl(const KUrl& url);
+ void setSelection(const KFileItemList& selection);
private slots:
/**
@@ -75,14 +74,6 @@ private slots:
void requestDelayedItemInfo(const KUrl& url);
/**
- * Does a request of information for the item of the given Url and
- * provides default actions.
- *
- * @see InfoSidebarPage::showItemInfo()
- */
- void requestItemInfo(const KUrl& url);
-
- /**
* Shows the information for the item of the Url which has been provided by
* InfoSidebarPage::requestItemInfo() and provides default actions.
*/
@@ -114,12 +105,6 @@ private slots:
private:
/**
- * Connects to signals from the currently active Dolphin view to get
- * informed about highlighting changes.
- */
- void connectToActiveView();
-
- /**
* Checks whether the an Url is repesented by a bookmark. If yes,
* then the bookmark icon and name are shown instead of a preview.
* @return True, if the Url represents exactly a bookmark.
@@ -154,6 +139,7 @@ private:
QTimer* m_timer;
KUrl m_shownUrl;
KUrl m_urlCandidate;
+ KFileItemList m_currentSelection;
PixmapViewer* m_preview;
QLabel* m_name;