]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / dolphinmainwindow.h
index 9939117b7b1582417718b2b12f23f7a8a97b5289..2e49cc67ae5160d6cfaaf21e9cdec859a9822406 100644 (file)
@@ -39,9 +39,9 @@ typedef KIO::FileUndoManager::CommandType CommandType;
 class KAction;
 class DolphinViewActionHandler;
 class DolphinApplication;
+class DolphinSearchBox;
 class DolphinSettingsDialog;
 class DolphinViewContainer;
-class KLineEdit;
 class KNewMenu;
 class KTabBar;
 class KUrl;
@@ -282,6 +282,9 @@ private slots:
      */
     void slotSelectionChanged(const KFileItemList& selection);
 
+    /** Enables changing of tabs via mouse wheel. */
+    void slotWheelMoved(int wheelDelta);
+
     /** Emits the signal requestItemInfo(). */
     void slotRequestItemInfo(const KFileItem&);
 
@@ -342,6 +345,7 @@ private slots:
      */
     void closeTab(int index);
 
+
     /**
      * Opens a context menu for the tab with the index \a index
      * on the position \a pos.
@@ -362,9 +366,10 @@ private slots:
     void slotTestCanDecode(const QDragMoveEvent* event, bool& accept);
 
     /**
-     * Searchs items that match to the text entered in the search bar.
+     * Is connected with the Dolphin search box and searchs items that
+     * match to the text entered in the search bar.
      */
-    void searchItems();
+    void searchItems(const KUrl& url);
 
 private:
     DolphinMainWindow(int id);
@@ -426,7 +431,7 @@ private:
     KTabBar* m_tabBar;
     DolphinViewContainer* m_activeViewContainer;
     QVBoxLayout* m_centralWidgetLayout;
-    KLineEdit* m_searchBar;
+    DolphinSearchBox* m_searchBox;
     int m_id;
 
     struct ViewTab