From ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- keduca/libkeduca/kgallerydialog.h | 70 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 keduca/libkeduca/kgallerydialog.h (limited to 'keduca/libkeduca/kgallerydialog.h') diff --git a/keduca/libkeduca/kgallerydialog.h b/keduca/libkeduca/kgallerydialog.h new file mode 100644 index 00000000..a662bde6 --- /dev/null +++ b/keduca/libkeduca/kgallerydialog.h @@ -0,0 +1,70 @@ +/*************************************************************************** + kgallerydialog.h - description + ------------------- + begin : mar abr 1 2003 + copyright : (C) 2003 by javi + email : javi@recibos + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KGALLERYDIALOG_H +#define KGALLERYDIALOG_H + +#include "kgallerydialogbase.h" + +#include +// #include +// #include + +/**Gallery + *@author Javier Campos + */ + +// forward declarations +class KTempFile; + +namespace KIO { class Job; } + +class KGalleryDialog : public KGalleryDialogBase { + Q_OBJECT +public: + KGalleryDialog(QWidget *parent=0, const char *name=0); + ~KGalleryDialog(); + /** Open keduca file. This function can open a remote or local url. */ + bool openFile( const KURL &url ); + /** Get keduca test url */ + KURL getURL(); + /** Add url */ + void putURL(const KURL &urlFile); +protected slots: // Private slots + /** No descriptions */ + void slotButtonAdd(); + /** Open selected document */ + void accept(); + /** Select Server */ + void slotServerSelected( QListViewItem *item ); +protected: + /** Open keduca file. This function does the actual work and expects a local filename . */ + bool loadFile( const QString &filename ); +private: // Private attributes + /** Current url */ + KURL _currentURL; + /** The temporary file to which the document is saved, NULL if no temporary file is needed */ + KTempFile *_tmpfile; +private: // Private methods + /** Read servers */ + void configRead(); + /** Write servers lists */ + void configWrite(); + /** Init gui settings */ +}; + +#endif -- cgit v1.2.1