lib

KoFrame.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999, 2000 Torben Weis <weis@kde.org>
3
4 This library 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 library 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 library; see the file COPYING.LIB. 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 __koFrame_h__
21#define __koFrame_h__
22
23#include <tqwidget.h>
24
25class KoView;
26class KoFramePrivate;
27
28class KoFrame : public TQWidget
29{
30 TQ_OBJECT
31
32public:
33 enum State { Inactive, Selected, Active };
34
35 KoFrame( TQWidget *parent, const char *name = 0 );
36 virtual ~KoFrame();
37
38 virtual void setView( KoView *view );
39 virtual KoView *view() const;
40
41 virtual void setState( State s );
42 virtual State state() const;
43
44 virtual int leftBorder() const;
45 virtual int rightBorder() const;
46 virtual int topBorder() const;
47 virtual int bottomBorder() const;
48
49 virtual int border() const;
50
51signals:
52 void geometryChanged();
53
54protected:
55 virtual void paintEvent( TQPaintEvent* );
56 virtual void mousePressEvent( TQMouseEvent* );
57 virtual void mouseMoveEvent( TQMouseEvent* );
58 virtual void mouseReleaseEvent( TQMouseEvent* );
59 virtual void resizeEvent( TQResizeEvent* );
60 virtual bool eventFilter( TQObject*, TQEvent* );
61
62private:
63 KoFramePrivate *d;
64};
65
66#endif
This class is used to display a KoDocument.
Definition KoView.h:58