karbon

vtoolbox.cpp
1/* This file is part of the KDE project
2 Made by Tomislav Lukman (tomislav.lukman@ck.tel.hr)
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#include "vtoolbox.h"
22#include "vtool.h"
23
24VToolBox::VToolBox( TDEMainWindow *mainWin, const char* name, TDEInstance* instance ) : KoToolBox( mainWin, name, instance, 5 )
25{
26}
27
28void
29VToolBox::registerTool( VTool *tool )
30{
31 kdDebug(38000) << "VToolBox::registerTool : " << tool->name() << endl;
32 KoToolBox::registerTool( tool->action(), tool->toolType(), tool->priority() );
33}
34
35void
36VToolBox::setupTools()
37{
38 kdDebug(38000) << k_funcinfo << endl;
39 KoToolBox::setupTools();
40}
41
42#include "vtoolbox.moc"
The base class for all karbon tools.
Definition vtool.h:52
TDERadioAction * action() const
Returns the tool's associated action object.
Definition vtool.h:151
virtual uint priority()
Position in toolbox.
Definition vtool.h:114
virtual enumToolType toolType()
The tool type.
Definition vtool.h:103