1
/* This file is part of the KDE project
2
Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
19
#include "toolviewmanager.h"
20
#include "toolviewmanager.moc"
23
#include "documentmanager.h"
24
#include "pluginmanager.h"
26
#include "../app/katemainwindow.h"
31
class PrivateToolViewManager
34
PrivateToolViewManager ()
38
~PrivateToolViewManager ()
42
KateMainWindow *toolViewMan;
45
ToolViewManager::ToolViewManager (void *toolViewManager) : QObject ((KateMainWindow*) toolViewManager)
47
d = new PrivateToolViewManager ();
48
d->toolViewMan = (KateMainWindow*) toolViewManager;
51
ToolViewManager::~ToolViewManager ()
56
QWidget *ToolViewManager::createToolView (const QString &identifier, ToolViewManager::Position pos, const QPixmap &icon, const QString &text)
58
return d->toolViewMan->createToolView (identifier, (KMultiTabBar::KMultiTabBarPosition)pos, icon, text);
61
bool ToolViewManager::moveToolView (QWidget *widget, ToolViewManager::Position pos)
63
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
66
return d->toolViewMan->moveToolView (static_cast<KateMDI::ToolView*>(widget), (KMultiTabBar::KMultiTabBarPosition)pos);
69
bool ToolViewManager::showToolView(QWidget *widget)
71
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
74
return d->toolViewMan->showToolView (static_cast<KateMDI::ToolView*>(widget));
77
bool ToolViewManager::hideToolView(QWidget *widget)
79
if (!widget || !widget->qt_cast("KateMDI::ToolView"))
82
return d->toolViewMan->hideToolView (static_cast<KateMDI::ToolView*>(widget));