karbon

vsmallpreview.h
1/* This file is part of the KDE project
2 Made by Tomislav Lukman (tomislav.lukman@ck.t-com.hr)
3 Copyright (C) 2005, 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/* This is a small widget used on the statusbar, to display fill/stroke colors etc. */
22
23/* vsmallpreview.h */
24#ifndef VSMALLPREVIEW_H
25#define VSMALLPREVIEW_H
26
27#include <tqwidget.h>
28
29class TQFrame;
30class TQLabel;
31class VFill;
32class VStroke;
33
34class VSmallPreview : public TQWidget
35{
36 TQ_OBJECT
37
38public:
39 VSmallPreview( TQWidget* parent = 0L, const char* name = 0L );
40 ~VSmallPreview();
41
42 void update( const VStroke &, const VFill & );
43
44protected:
45 virtual void paintEvent( TQPaintEvent* event );
46
47private:
48 void drawFill( const VFill & );
49 void drawStroke( const VStroke & );
50 TQFrame *m_fillFrame;
51 TQFrame *m_strokeFrame;
52 TQLabel *m_fillLabel;
53 TQLabel *m_strokeLabel;
54 VFill m_fill;
55 VStroke m_stroke;
56};
57
58#endif
59
Manages the fill of shapes.
Definition vfill.h:45
Manages stroke properties.
Definition vstroke.h:49