kpresenter

KPrNoteBar.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 2001 Toshitaka Fujioka <fujioka@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef NOTEBAR_H
00022 #define NOTEBAR_H
00023 
00024 #include <qwidget.h>
00025 
00026 class QPainter;
00027 class QLabel;
00028 
00029 class KPrDocument;
00030 class KPrView;
00031 class KPrinter;
00032 class KTextEdit;
00033 
00034 class KPrNoteBar : public QWidget
00035 {
00036     Q_OBJECT
00037 
00038 public:
00039     KPrNoteBar( QWidget *_parent, KPrView *_view );
00040     ~KPrNoteBar();
00041 
00042     void setCurrentNoteText( const QString &_text );
00043 
00044     // print
00045     void printNotes( QPainter *_painter, KPrinter *_printer, QValueList<int> );
00046 
00047     QString getNotesTextForPrinting(QValueList<int>) const;
00048 
00049 private slots:
00050     void slotTextChanged();
00051     void slotSelectionChanged();
00052     void slotCopyAvailable( bool );
00053     void slotUndoAvailable( bool );
00054     void slotRedoAvailable( bool );
00055 
00056 private:
00057     ::KTextEdit *textEdit;
00058     QLabel *label;
00059 
00060     KPrView *view;
00061 
00062     bool initialize;
00063 };
00064 
00065 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys