summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrCustomSlideShowDia.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kpresenter/KPrCustomSlideShowDia.h
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrCustomSlideShowDia.h')
-rw-r--r--kpresenter/KPrCustomSlideShowDia.h117
1 files changed, 117 insertions, 0 deletions
diff --git a/kpresenter/KPrCustomSlideShowDia.h b/kpresenter/KPrCustomSlideShowDia.h
new file mode 100644
index 00000000..203405bd
--- /dev/null
+++ b/kpresenter/KPrCustomSlideShowDia.h
@@ -0,0 +1,117 @@
+/* This file is part of the KDE project
+ Copyright (C) 2004 Laurent Montel <montel@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+*/
+
+#ifndef __CUSTOM_SLIDE_SHOW__
+#define __CUSTOM_SLIDE_SHOW__
+
+#include <kdialogbase.h>
+#include <qlistbox.h>
+#include "global.h"
+
+class QLineEdit;
+class QPushButton;
+class KPrDocument;
+class QToolButton;
+class KPrView;
+class KPrPage;
+
+class KPrCustomSlideShowDia : public KDialogBase
+{
+ Q_OBJECT
+
+public:
+ KPrCustomSlideShowDia( KPrView* _view, KPrDocument *_doc, const char* name );
+ ~KPrCustomSlideShowDia();
+public slots:
+ virtual void slotOk();
+ void slotDoubleClicked(QListBoxItem *);
+ void slotTextClicked(QListBoxItem*);
+ void slotRemove();
+ void slotAdd();
+ void slotModify();
+ void slotCopy();
+ void slotTest();
+ void slotPresentationFinished();
+
+protected:
+ void hideEvent( QHideEvent* );
+
+ void init();
+ void updateButton();
+ bool uniqueName( int val, const QString & name ) const;
+
+ QListBox * list;
+ QPushButton* m_pRemove;
+ QPushButton* m_pAdd;
+ QPushButton* m_pModify;
+ QPushButton* m_pCopy;
+ QPushButton* m_pTest;
+ bool m_bChanged;
+ KPrDocument *m_doc;
+ KPrView *m_view;
+ CustomSlideShowMap m_customSlideShowMap;
+ QStringList listPageName;
+};
+
+class KPrCustomSlideShowItem : public QListBoxText
+{
+public:
+ KPrCustomSlideShowItem( QListBox * listbox, KPrPage * page );
+ KPrCustomSlideShowItem( KPrPage * page );
+ KPrCustomSlideShowItem( QListBox * listbox, KPrPage * page, QListBoxItem * after );
+
+ KPrPage * getPage() { return m_page; }
+private:
+ KPrPage * m_page;
+};
+
+class KPrDefineCustomSlideShow : public KDialogBase
+{
+ Q_OBJECT
+public:
+ KPrDefineCustomSlideShow( QWidget* parent, QStringList &_listNameSlideShow, const QPtrList<KPrPage> &pages, const char *name = 0L);
+ KPrDefineCustomSlideShow( QWidget* parent, const QString &_customName, QStringList &_listNameSlideShow,
+ const QPtrList<KPrPage> &pages, QValueList<KPrPage *> &customPages, const char* name = 0L );
+
+ QString customSlideShowName() const;
+ QValueList<KPrPage *> customSlides();
+
+protected slots:
+ void slotMoveUpSlide();
+ void slotMoveDownSlide();
+ void slotMoveRemoveSlide();
+ void slotMoveInsertSlide();
+ void slideNameChanged( const QString & _name);
+ void updateButton();
+ virtual void slotOk();
+
+protected:
+ void init();
+ QStringList listNameCustomSlideShow;
+ QListBox *listSlide;
+ QListBox *listSlideShow;
+ QToolButton *m_insertSlide;
+ QToolButton *m_removeSlide;
+ QToolButton *m_moveUpSlide;
+ QToolButton *m_moveDownSlide;
+ QLineEdit *m_name;
+
+};
+
+#endif