┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt9
-rw-r--r--src/dolphinmainwindow.cpp12
-rw-r--r--src/dolphinmainwindow.h6
-rw-r--r--src/dolphinviewactionhandler.cpp13
-rw-r--r--src/dolphinviewactionhandler.h6
-rw-r--r--src/viewpropertiesdialog.h4
6 files changed, 26 insertions, 24 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6bac07194..03e952ac6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -35,6 +35,10 @@ set(dolphinprivate_LIB_SRCS
selectionmanager.cpp
tooltipmanager.cpp
viewproperties.cpp
+ viewpropertiesdialog.cpp
+ viewpropsprogressinfo.cpp
+ additionalinfodialog.cpp
+ applyviewpropsjob.cpp
)
kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
@@ -84,8 +88,6 @@ install(FILES dolphinpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
##########################################
set(dolphin_SRCS
- additionalinfodialog.cpp
- applyviewpropsjob.cpp
columnviewsettingspage.cpp
commentwidget.cpp
commenteditwidget.cpp
@@ -121,10 +123,9 @@ set(dolphin_SRCS
treeviewcontextmenu.cpp
treeviewsidebarpage.cpp
sidebartreeview.cpp
- viewpropertiesdialog.cpp
viewsettingspage.cpp
viewsettingspagebase.cpp
- viewpropsprogressinfo.cpp)
+ )
kde4_add_kcfg_files(dolphin_SRCS
dolphin_folderspanelsettings.kcfgc)
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 8e07123f9..afa6ea43f 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -37,7 +37,6 @@
#include "metadatawidget.h"
#include "mainwindowadaptor.h"
#include "treeviewsidebarpage.h"
-#include "viewpropertiesdialog.h"
#include "viewproperties.h"
#ifndef Q_OS_WIN
@@ -562,13 +561,6 @@ void DolphinMainWindow::editLocation()
lineEdit->setSelection(0, text.length());
}
-void DolphinMainWindow::adjustViewProperties()
-{
- clearStatusBar();
- ViewPropertiesDialog dlg(m_activeViewContainer->view());
- dlg.exec();
-}
-
void DolphinMainWindow::goBack()
{
clearStatusBar();
@@ -976,10 +968,6 @@ void DolphinMainWindow::setupActions()
editLocation->setShortcut(Qt::Key_F6);
connect(editLocation, SIGNAL(triggered()), this, SLOT(editLocation()));
- KAction* adjustViewProps = actionCollection()->addAction("view_properties");
- adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
- connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(adjustViewProperties()));
-
// setup 'Go' menu
KAction* backAction = KStandardAction::back(this, SLOT(goBack()), actionCollection());
KShortcut backShortcut = backAction->shortcut();
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 47fddf381..c03e2404d 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -254,12 +254,6 @@ private slots:
*/
void editLocation();
- /**
- * Opens the view properties dialog, which allows to modify the properties
- * of the currently active view.
- */
- void adjustViewProperties();
-
/** Goes back on step of the URL history. */
void goBack();
diff --git a/src/dolphinviewactionhandler.cpp b/src/dolphinviewactionhandler.cpp
index f382a10c1..938ce785d 100644
--- a/src/dolphinviewactionhandler.cpp
+++ b/src/dolphinviewactionhandler.cpp
@@ -18,14 +18,15 @@
***************************************************************************/
#include "dolphinviewactionhandler.h"
-#include <kdebug.h>
+#include "viewpropertiesdialog.h"
#include "dolphinview.h"
#include <konq_operations.h>
#include <kaction.h>
#include <kactioncollection.h>
+#include <kdebug.h>
#include <klocale.h>
#include <ktoggleaction.h>
@@ -132,6 +133,9 @@ void DolphinViewActionHandler::createActions()
showHiddenFiles->setShortcut(Qt::ALT | Qt::Key_Period);
connect(showHiddenFiles, SIGNAL(triggered(bool)), this, SLOT(toggleShowHiddenFiles(bool)));
+ KAction* adjustViewProps = m_actionCollection->addAction("view_properties");
+ adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
+ connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(slotAdjustViewProperties()));
}
QActionGroup* DolphinViewActionHandler::createAdditionalInformationActionGroup()
@@ -471,3 +475,10 @@ void DolphinViewActionHandler::slotSortTriggered(QAction* action)
const DolphinView::Sorting sorting = action->data().value<DolphinView::Sorting>();
m_currentView->setSorting(sorting);
}
+
+void DolphinViewActionHandler::slotAdjustViewProperties()
+{
+ emit actionBeingHandled();
+ ViewPropertiesDialog dlg(m_currentView);
+ dlg.exec();
+}
diff --git a/src/dolphinviewactionhandler.h b/src/dolphinviewactionhandler.h
index 4eb856387..4cc63b86a 100644
--- a/src/dolphinviewactionhandler.h
+++ b/src/dolphinviewactionhandler.h
@@ -167,6 +167,12 @@ private Q_SLOTS:
*/
void slotShowHiddenFilesChanged();
+ /**
+ * Opens the view properties dialog, which allows to modify the properties
+ * of the currently active view.
+ */
+ void slotAdjustViewProperties();
+
private:
/**
* Create all the actions.
diff --git a/src/viewpropertiesdialog.h b/src/viewpropertiesdialog.h
index a0a933f55..6d0be52fc 100644
--- a/src/viewpropertiesdialog.h
+++ b/src/viewpropertiesdialog.h
@@ -21,6 +21,8 @@
#ifndef VIEWPROPERTIESDIALOG_H
#define VIEWPROPERTIESDIALOG_H
+#include "libdolphin_export.h"
+
#include <kdialog.h>
class QCheckBox;
@@ -37,7 +39,7 @@ class DolphinView;
* and previews should be shown. The properties can be assigned to the current folder,
* or recursively to all sub folders.
*/
-class ViewPropertiesDialog : public KDialog
+class LIBDOLPHINPRIVATE_EXPORT ViewPropertiesDialog : public KDialog
{
Q_OBJECT