• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • interfaces
toolviewmanager.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
3
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.
7
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.
12
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.
17*/
18
19#include "toolviewmanager.h"
20#include "toolviewmanager.moc"
21
22#include "plugin.h"
23#include "documentmanager.h"
24#include "pluginmanager.h"
25
26#include "../app/katemainwindow.h"
27
28namespace Kate
29{
30
31class PrivateToolViewManager
32 {
33 public:
34 PrivateToolViewManager ()
35 {
36 }
37
38 ~PrivateToolViewManager ()
39 {
40 }
41
42 KateMainWindow *toolViewMan;
43 };
44
45ToolViewManager::ToolViewManager (void *toolViewManager) : TQObject ((KateMainWindow*) toolViewManager)
46{
47 d = new PrivateToolViewManager ();
48 d->toolViewMan = (KateMainWindow*) toolViewManager;
49}
50
51ToolViewManager::~ToolViewManager ()
52{
53 delete d;
54}
55
56TQWidget *ToolViewManager::createToolView (const TQString &identifier, ToolViewManager::Position pos, const TQPixmap &icon, const TQString &text)
57{
58 return d->toolViewMan->createToolView (identifier, (KMultiTabBar::KMultiTabBarPosition)pos, icon, text);
59}
60
61bool ToolViewManager::moveToolView (TQWidget *widget, ToolViewManager::Position pos)
62{
63 if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
64 return false;
65
66 return d->toolViewMan->moveToolView (static_cast<KateMDI::ToolView*>(widget), (KMultiTabBar::KMultiTabBarPosition)pos);
67}
68
69bool ToolViewManager::showToolView(TQWidget *widget)
70{
71 if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
72 return false;
73
74 return d->toolViewMan->showToolView (static_cast<KateMDI::ToolView*>(widget));
75}
76
77bool ToolViewManager::hideToolView(TQWidget *widget)
78{
79 if (!widget || !widget->tqt_cast("KateMDI::ToolView"))
80 return false;
81
82 return d->toolViewMan->hideToolView (static_cast<KateMDI::ToolView*>(widget));
83}
84
85}
Kate::ToolViewManager::~ToolViewManager
virtual ~ToolViewManager()
Desctructor.
Definition: toolviewmanager.cpp:51
Kate::ToolViewManager::hideToolView
bool hideToolView(TQWidget *widget)
Hide the toolview.
Definition: toolviewmanager.cpp:77
Kate::ToolViewManager::ToolViewManager
ToolViewManager(void *toolViewManager)
Construtor, should not interest, internal usage.
Definition: toolviewmanager.cpp:45
Kate::ToolViewManager::createToolView
TQWidget * createToolView(const TQString &identifier, ToolViewManager::Position pos, const TQPixmap &icon, const TQString &text)
add a given widget to the given sidebar if possible, name is very important
Definition: toolviewmanager.cpp:56
Kate::ToolViewManager::showToolView
bool showToolView(TQWidget *widget)
Show the toolview.
Definition: toolviewmanager.cpp:69
Kate::ToolViewManager::Position
Position
positions
Definition: toolviewmanager.h:53
Kate::ToolViewManager::moveToolView
bool moveToolView(TQWidget *widget, ToolViewManager::Position pos)
Move the toolview.
Definition: toolviewmanager.cpp:61
Kate
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.