#include <QtGui/QBoxLayout>
#include <QtGui/QWidget>
-class DolphinController;
class FilterBar;
-class KFileItemDelegate;
class KUrl;
class KDirModel;
class KUrlNavigator;
-class DolphinColumnView;
-class DolphinDetailsView;
class DolphinDirLister;
-class DolphinIconsView;
class DolphinMainWindow;
class DolphinSortFilterProxyModel;
class DolphinStatusBar;
class QModelIndex;
-class ViewProperties;
/**
* @short Represents a view for the directory content
KFileItem* fileItem(const QModelIndex index) const;
- /**
- * Renames the filename of the source URL by the new file name.
- * If the new file name already exists, a dialog is opened which
- * asks the user to enter a new name.
- */
- void rename(const KUrl& source, const QString& newName);
-
- DolphinStatusBar* statusBar() const;
+ inline const DolphinStatusBar* statusBar() const;
+ inline DolphinStatusBar* statusBar();
/**
* Returns true, if the URL shown by the navigation bar is editable.
*/
bool isUrlEditable() const;
- inline KUrlNavigator* urlNavigator() const;
+ inline const KUrlNavigator* urlNavigator() const;
+ inline KUrlNavigator* urlNavigator();
- inline DolphinView* view() const;
+ inline const DolphinView* view() const;
+ inline DolphinView* view();
/** Returns true, if the filter bar is visible. */
bool isFilterBarVisible() const;
* Return the DolphinMainWindow this View belongs to. It is guaranteed
* that we have one.
*/
- DolphinMainWindow* mainWindow() const ;
+ inline const DolphinMainWindow* mainWindow() const;
public slots:
/**
*/
void updateItemCount();
+ /**
+ * Shows the item information for the URL \a url inside the statusbar. If the
+ * URL is empty, the default statusbar information is shown.
+ */
+ void showItemInfo(const KUrl& url);
+
/** Shows the information \a msg inside the statusbar. */
void showInfoMessage(const QString& msg);
*/
void openContextMenu(KFileItem* item, const KUrl& url);
+ /**
+ * Saves the position of the contents to the
+ * current history element.
+ */
+ void saveContentsPos(int x, int y);
+
+ /**
+ * Restores the contents position of the view, if the view
+ * is part of the history.
+ */
+ void restoreContentsPos();
+
+ /**
+ * Marks the view container as active
+ * (see DolphinViewContainer::setActive()).
+ */
+ void activate();
+
private:
/**
* Returns the default text of the status bar, if no item is
DolphinSortFilterProxyModel* m_proxyModel;
};
-KUrlNavigator* DolphinViewContainer::urlNavigator() const
+const DolphinStatusBar* DolphinViewContainer::statusBar() const
+{
+ return m_statusBar;
+}
+
+DolphinStatusBar* DolphinViewContainer::statusBar()
+{
+ return m_statusBar;
+}
+
+const KUrlNavigator* DolphinViewContainer::urlNavigator() const
{
return m_urlNavigator;
}
-DolphinView* DolphinViewContainer::view() const
+KUrlNavigator* DolphinViewContainer::urlNavigator()
+{
+ return m_urlNavigator;
+}
+
+const DolphinView* DolphinViewContainer::view() const
{
return m_view;
}
+DolphinView* DolphinViewContainer::view()
+{
+ return m_view;
+}
+
+const DolphinMainWindow* DolphinViewContainer::mainWindow() const
+{
+ return m_mainWindow;
+}
#endif // DOLPHINVIEWCONTAINER_H