kpresenter
KPrCustomSlideShowDia.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CUSTOM_SLIDE_SHOW__
00021 #define __CUSTOM_SLIDE_SHOW__
00022
00023 #include <kdialogbase.h>
00024 #include <qlistbox.h>
00025 #include "global.h"
00026
00027 class QLineEdit;
00028 class QPushButton;
00029 class KPrDocument;
00030 class QToolButton;
00031 class KPrView;
00032 class KPrPage;
00033
00034 class KPrCustomSlideShowDia : public KDialogBase
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 KPrCustomSlideShowDia( KPrView* _view, KPrDocument *_doc, const char* name );
00040 ~KPrCustomSlideShowDia();
00041 public slots:
00042 virtual void slotOk();
00043 void slotDoubleClicked(QListBoxItem *);
00044 void slotTextClicked(QListBoxItem*);
00045 void slotRemove();
00046 void slotAdd();
00047 void slotModify();
00048 void slotCopy();
00049 void slotTest();
00050 void slotPresentationFinished();
00051
00052 protected:
00053 void hideEvent( QHideEvent* );
00054
00055 void init();
00056 void updateButton();
00057 bool uniqueName( int val, const QString & name ) const;
00058
00059 QListBox * list;
00060 QPushButton* m_pRemove;
00061 QPushButton* m_pAdd;
00062 QPushButton* m_pModify;
00063 QPushButton* m_pCopy;
00064 QPushButton* m_pTest;
00065 bool m_bChanged;
00066 KPrDocument *m_doc;
00067 KPrView *m_view;
00068 CustomSlideShowMap m_customSlideShowMap;
00069 QStringList listPageName;
00070 };
00071
00072 class KPrCustomSlideShowItem : public QListBoxText
00073 {
00074 public:
00075 KPrCustomSlideShowItem( QListBox * listbox, KPrPage * page );
00076 KPrCustomSlideShowItem( KPrPage * page );
00077 KPrCustomSlideShowItem( QListBox * listbox, KPrPage * page, QListBoxItem * after );
00078
00079 KPrPage * getPage() { return m_page; }
00080 private:
00081 KPrPage * m_page;
00082 };
00083
00084 class KPrDefineCustomSlideShow : public KDialogBase
00085 {
00086 Q_OBJECT
00087 public:
00088 KPrDefineCustomSlideShow( QWidget* parent, QStringList &_listNameSlideShow, const QPtrList<KPrPage> &pages, const char *name = 0L);
00089 KPrDefineCustomSlideShow( QWidget* parent, const QString &_customName, QStringList &_listNameSlideShow,
00090 const QPtrList<KPrPage> &pages, QValueList<KPrPage *> &customPages, const char* name = 0L );
00091
00092 QString customSlideShowName() const;
00093 QValueList<KPrPage *> customSlides();
00094
00095 protected slots:
00096 void slotMoveUpSlide();
00097 void slotMoveDownSlide();
00098 void slotMoveRemoveSlide();
00099 void slotMoveInsertSlide();
00100 void slideNameChanged( const QString & _name);
00101 void updateButton();
00102 virtual void slotOk();
00103
00104 protected:
00105 void init();
00106 QStringList listNameCustomSlideShow;
00107 QListBox *listSlide;
00108 QListBox *listSlideShow;
00109 QToolButton *m_insertSlide;
00110 QToolButton *m_removeSlide;
00111 QToolButton *m_moveUpSlide;
00112 QToolButton *m_moveDownSlide;
00113 QLineEdit *m_name;
00114
00115 };
00116
00117 #endif
|