kpresenter

KPrEffectDia.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@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 EFFECTDIA_H
21#define EFFECTDIA_H
22
23#include <kdialogbase.h>
24#include <tqptrlist.h>
25
26class KPrView;
27class TQWidget;
28class TQComboBox;
29class TQLabel;
30class TQPushButton;
31class TQCheckBox;
32class TQBoxLayout;
33class TQResizeEvent;
34class TQLineEdit;
35class KPrObject;
36class KIntNumInput;
37class KURLRequester;
38class KPrSoundPlayer;
39class TQSpinBox;
40
41class KPrEffectDia : public KDialogBase
42{
43 TQ_OBJECT
44
45
46public:
47 KPrEffectDia( TQWidget* parent, const char*, const TQPtrList<KPrObject> &_objs,
48 KPrView* );
49
50 ~KPrEffectDia();
51
52protected:
53 void resizeEvent( TQResizeEvent *e );
54
55 TQString getSoundFileFilter() const;
56
57 TQComboBox *cEffect, *cEffect2, *cDisappear, *cAppearSpeed, *cDisappearSpeed;
58 TQLabel *lEffect, *lEffect2, *lAppear, *lDisappear, *lDEffect, * lAppearSpeed, *lDisappearSpeed;
59 TQSpinBox *eAppearStep,*eDisappearStep;
60 TQCheckBox *disappear;
61 TQBoxLayout *topLayout;
62 KIntNumInput *timerOfAppear, *timerOfDisappear;
63
64 TQCheckBox *appearSoundEffect, *disappearSoundEffect;
65 TQLabel *lSoundEffect1, *lSoundEffect2;
66 KURLRequester *requester1, *requester2;
67 TQPushButton *buttonTestPlaySoundEffect1, *buttonTestStopSoundEffect1;
68 TQPushButton *buttonTestPlaySoundEffect2, *buttonTestStopSoundEffect2;
69
70 KPrSoundPlayer *soundPlayer1, *soundPlayer2;
71
72 KPrView *view;
73 TQPtrList<KPrObject> objs;
74
75public slots:
76 void slotEffectDiaOk();
77
78protected slots:
79 void disappearChanged();
80 void appearEffectChanged( int num );
81 void disappearEffectChanged( int num );
82 void appearSoundEffectChanged();
83 void disappearSoundEffectChanged();
84 void slotRequesterClicked( KURLRequester * );
85 void slotAppearFileChanged( const TQString& );
86 void slotDisappearFileChanged( const TQString& );
87 void playSound1();
88 void playSound2();
89 void stopSound1();
90 void stopSound2();
91
92};
93
94#endif //EFFECTDIA_H