kpresenter

KPrNoteBar.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Toshitaka Fujioka <fujioka@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 NOTEBAR_H
21#define NOTEBAR_H
22
23#include <tqwidget.h>
24
25class TQPainter;
26class TQLabel;
27
28class KPrDocument;
29class KPrView;
30class KPrinter;
31class KTextEdit;
32
33class KPrNoteBar : public TQWidget
34{
35 TQ_OBJECT
36
37
38public:
39 KPrNoteBar( TQWidget *_parent, KPrView *_view );
40 ~KPrNoteBar();
41
42 void setCurrentNoteText( const TQString &_text );
43
44 // print
45 void printNotes( TQPainter *_painter, KPrinter *_printer, TQValueList<int> );
46
47 TQString getNotesTextForPrinting(TQValueList<int>) const;
48
49private slots:
50 void slotTextChanged();
51 void slotSelectionChanged();
52 void slotCopyAvailable( bool );
53 void slotUndoAvailable( bool );
54 void slotRedoAvailable( bool );
55
56private:
57 ::KTextEdit *textEdit;
58 TQLabel *label;
59
60 KPrView *view;
61
62 bool initialize;
63};
64
65#endif