]>
cloud.milkyroute.net Git - dolphin.git/blob - src/dolphincontroller.cpp
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz (peter.penz@gmx.at) *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
20 #include "dolphincontroller.h"
22 DolphinController::DolphinController(DolphinView
* dolphinView
) :
24 m_zoomInPossible(false),
25 m_zoomOutPossible(false),
27 m_dolphinView(dolphinView
)
31 DolphinController::~DolphinController()
35 void DolphinController::setUrl(const KUrl
& url
)
43 void DolphinController::triggerUrlChangeRequest(const KUrl
& url
)
46 emit
requestUrlChange(url
);
50 void DolphinController::triggerContextMenuRequest(const QPoint
& pos
)
53 emit
requestContextMenu(pos
);
56 void DolphinController::requestActivation()
61 void DolphinController::indicateDroppedUrls(const KUrl::List
& urls
,
63 const KFileItem
& destItem
)
65 emit
urlsDropped(urls
, destPath
, destItem
);
69 void DolphinController::indicateSortingChange(DolphinView::Sorting sorting
)
71 emit
sortingChanged(sorting
);
74 void DolphinController::indicateSortOrderChange(Qt::SortOrder order
)
76 emit
sortOrderChanged(order
);
79 void DolphinController::indicateAdditionalInfoChange(const KFileItemDelegate::InformationList
& info
)
81 emit
additionalInfoChanged(info
);
84 void DolphinController::indicateActivationChange(bool active
)
86 emit
activationChanged(active
);
89 void DolphinController::triggerZoomIn()
94 void DolphinController::triggerZoomOut()
99 void DolphinController::triggerItem(const KFileItem
& item
)
101 emit
itemTriggered(item
);
104 void DolphinController::emitItemEntered(const KFileItem
& item
)
106 emit
itemEntered(item
);
109 void DolphinController::emitViewportEntered()
111 emit
viewportEntered();
114 #include "dolphincontroller.moc"