kpresenter

KPrEffectDia.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 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef EFFECTDIA_H
00022 #define EFFECTDIA_H
00023 
00024 #include <kdialogbase.h>
00025 #include <qptrlist.h>
00026 
00027 class KPrView;
00028 class QWidget;
00029 class QComboBox;
00030 class QLabel;
00031 class QPushButton;
00032 class QCheckBox;
00033 class QBoxLayout;
00034 class QResizeEvent;
00035 class QLineEdit;
00036 class KPrObject;
00037 class KIntNumInput;
00038 class KURLRequester;
00039 class KPrSoundPlayer;
00040 class QSpinBox;
00041 
00042 class KPrEffectDia : public KDialogBase
00043 {
00044     Q_OBJECT
00045 
00046 public:
00047     KPrEffectDia( QWidget* parent, const char*, const QPtrList<KPrObject> &_objs,
00048                KPrView* );
00049 
00050     ~KPrEffectDia();
00051 
00052 protected:
00053     void resizeEvent( QResizeEvent *e );
00054 
00055     QString getSoundFileFilter() const;
00056 
00057     QComboBox *cEffect, *cEffect2, *cDisappear, *cAppearSpeed, *cDisappearSpeed;
00058     QLabel *lEffect, *lEffect2, *lAppear, *lDisappear, *lDEffect, * lAppearSpeed, *lDisappearSpeed;
00059     QSpinBox *eAppearStep,*eDisappearStep;
00060     QCheckBox *disappear;
00061     QBoxLayout *topLayout;
00062     KIntNumInput *timerOfAppear, *timerOfDisappear;
00063 
00064     QCheckBox *appearSoundEffect, *disappearSoundEffect;
00065     QLabel *lSoundEffect1, *lSoundEffect2;
00066     KURLRequester *requester1, *requester2;
00067     QPushButton *buttonTestPlaySoundEffect1, *buttonTestStopSoundEffect1;
00068     QPushButton *buttonTestPlaySoundEffect2, *buttonTestStopSoundEffect2;
00069 
00070     KPrSoundPlayer *soundPlayer1, *soundPlayer2;
00071 
00072     KPrView *view;
00073     QPtrList<KPrObject> objs;
00074 
00075 public slots:
00076     void slotEffectDiaOk();
00077 
00078 protected slots:
00079     void disappearChanged();
00080     void appearEffectChanged( int num );
00081     void disappearEffectChanged( int num );
00082     void appearSoundEffectChanged();
00083     void disappearSoundEffectChanged();
00084     void slotRequesterClicked( KURLRequester * );
00085     void slotAppearFileChanged( const QString& );
00086     void slotDisappearFileChanged( const QString& );
00087     void playSound1();
00088     void playSound2();
00089     void stopSound1();
00090     void stopSound2();
00091 
00092 };
00093 
00094 #endif //EFFECTDIA_H
KDE Home | KDE Accessibility Home | Description of Access Keys