karbon

vreference.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/* This is the color slider widget that is used to select color or color components */
22
23/* vreference.h */
24#ifndef VREFERENCE_H
25#define VREFERENCE_H
26
27#include <tqframe.h>
28
29class TQButtonGroup;
30
31enum Choice
32{
33 TopLeft,
34 Left,
35 BottomLeft,
36 Top,
37 Center,
38 Bottom,
39 TopRight,
40 Right,
41 BottomRight
42};
43
44class VReference : public TQFrame
45{
46 TQ_OBJECT
47
48public:
49 VReference( TQWidget *parent = 0L, const char *name = 0L );
50 int referencePoint();
51public slots:
52 virtual void setReferencePoint ( int );
53
54private:
55 int m_referencePoint;
56 TQButtonGroup* mButtonGroup;
57signals:
58 void referencePointChanged( int referencePoint );
59};
60
61#endif
62