summaryrefslogtreecommitdiffstats
path: root/kcontrol/konq/rootopts.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
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/konq/rootopts.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.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/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/konq/rootopts.h')
-rw-r--r--kcontrol/konq/rootopts.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/kcontrol/konq/rootopts.h b/kcontrol/konq/rootopts.h
new file mode 100644
index 000000000..3a7b7ee3f
--- /dev/null
+++ b/kcontrol/konq/rootopts.h
@@ -0,0 +1,64 @@
+//
+//
+// "Desktop Icons Options" Tab for KDesktop configuration
+//
+// (c) Martin R. Jones 1996
+//
+// Port to KControl, split from "Misc" Tab, Port to KControl2
+// (c) David Faure 1998
+// Desktop menus, paths
+// (c) David Faure 2000
+
+#ifndef __ROOT_OPTIONS_H
+#define __ROOT_OPTIONS_H
+
+
+#include <qstring.h>
+
+#include <kcmodule.h>
+#include <kio/global.h>
+#include <kurl.h>
+
+class QCheckBox;
+class QComboBox;
+class QPushButton;
+
+class KConfig;
+class KListView;
+class KURLRequester;
+
+namespace KIO { class Job; }
+
+//-----------------------------------------------------------------------------
+// The "Path" Tab contains :
+// The paths for Desktop, Autostart and Documents
+
+class DesktopPathConfig : public KCModule
+{
+ Q_OBJECT
+public:
+ DesktopPathConfig(QWidget *parent = 0L, const char *name = 0L );
+ virtual void load();
+ virtual void load( bool useDefaults );
+ virtual void save();
+ virtual void defaults();
+
+private slots:
+ void slotEntries( KIO::Job * job, const KIO::UDSEntryList& list);
+
+private:
+ // Desktop Paths
+ KURLRequester *urDesktop;
+ KURLRequester *urAutostart;
+ KURLRequester *urDocument;
+
+ bool moveDir( const KURL & src, const KURL & dest, const QString & type );
+ bool m_ok;
+ KURL m_copyToDest; // used when the destination directory already exists
+ KURL m_copyFromSrc;
+
+private slots:
+ void slotResult( KIO::Job * job );
+};
+
+#endif // __ROOT_OPTIONS_H