karbon

vstyledocker.h
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#ifndef __VSTYLEDOCKER_H__
22#define __VSTYLEDOCKER_H__
23
24#include <koIconChooser.h>
25#include <tqwidget.h>
26
27class TQTabWidget;
28class KarbonView;
29class KarbonPart;
30class TQHButtonGroup;
31class TQToolButton;
32
33class VClipartIconItem;
34
35class ClipartChooser : public KoIconChooser
36{
37public:
38 ClipartChooser( TQSize iconSize, TQWidget *parent = 0L, const char *name = 0L );
39 virtual void startDrag();
40};
41
42class ClipartWidget : public TQWidget
43{
44 TQ_OBJECT
45
46
47public:
48 ClipartWidget( TQPtrList<VClipartIconItem>* clipartItems, KarbonPart *part, TQWidget* parent = 0L );
49 ~ClipartWidget();
50
51 VClipartIconItem* selectedClipart();
52
53public slots:
54 void addClipart();
55 void importClipart();
56 void deleteClipart();
57 void clipartSelected( KoIconItem* item );
58
59 void slotButtonClicked( int id );
60
61private:
62 ClipartChooser* m_clipartChooser;
63 TQHButtonGroup* m_buttonGroup;
64 TQToolButton* m_importClipartButton;
65 TQToolButton* m_deleteClipartButton;
66 KarbonPart* m_part;
67 VClipartIconItem* m_clipartItem;
68 VClipartIconItem* m_selectedItem;
69};
70
71class VStyleDocker : public TQWidget
72{
73 TQ_OBJECT
74
75
76public:
77 VStyleDocker( KarbonPart* part, KarbonView* parent = 0L, const char* name = 0L );
78 virtual ~VStyleDocker();
79
80public slots:
81 void slotItemSelected( KoIconItem * );
82
83private:
84 virtual void mouseReleaseEvent( TQMouseEvent *e );
85 TQTabWidget *mTabWidget;
86 KarbonPart *m_part;
87 KarbonView *m_view;
88};
89
90#endif
91
Keeps track of visual per document properties.
Definition karbon_part.h:46