kexiframe.h
1/* This file is part of the KDE project
2 Copyright (C) 2005-2007 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KexiFrame_H
21#define KexiFrame_H
22
23#include <tqframe.h>
24
26class KEXIFORMUTILS_EXPORT KexiFrame : public TQFrame
27{
28 TQ_OBJECT
29
30//todo TQ_ENUMS( Shape Shadow )
31 TQ_PROPERTY( TQColor frameColor READ frameColor WRITE setFrameColor DESIGNABLE true )
32//todo TQ_OVERRIDE( Shape frameShape READ frameShape WRITE setFrameShape )
33//todo TQ_OVERRIDE( Shadow frameShadow READ frameShadow WRITE setFrameShadow )
34
35 public:
36 KexiFrame( TQWidget * parent, const char * name = 0, WFlags f = 0 );
37 virtual ~KexiFrame();
38
39 virtual const TQColor& frameColor() const;
40
41#if 0
43 enum Shadow {
44 NoShadow = TQFrame::Plain,
45 Raised = TQFrame::Raised,
46 Sunken = TQFrame::Sunken
47 };
49 enum Shape { NoFrame = TQFrame::NoFrame,
50 Box = TQFrame::Box,
51 Panel = TQFrame::Panel,
52 StyledPanel = TQFrame::StyledPanel,
53 GroupBoxPanel = TQFrame::GroupBoxPanel
54 };
55 Shape frameShape() const;
56 void setFrameShape( KexiFrame::Shape shape );
57 Shadow frameShadow() const;
58 void setFrameShadow( KexiFrame::Shadow shadow );
59#endif
60
62 virtual void dragMoveEvent( TQDragMoveEvent *e );
63
65 virtual void dropEvent( TQDropEvent *e );
66
67 public slots:
68 virtual void setPalette( const TQPalette &pal );
69 virtual void setFrameColor(const TQColor& color);
70
71 signals:
73 void handleDragMoveEvent(TQDragMoveEvent *e);
74
76 void handleDropEvent(TQDropEvent *e);
77
78 protected:
79 virtual void drawFrame( TQPainter * );
80
81 class Private;
82 Private *d;
83};
84
85#endif
Frame widget for Kexi forms.
Definition kexiframe.h:27
void handleDropEvent(TQDropEvent *e)
Needed to control dropping on the container's surface.
void handleDragMoveEvent(TQDragMoveEvent *e)
Needed to control dragging over the container's surface.