kpresenter

KPrSlideTransitionDia.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) 2002 Ariya Hidayat <ariya@kde.org>
00004    Copyright (C) 2004 Thorsten Zachmann <zachmann@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 SLIDETRANSITIONDIA_H
00023 #define SLIDETRANSITIONDIA_H
00024 
00025 #include <qtimer.h>
00026 #include <qwidget.h>
00027 
00028 #include <kdialogbase.h>
00029 
00030 #include "global.h"
00031 
00032 class KPrPageEffects;
00033 class KPrView;
00034 class KPrSoundPlayer;
00035 class KURLRequester;
00036 class SlideTransitionWidget;
00037 
00038 class KPrSlideTransitionDia : public KDialogBase
00039 {
00040     Q_OBJECT
00041 public:
00042     KPrSlideTransitionDia( QWidget *parent, const char *name, KPrView *view );
00043     ~KPrSlideTransitionDia();
00044 
00045 protected:
00046     void apply( bool global );
00047     // TODO reuse
00048     QString getSoundFileFilter();
00049     
00050     SlideTransitionWidget *m_dialog;      
00051     KPrView *m_view;
00052     KPrSoundPlayer *m_soundPlayer;
00053     
00054     PageEffect m_effect;
00055     EffectSpeed m_effectSpeed;
00056     bool m_soundEffect;
00057     QString m_soundFileName;
00058     int m_slideTime;
00059 
00060     KPrPageEffects *m_pageEffect;
00061     QTimer m_pageEffectTimer;
00062     QPixmap m_pixmap;
00063     QPixmap m_target;
00064     
00065 protected slots:    
00066     void effectChanged( int );
00067     void playSound();
00068     void stopSound();
00069     void preview();
00070     void slotDoPageEffect();
00071     void slotOk();
00072     void slotRequesterClicked( KURLRequester * );
00073     void slotSoundFileChanged( const QString& text );
00074     void slotUser1();
00075     void soundEffectChanged();
00076 };
00077 
00078 
00079 #endif /* SLIDETRANSITIONDIA_H */
KDE Home | KDE Accessibility Home | Description of Access Keys