kpresenter

KPrPgConfDia.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) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00004    Copyright (C) 2002, 2003 Ariya Hidayat <ariya@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef PGCONFDIA_H
00023 #define PGCONFDIA_H
00024 
00025 #include "global.h"
00026 
00027 #include <qmap.h>
00028 #include <qpen.h>
00029 #include <qvaluelist.h>
00030 
00031 #include <kdialogbase.h>
00032 
00033 class KPrDocument;
00034 
00035 class QCheckBox;
00036 class QComboBox;
00037 class QColor;
00038 class QListView;
00039 class QRadioButton;
00040 class QSpinBox;
00041 
00042 class KColorButton;
00043 class QSlider;
00044 
00045 class KPrPgConfDia : public KDialogBase
00046 {
00047     Q_OBJECT
00048 
00049 public:
00050 
00051     // constructor - destructor
00052     KPrPgConfDia( QWidget* parent, KPrDocument* doc );
00053     ~KPrPgConfDia();
00054     bool getInfiniteLoop() const;
00055     bool getManualSwitch() const;
00056     bool getPresentationDuration() const;
00057     QPen getPen() const;
00058     QValueList<bool> getSelectedSlides() const;
00059 
00060     QString presentationName() const;
00061 
00062 protected:
00063 
00064     KPrDocument* m_doc;
00065 
00066     QCheckBox *infiniteLoop, *presentationDuration;
00067     QRadioButton *m_manualButton, *m_autoButton;
00068     KColorButton* penColor;
00069     QSpinBox* penWidth;
00070     QComboBox *m_customSlideCombobox;
00071     QListView *slides;
00072     QRadioButton *m_customSlide, *m_selectedSlide;
00073     QLabel *m_labelCustomSlide;
00074     void setupPageGeneral();
00075     void setupPageSlides();
00076 
00077 public slots:
00078     void confDiaOk() { emit pgConfDiaOk(); }
00079 
00080 signals:
00081     void pgConfDiaOk();
00082 
00083 protected slots:
00084     void selectAllSlides();
00085     void deselectAllSlides();
00086     void radioButtonClicked();
00087 };
00088 
00089 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys