kpresenter

KPrPgConfDia.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3 Copyright (C) 2002, 2003 Ariya Hidayat <ariya@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef PGCONFDIA_H
22#define PGCONFDIA_H
23
24#include "global.h"
25
26#include <tqmap.h>
27#include <tqpen.h>
28#include <tqvaluelist.h>
29
30#include <kdialogbase.h>
31
32class KPrDocument;
33
34class TQCheckBox;
35class TQComboBox;
36class TQColor;
37class TQListView;
38class TQRadioButton;
39class TQSpinBox;
40
41class KColorButton;
42class TQSlider;
43
44class KPrPgConfDia : public KDialogBase
45{
46 TQ_OBJECT
47
48
49public:
50
51 // constructor - destructor
52 KPrPgConfDia( TQWidget* parent, KPrDocument* doc );
53 ~KPrPgConfDia();
54 bool getInfiniteLoop() const;
55 bool getShowEndOfPresentationSlide() const;
56 bool getManualSwitch() const;
57 bool getPresentationDuration() const;
58 TQPen getPen() const;
59 TQValueList<bool> getSelectedSlides() const;
60
61 TQString presentationName() const;
62
63protected:
64
65 KPrDocument* m_doc;
66
67 TQCheckBox *infiniteLoop, *presentationDuration, *endOfPresentationSlide;
68 TQRadioButton *m_manualButton, *m_autoButton;
69 KColorButton* penColor;
70 TQSpinBox* penWidth;
71 TQComboBox *m_customSlideCombobox;
72 TQListView *slides;
73 TQRadioButton *m_customSlide, *m_selectedSlide;
74 TQLabel *m_labelCustomSlide;
75 void setupPageGeneral();
76 void setupPageSlides();
77
78public slots:
79 void confDiaOk() { emit pgConfDiaOk(); }
80
81signals:
82 void pgConfDiaOk();
83
84protected slots:
85 void selectAllSlides();
86 void deselectAllSlides();
87 void radioButtonClicked();
88};
89
90#endif