summaryrefslogtreecommitdiffstats
path: root/sip/tdefile
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdefile')
-rw-r--r--sip/tdefile/booktoken.sip66
-rw-r--r--sip/tdefile/kcombiview.sip90
-rw-r--r--sip/tdefile/kcustommenueditor.sip57
-rw-r--r--sip/tdefile/kdiroperator.sip205
-rw-r--r--sip/tdefile/kdirselectdialog.sip71
-rw-r--r--sip/tdefile/kdirsize.sip85
-rw-r--r--sip/tdefile/kdiskfreesp.sip49
-rw-r--r--sip/tdefile/kencodingfiledialog.sip65
-rw-r--r--sip/tdefile/kicondialog.sip131
-rw-r--r--sip/tdefile/kimagefilepreview.sip57
-rw-r--r--sip/tdefile/knotifydialog.sip314
-rw-r--r--sip/tdefile/knotifywidgetbase.sip64
-rw-r--r--sip/tdefile/kopenwith.sip146
-rw-r--r--sip/tdefile/kpreviewwidgetbase.sip57
-rw-r--r--sip/tdefile/kpropertiesdialog.sip304
-rw-r--r--sip/tdefile/kpropsdlg.sip208
-rw-r--r--sip/tdefile/krecentdirs.sip40
-rw-r--r--sip/tdefile/krecentdocument.sip44
-rw-r--r--sip/tdefile/kurlbar.sip213
-rw-r--r--sip/tdefile/kurlcombobox.sip80
-rw-r--r--sip/tdefile/kurlrequester.sip112
-rw-r--r--sip/tdefile/kurlrequesterdlg.sip43
-rw-r--r--sip/tdefile/tdefile-kde310.diff5
-rw-r--r--sip/tdefile/tdefile-kde311.diff5
-rw-r--r--sip/tdefile/tdefile-kde312.diff5
-rw-r--r--sip/tdefile/tdefile-kde313.diff5
-rw-r--r--sip/tdefile/tdefile-kde314.diff5
-rw-r--r--sip/tdefile/tdefile-kde315.diff5
-rw-r--r--sip/tdefile/tdefile-kde320.diff6
-rw-r--r--sip/tdefile/tdefile-kde321.diff5
-rw-r--r--sip/tdefile/tdefile-kde322.diff5
-rw-r--r--sip/tdefile/tdefile-kde323.diff5
-rw-r--r--sip/tdefile/tdefile-kde330.diff5
-rw-r--r--sip/tdefile/tdefile-kde331.diff5
-rw-r--r--sip/tdefile/tdefile-kde332.diff5
-rw-r--r--sip/tdefile/tdefile-kde340.diff5
-rw-r--r--sip/tdefile/tdefile-kde341.diff5
-rw-r--r--sip/tdefile/tdefile-kde342.diff5
-rw-r--r--sip/tdefile/tdefile-kde343.diff5
-rw-r--r--sip/tdefile/tdefile-kde350.diff5
-rw-r--r--sip/tdefile/tdefile-kde351.diff5
-rw-r--r--sip/tdefile/tdefile-kde352.diff6
-rw-r--r--sip/tdefile/tdefile-kde353.diff5
-rw-r--r--sip/tdefile/tdefile.sip115
-rw-r--r--sip/tdefile/tdefilebookmark.sip154
-rw-r--r--sip/tdefile/tdefiledetailview.sip207
-rw-r--r--sip/tdefile/tdefiledialog.sip207
-rw-r--r--sip/tdefile/tdefilefiltercombo.sip58
-rw-r--r--sip/tdefile/tdefileiconview.sip141
-rw-r--r--sip/tdefile/tdefilemod.sip.in63
-rw-r--r--sip/tdefile/tdefilepreview.sip80
-rw-r--r--sip/tdefile/tdefilereader.sip47
-rw-r--r--sip/tdefile/tdefilesharedlg.sip53
-rw-r--r--sip/tdefile/tdefiletreebranch.sip233
-rw-r--r--sip/tdefile/tdefiletreeview.sip109
-rw-r--r--sip/tdefile/tdefiletreeviewitem.sip48
-rw-r--r--sip/tdefile/tdefileview.sip153
-rw-r--r--sip/tdefile/tdefileviewitem.sip58
58 files changed, 4334 insertions, 0 deletions
diff --git a/sip/tdefile/booktoken.sip b/sip/tdefile/booktoken.sip
new file mode 100644
index 0000000..2b44f8e
--- /dev/null
+++ b/sip/tdefile/booktoken.sip
@@ -0,0 +1,66 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_1
+
+
+// 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 BMToken
+{
+%TypeHeaderCode
+#include <booktoken.h>
+%End
+
+
+public:
+ BMToken (const char*, int);
+ char* token ();
+ BMToken* next ();
+ void setNext (BMToken*);
+
+}; // class BMToken
+
+
+class BookmarkTokenizer
+{
+%TypeHeaderCode
+#include <booktoken.h>
+%End
+
+
+public:
+ BookmarkTokenizer ();
+ void begin ();
+ void write (const TQString&);
+ void end ();
+ char* nextToken ();
+ bool hasMoreTokens ();
+ void first ();
+
+protected:
+ void reset ();
+ void appendToken (const char*, int);
+
+protected:
+
+}; // class BookmarkTokenizer
+
diff --git a/sip/tdefile/kcombiview.sip b/sip/tdefile/kcombiview.sip
new file mode 100644
index 0000000..e78209d
--- /dev/null
+++ b/sip/tdefile/kcombiview.sip
@@ -0,0 +1,90 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KCombiView : TQSplitter, KFileView
+{
+%TypeHeaderCode
+#include <kcombiview.h>
+%End
+
+
+public:
+ KCombiView (TQWidget* /TransferThis/, const char*);
+ virtual TQWidget* widget ();
+ virtual void clearView ();
+ virtual void updateView (bool);
+ virtual void updateView (const KFileItem*);
+ virtual void removeItem (const KFileItem*);
+ virtual void listingCompleted ();
+ void setRight (KFileView*);
+ virtual void setSelectionMode (KFile::SelectionMode);
+ virtual void setSelected (const KFileItem*, bool);
+ virtual bool isSelected (const KFileItem*) const;
+ virtual void clearSelection ();
+ virtual void selectAll ();
+ virtual void invertSelection ();
+ virtual void setCurrentItem (const KFileItem*);
+ virtual KFileItem* currentFileItem () const;
+ virtual KFileItem* firstFileItem () const;
+ virtual KFileItem* nextItem (const KFileItem*) const;
+ virtual KFileItem* prevItem (const KFileItem*) const;
+ virtual void insertItem (KFileItem*);
+ virtual void clear ();
+ virtual void setSorting (TQDir::SortSpec);
+
+%If ( KDE_3_1_0 - )
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+%End
+
+ void ensureItemVisible (const KFileItem*);
+
+%If ( KDE_3_1_0 - )
+ virtual KActionCollection* actionCollection () const;
+
+%If ( KDE_3_2_0 - )
+ virtual void setAcceptDrops (bool);
+%End
+
+%End
+
+
+protected:
+
+protected slots:
+ void slotSortingChanged (TQDir::SortSpec);
+
+protected:
+
+%If ( KDE_3_2_0 - )
+ virtual bool eventFilter (TQObject*, TQEvent*);
+ void setDropOptions_impl (int);
+%End
+
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KCombiView
+
diff --git a/sip/tdefile/kcustommenueditor.sip b/sip/tdefile/kcustommenueditor.sip
new file mode 100644
index 0000000..fe8376e
--- /dev/null
+++ b/sip/tdefile/kcustommenueditor.sip
@@ -0,0 +1,57 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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.
+
+
+%If ( KDE_3_1_0 - )
+
+class KCustomMenuEditor : KDialogBase
+{
+%TypeHeaderCode
+#include <kcustommenueditor.h>
+%End
+
+
+public:
+ KCustomMenuEditor (TQWidget* /TransferThis/);
+ void load (TDEConfigBase*);
+ void save (TDEConfigBase*);
+
+public slots:
+ void slotNewItem ();
+ void slotRemoveItem ();
+ void slotMoveUp ();
+ void slotMoveDown ();
+
+%If ( KDE_3_2_0 - )
+ void refreshButton ();
+%End
+
+
+protected:
+
+}; // class KCustomMenuEditor
+
+%End
+
diff --git a/sip/tdefile/kdiroperator.sip b/sip/tdefile/kdiroperator.sip
new file mode 100644
index 0000000..4fa74b2
--- /dev/null
+++ b/sip/tdefile/kdiroperator.sip
@@ -0,0 +1,205 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KDirOperator : TQWidget
+{
+%TypeHeaderCode
+#include <kdiroperator.h>
+%End
+
+
+public:
+
+%If ( KDE_3_1_0 - )
+
+ enum ActionTypes
+ {
+ SortActions,
+ ViewActions,
+ NavActions,
+ FileActions,
+ AllActions
+ };
+
+%End
+
+ KDirOperator (const KURL& = KURL (), TQWidget* /TransferThis/ = 0, const char* = 0);
+ void setShowHiddenFiles (bool);
+ bool showHiddenFiles () const;
+ void close ();
+
+%If ( KDE_3_4_0 - )
+ virtual bool close (bool);
+%End
+
+ void setNameFilter (const TQString&);
+ const TQString& nameFilter () const;
+
+%If ( KDE_3_1_2 - )
+ void setMimeFilter (const TQStringList&);
+ TQStringList mimeFilter () const;
+ void clearFilter ();
+%End
+
+ KURL url () const;
+ void setURL (const KURL&, bool);
+ void setCurrentItem (const TQString&);
+ void setView (KFileView*);
+ const KFileView* view () const;
+ TQWidget* viewWidget () const;
+ void setView (KFile::FileView);
+ void setSorting (TQDir::SortSpec);
+ TQDir::SortSpec sorting () const;
+ bool isRoot () const;
+ KDirLister* dirLister () const;
+ KProgress* progressBar () const;
+ void setMode (KFile::Mode);
+ KFile::Mode mode () const;
+ void setPreviewWidget (const TQWidget*);
+ const KFileItemList* selectedItems () const;
+ bool isSelected (const KFileItem*) const;
+ int numDirs () const;
+ int numFiles () const;
+ KCompletion* completionObject () const;
+ KCompletion* dirCompletionObject () const;
+ KActionCollection* actionCollection () const;
+
+%If ( KDE_3_1_0 - )
+ void setViewConfig (TDEConfig*, const TQString&);
+ TDEConfig* viewConfig ();
+ TQString viewConfigGroup () const;
+%End
+
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+ void setOnlyDoubleClickSelectsFiles (bool);
+ bool onlyDoubleClickSelectsFiles () const;
+ bool mkdir (const TQString&, bool = 1);
+ TDEIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/;
+
+%If ( KDE_3_0_3 - )
+ TDEIO::DeleteJob* del (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/;
+%End
+
+ void clearHistory ();
+ void setEnableDirHighlighting (bool);
+ bool dirHighlighting () const;
+ bool dirOnlyMode () const;
+ static bool dirOnlyMode (uint);
+
+%If ( KDE_3_1_0 - )
+ void setupMenu (int);
+
+%If ( KDE_3_2_0 - )
+ virtual void setAcceptDrops (bool);
+ void setDropOptions (int);
+
+%If ( KDE_3_4_0 - )
+ TDEIO::CopyJob* trash (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1);
+%End
+
+%End
+
+%End
+
+
+protected:
+ virtual KFileView* createView (TQWidget* /Transfer/, KFile::FileView);
+ void setDirLister (KDirLister*);
+
+%If ( KDE_3_2_0 - )
+ virtual void resizeEvent (TQResizeEvent*);
+%End
+
+ void setupActions ();
+ void updateSortActions ();
+ void updateViewActions ();
+ void setupMenu ();
+ void prepareCompletionObjects ();
+ bool checkPreviewSupport ();
+
+public slots:
+ void back ();
+ void forward ();
+ void home ();
+ void cdUp ();
+ void updateDir ();
+ void rereadDir ();
+ void mkdir ();
+ void deleteSelected ();
+ void updateSelectionDependentActions ();
+ TQString makeCompletion (const TQString&);
+ TQString makeDirCompletion (const TQString&);
+
+%If ( KDE_3_4_0 - )
+ void trashSelected (KAction::ActivationReason, TQt::ButtonState);
+%End
+
+
+protected slots:
+ void resetCursor ();
+ void pathChanged ();
+ void insertNewFiles (const KFileItemList&);
+ void itemDeleted (KFileItem*);
+ void selectDir (const KFileItem*);
+ void selectFile (const KFileItem*);
+ void highlightFile (const KFileItem*);
+ virtual void activatedMenu (const KFileItem*, const TQPoint&);
+ void sortByName ();
+ void sortBySize ();
+ void sortByDate ();
+ void sortReversed ();
+ void toggleDirsFirst ();
+ void toggleIgnoreCase ();
+ void slotCompletionMatch (const TQString&);
+
+signals:
+ void urlEntered (const KURL&);
+ void updateInformation (int, int);
+ void completion (const TQString&);
+ void finishedLoading ();
+ void viewChanged (KFileView*);
+ void fileHighlighted (const KFileItem*);
+ void dirActivated (const KFileItem*);
+ void fileSelected (const KFileItem*);
+
+%If ( KDE_3_2_0 - )
+ void dropped (const KFileItem*, TQDropEvent*, const KURL::List&);
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+protected:
+
+%If ( - KDE_3_2_0 )
+ void resizeEvent (TQResizeEvent*);
+%End
+
+
+}; // class KDirOperator
+
diff --git a/sip/tdefile/kdirselectdialog.sip b/sip/tdefile/kdirselectdialog.sip
new file mode 100644
index 0000000..f026846
--- /dev/null
+++ b/sip/tdefile/kdirselectdialog.sip
@@ -0,0 +1,71 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KDirSelectDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <kdirselectdialog.h>
+%End
+
+
+public:
+ KDirSelectDialog (const TQString& = TQString ::null , bool = 0, TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0);
+ KURL url () const;
+ KFileTreeView* view () const;
+ bool localOnly () const;
+ static KURL selectDirectory (const TQString& = TQString ::null , bool = 0, TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+%If ( KDE_3_1_0 - )
+ TQString startDir () const;
+%End
+
+
+public slots:
+
+%If ( KDE_3_1_0 - )
+ void setCurrentURL (const KURL&);
+%End
+
+
+protected slots:
+
+%If ( KDE_3_5_0 - )
+ virtual void slotUser1 ();
+%End
+
+
+protected:
+
+%If ( KDE_3_1_0 - )
+ virtual void accept ();
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KDirSelectDialog
+
diff --git a/sip/tdefile/kdirsize.sip b/sip/tdefile/kdirsize.sip
new file mode 100644
index 0000000..ae05e31
--- /dev/null
+++ b/sip/tdefile/kdirsize.sip
@@ -0,0 +1,85 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KDirSize : TDEIO::Job
+{
+%TypeHeaderCode
+#include <kdirsize.h>
+%End
+
+
+protected:
+ KDirSize (const KURL&);
+ KDirSize (const KFileItemList&);
+ ~KDirSize ();
+
+public:
+ TDEIO::filesize_t totalSize () const;
+
+%If ( KDE_3_3_0 - )
+ TDEIO::filesize_t totalFiles () const;
+ TDEIO::filesize_t totalSubdirs () const;
+%End
+
+ static KDirSize* dirSizeJob (const KURL&);
+ static KDirSize* dirSizeJob (const KFileItemList&);
+
+%If ( KDE_3_1_2 - )
+ static TDEIO::filesize_t dirSize (const KURL&);
+%End
+
+
+protected:
+ void setSync ();
+ void startNextJob (const KURL&);
+
+protected slots:
+ virtual void slotResult (TDEIO::Job*);
+ void slotEntries (TDEIO::Job*, const TDEIO::UDSEntryList&);
+ void processList ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+protected:
+
+%If ( - KDE_3_0_1 )
+//ig longlong totalSize64 ();
+%End
+
+
+%If ( - KDE_3_1_2 )
+ static ulong dirSize (const KURL&);
+
+%If ( - KDE_3_0_1 )
+//ig static longlong dirSize64 (const KURL&);
+%End
+
+%End
+
+
+}; // class KDirSize
+
diff --git a/sip/tdefile/kdiskfreesp.sip b/sip/tdefile/kdiskfreesp.sip
new file mode 100644
index 0000000..53d2a7f
--- /dev/null
+++ b/sip/tdefile/kdiskfreesp.sip
@@ -0,0 +1,49 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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.
+
+
+%If ( KDE_3_1_0 - )
+
+class KDiskFreeSp : TQObject
+{
+%TypeHeaderCode
+#include <kdiskfreesp.h>
+%End
+
+
+public:
+ KDiskFreeSp (TQObject* /TransferThis/ = 0, const char* = 0);
+ int readDF (const TQString&);
+ static KDiskFreeSp* findUsageInfo (const TQString&);
+
+signals:
+ void foundMountPoint (const TQString&, ulong, ulong, ulong);
+//ig void foundMountPoint (const ulong&, const ulong&, const ulong&, const TQString&);
+ void done ();
+
+}; // class KDiskFreeSp
+
+%End
+
diff --git a/sip/tdefile/kencodingfiledialog.sip b/sip/tdefile/kencodingfiledialog.sip
new file mode 100644
index 0000000..7528fd9
--- /dev/null
+++ b/sip/tdefile/kencodingfiledialog.sip
@@ -0,0 +1,65 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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.
+
+
+%If ( KDE_3_2_0 - )
+
+class KEncodingFileDialog : KFileDialog
+{
+%TypeHeaderCode
+#include <kencodingfiledialog.h>
+%End
+
+
+public:
+
+ class Result
+ {
+
+ public:
+ TQStringList fileNames;
+ KURL::List URLs;
+ TQString encoding;
+
+ }; // class Result
+
+
+public:
+ KEncodingFileDialog (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , KFileDialog::OperationMode = KFileDialog ::Opening , TQWidget* /TransferThis/ = 0, const char* = "", bool = 1);
+ TQString selectedEncoding () const;
+ static KEncodingFileDialog::Result getOpenFileNameAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KEncodingFileDialog::Result getOpenFileNamesAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KEncodingFileDialog::Result getOpenURLAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KEncodingFileDialog::Result getOpenURLsAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KEncodingFileDialog::Result getSaveFileNameAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KEncodingFileDialog::Result getSaveURLAndEncoding (const TQString& = TQString ::null , const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+protected:
+ virtual void virtual_hook (int, void*);
+
+}; // class KEncodingFileDialog
+
+%End
+
diff --git a/sip/tdefile/kicondialog.sip b/sip/tdefile/kicondialog.sip
new file mode 100644
index 0000000..eebdcb0
--- /dev/null
+++ b/sip/tdefile/kicondialog.sip
@@ -0,0 +1,131 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KIconCanvas : KIconView
+{
+%TypeHeaderCode
+#include <kicondialog.h>
+%End
+
+
+public:
+ KIconCanvas (TQWidget* /TransferThis/ = 0, const char* = 0);
+ void loadFiles (const TQStringList&);
+ TQString getCurrent ();
+
+public slots:
+ void stopLoading ();
+
+signals:
+//ig void nameChanged (TQString);
+ void startLoading (int);
+ void progress (int);
+ void finished ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KIconCanvas
+
+
+class KIconDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <kicondialog.h>
+%End
+
+
+public:
+ KIconDialog (TQWidget* /TransferThis/ = 0, const char* = 0);
+ KIconDialog (KIconLoader*, TQWidget* /TransferThis/ = 0, const char* = 0);
+ void setStrictIconSize (bool);
+ bool strictIconSize () const;
+
+%If ( KDE_3_1_0 - )
+ void setCustomLocation (const TQString&);
+%End
+
+ void setIconSize (int);
+ int iconSize () const;
+ TQString selectIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0);
+ void setup (KIcon::Group, KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0);
+
+%If ( KDE_3_3_0 - )
+ void setup (KIcon::Group, KIcon::Context, bool, int, bool, bool, bool);
+%End
+
+ TQString openDialog ();
+
+%If ( KDE_3_2_0 - )
+ void showDialog ();
+%End
+
+ static TQString getIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0, TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+signals:
+
+%If ( KDE_3_2_0 - )
+ void newIconName (const TQString&);
+%End
+
+
+protected slots:
+
+%If ( KDE_3_2_0 - )
+ void slotOk ();
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KIconDialog
+
+
+class KIconButton : TQPushButton
+{
+%TypeHeaderCode
+#include <kicondialog.h>
+%End
+
+
+public:
+ KIconButton (TQWidget* /TransferThis/ = 0, const char* = 0);
+ KIconButton (KIconLoader*, TQWidget* /TransferThis/, const char* = 0);
+ void setStrictIconSize (bool);
+ bool strictIconSize () const;
+ void setIconType (KIcon::Group, KIcon::Context, bool = 0);
+ void setIcon (const TQString&);
+ void resetIcon ();
+ const TQString icon ();
+ void setIconSize (int);
+ int iconSize () const;
+
+signals:
+//ig void iconChanged (TQString);
+
+}; // class KIconButton
+
diff --git a/sip/tdefile/kimagefilepreview.sip b/sip/tdefile/kimagefilepreview.sip
new file mode 100644
index 0000000..8c8cbe7
--- /dev/null
+++ b/sip/tdefile/kimagefilepreview.sip
@@ -0,0 +1,57 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KImageFilePreview : KPreviewWidgetBase
+{
+%TypeHeaderCode
+#include <jobclasses.h>
+#include <kimagefilepreview.h>
+%End
+
+
+public:
+ KImageFilePreview (TQWidget* /TransferThis/);
+ virtual TQSize sizeHint () const;
+
+public slots:
+ virtual void showPreview (const KURL&);
+ virtual void clearPreview ();
+
+protected slots:
+ void showPreview ();
+ void showPreview (const KURL&, bool);
+ void toggleAuto (bool);
+ virtual void gotPreview (const KFileItem*, const TQPixmap&);
+
+protected:
+ virtual void resizeEvent (TQResizeEvent*);
+ virtual TDEIO::PreviewJob* createJob (const KURL&, int, int);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KImageFilePreview
+
diff --git a/sip/tdefile/knotifydialog.sip b/sip/tdefile/knotifydialog.sip
new file mode 100644
index 0000000..4f20a13
--- /dev/null
+++ b/sip/tdefile/knotifydialog.sip
@@ -0,0 +1,314 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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.
+
+
+%If ( KDE_3_1_0 - )
+
+class KNotifyDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <knotifydialog.h>
+%End
+
+
+public:
+ KNotifyDialog (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const TDEAboutData* = 0);
+%MethodCode
+//takes parent | (TQWidget = 0) | name | (char = 0) | modal | (bool = 1) | aboutData | (TDEAboutData = see note)
+//doc
+// The default value for aboutData in C++ is TDEGlobal::instance()->aboutData()
+// which sip is unable to parse. Since it's the last arg in the list, it has
+// to have a default value, and since the C++ code will fail if the default
+// value really is zero, the sip code silently substitutes the real default
+// value for a default value of 0 supplied from Python.
+//end
+
+ if (a3 == 0)
+ a3 = (TDEAboutData *)TDEGlobal::instance ()->aboutData ();
+
+ Py_BEGIN_ALLOW_THREADS
+ sipCpp = new sipKNotifyDialog (a0, a1, a2, a3);
+ Py_END_ALLOW_THREADS
+%End
+
+ static int configure (TQWidget* /Transfer/ = 0, const char* = 0, const TDEAboutData* = 0);
+%MethodCode
+//returns (int)
+//takes parent | (TQWidget = 0) | name | (a Python string = "") | aboutData | (TDEAboutData = see note)
+//doc
+// The default value for aboutData in C++ is TDEGlobal::instance()->aboutData()
+// which sip is unable to parse. Since it's the last arg in the list, it has
+// to have a default value, and since the C++ code will fail if the default
+// value really is zero, the sip code silently substitutes the real default
+// value for a default value of 0 supplied from Python.
+//end
+
+ if (a2 == 0)
+ a2 = (TDEAboutData *)TDEGlobal::instance ()->aboutData ();
+
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = KNotifyDialog::configure (a0, a1, a2);
+ Py_END_ALLOW_THREADS
+%End
+
+ virtual void addApplicationEvents (const char*);
+ virtual void addApplicationEvents (const TQString&);
+ virtual void clearApplicationEvents ();
+
+}; // class KNotifyDialog
+
+%End
+
+
+%If ( KDE_3_1_0 - )
+namespace KNotify
+{
+typedef TQPtrList<KNotify::Event> EventList;
+//ig typedef TQPtrListIterator<KNotify::Application> ApplicationListIterator;
+//ig typedef TQPtrListIterator<KNotify::Event> EventListIterator;
+
+class Application
+{
+%TypeHeaderCode
+#include <knotifydialog.h>
+%End
+
+
+public:
+ Application (const TQString&);
+ TQString text () const;
+ TQString icon () const;
+ const KNotify::EventList& eventList ();
+ void reloadEvents (bool = 0);
+ void save ();
+ TQString appName () const;
+
+}; // class Application
+
+
+%If ( KDE_3_2_0 - )
+
+//ig class KNotifyWidget : KNotifyWidgetBase;
+
+%End
+
+
+class Event
+{
+%TypeHeaderCode
+#include <knotifydialog.h>
+%End
+
+
+public:
+ TQString text () const;
+ int presentation;
+ int dontShow;
+ TQString logfile;
+ TQString soundfile;
+ TQString commandline;
+ const KNotify::Application* application () const;
+
+private:
+ Event (const KNotify::Application*);
+
+}; // class Event
+
+
+//ig class ListViewItem : TQListViewItem;
+
+
+%If ( - KDE_3_2_0 )
+
+class KNotifyWidget : KNotifyWidgetBase
+{
+%TypeHeaderCode
+#include <knotifywidgetbase.h>
+#include <knotifydialog.h>
+%End
+
+
+public:
+ KNotifyWidget (TQWidget* /TransferThis/ = 0, const char* = 0, bool = 0);
+ KListView* eventsView ();
+ void addVisibleApp (KNotify::Application*);
+ KNotify::Application* addApplicationEvents (const TQString&);
+ void resetDefaults (bool);
+ void sort (bool = 1);
+
+public slots:
+ virtual void clear ();
+ virtual void clearVisible ();
+ virtual void save ();
+ virtual void showAdvanced (bool);
+ void toggleAdvanced ();
+
+signals:
+ void changed (bool);
+
+protected:
+ KNotify::Event* currentEvent ();
+ virtual void showEvent (TQShowEvent*);
+ virtual void enableAll (int, bool);
+ void reload (bool = 0);
+
+protected slots:
+ void playSound ();
+
+public:
+ SIP_PYLIST visibleApps ();
+%MethodCode
+//returns (a Python list of KNotify.Application)
+ TQPtrList<KNotify::Application> applist;
+
+ Py_BEGIN_ALLOW_THREADS
+ applist = sipCpp->visibleApps ();
+ Py_END_ALLOW_THREADS
+
+ KNotify::Application *app;
+ PyObject *inst;
+
+ for (app = applist.first (); app != 0; app = applist.next () )
+ {
+ inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL);
+ PyList_Append (sipRes, inst);
+ }
+%End
+
+ SIP_PYLIST allApps ();
+%MethodCode
+//returns (a Python list of KNotify.Application)
+ TQPtrList<KNotify::Application> applist;
+
+ Py_BEGIN_ALLOW_THREADS
+ applist = sipCpp->allApps ();
+ Py_END_ALLOW_THREADS
+
+ KNotify::Application *app;
+ PyObject *inst;
+
+ for(app = applist.first (); app != 0; app = applist.next () )
+ {
+ inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL);
+ PyList_Append (sipRes, inst);
+ }
+%End
+
+
+}; // class KNotifyWidget
+
+%End
+
+//force
+
+class ApplicationList
+{
+%TypeHeaderCode
+#include <knotifydialog.h>
+%End
+
+
+}; // class ApplicationList
+
+//end
+}; // namespace KNotify
+
+%End
+
+
+
+%If (KDE_3_1_0 - )
+%MappedType TQPtrList<KNotify::Event>
+//converts a Python list of KNotify.Event
+{
+%TypeHeaderCode
+#include <tqptrlist.h>
+#include <knotifydialog.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New (0);
+
+ PyObject *pylist;
+
+ // Create the list
+
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KNotify::Event> *cpplist = (TQPtrList<KNotify::Event> *)sipCpp;
+ KNotify::Event *cpp;
+ PyObject *inst;
+
+ // the loop depends on the type of iterator the tmeplate makes available
+ for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () )
+ {
+ if (((inst = sipConvertFromInstance (cpp, sipClass_KNotify_Event, sipTransferObj)) == NULL)
+ || PyList_Append (pylist, inst) < 0)
+ {
+ Py_DECREF (pylist);
+ return NULL;
+ }
+ }
+
+ return pylist;
+%End
+
+%ConvertToTypeCode
+ if (sipIsErr == NULL)
+ return PyList_Check(sipPy);
+
+ TQPtrList<KNotify::Event> *cpplist = new TQPtrList<KNotify::Event>;
+
+ PyObject *elem;
+ KNotify::Event *cpp;
+ int iserr = 0;
+
+ for (int i = 0; i < PyList_Size (sipPy); i++)
+ {
+ elem = PyList_GET_ITEM (sipPy, i);
+ cpp = (KNotify::Event *)sipForceConvertToType(elem, sipType_KNotify_Event, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cpplist;
+ return 0;
+ }
+
+ cpplist->append (cpp);
+ }
+
+ *sipCppPtr = cpplist;
+
+ return 1;
+%End
+};
+%End
+
+
diff --git a/sip/tdefile/knotifywidgetbase.sip b/sip/tdefile/knotifywidgetbase.sip
new file mode 100644
index 0000000..d5ec44d
--- /dev/null
+++ b/sip/tdefile/knotifywidgetbase.sip
@@ -0,0 +1,64 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_4
+
+
+// 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.
+
+
+%If ( KDE_3_1_0 - KDE_3_2_0 )
+
+class KNotifyWidgetBase : TQWidget
+{
+%TypeHeaderCode
+#include <knotifywidgetbase.h>
+%End
+
+
+public:
+ KNotifyWidgetBase (TQWidget*/TransferThis/ = 0, const char* = 0, WFlags = 0);
+ KListView* m_listview;
+ TQGroupBox* m_actionsBox;
+ KURLRequester* m_logfilePath;
+ KURLRequester* m_soundPath;
+ TQCheckBox* m_logToFile;
+ KURLRequester* m_executePath;
+ TQCheckBox* m_playSound;
+ TQPushButton* m_playButton;
+ TQCheckBox* m_execute;
+ TQCheckBox* m_messageBox;
+ TQCheckBox* m_passivePopup;
+ TQCheckBox* m_stderr;
+ TQGroupBox* m_controlsBox;
+ TQCheckBox* m_affectAllApps;
+ TQPushButton* m_buttonDisable;
+ TQPushButton* m_buttonEnable;
+ KComboBox* m_comboEnable;
+ KComboBox* m_comboDisable;
+ TQPushButton* m_extension;
+ TQPushButton* m_playerButton;
+
+protected:
+
+}; // class KNotifyWidgetBase
+
+%End
+
diff --git a/sip/tdefile/kopenwith.sip b/sip/tdefile/kopenwith.sip
new file mode 100644
index 0000000..a85e671
--- /dev/null
+++ b/sip/tdefile/kopenwith.sip
@@ -0,0 +1,146 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KOpenWithDlg : TQDialog
+{
+%TypeHeaderCode
+#include <kopenwith.h>
+%End
+
+
+public:
+ KOpenWithDlg (const KURL::List&, TQWidget* /TransferThis/ = 0);
+ KOpenWithDlg (const KURL::List&, const TQString&, const TQString&, TQWidget* /TransferThis/ = 0);
+ KOpenWithDlg (const TQString&, const TQString&, TQWidget* /TransferThis/ = 0);
+
+%If ( KDE_3_1_0 - )
+ KOpenWithDlg (TQWidget* /TransferThis/ = 0);
+%End
+
+ TQString text ();
+
+%If ( KDE_3_2_0 - )
+ void hideNoCloseOnExit ();
+ void hideRunInTerminal ();
+%End
+
+ KService::Ptr service ();
+
+%If ( KDE_3_2_0 - )
+ void setSaveNewApplications (bool);
+%End
+
+
+public slots:
+ void slotClear ();
+ void slotSelected (const TQString&, const TQString&);
+ void slotHighlighted (const TQString&, const TQString&);
+ void slotTextChanged ();
+ void slotTerminalToggled (bool);
+ void slotDbClick ();
+ void slotOK ();
+
+protected slots:
+ virtual void accept ();
+
+protected:
+ void setServiceType (const KURL::List&);
+ void init (const TQString&, const TQString&);
+
+}; // class KOpenWithDlg
+
+
+class KFileOpenWithHandler : KOpenWithHandler
+{
+%TypeHeaderCode
+#include <kopenwith.h>
+%End
+
+
+public:
+ KFileOpenWithHandler ();
+ virtual bool displayOpenWithDialog (const KURL::List&);
+
+}; // class KFileOpenWithHandler
+
+
+%If ( - KDE_3_1_0 )
+
+class KAppTreeListItem : TQListViewItem
+{
+%TypeHeaderCode
+#include <kopenwith.h>
+%End
+
+
+protected:
+ TQString key (int, bool) const;
+ void init (const TQPixmap&, bool, bool, TQString, TQString);
+
+public:
+ KAppTreeListItem (KListView* /TransferThis/, const TQString&, const TQPixmap&, bool, bool, TQString, TQString);
+ KAppTreeListItem (TQListViewItem* /TransferThis/, const TQString&, const TQPixmap&, bool, bool, TQString, TQString);
+ bool isDirectory ();
+
+protected:
+ virtual void activate ();
+ virtual void setOpen (bool);
+
+}; // class KAppTreeListItem
+
+%End
+
+
+%If ( - KDE_3_1_0 )
+
+class TDEApplicationTree : KListView
+{
+%TypeHeaderCode
+#include <kopenwith.h>
+%End
+
+
+public:
+ TDEApplicationTree (TQWidget* /TransferThis/);
+ void addDesktopGroup (TQString, KAppTreeListItem* = 0);
+ KAppTreeListItem* it;
+ bool isDirSel ();
+
+protected:
+ void resizeEvent (TQResizeEvent*);
+
+public slots:
+ void slotItemHighlighted (TQListViewItem*);
+ void slotSelectionChanged (TQListViewItem*);
+
+signals:
+ void selected (const TQString&, const TQString&);
+ void highlighted (const TQString&, const TQString&);
+
+}; // class TDEApplicationTree
+
+%End
+
diff --git a/sip/tdefile/kpreviewwidgetbase.sip b/sip/tdefile/kpreviewwidgetbase.sip
new file mode 100644
index 0000000..eb49029
--- /dev/null
+++ b/sip/tdefile/kpreviewwidgetbase.sip
@@ -0,0 +1,57 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KPreviewWidgetBase : TQWidget
+{
+%TypeHeaderCode
+#include <kpreviewwidgetbase.h>
+%End
+
+
+public:
+ KPreviewWidgetBase (TQWidget* /TransferThis/, const char* = 0);
+
+public slots:
+ virtual void showPreview (const KURL&) = 0;
+ virtual void clearPreview () = 0;
+
+%If ( KDE_3_2_0 - )
+ TQStringList supportedMimeTypes () const;
+%End
+
+
+protected:
+
+%If ( KDE_3_2_0 - )
+ void setSupportedMimeTypes (const TQStringList&);
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KPreviewWidgetBase
+
diff --git a/sip/tdefile/kpropertiesdialog.sip b/sip/tdefile/kpropertiesdialog.sip
new file mode 100644
index 0000000..63047e6
--- /dev/null
+++ b/sip/tdefile/kpropertiesdialog.sip
@@ -0,0 +1,304 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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);
+ 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);
+
+%If ( KDE_3_4_0 - )
+ 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);
+%End
+
+ void insertPlugin (KPropsDlgPlugin*);
+ const KURL& kurl () const;
+ KFileItem* item ();
+ KFileItemList items () const;
+ KDialogBase* dialog ();
+ const KURL& currentDir () const;
+ const TQString& defaultName () const;
+ void updateUrl (const KURL&);
+ void rename (const TQString&);
+ void abortApplying ();
+
+%If ( KDE_3_1_0 - )
+ void showFileSharingPage ();
+
+%If ( KDE_3_3_0 - )
+ void setFileSharingPage (TQWidget*);
+%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
+
+
+class KPropsDlgPlugin : TQObject
+{
+%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
+
+ void slotCopyFinished (TDEIO::Job*);
+ void slotFileRenamed (TDEIO::Job*, const KURL&, const KURL&);
+
+%If ( KDE_3_2_0 - )
+ void slotDirSizeUpdate ();
+%End
+
+ void slotDirSizeFinished (TDEIO::Job*);
+ void slotFoundMountPoint (const TQString&, ulong, ulong, ulong);
+ 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
+
+
+class TDEApplicationPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropertiesdialog.h>
+%End
+
+
+public:
+ TDEApplicationPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+public slots:
+ void slotDelExtension ();
+ void slotAddExtension ();
+
+}; // class TDEApplicationPropsPlugin
+
diff --git a/sip/tdefile/kpropsdlg.sip b/sip/tdefile/kpropsdlg.sip
new file mode 100644
index 0000000..f245a6f
--- /dev/null
+++ b/sip/tdefile/kpropsdlg.sip
@@ -0,0 +1,208 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_1
+
+
+// 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 <kpropsdlg.h>
+%End
+
+
+public:
+ static bool canDisplay (KFileItemList);
+ 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 = -1, 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);
+ void insertPlugin (KPropsDlgPlugin*);
+ const KURL& kurl () const;
+ KFileItem* item ();
+ KFileItemList items () const;
+ KDialogBase* dialog ();
+ const KURL& currentDir () const;
+ const TQString& defaultName () const;
+ void updateUrl (const KURL&);
+ void rename (const TQString&);
+ void abortApplying ();
+
+public slots:
+ virtual void slotOk ();
+ virtual void slotCancel ();
+
+signals:
+ void propertiesClosed ();
+ void applied ();
+ void canceled ();
+
+}; // class KPropertiesDialog
+
+
+class KPropsDlgPlugin : TQObject
+{
+%TypeHeaderCode
+#include <kpropsdlg.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:
+
+}; // class KPropsDlgPlugin
+
+
+class KFilePropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KFilePropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+ void postApplyChanges ();
+
+protected slots:
+ void slotCopyFinished (TDEIO::Job*);
+ void slotFileRenamed (TDEIO::Job*, const KURL&, const KURL&);
+ void slotDirSizeFinished (TDEIO::Job*);
+ void slotFoundMountPoint (const TQString&, ulong, ulong, ulong);
+ void slotSizeStop ();
+ void slotSizeDetermine ();
+
+}; // class KFilePropsPlugin
+
+
+class KFilePermissionsPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KFilePermissionsPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+}; // class KFilePermissionsPropsPlugin
+
+
+class KExecPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KExecPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+public slots:
+ void slotBrowseExec ();
+
+}; // class KExecPropsPlugin
+
+
+class KURLPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KURLPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+}; // class KURLPropsPlugin
+
+
+class TDEApplicationPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ TDEApplicationPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+public slots:
+ void slotDelExtension ();
+ void slotAddExtension ();
+
+}; // class TDEApplicationPropsPlugin
+
+
+class KBindingPropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KBindingPropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+}; // class KBindingPropsPlugin
+
+
+class KDevicePropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <kpropsdlg.h>
+%End
+
+
+public:
+ KDevicePropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (KFileItemList);
+
+}; // class KDevicePropsPlugin
+
diff --git a/sip/tdefile/krecentdirs.sip b/sip/tdefile/krecentdirs.sip
new file mode 100644
index 0000000..ef79698
--- /dev/null
+++ b/sip/tdefile/krecentdirs.sip
@@ -0,0 +1,40 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_5_0
+
+
+// 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 KRecentDirs
+{
+%TypeHeaderCode
+#include <krecentdirs.h>
+%End
+
+
+public:
+ static TQStringList list (const TQString&);
+ static TQString dir (const TQString&);
+ static void add (const TQString&, const TQString&);
+
+}; // class KRecentDirs
+
diff --git a/sip/tdefile/krecentdocument.sip b/sip/tdefile/krecentdocument.sip
new file mode 100644
index 0000000..c81a337
--- /dev/null
+++ b/sip/tdefile/krecentdocument.sip
@@ -0,0 +1,44 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KRecentDocument
+{
+%TypeHeaderCode
+#include <krecentdocument.h>
+%End
+
+
+public:
+ static TQStringList recentDocuments ();
+ static void add (const KURL&);
+ static void add (const KURL&, const TQString&);
+ static void add (const TQString&, bool = 0);
+ static void clear ();
+ static int maximumItems ();
+ static TQString recentDocumentDirectory ();
+
+}; // class KRecentDocument
+
diff --git a/sip/tdefile/kurlbar.sip b/sip/tdefile/kurlbar.sip
new file mode 100644
index 0000000..cbfc1c4
--- /dev/null
+++ b/sip/tdefile/kurlbar.sip
@@ -0,0 +1,213 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KURLBarItem : TQListBoxPixmap
+{
+%TypeHeaderCode
+#include <kurlbar.h>
+%End
+
+
+public:
+
+%If ( KDE_3_2_0 - )
+ KURLBarItem (KURLBar* /TransferThis/, const KURL&, bool, const TQString& = TQString ::null , const TQString& = TQString ::null , KIcon::Group = KIcon ::Panel );
+%End
+
+ KURLBarItem (KURLBar* /TransferThis/, const KURL&, const TQString& = TQString ::null , const TQString& = TQString ::null , KIcon::Group = KIcon ::Panel );
+ void setURL (const KURL&);
+ void setIcon (const TQString&, KIcon::Group = KIcon ::Panel );
+ void setDescription (const TQString&);
+ void setToolTip (const TQString&);
+
+%If ( KDE_3_0_1 - )
+ TQSize sizeHint () const;
+%End
+
+ virtual int width (const TQListBox*) const;
+ virtual int height (const TQListBox*) const;
+ const KURL& url () const;
+ const TQString& description () const;
+ const TQString& icon () const;
+ TQString toolTip () const;
+ KIcon::Group iconGroup () const;
+ virtual const TQPixmap* pixmap () const;
+ void setApplicationLocal (bool);
+ bool applicationLocal () const;
+
+%If ( KDE_3_2_0 - )
+ bool isPersistent () const;
+%End
+
+
+protected:
+ virtual void paint (TQPainter*);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KURLBarItem
+
+
+class KURLBar : TQFrame
+{
+%TypeHeaderCode
+#include <kurlbar.h>
+%End
+
+
+public:
+ KURLBar (bool, TQWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0);
+ virtual KURLBarItem* insertItem (const KURL&, const TQString&, bool = 1, const TQString& = TQString ::null , KIcon::Group = KIcon ::Panel );
+
+%If ( KDE_3_2_0 - )
+ virtual KURLBarItem* insertDynamicItem (const KURL&, const TQString&, const TQString& = TQString ::null , KIcon::Group = KIcon ::Panel );
+%End
+
+ virtual void setOrientation (TQt::Orientation);
+ TQt::Orientation orientation () const;
+ virtual void setListBox (KURLBarListBox*);
+ KURLBarListBox* listBox () const;
+ virtual void setIconSize (int);
+ int iconSize () const;
+ virtual void clear ();
+ virtual TQSize sizeHint () const;
+ virtual TQSize minimumSizeHint () const;
+ virtual void readConfig (TDEConfig*, const TQString&);
+ virtual void writeConfig (TDEConfig*, const TQString&);
+ virtual void readItem (int, TDEConfig*, bool);
+ virtual void writeItem (KURLBarItem*, int, TDEConfig*, bool);
+ KURLBarItem* currentItem () const;
+ KURL currentURL () const;
+ bool isModified () const;
+
+%If ( KDE_3_1_1 - )
+ bool isImmutable () const;
+%End
+
+
+%If ( KDE_3_0_1 - )
+ bool isVertical () const;
+%End
+
+
+public slots:
+ virtual void setCurrentItem (const KURL&);
+
+signals:
+ void activated (const KURL&);
+
+protected:
+ virtual bool addNewItem ();
+ virtual bool editItem (KURLBarItem*);
+ virtual void resizeEvent (TQResizeEvent*);
+
+%If ( KDE_3_4_0 - )
+ virtual void paletteChange (const TQPalette&);
+%End
+
+
+protected slots:
+ virtual void slotContextMenuRequested (TQListBoxItem*, const TQPoint&);
+ virtual void slotSelected (TQListBoxItem*);
+ virtual void slotDropped (TQDropEvent*);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+protected:
+
+%If ( - KDE_3_0_1 )
+ bool isVertical () const;
+%End
+
+
+}; // class KURLBar
+
+
+class KURLBarListBox : KListBox
+{
+%TypeHeaderCode
+#include <kurlbar.h>
+%End
+
+
+public:
+ KURLBarListBox (TQWidget* /TransferThis/ = 0, const char* = 0);
+ virtual void setOrientation (TQt::Orientation);
+ TQt::Orientation orientation () const;
+
+%If ( KDE_3_0_1 - )
+ bool isVertical () const;
+%End
+
+
+signals:
+ void dropped (TQDropEvent*);
+
+protected:
+ virtual TQDragObject* dragObject ();
+ virtual void contentsDragEnterEvent (TQDragEnterEvent*);
+ virtual void contentsDropEvent (TQDropEvent*);
+
+%If ( KDE_3_2_0 - )
+ virtual void contextMenuEvent (TQContextMenuEvent*);
+
+%If ( KDE_3_4_0 - )
+ virtual void paintEvent (TQPaintEvent*);
+%End
+
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KURLBarListBox
+
+
+class KURLBarItemDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <kurlbar.h>
+%End
+
+
+public:
+ static bool getInformation (bool, KURL&, TQString&, TQString&, bool&, int, TQWidget* /Transfer/ = 0);
+ KURLBarItemDialog (bool, const KURL&, const TQString&, TQString, bool = 1, int = KIcon ::SizeMedium , TQWidget* /TransferThis/ = 0, const char* = 0);
+ KURL url () const;
+ TQString description () const;
+ TQString icon () const;
+ bool applicationLocal () const;
+
+protected:
+
+public slots:
+ void urlChanged (const TQString&);
+
+}; // class KURLBarItemDialog
+
diff --git a/sip/tdefile/kurlcombobox.sip b/sip/tdefile/kurlcombobox.sip
new file mode 100644
index 0000000..2f3079a
--- /dev/null
+++ b/sip/tdefile/kurlcombobox.sip
@@ -0,0 +1,80 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KURLComboBox : KComboBox
+{
+%TypeHeaderCode
+#include <kurlcombobox.h>
+%End
+
+
+public:
+
+ enum Mode
+ {
+ Files,
+ Directories,
+ Both
+ };
+
+
+ enum OverLoadResolving
+ {
+ RemoveTop,
+ RemoveBottom
+ };
+
+ KURLComboBox (KURLComboBox::Mode, TQWidget* /TransferThis/ = 0, const char* = 0);
+ KURLComboBox (KURLComboBox::Mode, bool, TQWidget* /TransferThis/ = 0, const char* = 0);
+ void setURL (const KURL&);
+ void setURLs (TQStringList);
+ void setURLs (TQStringList, KURLComboBox::OverLoadResolving);
+ TQStringList urls () const;
+ void setMaxItems (int);
+ int maxItems () const;
+ void addDefaultURL (const KURL&, const TQString& = TQString ::null );
+ void addDefaultURL (const KURL&, const TQPixmap&, const TQString& = TQString ::null );
+ void setDefaults ();
+ void removeURL (const KURL&, bool = 1);
+
+signals:
+ void urlActivated (const KURL&);
+
+protected slots:
+ void slotActivated (int);
+
+protected:
+
+//ig class _KURLComboItem;
+
+//ig typedef KURLComboBox::_KURLComboItem KURLComboItem;
+ void init (KURLComboBox::Mode);
+//ig void insertURLItem (const KURLComboBox::KURLComboItem*);
+ TQPixmap getPixmap (const KURL&) const;
+//ig void updateItem (const KURLComboBox::KURLComboItem*, int, const TQPixmap&);
+
+}; // class KURLComboBox
+
diff --git a/sip/tdefile/kurlrequester.sip b/sip/tdefile/kurlrequester.sip
new file mode 100644
index 0000000..5fee9c5
--- /dev/null
+++ b/sip/tdefile/kurlrequester.sip
@@ -0,0 +1,112 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KURLRequester : TQHBox
+{
+%TypeHeaderCode
+#include <kurlrequester.h>
+%End
+
+
+public:
+ KURLRequester (TQWidget* /TransferThis/ = 0, const char* = 0);
+ KURLRequester (const TQString&, TQWidget* /TransferThis/ = 0, const char* = 0);
+ KURLRequester (TQWidget*, TQWidget* /TransferThis/, const char* = 0);
+ TQString url () const;
+ void setShowLocalProtocol (bool);
+ void setMode (uint);
+
+%If ( KDE_3_3_0 - )
+ uint mode () const;
+%End
+
+ void setFilter (const TQString&);
+
+%If ( KDE_3_3_0 - )
+ TQString filter () const;
+%End
+
+ bool showLocalProtocol () const;
+ virtual KFileDialog* fileDialog () const;
+ KLineEdit* lineEdit () const;
+ KComboBox* comboBox () const;
+ KPushButton* button () const;
+ KURLCompletion* completionObject () const;
+
+%If ( KDE_3_1_0 - )
+ KEditListBox::CustomEditor customEditor ();
+%End
+
+
+public slots:
+ void setURL (const TQString&);
+
+%If ( KDE_3_4_0 - )
+ void setKURL (const KURL&);
+%End
+
+
+%If ( KDE_3_1_0 - )
+ virtual void setCaption (const TQString&);
+%End
+
+ void clear ();
+
+signals:
+ void textChanged (const TQString&);
+ void returnPressed ();
+ void returnPressed (const TQString&);
+ void openFileDialog (KURLRequester*);
+ void urlSelected (const TQString&);
+
+protected:
+ void init ();
+
+protected slots:
+ void slotOpenDialog ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KURLRequester
+
+
+%If ( KDE_3_2_0 - )
+
+class KURLComboRequester : KURLRequester
+{
+%TypeHeaderCode
+#include <kurlrequester.h>
+%End
+
+
+public:
+ KURLComboRequester (TQWidget* /TransferThis/ = 0, const char* = 0);
+
+}; // class KURLComboRequester
+
+%End
+
diff --git a/sip/tdefile/kurlrequesterdlg.sip b/sip/tdefile/kurlrequesterdlg.sip
new file mode 100644
index 0000000..62177af
--- /dev/null
+++ b/sip/tdefile/kurlrequesterdlg.sip
@@ -0,0 +1,43 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KURLRequesterDlg : KDialogBase
+{
+%TypeHeaderCode
+#include <kurlrequesterdlg.h>
+%End
+
+
+public:
+ KURLRequesterDlg (const TQString&, TQWidget* /TransferThis/, const char*, bool = 1);
+ KURLRequesterDlg (const TQString&, const TQString&, TQWidget* /TransferThis/, const char*, bool = 1);
+ KURL selectedURL () const;
+ static KURL getURL (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ KFileDialog* fileDialog ();
+ KURLRequester* urlRequester ();
+
+}; // class KURLRequesterDlg
+
diff --git a/sip/tdefile/tdefile-kde310.diff b/sip/tdefile/tdefile-kde310.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde310.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde311.diff b/sip/tdefile/tdefile-kde311.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde311.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde312.diff b/sip/tdefile/tdefile-kde312.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde312.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde313.diff b/sip/tdefile/tdefile-kde313.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde313.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde314.diff b/sip/tdefile/tdefile-kde314.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde314.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde315.diff b/sip/tdefile/tdefile-kde315.diff
new file mode 100644
index 0000000..2b12be0
--- /dev/null
+++ b/sip/tdefile/tdefile-kde315.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip
diff --git a/sip/tdefile/tdefile-kde320.diff b/sip/tdefile/tdefile-kde320.diff
new file mode 100644
index 0000000..ad75de7
--- /dev/null
+++ b/sip/tdefile/tdefile-kde320.diff
@@ -0,0 +1,6 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
++ %Include knotifywidgetbase.sip \ No newline at end of file
diff --git a/sip/tdefile/tdefile-kde321.diff b/sip/tdefile/tdefile-kde321.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde321.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde322.diff b/sip/tdefile/tdefile-kde322.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde322.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde323.diff b/sip/tdefile/tdefile-kde323.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde323.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde330.diff b/sip/tdefile/tdefile-kde330.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde330.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde331.diff b/sip/tdefile/tdefile-kde331.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde331.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde332.diff b/sip/tdefile/tdefile-kde332.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde332.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde340.diff b/sip/tdefile/tdefile-kde340.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde340.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde341.diff b/sip/tdefile/tdefile-kde341.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde341.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde342.diff b/sip/tdefile/tdefile-kde342.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde342.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde343.diff b/sip/tdefile/tdefile-kde343.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde343.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde350.diff b/sip/tdefile/tdefile-kde350.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde350.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde351.diff b/sip/tdefile/tdefile-kde351.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde351.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde352.diff b/sip/tdefile/tdefile-kde352.diff
new file mode 100644
index 0000000..9083bb6
--- /dev/null
+++ b/sip/tdefile/tdefile-kde352.diff
@@ -0,0 +1,6 @@
+- %Include krecentdirs.sip
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile-kde353.diff b/sip/tdefile/tdefile-kde353.diff
new file mode 100644
index 0000000..199a42d
--- /dev/null
+++ b/sip/tdefile/tdefile-kde353.diff
@@ -0,0 +1,5 @@
++ %Include kcustommenueditor.sip
++ %Include kdiskfreesp.sip
++ %Include kencodingfiledialog.sip
++ %Include tdefilesharedlg.sip
++ %Include knotifydialog.sip
diff --git a/sip/tdefile/tdefile.sip b/sip/tdefile/tdefile.sip
new file mode 100644
index 0000000..4ec3611
--- /dev/null
+++ b/sip/tdefile/tdefile.sip
@@ -0,0 +1,115 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFile
+{
+%TypeHeaderCode
+#include <tdefile.h>
+%End
+
+
+public:
+
+%If ( KDE_3_3_0 - )
+
+ enum Mode
+ {
+ File,
+ Directory,
+ Files,
+ ExistingOnly,
+ LocalOnly,
+ ModeMax
+ };
+
+
+ enum FileView
+ {
+ Default,
+ Simple,
+ Detail,
+ SeparateDirs,
+ PreviewContents,
+ PreviewInfo,
+ FileViewMax
+ };
+
+%End
+
+
+ enum SelectionMode
+ {
+ Single,
+ Multi,
+ Extended,
+ NoSelection
+ };
+
+ static bool isSortByName (const TQDir::SortSpec&);
+ static bool isSortBySize (const TQDir::SortSpec&);
+ static bool isSortByDate (const TQDir::SortSpec&);
+ static bool isSortDirsFirst (const TQDir::SortSpec&);
+ static bool isSortCaseInsensitive (const TQDir::SortSpec&);
+ static bool isDefaultView (const KFile::FileView&);
+ static bool isSimpleView (const KFile::FileView&);
+ static bool isDetailView (const KFile::FileView&);
+ static bool isSeparateDirs (const KFile::FileView&);
+ static bool isPreviewContents (const KFile::FileView&);
+
+%If ( KDE_3_1_0 - )
+ static bool isPreviewInfo (const KFile::FileView&);
+%End
+
+
+public:
+
+%If ( - KDE_3_3_0 )
+
+ enum Mode
+ {
+ File,
+ Directory,
+ Files,
+ ExistingOnly,
+ LocalOnly
+ };
+
+
+ enum FileView
+ {
+ Default,
+ Simple,
+ Detail,
+ SeparateDirs,
+ PreviewContents,
+ PreviewInfo
+ };
+
+%End
+
+
+}; // class KFile
+
diff --git a/sip/tdefile/tdefilebookmark.sip b/sip/tdefile/tdefilebookmark.sip
new file mode 100644
index 0000000..9623a7a
--- /dev/null
+++ b/sip/tdefile/tdefilebookmark.sip
@@ -0,0 +1,154 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_1
+
+
+// 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 KFileBookmark
+{
+%TypeHeaderCode
+#include <tdefilebookmark.h>
+%End
+
+
+public:
+
+ enum
+ {
+ URL,
+ Folder
+ };
+
+ KFileBookmark ();
+ KFileBookmark (const TQString&, const TQString&);
+ void clear ();
+ void setText (const TQString&);
+ void setURL (const TQString&);
+ void setType (int);
+ const TQString getText ();
+ const TQString getURL ();
+ int getType ();
+ TQPtrList<KFileBookmark>& getChildren ();
+
+}; // class KFileBookmark
+
+
+class KFileBookmarkManager : TQObject
+{
+%TypeHeaderCode
+#include <tdefilebookmark.h>
+%End
+
+
+public:
+ KFileBookmarkManager ();
+ void setTitle (const TQString&);
+ void read (const TQString&);
+ void write (const TQString&);
+ void add (const TQString&, const TQString&);
+ bool remove (int);
+ bool moveUp (int);
+ bool moveDown (int);
+ void reread ();
+ void rename (int, const TQString&);
+ void write ();
+ KFileBookmark* getBookmark (int);
+ KFileBookmark* getRoot ();
+
+signals:
+ void changed ();
+
+}; // class KFileBookmarkManager
+
+
+
+%MappedType TQPtrList<KFileBookmark>
+//converts a Python list of KFileBookmark
+{
+%TypeHeaderCode
+#include <tqptrlist.h>
+%End
+
+%ConvertFromTypeCode
+ if (!sipCpp)
+ return PyList_New (0);
+
+ PyObject *pylist;
+
+ // Create the list
+
+ if ((pylist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KFileBookmark> *cpplist = (TQPtrList<KFileBookmark> *)sipCpp;
+ KFileBookmark *cpp;
+ PyObject *inst;
+
+ // the loop depends on the type of iterator the tmeplate makes available
+ for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () )
+ {
+ if (((inst = sipConvertFromInstance (cpp, sipClass_KFileBookmark, sipTransferObj)) == NULL)
+ || PyList_Append (pylist, inst) < 0)
+ {
+ Py_DECREF (pylist);
+ return NULL;
+ }
+ }
+
+ return pylist;
+%End
+
+%ConvertToTypeCode
+ if (sipIsErr == NULL)
+ return PyList_Check(sipPy);
+
+ TQPtrList<KFileBookmark> *cpplist = new TQPtrList<KFileBookmark>;
+
+ PyObject *elem;
+ KFileBookmark *cpp;
+ int iserr = 0;
+
+ for (int i = 0; i < PyList_Size (sipPy); i++)
+ {
+ elem = PyList_GET_ITEM (sipPy, i);
+ cpp = (KFileBookmark *)sipForceConvertToType(elem, sipType_KFileBookmark, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cpplist;
+ return 0;
+ }
+
+ cpplist->append (cpp);
+ }
+
+ *sipCppPtr = cpplist;
+
+ return 1;
+%End
+};
+
+
diff --git a/sip/tdefile/tdefiledetailview.sip b/sip/tdefile/tdefiledetailview.sip
new file mode 100644
index 0000000..a75da9d
--- /dev/null
+++ b/sip/tdefile/tdefiledetailview.sip
@@ -0,0 +1,207 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileListViewItem : KListViewItem
+{
+%TypeHeaderCode
+#include <tdefiledetailview.h>
+%End
+
+
+public:
+ KFileListViewItem (TQListView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*);
+
+%If ( KDE_3_0_1 - )
+ KFileListViewItem (TQListView* /TransferThis/, KFileItem*);
+%End
+
+ KFileListViewItem (TQListView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*, TQListViewItem*);
+ KFileItem* fileInfo () const;
+ virtual TQString key (int, bool) const;
+ void setKey (const TQString&);
+ TQRect rect () const;
+
+%If ( KDE_3_0_1 - )
+ void init ();
+%End
+
+
+}; // class KFileListViewItem
+
+
+class KFileDetailView : KListView, KFileView
+{
+%TypeHeaderCode
+#include <tdefiledetailview.h>
+%End
+
+
+public:
+ KFileDetailView (TQWidget* /TransferThis/, const char*);
+ virtual TQWidget* widget ();
+ virtual void clearView ();
+ virtual void setAutoUpdate (bool);
+ virtual void setSelectionMode (KFile::SelectionMode);
+ virtual void updateView (bool);
+ virtual void updateView (const KFileItem*);
+ virtual void removeItem (const KFileItem*);
+ virtual void listingCompleted ();
+ virtual void setSelected (const KFileItem*, bool);
+ virtual bool isSelected (const KFileItem*) const;
+ virtual void clearSelection ();
+ virtual void selectAll ();
+ virtual void invertSelection ();
+ virtual void setCurrentItem (const KFileItem*);
+ virtual KFileItem* currentFileItem () const;
+ virtual KFileItem* firstFileItem () const;
+ virtual KFileItem* nextItem (const KFileItem*) const;
+ virtual KFileItem* prevItem (const KFileItem*) const;
+ virtual void insertItem (KFileItem*);
+ virtual void setSorting (TQDir::SortSpec);
+ void ensureItemVisible (const KFileItem*);
+ void mimeTypeDeterminationFinished ();
+ void determineIcon (KFileListViewItem*);
+ TQScrollView* scrollWidget () const;
+
+%If ( KDE_3_2_0 - )
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+%End
+
+
+signals:
+
+%If ( KDE_3_2_0 - )
+ void dropped (TQDropEvent*, KFileItem*);
+ void dropped (TQDropEvent*, const KURL::List&, const KURL&);
+%End
+
+
+protected:
+ virtual void keyPressEvent (TQKeyEvent*);
+
+%If ( KDE_3_2_0 - )
+ virtual TQDragObject* dragObject ();
+ virtual void contentsDragEnterEvent (TQDragEnterEvent*);
+ virtual void contentsDragMoveEvent (TQDragMoveEvent*);
+ virtual void contentsDragLeaveEvent (TQDragLeaveEvent*);
+ virtual void contentsDropEvent (TQDropEvent*);
+ virtual bool acceptDrag (TQDropEvent*) const;
+%End
+
+
+protected slots:
+ void slotSelectionChanged ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+//force
+
+private:
+ void slotSortingChanged (int);
+ void selected (TQListViewItem*);
+ void slotDoubleClicked (TQListViewItem*);
+ void highlighted (TQListViewItem*);
+ void rightButtonPressed (TQListViewItem*);
+
+//force
+%ConvertToSubClassCode
+ // The table of Python class objects indexed by their names. The table
+ // must be sorted by name.
+
+ static sipStringTypeClassMap map[] = {
+ {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
+ {sipName_TDEApplicationPropsPlugin, &sipClass_TDEApplicationPropsPlugin},
+#if TDE_VERSION < 310
+// {sipName_TDEApplicationTree, &sipClass_TDEApplicationTree},
+#endif
+ {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},
+ {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin},
+ {sipName_KCombiView, &sipClass_KCombiView},
+#if TDE_VERSION >= 0x030100
+ {sipName_KCustomMenuEditor, &sipClass_KCustomMenuEditor},
+#endif
+ {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin},
+ {sipName_KDevicePropsPlugin, &sipClass_KDevicePropsPlugin},
+ {sipName_KDirOperator, &sipClass_KDirOperator},
+ {sipName_KDirSelectDialog, &sipClass_KDirSelectDialog},
+ {sipName_KDirSize, &sipClass_KDirSize},
+#if TDE_VERSION >= 0x030100
+ {sipName_KDiskFreeSp, &sipClass_KDiskFreeSp},
+#endif
+ {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin},
+ {sipName_KExecPropsPlugin, &sipClass_KExecPropsPlugin},
+ {sipName_KFileDetailView, &sipClass_KFileDetailView},
+ {sipName_KFileDialog, &sipClass_KFileDialog},
+ {sipName_KFileFilterCombo, &sipClass_KFileFilterCombo},
+ {sipName_KFileIconView, &sipClass_KFileIconView},
+ {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin},
+ {sipName_KFilePermissionsPropsPlugin,&sipClass_KFilePermissionsPropsPlugin},
+ {sipName_KFilePreview, &sipClass_KFilePreview},
+ {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin},
+ {sipName_KFilePropsPlugin, &sipClass_KFilePropsPlugin},
+#if TDE_VERSION >= 0x030100
+ {sipName_KFileSharePropsPlugin, &sipClass_KFileSharePropsPlugin},
+#endif
+ {sipName_KFileTreeBranch, &sipClass_KFileTreeBranch},
+ {sipName_KFileTreeView, &sipClass_KFileTreeView},
+ {sipName_KFileTreeViewToolTip, &sipClass_KFileTreeViewToolTip},
+ {sipName_KFileViewSignaler, &sipClass_KFileViewSignaler},
+ {sipName_KIconButton, &sipClass_KIconButton},
+ {sipName_KIconCanvas, &sipClass_KIconCanvas},
+ {sipName_KIconDialog, &sipClass_KIconDialog},
+ {sipName_KImageFilePreview, &sipClass_KImageFilePreview},
+#if TDE_VERSION >= 0x030100
+ {sipName_KNotifyDialog, &sipClass_KNotifyDialog},
+ {sipName_KNotifyWidget, &sipClass_KNotify_KNotifyWidget},
+#if TDE_VERSION < 0x030200
+ {sipName_KNotifyWidgetBase, &sipClass_KNotifyWidgetBase},
+#endif
+#endif
+ {sipName_KOpenWithDlg, &sipClass_KOpenWithDlg},
+ {sipName_KPreviewWidgetBase, &sipClass_KPreviewWidgetBase},
+ {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog},
+ {sipName_KPropertiesDialog, &sipClass_KPropertiesDialog},
+ {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin},
+ {sipName_KPropsDlgPlugin, &sipClass_KPropsDlgPlugin},
+ {sipName_KURLBar, &sipClass_KURLBar},
+ {sipName_KURLBarItem, &sipClass_KURLBarItem},
+ {sipName_KURLBarItemDialog, &sipClass_KURLBarItemDialog},
+ {sipName_KURLBarListBox, &sipClass_KURLBarListBox},
+ {sipName_KURLComboBox, &sipClass_KURLComboBox},
+ {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin},
+ {sipName_KURLPropsPlugin, &sipClass_KURLPropsPlugin},
+ {sipName_KURLRequester, &sipClass_KURLRequester},
+ {sipName_KURLRequesterDlg, &sipClass_KURLRequesterDlg},
+ };
+
+ sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
+%End
+//end
+//end
+
+}; // class KFileDetailView
+
diff --git a/sip/tdefile/tdefiledialog.sip b/sip/tdefile/tdefiledialog.sip
new file mode 100644
index 0000000..c7142ee
--- /dev/null
+++ b/sip/tdefile/tdefiledialog.sip
@@ -0,0 +1,207 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <tdefiledialog.h>
+%End
+
+
+public:
+
+ enum OperationMode
+ {
+ Other,
+ Opening,
+ Saving
+ };
+
+ KFileDialog (const TQString&, const TQString&, TQWidget* /TransferThis/, const char*, bool);
+
+%If ( KDE_3_1_0 - )
+ KFileDialog (const TQString&, const TQString&, TQWidget* /TransferThis/, const char*, bool, TQWidget*);
+%End
+
+ KURL selectedURL () const;
+ KURL::List selectedURLs () const;
+ KURL baseURL () const;
+ TQString selectedFile () const;
+ TQStringList selectedFiles () const;
+ void setURL (const KURL&, bool = 1);
+ void setSelection (const TQString&);
+ void setOperationMode (KFileDialog::OperationMode);
+ KFileDialog::OperationMode operationMode () const;
+ void setKeepLocation (bool);
+ bool keepsLocation () const;
+ void setFilter (const TQString&);
+ TQString currentFilter () const;
+ void setFilterMimeType (const TQString&, const KMimeType::List&, const KMimeType::Ptr&);
+ KMimeType::Ptr currentFilterMimeType ();
+ void setMimeFilter (const TQStringList&, const TQString& = TQString ::null );
+ TQString currentMimeFilter () const;
+ void clearFilter ();
+ void setPreviewWidget (const TQWidget*);
+ void setPreviewWidget (const KPreviewWidgetBase*);
+ static TQString getOpenFileName (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+%If ( KDE_3_4_0 - )
+ static TQString getOpenFileNameWId (const TQString&, const TQString&, WId, const TQString&);
+%End
+
+ static TQStringList getOpenFileNames (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KURL getOpenURL (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static KURL::List getOpenURLs (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static TQString getSaveFileName (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+%If ( KDE_3_4_0 - )
+ static TQString getSaveFileNameWId (const TQString&, const TQString&, WId, const TQString&);
+%End
+
+ static KURL getSaveURL (const TQString& = TQString ::null , const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ static TQString getExistingDirectory (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+
+%If ( KDE_3_1_0 - )
+ static KURL getExistingURL (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+%End
+
+ static KURL getImageOpenURL (const TQString& = TQString ::null , TQWidget* /Transfer/ = 0, const TQString& = TQString ::null );
+ virtual void show ();
+ void setMode (KFile::Mode /Constrained/);
+ void setMode (uint);
+ KFile::Mode mode () const;
+ void setLocationLabel (const TQString&);
+ KToolBar* toolBar () const;
+ KPushButton* okButton () const;
+ KPushButton* cancelButton () const;
+
+%If ( KDE_3_2_0 - )
+ KURLBar* speedBar ();
+%End
+
+ KActionCollection* actionCollection () const;
+
+%If ( KDE_3_1_0 - )
+ int pathComboIndex ();
+ static KURL getStartURL (const TQString&, TQString&);
+
+%If ( KDE_3_2_0 - )
+ static void setStartDir (const KURL&);
+%End
+
+%End
+
+
+signals:
+ void fileSelected (const TQString&);
+ void fileHighlighted (const TQString&);
+ void selectionChanged ();
+ void filterChanged (const TQString&);
+
+protected:
+
+%If ( KDE_3_2_0 - )
+ virtual void keyPressEvent (TQKeyEvent*);
+%End
+
+
+%If ( KDE_3_1_0 - )
+ void init (const TQString&, const TQString&, TQWidget*);
+%End
+
+ virtual void initGUI ();
+ void multiSelectionChanged ();
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void readRecentFiles (TDEConfig*);
+ virtual void saveRecentFiles (TDEConfig*);
+ KURL::List tokenize (const TQString&) const;
+
+%If ( KDE_3_2_0 - )
+ KURL getCompleteURL (const TQString&);
+ TQString currentFilterExtension ();
+ void updateAutoSelectExtension ();
+%End
+
+
+protected slots:
+ void urlEntered (const KURL&);
+ void enterURL (const KURL&);
+ void enterURL (const TQString&);
+ void locationActivated (const TQString&);
+ void toolbarCallback (int);
+ void pathComboChanged (const TQString&);
+ void dirCompletion (const TQString&);
+ void slotFilterChanged ();
+ void fileHighlighted (const KFileItem*);
+ void fileSelected (const KFileItem*);
+ void slotStatResult (TDEIO::Job*);
+ void slotLoadingFinished ();
+ void fileCompletion (const TQString&);
+
+%If ( KDE_3_1_0 - )
+ void toggleSpeedbar (bool);
+
+%If ( KDE_3_4_0 - )
+ void toggleBookmarks (bool);
+%End
+
+%End
+
+ virtual void updateStatusLine (int, int);
+ virtual void slotOk ();
+ virtual void accept ();
+ virtual void slotCancel ();
+
+%If ( KDE_3_2_0 - )
+ void slotAutoSelectExtClicked ();
+%End
+
+ void addToRecentDocuments ();
+
+%If ( KDE_3_1_0 - )
+ void initSpeedbar ();
+%End
+
+
+private:
+ KFileDialog (const KFileDialog&);
+
+protected:
+ KURL::List& parseSelectedURLs () const;
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+protected:
+
+%If ( - KDE_3_2_0 )
+//ig void addDirEntry (KFileItem*, bool);
+%End
+
+
+}; // class KFileDialog
+
diff --git a/sip/tdefile/tdefilefiltercombo.sip b/sip/tdefile/tdefilefiltercombo.sip
new file mode 100644
index 0000000..78e5969
--- /dev/null
+++ b/sip/tdefile/tdefilefiltercombo.sip
@@ -0,0 +1,58 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileFilterCombo : KComboBox
+{
+%TypeHeaderCode
+#include <tdefilefiltercombo.h>
+%End
+
+
+public:
+ KFileFilterCombo (TQWidget* /TransferThis/ = 0, const char* = 0);
+ void setFilter (const TQString&);
+ TQString currentFilter () const;
+
+%If ( KDE_3_4_0 - )
+ void setCurrentFilter (const TQString&);
+%End
+
+ void setMimeFilter (const TQStringList&, const TQString&);
+ bool showsAllTypes () const;
+ void setDefaultFilter (const TQString&);
+ TQString defaultFilter () const;
+
+protected:
+ virtual bool eventFilter (TQObject*, TQEvent*);
+
+signals:
+ void filterChanged ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KFileFilterCombo
+
diff --git a/sip/tdefile/tdefileiconview.sip b/sip/tdefile/tdefileiconview.sip
new file mode 100644
index 0000000..bd69889
--- /dev/null
+++ b/sip/tdefile/tdefileiconview.sip
@@ -0,0 +1,141 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileIconViewItem : KIconViewItem
+{
+%TypeHeaderCode
+#include <tdefileiconview.h>
+%End
+
+
+public:
+ KFileIconViewItem (TQIconView* /TransferThis/, const TQString&, const TQPixmap&, KFileItem*);
+
+%If ( KDE_3_0_1 - )
+ KFileIconViewItem (TQIconView* /TransferThis/, KFileItem*);
+%End
+
+ KFileItem* fileInfo () const;
+
+}; // class KFileIconViewItem
+
+
+class KFileIconView : KIconView, KFileView
+{
+%TypeHeaderCode
+#include <tdefileiconview.h>
+%End
+
+
+public:
+ KFileIconView (TQWidget* /TransferThis/, const char*);
+ virtual TQWidget* widget ();
+ virtual void clearView ();
+ virtual void setAutoUpdate (bool);
+ virtual void updateView (bool);
+ virtual void updateView (const KFileItem*);
+ virtual void removeItem (const KFileItem*);
+ virtual void listingCompleted ();
+ virtual void insertItem (KFileItem*);
+ virtual void setSelectionMode (KFile::SelectionMode);
+ virtual void setSelected (const KFileItem*, bool);
+ virtual bool isSelected (const KFileItem*) const;
+ virtual void clearSelection ();
+ virtual void selectAll ();
+ virtual void invertSelection ();
+ virtual void setCurrentItem (const KFileItem*);
+ virtual KFileItem* currentFileItem () const;
+ virtual KFileItem* firstFileItem () const;
+ virtual KFileItem* nextItem (const KFileItem*) const;
+ virtual KFileItem* prevItem (const KFileItem*) const;
+ void setIconSize (int);
+ void setPreviewSize (int);
+
+%If ( KDE_3_4_0 - )
+ void setIgnoreMaximumSize (bool = 1);
+%End
+
+ int iconSize () const;
+ void ensureItemVisible (const KFileItem*);
+ virtual void setSorting (TQDir::SortSpec);
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+ void mimeTypeDeterminationFinished ();
+ void determineIcon (KFileIconViewItem*);
+ TQScrollView* scrollWidget () const;
+
+%If ( KDE_3_2_0 - )
+ void setAcceptDrops (bool);
+%End
+
+
+public slots:
+ void showPreviews ();
+
+%If ( KDE_3_2_0 - )
+ void zoomIn ();
+ void zoomOut ();
+%End
+
+
+%If ( KDE_3_1_0 - )
+ virtual void arrangeItemsInGrid (bool = 1);
+%End
+
+
+protected:
+ virtual void keyPressEvent (TQKeyEvent*);
+ virtual void hideEvent (TQHideEvent*);
+ virtual void showEvent (TQShowEvent*);
+
+%If ( KDE_3_0_1 - )
+ virtual bool eventFilter (TQObject*, TQEvent*);
+
+%If ( KDE_3_2_0 - )
+ virtual TQDragObject* dragObject ();
+ virtual void contentsDragEnterEvent (TQDragEnterEvent*);
+ virtual void contentsDragMoveEvent (TQDragMoveEvent*);
+ virtual void contentsDragLeaveEvent (TQDragLeaveEvent*);
+ virtual void contentsDropEvent (TQDropEvent*);
+ bool acceptDrag (TQDropEvent*) const;
+%End
+
+%End
+
+
+signals:
+
+%If ( KDE_3_2_0 - )
+ void dropped (TQDropEvent*, KFileItem*);
+ void dropped (TQDropEvent*, const KURL::List&, const KURL&);
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KFileIconView
+
diff --git a/sip/tdefile/tdefilemod.sip.in b/sip/tdefile/tdefilemod.sip.in
new file mode 100644
index 0000000..7246ceb
--- /dev/null
+++ b/sip/tdefile/tdefilemod.sip.in
@@ -0,0 +1,63 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_5_2
+
+%Copying
+
+ 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.
+
+%End
+
+%Module tdefile
+
+%Import qt/qtmod.sip
+%Import qtxml/qtxmlmod.sip
+%Import dcopmod.sip
+%Import tdecoremod.sip
+%Import tdefxmod.sip
+%Import tdeuimod.sip
+%Import kiomod.sip
+
+%Include kcombiview.sip
+%Include kdiroperator.sip
+%Include kdirselectdialog.sip
+%Include kdirsize.sip
+%Include tdefile.sip
+%Include tdefiledetailview.sip
+%Include tdefiledialog.sip
+%Include tdefilefiltercombo.sip
+%Include tdefileiconview.sip
+%Include tdefilepreview.sip
+%Include tdefiletreebranch.sip
+%Include tdefiletreeview.sip
+%Include tdefiletreeviewitem.sip
+%Include tdefileview.sip
+%Include kicondialog.sip
+%Include kimagefilepreview.sip
+%Include kopenwith.sip
+%Include kpreviewwidgetbase.sip
+%Include kpropertiesdialog.sip
+%Include krecentdocument.sip
+%Include kurlbar.sip
+%Include kurlcombobox.sip
+%Include kurlrequester.sip
+%Include kurlrequesterdlg.sip
+@mark@
diff --git a/sip/tdefile/tdefilepreview.sip b/sip/tdefile/tdefilepreview.sip
new file mode 100644
index 0000000..d9301df
--- /dev/null
+++ b/sip/tdefile/tdefilepreview.sip
@@ -0,0 +1,80 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFilePreview : TQSplitter, KFileView
+{
+%TypeHeaderCode
+#include <tdefilepreview.h>
+%End
+
+
+public:
+ KFilePreview (TQWidget* /TransferThis/, const char*);
+ KFilePreview (KFileView*, TQWidget* /TransferThis/, const char*);
+ virtual TQWidget* widget ();
+ virtual void clearView ();
+ void setFileView (KFileView*);
+ KFileView* fileView () const;
+ virtual void updateView (bool);
+ virtual void updateView (const KFileItem*);
+ virtual void removeItem (const KFileItem*);
+ virtual void listingCompleted ();
+ virtual void setSelectionMode (KFile::SelectionMode);
+ virtual void setSelected (const KFileItem*, bool);
+ virtual bool isSelected (const KFileItem*) const;
+ virtual void clearSelection ();
+ virtual void selectAll ();
+ virtual void invertSelection ();
+ virtual void insertItem (KFileItem*);
+ virtual void clear ();
+ virtual void setCurrentItem (const KFileItem*);
+ virtual KFileItem* currentFileItem () const;
+ virtual KFileItem* firstFileItem () const;
+ virtual KFileItem* nextItem (const KFileItem*) const;
+ virtual KFileItem* prevItem (const KFileItem*) const;
+ virtual void setSorting (TQDir::SortSpec);
+
+%If ( KDE_3_1_0 - )
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+%End
+
+ virtual KActionCollection* actionCollection () const;
+ void ensureItemVisible (const KFileItem*);
+ void setPreviewWidget (const TQWidget*, const KURL&);
+
+protected slots:
+ virtual void slotHighlighted (const KFileItem*);
+
+signals:
+ void showPreview (const KURL&);
+ void clearPreview ();
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class KFilePreview
+
diff --git a/sip/tdefile/tdefilereader.sip b/sip/tdefile/tdefilereader.sip
new file mode 100644
index 0000000..4f78f7b
--- /dev/null
+++ b/sip/tdefile/tdefilereader.sip
@@ -0,0 +1,47 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_1
+
+
+// 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 KFileReader : KDirLister
+{
+%TypeHeaderCode
+#include <tdefilereader.h>
+%End
+
+
+public:
+ KFileReader ();
+ KFileReader (const KURL&, const TQString& = TQString::null);
+ bool isRoot () const;
+ bool isReadable () const;
+
+protected:
+ virtual KFileItem* createFileItem (const TDEIO::UDSEntry&, const KURL&, bool);
+
+private:
+ KFileReader (const KFileReader&);
+
+}; // class KFileReader
+
diff --git a/sip/tdefile/tdefilesharedlg.sip b/sip/tdefile/tdefilesharedlg.sip
new file mode 100644
index 0000000..49f3952
--- /dev/null
+++ b/sip/tdefile/tdefilesharedlg.sip
@@ -0,0 +1,53 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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.
+
+
+%If ( KDE_3_1_0 - )
+
+class KFileSharePropsPlugin : KPropsDlgPlugin
+{
+%TypeHeaderCode
+#include <tdefilesharedlg.h>
+%End
+
+
+public:
+ KFileSharePropsPlugin (KPropertiesDialog*);
+ virtual void applyChanges ();
+ static bool supports (const KFileItemList&);
+ TQWidget* page () const;
+
+protected slots:
+ void slotConfigureFileSharing ();
+
+%If ( KDE_3_4_0 - )
+ void slotConfigureFileSharingDone ();
+%End
+
+
+}; // class KFileSharePropsPlugin
+
+%End
+
diff --git a/sip/tdefile/tdefiletreebranch.sip b/sip/tdefile/tdefiletreebranch.sip
new file mode 100644
index 0000000..75e7874
--- /dev/null
+++ b/sip/tdefile/tdefiletreebranch.sip
@@ -0,0 +1,233 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileTreeBranch : KDirLister
+{
+%TypeHeaderCode
+#include <tdefiletreebranch.h>
+%End
+
+
+public:
+ KFileTreeBranch (KFileTreeView*, const KURL&, const TQString&, const TQPixmap&, bool = 0, KFileTreeViewItem* = 0);
+ KURL rootUrl () const;
+ virtual void setRoot (KFileTreeViewItem*);
+ KFileTreeViewItem* root ();
+ TQString name () const;
+ virtual void setName (const TQString);
+ const TQPixmap& pixmap ();
+ const TQPixmap& openPixmap ();
+ bool showExtensions () const;
+ void setOpen (bool = 1);
+ void setChildRecurse (bool = 1);
+ bool childRecurse ();
+
+public slots:
+ virtual bool populate (const KURL&, KFileTreeViewItem*);
+ virtual void setShowExtensions (bool = 1);
+ void setOpenPixmap (const TQPixmap&);
+
+protected:
+ virtual KFileTreeViewItem* createTreeViewItem (KFileTreeViewItem* /Transfer/, KFileItem*);
+
+public:
+
+%If ( KDE_3_1_0 - )
+ virtual KFileTreeViewItem* findTVIByURL (const KURL&);
+%End
+
+
+signals:
+ void populateFinished (KFileTreeViewItem*);
+ void newTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&);
+ void directoryChildCount (KFileTreeViewItem*, int);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+protected:
+
+%If ( - KDE_3_1_0 )
+ virtual KFileTreeViewItem* findTVIByURL (const KURL&);
+%End
+
+
+}; // class KFileTreeBranch
+
+typedef TQPtrList<KFileTreeBranch> KFileTreeBranchList;
+//ig typedef TQPtrListIterator<KFileTreeBranch> KFileTreeBranchIterator;
+
+
+%MappedType TQPtrList<KFileTreeViewItem>
+//converts a Python list of KFileTreeViewItem
+{
+%TypeHeaderCode
+#include <tdefiletreeviewitem.h>
+typedef TQPtrList<KFileTreeViewItem> KFileTreeViewItemList;
+%End
+
+%ConvertFromTypeCode
+ // Convert to a Python list of KFileTreeViewItem
+
+ if (!sipCpp)
+ return PyList_New(0);
+
+ PyObject *ftvilist;
+
+ // Create the list
+
+ if ((ftvilist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KFileTreeViewItem> *cList = (TQPtrList<KFileTreeViewItem> *)sipCpp;
+ PyObject *item;
+ KFileTreeViewItem *ftvi;
+
+ for( ftvi = cList->first(); ftvi; ftvi = cList->next ())
+ {
+ item = sipConvertFromInstance (ftvi, sipClass_KFileTreeViewItem, sipTransferObj);
+ if ((item == NULL) || (PyList_Append (ftvilist, item) < 0))
+ {
+ Py_XDECREF (item);
+ Py_DECREF (ftvilist);
+ return NULL;
+ }
+ }
+
+ return ftvilist;
+%End
+
+%ConvertToTypeCode
+ // Convert a Python list to a KFileTreeViewItemList on the heap.
+
+ if (sipIsErr == NULL)
+ return PyList_Check(sipPy);
+
+ TQPtrList<KFileTreeViewItem> *cList = new TQPtrList<KFileTreeViewItem>;
+
+ PyObject *elem;
+ int iserr = 0;
+ KFileTreeViewItem *ftvi;
+
+ for (int i = 0; i < PyList_Size (sipPy); i++)
+ {
+ elem = PyList_GET_ITEM (sipPy, i);
+ ftvi = (KFileTreeViewItem *)sipForceConvertToType(elem, sipType_KFileTreeViewItem, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cList;
+ return 0;
+ }
+
+ cList->append (ftvi);
+ }
+
+ *sipCppPtr = cList;
+
+ return 1;
+%End
+};
+
+
+%MappedType TQPtrList<KFileTreeBranch>
+//converts a Python list of KFileTreeBranch
+{
+%TypeHeaderCode
+#include <tdefiletreebranch.h>
+//typedef TQPtrList<KFileTreeBranch> KFileTreeBList;
+%End
+
+%ConvertFromTypeCode
+ // Convert to a Python list of KFileTreeBranch
+
+ if (!sipCpp)
+ return PyList_New(0);
+
+ PyObject *ftblist;
+
+ // Create the list
+
+ if ((ftblist = PyList_New(0)) == NULL)
+ return NULL;
+
+ // Get it.
+
+ TQPtrList<KFileTreeBranch> *cList = (TQPtrList<KFileTreeBranch> *)sipCpp;
+ PyObject *item;
+ KFileTreeBranch *ftb;
+
+ for( ftb = cList->first(); ftb; ftb = cList->next ())
+ {
+ item = sipConvertFromInstance (ftb, sipClass_KFileTreeBranch, sipTransferObj);
+ if ((item == NULL) || (PyList_Append (ftblist, item) < 0))
+ {
+ Py_XDECREF (item);
+ Py_DECREF (ftblist);
+ return NULL;
+ }
+ }
+
+ return ftblist;
+%End
+
+%ConvertToTypeCode
+ // Convert a Python list to a KFileTreeBranchList on the heap.
+
+ if (sipIsErr == NULL)
+ return PyList_Check(sipPy);
+
+ TQPtrList<KFileTreeBranch> *cList = new TQPtrList<KFileTreeBranch>;
+
+ PyObject *elem;
+ int iserr = 0;
+ KFileTreeBranch *ftb;
+
+ for (int i = 0; i < PyList_Size (sipPy); i++)
+ {
+ elem = PyList_GET_ITEM (sipPy, i);
+ ftb = (KFileTreeBranch *)sipForceConvertToType(elem, sipType_KFileTreeBranch, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
+
+ if (iserr)
+ {
+ *sipIsErr = 1;
+ delete cList;
+ return 0;
+ }
+
+ cList->append (ftb);
+ }
+
+ *sipCppPtr = cList;
+
+ return 1;
+%End
+};
+
+
diff --git a/sip/tdefile/tdefiletreeview.sip b/sip/tdefile/tdefiletreeview.sip
new file mode 100644
index 0000000..50296f5
--- /dev/null
+++ b/sip/tdefile/tdefiletreeview.sip
@@ -0,0 +1,109 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileTreeViewToolTip : TQToolTip
+{
+%TypeHeaderCode
+#include <tdefiletreeview.h>
+%End
+
+
+public:
+ KFileTreeViewToolTip (TQListView*);
+
+protected:
+ virtual void maybeTip (const TQPoint&);
+
+}; // class KFileTreeViewToolTip
+
+
+class KFileTreeView : KListView
+{
+%TypeHeaderCode
+#include <tdefiletreeview.h>
+%End
+
+
+public:
+ KFileTreeView (TQWidget* /TransferThis/, const char* = 0);
+ KFileTreeViewItem* currentKFileTreeViewItem () const;
+ KURL currentURL () const;
+ KFileTreeBranch* addBranch (const KURL&, const TQString&, bool = 0);
+ virtual KFileTreeBranch* addBranch (const KURL&, const TQString&, const TQPixmap&, bool = 0);
+ virtual KFileTreeBranch* addBranch (KFileTreeBranch*);
+ virtual bool removeBranch (KFileTreeBranch*);
+ KFileTreeBranch* branch (const TQString&);
+ KFileTreeBranchList& branches ();
+ virtual void setDirOnlyMode (KFileTreeBranch*, bool);
+ KFileTreeViewItem* findItem (KFileTreeBranch*, const TQString&);
+ KFileTreeViewItem* findItem (const TQString&, const TQString&);
+ bool showFolderOpenPixmap () const;
+
+public slots:
+ virtual void setShowFolderOpenPixmap (bool = 1);
+
+protected:
+ virtual bool acceptDrag (TQDropEvent*) const;
+ virtual TQDragObject* dragObject ();
+ virtual void startAnimation (KFileTreeViewItem*, const char* = "kde", uint = 6);
+ virtual void stopAnimation (KFileTreeViewItem*);
+ virtual void contentsDragEnterEvent (TQDragEnterEvent*);
+ virtual void contentsDragMoveEvent (TQDragMoveEvent*);
+ virtual void contentsDragLeaveEvent (TQDragLeaveEvent*);
+ virtual void contentsDropEvent (TQDropEvent*);
+
+protected slots:
+ virtual void slotNewTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&);
+ virtual void slotSetNextUrlToSelect (const KURL&);
+ virtual TQPixmap itemIcon (KFileTreeViewItem*, int = 0) const;
+
+signals:
+ void onItem (const TQString&);
+ void dropped (TQWidget*, TQDropEvent*);
+ void dropped (TQWidget*, TQDropEvent*, KURL::List&);
+ void dropped (KURL::List&, KURL&);
+
+%If ( KDE_3_2_0 - )
+ void dropped (TQWidget*, TQDropEvent*, KURL::List&, KURL&);
+%End
+
+ void dropped (TQDropEvent*, TQListViewItem*);
+ void dropped (KFileTreeView*, TQDropEvent*, TQListViewItem*);
+ void dropped (TQDropEvent*, TQListViewItem*, TQListViewItem*);
+ void dropped (KFileTreeView*, TQDropEvent*, TQListViewItem*, TQListViewItem*);
+
+protected:
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+//force
+
+private:
+ void slotOnItem (TQListViewItem*);
+//end
+
+}; // class KFileTreeView
+
diff --git a/sip/tdefile/tdefiletreeviewitem.sip b/sip/tdefile/tdefiletreeviewitem.sip
new file mode 100644
index 0000000..ed330b2
--- /dev/null
+++ b/sip/tdefile/tdefiletreeviewitem.sip
@@ -0,0 +1,48 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileTreeViewItem : KListViewItem
+{
+%TypeHeaderCode
+#include <tdefiletreeviewitem.h>
+%End
+
+
+public:
+ KFileTreeViewItem (KFileTreeViewItem*, KFileItem*, KFileTreeBranch*);
+ KFileTreeViewItem (KFileTreeView*, KFileItem*, KFileTreeBranch*);
+ KFileTreeBranch* branch () const;
+ KFileItem* fileItem () const;
+ TQString path () const;
+ KURL url () const;
+ bool isDir () const;
+ bool alreadyListed () const;
+ void setListed (bool);
+
+}; // class KFileTreeViewItem
+
+typedef TQPtrList<KFileTreeViewItem> KFileTreeViewItemList;
+//ig typedef TQPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator;
diff --git a/sip/tdefile/tdefileview.sip b/sip/tdefile/tdefileview.sip
new file mode 100644
index 0000000..43b935f
--- /dev/null
+++ b/sip/tdefile/tdefileview.sip
@@ -0,0 +1,153 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE 3.5.3
+
+
+// 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 KFileViewSignaler : TQObject
+{
+%TypeHeaderCode
+#include <tdefileview.h>
+%End
+
+
+public:
+ void activate (const KFileItem*);
+ void highlightFile (const KFileItem*);
+ void activateMenu (const KFileItem*, const TQPoint&);
+ void changeSorting (TQDir::SortSpec);
+
+%If ( KDE_3_2_0 - )
+ void dropURLs (const KFileItem*, TQDropEvent*, const KURL::List&);
+%End
+
+
+signals:
+ void dirActivated (const KFileItem*);
+ void sortingChanged (TQDir::SortSpec);
+ void fileHighlighted (const KFileItem*);
+ void fileSelected (const KFileItem*);
+ void activatedMenu (const KFileItem*, const TQPoint&);
+
+%If ( KDE_3_2_0 - )
+ void dropped (const KFileItem*, TQDropEvent*, const KURL::List&);
+%End
+
+
+}; // class KFileViewSignaler
+
+
+class KFileView
+{
+%TypeHeaderCode
+#include <tdefileview.h>
+%End
+
+
+public:
+ KFileView ();
+ void addItemList (const KFileItemList&);
+ virtual TQWidget* widget () = 0;
+//ig TQWidget* widget () const;
+ void setCurrentItem (const TQString&);
+ virtual void setCurrentItem (const KFileItem*) = 0;
+ virtual KFileItem* currentFileItem () const = 0;
+ virtual void clear ();
+ virtual void updateView (bool = 1);
+ virtual void updateView (const KFileItem*);
+ virtual void removeItem (const KFileItem*);
+ virtual void listingCompleted ();
+ TQDir::SortSpec sorting () const;
+ virtual void setSorting (TQDir::SortSpec);
+ bool isReversed () const;
+ void sortReversed ();
+ uint count () const;
+ uint numFiles () const;
+ uint numDirs () const;
+ virtual void setSelectionMode (KFile::SelectionMode);
+ virtual KFile::SelectionMode selectionMode () const;
+
+ enum ViewMode
+ {
+ Files,
+ Directories,
+ All
+ };
+
+ virtual void setViewMode (KFileView::ViewMode);
+ virtual ViewMode viewMode () const;
+ TQString viewName ();
+ void setViewName (const TQString&);
+ virtual void setParentView (KFileView* /Transfer/);
+ virtual void insertItem (KFileItem*);
+ virtual void clearView () = 0;
+ virtual void ensureItemVisible (const KFileItem*) = 0;
+ virtual void clearSelection () = 0;
+ virtual void selectAll ();
+ virtual void invertSelection ();
+ virtual void setSelected (const KFileItem*, bool) = 0;
+ virtual bool isSelected (const KFileItem*) const = 0;
+ const KFileItemList* selectedItems () const;
+ const KFileItemList* items () const;
+ virtual KFileItem* firstFileItem () const = 0;
+ virtual KFileItem* nextItem (const KFileItem*) const = 0;
+ virtual KFileItem* prevItem (const KFileItem*) const = 0;
+ void setOnlyDoubleClickSelectsFiles (bool);
+ bool onlyDoubleClickSelectsFiles () const;
+ bool updateNumbers (const KFileItem*);
+ virtual KActionCollection* actionCollection () const;
+ KFileViewSignaler* signaler () const;
+ virtual void readConfig (TDEConfig*, const TQString& = TQString ::null );
+ virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null );
+
+%If ( KDE_3_2_0 - )
+
+ enum DropOptions
+ {
+ AutoOpenDirs
+ };
+
+ void setDropOptions (int);
+ int dropOptions ();
+%End
+
+ static TQString sortingKey (const TQString&, bool, int);
+ static TQString sortingKey (TDEIO::filesize_t, bool, int);
+
+%If ( KDE_3_2_0 - )
+ static int autoOpenDelay ();
+%End
+
+
+protected:
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+%If ( KDE_3_2_0 - )
+ void setDropOptions_impl (int);
+%End
+
+
+}; // class KFileView
+
diff --git a/sip/tdefile/tdefileviewitem.sip b/sip/tdefile/tdefileviewitem.sip
new file mode 100644
index 0000000..22119ca
--- /dev/null
+++ b/sip/tdefile/tdefileviewitem.sip
@@ -0,0 +1,58 @@
+//
+// Copyright 2003 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdefile version KDE_3_1_1
+
+
+// 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 KFileViewItem : KFileItem
+{
+%TypeHeaderCode
+#include <tdefileviewitem.h>
+%End
+
+
+public:
+ KFileViewItem (const KURL&, const TDEIO::UDSEntry&);
+ KFileViewItem (mode_t, mode_t, const KURL&, bool);
+ KFileViewItem (const KFileViewItem&);
+ bool isFile () const;
+ TQString urlString () const;
+ TQPixmap pixmap (int, int = 0) const;
+ TQPixmap pixmap () const;
+ TQString date () const;
+ TQString access () const;
+ void setViewItem (const KFileView*, const void*);
+//ig const void* viewItem (const KFileView*) const;
+ static TQString dateTime (time_t);
+ KFileViewItem* next () const;
+ void setNext (KFileViewItem*);
+
+protected:
+ TQString parsePermissions (mode_t) const;
+
+}; // class KFileViewItem
+
+//ig typedef TQList<KFileViewItem> KFileViewItemList;
+//ig typedef TQListIterator<KFileViewItem> KFileViewItemListIterator;
+
+