kpresenter
KPrEffectDia.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
|