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 getShowEndOfPresentationSlide() const; 00056 bool getManualSwitch() const; 00057 bool getPresentationDuration() const; 00058 QPen getPen() const; 00059 QValueList<bool> getSelectedSlides() const; 00060 00061 QString presentationName() const; 00062 00063 protected: 00064 00065 KPrDocument* m_doc; 00066 00067 QCheckBox *infiniteLoop, *presentationDuration, *endOfPresentationSlide; 00068 QRadioButton *m_manualButton, *m_autoButton; 00069 KColorButton* penColor; 00070 QSpinBox* penWidth; 00071 QComboBox *m_customSlideCombobox; 00072 QListView *slides; 00073 QRadioButton *m_customSlide, *m_selectedSlide; 00074 QLabel *m_labelCustomSlide; 00075 void setupPageGeneral(); 00076 void setupPageSlides(); 00077 00078 public slots: 00079 void confDiaOk() { emit pgConfDiaOk(); } 00080 00081 signals: 00082 void pgConfDiaOk(); 00083 00084 protected slots: 00085 void selectAllSlides(); 00086 void deselectAllSlides(); 00087 void radioButtonClicked(); 00088 }; 00089 00090 #endif