diff options
Diffstat (limited to 'kcontrol/konq/rootopts.h')
-rw-r--r-- | kcontrol/konq/rootopts.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/kcontrol/konq/rootopts.h b/kcontrol/konq/rootopts.h new file mode 100644 index 000000000..9343e07ca --- /dev/null +++ b/kcontrol/konq/rootopts.h @@ -0,0 +1,70 @@ +// +// +// "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 <tqstring.h> + +#include <tdecmodule.h> +#include <tdeio/global.h> +#include <kurl.h> + +class TQCheckBox; +class TQComboBox; +class TQPushButton; + +class TDEConfig; +class TDEListView; +class KURLRequester; + +namespace TDEIO { class Job; } + +//----------------------------------------------------------------------------- +// The "Path" Tab contains : +// The paths for Desktop, Autostart and Documents + +class DesktopPathConfig : public TDECModule +{ + Q_OBJECT +public: + DesktopPathConfig(TQWidget *parent = 0L, const char *name = 0L ); + virtual void load(); + virtual void load( bool useDefaults ); + virtual void save(); + virtual void defaults(); + +private slots: + void slotEntries( TDEIO::Job * job, const TDEIO::UDSEntryList& list); + +private: + // Desktop Paths + KURLRequester *urDesktop; + KURLRequester *urAutostart; + KURLRequester *urDocument; + KURLRequester *urDownload; + KURLRequester *urMusic; + KURLRequester *urPictures; + KURLRequester *urPublicShare; + KURLRequester *urTemplates; + KURLRequester *urVideos; + + bool moveDir( const KURL & src, const KURL & dest, const TQString & type ); + bool m_ok; + KURL m_copyToDest; // used when the destination directory already exists + KURL m_copyFromSrc; + +private slots: + void slotResult( TDEIO::Job * job ); +}; + +#endif // __ROOT_OPTIONS_H |