You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
305 lines
7.6 KiB
305 lines
7.6 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdefile version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// This software 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.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
|
|
||
|
class KPropertiesDialog : KDialogBase
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
static bool canDisplay (KFileItemList);
|
||
13 years ago
|
KPropertiesDialog (KFileItem*, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1);
|
||
|
KPropertiesDialog (KFileItemList, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1);
|
||
|
KPropertiesDialog (const KURL&, mode_t, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1);
|
||
|
KPropertiesDialog (const KURL&, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1);
|
||
|
KPropertiesDialog (const KURL&, const KURL&, const TQString&, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1);
|
||
|
KPropertiesDialog (const TQString&, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
13 years ago
|
static bool showDialog (KFileItem*, TQWidget* /Transfer/ = 0, const char* = 0, bool = 0);
|
||
|
static bool showDialog (const KURL&, TQWidget* /Transfer/ = 0, const char* = 0, bool = 0);
|
||
|
static bool showDialog (const KFileItemList&, TQWidget* /Transfer/ = 0, const char* = 0, bool = 0);
|
||
13 years ago
|
%End
|
||
|
|
||
|
void insertPlugin (KPropsDlgPlugin*);
|
||
|
const KURL& kurl () const;
|
||
|
KFileItem* item ();
|
||
|
KFileItemList items () const;
|
||
|
KDialogBase* dialog ();
|
||
|
const KURL& currentDir () const;
|
||
13 years ago
|
const TQString& defaultName () const;
|
||
13 years ago
|
void updateUrl (const KURL&);
|
||
13 years ago
|
void rename (const TQString&);
|
||
13 years ago
|
void abortApplying ();
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
|
void showFileSharingPage ();
|
||
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
13 years ago
|
void setFileSharingPage (TQWidget*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void setFileNameReadOnly (bool);
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
public slots:
|
||
|
virtual void slotOk ();
|
||
|
virtual void slotCancel ();
|
||
|
|
||
|
signals:
|
||
|
void propertiesClosed ();
|
||
|
void applied ();
|
||
|
void canceled ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void saveAs (const KURL&, KURL&);
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class KPropertiesDialog
|
||
|
|
||
|
|
||
13 years ago
|
class KPropsDlgPlugin : TQObject
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KPropsDlgPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool isDesktopFile (KFileItem*);
|
||
|
void setDirty (bool);
|
||
|
bool isDirty () const;
|
||
|
|
||
|
public slots:
|
||
|
void setDirty ();
|
||
|
|
||
|
signals:
|
||
|
void changed ();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class KPropsDlgPlugin
|
||
|
|
||
|
|
||
|
class KFilePropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KFilePropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
void postApplyChanges ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void setFileNameReadOnly (bool);
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected slots:
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void slotEditFileType ();
|
||
|
%End
|
||
|
|
||
12 years ago
|
void slotCopyFinished (TDEIO::Job*);
|
||
|
void slotFileRenamed (TDEIO::Job*, const KURL&, const KURL&);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
void slotDirSizeUpdate ();
|
||
|
%End
|
||
|
|
||
12 years ago
|
void slotDirSizeFinished (TDEIO::Job*);
|
||
13 years ago
|
void slotFoundMountPoint (const TQString&, ulong, ulong, ulong);
|
||
13 years ago
|
void slotSizeStop ();
|
||
|
void slotSizeDetermine ();
|
||
|
|
||
|
}; // class KFilePropsPlugin
|
||
|
|
||
|
|
||
|
class KFilePermissionsPropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
|
||
|
enum PermissionsMode
|
||
|
{
|
||
|
PermissionsOnlyFiles,
|
||
|
PermissionsOnlyDirs,
|
||
|
PermissionsOnlyLinks,
|
||
|
PermissionsMixed
|
||
|
};
|
||
|
|
||
|
|
||
|
enum PermissionsTarget
|
||
|
{
|
||
|
PermissionsOwner,
|
||
|
PermissionsGroup,
|
||
|
PermissionsOthers
|
||
|
};
|
||
|
|
||
|
%End
|
||
|
|
||
|
KFilePermissionsPropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
}; // class KFilePermissionsPropsPlugin
|
||
|
|
||
|
|
||
|
class KURLPropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KURLPropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
}; // class KURLPropsPlugin
|
||
|
|
||
|
|
||
|
class KBindingPropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KBindingPropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
}; // class KBindingPropsPlugin
|
||
|
|
||
|
|
||
|
class KDevicePropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KDevicePropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
}; // class KDevicePropsPlugin
|
||
|
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
|
|
||
|
class KDesktopPropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KDesktopPropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
public slots:
|
||
|
void slotAddFiletype ();
|
||
|
void slotDelFiletype ();
|
||
|
void slotBrowseExec ();
|
||
|
void slotAdvanced ();
|
||
|
void slotSelectMimetype ();
|
||
|
|
||
|
}; // class KDesktopPropsPlugin
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
class KExecPropsPlugin : KPropsDlgPlugin
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
KExecPropsPlugin (KPropertiesDialog*);
|
||
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
public slots:
|
||
|
void slotBrowseExec ();
|
||
|
|
||
|
}; // class KExecPropsPlugin
|
||
|
|
||
|
|
||
12 years ago
|
class TDEApplicationPropsPlugin : KPropsDlgPlugin
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <kpropertiesdialog.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
TDEApplicationPropsPlugin (KPropertiesDialog*);
|
||
13 years ago
|
virtual void applyChanges ();
|
||
|
static bool supports (KFileItemList);
|
||
|
|
||
|
public slots:
|
||
|
void slotDelExtension ();
|
||
|
void slotAddExtension ();
|
||
|
|
||
12 years ago
|
}; // class TDEApplicationPropsPlugin
|
||
13 years ago
|
|