┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewmodecontroller.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-07-24 21:45:49 +0000
committerPeter Penz <[email protected]>2010-07-24 21:45:49 +0000
commit652d08c9242ed51d86dba3b2afda9d3b2e9a9cd7 (patch)
treef65face40917d355fa74f593e04df9865f5a1552 /src/viewmodecontroller.cpp
parent935cc8a03bcb6088ff520d7161db14b9b6a29044 (diff)
Sourcecode hierarchy cleanup: Create folder "views" and move view related sources to it
svn path=/trunk/KDE/kdebase/apps/; revision=1154146
Diffstat (limited to 'src/viewmodecontroller.cpp')
-rw-r--r--src/viewmodecontroller.cpp88
1 files changed, 0 insertions, 88 deletions
diff --git a/src/viewmodecontroller.cpp b/src/viewmodecontroller.cpp
deleted file mode 100644
index 17d0ba61f..000000000
--- a/src/viewmodecontroller.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2010 by Peter Penz <[email protected]> *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
- ***************************************************************************/
-
-#include "viewmodecontroller.h"
-
-#include "zoomlevelinfo.h"
-
-ViewModeController::ViewModeController(QObject* parent) :
- QObject(parent),
- m_zoomLevel(0),
- m_nameFilter(),
- m_url()
-{
-}
-
-ViewModeController::~ViewModeController()
-{
-}
-
-KUrl ViewModeController::url() const
-{
- return m_url;
-}
-
-void ViewModeController::redirectToUrl(const KUrl& url)
-{
- m_url = url;
-}
-
-void ViewModeController::indicateActivationChange(bool active)
-{
- emit activationChanged(active);
-}
-
-void ViewModeController::setNameFilter(const QString& nameFilter)
-{
- if (nameFilter != m_nameFilter) {
- m_nameFilter = nameFilter;
- emit nameFilterChanged(nameFilter);
- }
-}
-
-QString ViewModeController::nameFilter() const
-{
- return m_nameFilter;
-}
-
-void ViewModeController::setZoomLevel(int level)
-{
- Q_ASSERT(level >= ZoomLevelInfo::minimumLevel());
- Q_ASSERT(level <= ZoomLevelInfo::maximumLevel());
- if (level != m_zoomLevel) {
- m_zoomLevel = level;
- emit zoomLevelChanged(m_zoomLevel);
- }
-}
-
-int ViewModeController::zoomLevel() const
-{
- return m_zoomLevel;
-}
-
-void ViewModeController::setUrl(const KUrl& url)
-{
- if (m_url != url) {
- m_url = url;
- emit cancelPreviews();
- emit urlChanged(url);
- }
-}
-
-#include "viewmodecontroller.moc"