~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to kcontrol/konq/rootopts.h

  • Committer: Bazaar Package Importer
  • Author(s): Ana Beatriz Guerrero Lopez
  • Date: 2009-04-05 05:22:13 UTC
  • mfrom: (0.4.2 experimental) (0.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 235.
  • Revision ID: james.westby@ubuntu.com-20090405052213-39thr4l6p2ss07uj
Tags: 4:4.2.2-1
* New upstream release:
  - khtml fixes. (Closes: #290285, #359680)
  - Default konsole sessions can be deleted. (Closes: #286342)
  - Tag widget uses standard application palette. (Closes: #444800)
  - ... and surely many more but we have lost track...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
//
3
 
// "Desktop Icons Options" Tab for KDesktop configuration
4
 
//
5
 
// (c) Martin R. Jones 1996
6
 
//
7
 
// Port to KControl, split from "Misc" Tab, Port to KControl2
8
 
// (c) David Faure 1998
9
 
// Desktop menus, paths
10
 
// (c) David Faure 2000
11
 
 
12
 
#ifndef __ROOT_OPTIONS_H
13
 
#define __ROOT_OPTIONS_H
14
 
 
15
 
 
16
 
#include <qstring.h>
17
 
 
18
 
#include <kcmodule.h>
19
 
#include <kio/global.h>
20
 
#include <kurl.h>
21
 
 
22
 
class QCheckBox;
23
 
class QComboBox;
24
 
class QPushButton;
25
 
 
26
 
class KConfig;
27
 
class KListView;
28
 
class KURLRequester;
29
 
 
30
 
namespace KIO { class Job; }
31
 
 
32
 
//-----------------------------------------------------------------------------
33
 
// The "Path" Tab contains :
34
 
// The paths for Desktop, Autostart and Documents
35
 
 
36
 
class DesktopPathConfig : public KCModule
37
 
{
38
 
        Q_OBJECT
39
 
public:
40
 
        DesktopPathConfig(QWidget *parent = 0L, const char *name = 0L );
41
 
        virtual void load();
42
 
        virtual void load( bool useDefaults );
43
 
        virtual void save();
44
 
        virtual void defaults();
45
 
 
46
 
private slots:
47
 
    void slotEntries( KIO::Job * job, const KIO::UDSEntryList& list);
48
 
 
49
 
private:
50
 
        // Desktop Paths
51
 
        KURLRequester *urDesktop;
52
 
        KURLRequester *urAutostart;
53
 
        KURLRequester *urDocument;
54
 
 
55
 
        bool moveDir( const KURL & src, const KURL & dest, const QString & type );
56
 
        bool m_ok;
57
 
        KURL m_copyToDest; // used when the destination directory already exists
58
 
        KURL m_copyFromSrc;
59
 
 
60
 
private slots:
61
 
        void slotResult( KIO::Job * job );
62
 
};
63
 
 
64
 
#endif // __ROOT_OPTIONS_H