summaryrefslogtreecommitdiffstats
path: root/keduca/libkeduca/kgallerydialog.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /keduca/libkeduca/kgallerydialog.h
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
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
Diffstat (limited to 'keduca/libkeduca/kgallerydialog.h')
-rw-r--r--keduca/libkeduca/kgallerydialog.h70
1 files changed, 70 insertions, 0 deletions
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 <kurl.h>
+// #include <kio/global.h>
+// #include <kio/job.h>
+
+/**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