kpresenter

KPrSlideTransitionDia.h
1/* This file is part of the KDE project
2 Copyright (C) 2002 Ariya Hidayat <ariya@kde.org>
3 Copyright (C) 2004 Thorsten Zachmann <zachmann@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 SLIDETRANSITIONDIA_H
22#define SLIDETRANSITIONDIA_H
23
24#include <tqtimer.h>
25#include <tqwidget.h>
26
27#include <kdialogbase.h>
28
29#include "global.h"
30
31class KPrPageEffects;
32class KPrView;
33class KPrSoundPlayer;
34class KURLRequester;
35class SlideTransitionWidget;
36
37class KPrSlideTransitionDia : public KDialogBase
38{
39 TQ_OBJECT
40
41public:
42 KPrSlideTransitionDia( TQWidget *parent, const char *name, KPrView *view );
43 ~KPrSlideTransitionDia();
44
45protected:
46 void apply( bool global );
47 // TODO reuse
48 TQString getSoundFileFilter();
49
50 SlideTransitionWidget *m_dialog;
51 KPrView *m_view;
52 KPrSoundPlayer *m_soundPlayer;
53
54 PageEffect m_effect;
55 EffectSpeed m_effectSpeed;
56 bool m_soundEffect;
57 TQString m_soundFileName;
58 int m_slideTime;
59
60 KPrPageEffects *m_pageEffect;
61 TQTimer m_pageEffectTimer;
62 TQPixmap m_pixmap;
63 TQPixmap m_target;
64
65protected slots:
66 void effectChanged( int );
67 void playSound();
68 void stopSound();
69 void preview();
70 void slotDoPageEffect();
71 void slotOk();
72 void slotRequesterClicked( KURLRequester * );
73 void slotSoundFileChanged( const TQString& text );
74 void slotUser1();
75 void soundEffectChanged();
76};
77
78
79#endif /* SLIDETRANSITIONDIA_H */