~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kpresenter/effectdia.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
1
2
/* This file is part of the KDE project
2
3
   Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
3
4
 
20
21
#ifndef EFFECTDIA_H
21
22
#define EFFECTDIA_H
22
23
 
23
 
#include <qdialog.h>
24
 
#include <qlist.h>
 
24
#include <kdialogbase.h>
 
25
#include <qptrlist.h>
25
26
 
26
27
class KPresenterView;
27
28
class QWidget;
31
32
class QCheckBox;
32
33
class QBoxLayout;
33
34
class QResizeEvent;
 
35
class QLineEdit;
34
36
class KPObject;
35
 
 
36
 
/******************************************************************/
37
 
/* class EffectDia                                                */
38
 
/******************************************************************/
39
 
 
40
 
class EffectDia : public QDialog
 
37
class KIntNumInput;
 
38
class KURLRequester;
 
39
class KPresenterSoundPlayer;
 
40
class QSpinBox;
 
41
 
 
42
class EffectDia : public KDialogBase
41
43
{
42
44
    Q_OBJECT
43
45
 
44
46
public:
 
47
    EffectDia( QWidget* parent, const char*, const QPtrList<KPObject> &_objs,
 
48
               KPresenterView* );
45
49
 
46
 
    // constructor - destructor
47
 
    EffectDia( QWidget* parent, const char*, const QList<KPObject> &_objs,
48
 
               KPresenterView* );
 
50
    ~EffectDia();
49
51
 
50
52
protected:
51
53
    void resizeEvent( QResizeEvent *e );
52
54
 
 
55
    QString getSoundFileFilter() const;
 
56
 
53
57
    QComboBox *cEffect, *cEffect2, *cDisappear;
54
58
    QLabel *lEffect, *lEffect2, *lNum, *lDisappear, *lDEffect;
55
59
    QSpinBox *eNum,*eDisappear;
56
 
    QPushButton *cancelBut, *okBut;
57
60
    QCheckBox *disappear;
58
61
    QBoxLayout *topLayout;
 
62
    KIntNumInput *timerOfAppear, *timerOfDisappear;
 
63
 
 
64
    QCheckBox *appearSoundEffect, *disappearSoundEffect;
 
65
    QLabel *lSoundEffect1, *lSoundEffect2;
 
66
    KURLRequester *requester1, *requester2;
 
67
    QPushButton *buttonTestPlaySoundEffect1, *buttonTestStopSoundEffect1;
 
68
    QPushButton *buttonTestPlaySoundEffect2, *buttonTestStopSoundEffect2;
 
69
 
 
70
    KPresenterSoundPlayer *soundPlayer1, *soundPlayer2;
59
71
 
60
72
    KPresenterView *view;
61
 
    QList<KPObject> objs;
 
73
    QPtrList<KPObject> objs;
62
74
 
63
75
public slots:
64
76
    void slotEffectDiaOk();
65
77
 
66
78
protected slots:
67
79
    void disappearChanged();
68
 
    void num1Changed( int num );
69
 
    void num2Changed( int num );
 
80
    void appearEffectChanged( int num );
 
81
    void disappearEffectChanged( int num );
 
82
    void appearSoundEffectChanged();
 
83
    void disappearSoundEffectChanged();
 
84
    void slotRequesterClicked( KURLRequester * );
 
85
    void slotAppearFileChanged( const QString& );
 
86
    void slotDisappearFileChanged( const QString& );
 
87
    void playSound1();
 
88
    void playSound2();
 
89
    void stopSound1();
 
90
    void stopSound2();
70
91
 
71
92
};
72
93