From f050f7c84cccf297921968acd454e6a462e30857 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 00:59:37 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- sip/kfile/booktoken.sip | 66 -- sip/kfile/kcombiview.sip | 90 --- sip/kfile/kcustommenueditor.sip | 57 -- sip/kfile/kdiroperator.sip | 205 ------ sip/kfile/kdirselectdialog.sip | 71 -- sip/kfile/kdirsize.sip | 85 --- sip/kfile/kdiskfreesp.sip | 49 -- sip/kfile/kencodingfiledialog.sip | 65 -- sip/kfile/kfile-kde310.diff | 5 - sip/kfile/kfile-kde311.diff | 5 - sip/kfile/kfile-kde312.diff | 5 - sip/kfile/kfile-kde313.diff | 5 - sip/kfile/kfile-kde314.diff | 5 - sip/kfile/kfile-kde315.diff | 5 - sip/kfile/kfile-kde320.diff | 6 - sip/kfile/kfile-kde321.diff | 5 - sip/kfile/kfile-kde322.diff | 5 - sip/kfile/kfile-kde323.diff | 5 - sip/kfile/kfile-kde330.diff | 5 - sip/kfile/kfile-kde331.diff | 5 - sip/kfile/kfile-kde332.diff | 5 - sip/kfile/kfile-kde340.diff | 5 - sip/kfile/kfile-kde341.diff | 5 - sip/kfile/kfile-kde342.diff | 5 - sip/kfile/kfile-kde343.diff | 5 - sip/kfile/kfile-kde350.diff | 5 - sip/kfile/kfile-kde351.diff | 5 - sip/kfile/kfile-kde352.diff | 6 - sip/kfile/kfile-kde353.diff | 5 - sip/kfile/kfile.sip | 115 ---- sip/kfile/kfilebookmark.sip | 154 ----- sip/kfile/kfiledetailview.sip | 207 ------ sip/kfile/kfiledialog.sip | 207 ------ sip/kfile/kfilefiltercombo.sip | 58 -- sip/kfile/kfileiconview.sip | 141 ---- sip/kfile/kfilemod.sip.in | 63 -- sip/kfile/kfilepreview.sip | 80 --- sip/kfile/kfilereader.sip | 47 -- sip/kfile/kfilesharedlg.sip | 53 -- sip/kfile/kfiletreebranch.sip | 233 ------- sip/kfile/kfiletreeview.sip | 109 --- sip/kfile/kfiletreeviewitem.sip | 48 -- sip/kfile/kfileview.sip | 153 ----- sip/kfile/kfileviewitem.sip | 58 -- sip/kfile/kicondialog.sip | 131 ---- sip/kfile/kimagefilepreview.sip | 57 -- sip/kfile/knotifydialog.sip | 314 --------- sip/kfile/knotifywidgetbase.sip | 64 -- sip/kfile/kopenwith.sip | 146 ---- sip/kfile/kpreviewwidgetbase.sip | 57 -- sip/kfile/kpropertiesdialog.sip | 304 --------- sip/kfile/kpropsdlg.sip | 208 ------ sip/kfile/krecentdirs.sip | 40 -- sip/kfile/krecentdocument.sip | 44 -- sip/kfile/kurlbar.sip | 213 ------ sip/kfile/kurlcombobox.sip | 80 --- sip/kfile/kurlrequester.sip | 112 ---- sip/kfile/kurlrequesterdlg.sip | 43 -- sip/kio/global.sip | 2 +- sip/kio/kdirlister.sip | 2 +- sip/kio/kfilefilter.sip | 81 --- sip/kio/kfileitem.sip | 171 ----- sip/kio/kfilemetainfo.sip | 460 ------------- sip/kio/kfileshare.sip | 87 --- sip/kio/kio-kde310.diff | 2 +- sip/kio/kio-kde312.diff | 2 +- sip/kio/kio-kde313.diff | 2 +- sip/kio/kio-kde314.diff | 2 +- sip/kio/kio-kde315.diff | 2 +- sip/kio/kio-kde320.diff | 2 +- sip/kio/kio-kde321.diff | 2 +- sip/kio/kio-kde322.diff | 2 +- sip/kio/kio-kde323.diff | 2 +- sip/kio/kio-kde330.diff | 2 +- sip/kio/kio-kde331.diff | 2 +- sip/kio/kio-kde332.diff | 2 +- sip/kio/kio-kde340.diff | 2 +- sip/kio/kio-kde341.diff | 2 +- sip/kio/kio-kde342.diff | 2 +- sip/kio/kio-kde343.diff | 2 +- sip/kio/kio-kde350.diff | 2 +- sip/kio/kio-kde351.diff | 2 +- sip/kio/kio-kde352.diff | 2 +- sip/kio/kio-kde353.diff | 2 +- sip/kio/kiomod.sip.in | 6 +- sip/kio/metainfojob.sip | 2 +- sip/kio/tdefilefilter.sip | 81 +++ sip/kio/tdefileitem.sip | 171 +++++ sip/kio/tdefilemetainfo.sip | 460 +++++++++++++ sip/kio/tdefileshare.sip | 87 +++ sip/tdecore/bytearray.sip | 2 +- sip/tdecore/kconfig.sip | 238 ------- sip/tdecore/kconfigbackend.sip | 93 --- sip/tdecore/kconfigbase.sip | 333 ---------- sip/tdecore/kconfigdata.sip | 172 ----- sip/tdecore/kconfigdialogmanager.sip | 64 -- sip/tdecore/kconfigskeleton.sip | 1146 -------------------------------- sip/tdecore/kshortcutlist.sip | 6 +- sip/tdecore/tdeconfig.sip | 238 +++++++ sip/tdecore/tdeconfigbackend.sip | 93 +++ sip/tdecore/tdeconfigbase.sip | 333 ++++++++++ sip/tdecore/tdeconfigdata.sip | 172 +++++ sip/tdecore/tdeconfigdialogmanager.sip | 64 ++ sip/tdecore/tdeconfigskeleton.sip | 1146 ++++++++++++++++++++++++++++++++ sip/tdecore/tdecore-kde320.diff | 4 +- sip/tdecore/tdecore-kde321.diff | 4 +- sip/tdecore/tdecore-kde322.diff | 4 +- sip/tdecore/tdecore-kde323.diff | 4 +- sip/tdecore/tdecore-kde330.diff | 4 +- sip/tdecore/tdecore-kde331.diff | 4 +- sip/tdecore/tdecore-kde332.diff | 4 +- sip/tdecore/tdecore-kde340.diff | 4 +- sip/tdecore/tdecore-kde341.diff | 4 +- sip/tdecore/tdecore-kde342.diff | 4 +- sip/tdecore/tdecore-kde343.diff | 4 +- sip/tdecore/tdecore-kde350.diff | 4 +- sip/tdecore/tdecore-kde351.diff | 4 +- sip/tdecore/tdecore-kde352.diff | 4 +- sip/tdecore/tdecore-kde353.diff | 4 +- sip/tdecore/tdecoremod.sip.in | 8 +- sip/tdefile/booktoken.sip | 66 ++ sip/tdefile/kcombiview.sip | 90 +++ sip/tdefile/kcustommenueditor.sip | 57 ++ sip/tdefile/kdiroperator.sip | 205 ++++++ sip/tdefile/kdirselectdialog.sip | 71 ++ sip/tdefile/kdirsize.sip | 85 +++ sip/tdefile/kdiskfreesp.sip | 49 ++ sip/tdefile/kencodingfiledialog.sip | 65 ++ sip/tdefile/kicondialog.sip | 131 ++++ sip/tdefile/kimagefilepreview.sip | 57 ++ sip/tdefile/knotifydialog.sip | 314 +++++++++ sip/tdefile/knotifywidgetbase.sip | 64 ++ sip/tdefile/kopenwith.sip | 146 ++++ sip/tdefile/kpreviewwidgetbase.sip | 57 ++ sip/tdefile/kpropertiesdialog.sip | 304 +++++++++ sip/tdefile/kpropsdlg.sip | 208 ++++++ sip/tdefile/krecentdirs.sip | 40 ++ sip/tdefile/krecentdocument.sip | 44 ++ sip/tdefile/kurlbar.sip | 213 ++++++ sip/tdefile/kurlcombobox.sip | 80 +++ sip/tdefile/kurlrequester.sip | 112 ++++ sip/tdefile/kurlrequesterdlg.sip | 43 ++ sip/tdefile/tdefile-kde310.diff | 5 + sip/tdefile/tdefile-kde311.diff | 5 + sip/tdefile/tdefile-kde312.diff | 5 + sip/tdefile/tdefile-kde313.diff | 5 + sip/tdefile/tdefile-kde314.diff | 5 + sip/tdefile/tdefile-kde315.diff | 5 + sip/tdefile/tdefile-kde320.diff | 6 + sip/tdefile/tdefile-kde321.diff | 5 + sip/tdefile/tdefile-kde322.diff | 5 + sip/tdefile/tdefile-kde323.diff | 5 + sip/tdefile/tdefile-kde330.diff | 5 + sip/tdefile/tdefile-kde331.diff | 5 + sip/tdefile/tdefile-kde332.diff | 5 + sip/tdefile/tdefile-kde340.diff | 5 + sip/tdefile/tdefile-kde341.diff | 5 + sip/tdefile/tdefile-kde342.diff | 5 + sip/tdefile/tdefile-kde343.diff | 5 + sip/tdefile/tdefile-kde350.diff | 5 + sip/tdefile/tdefile-kde351.diff | 5 + sip/tdefile/tdefile-kde352.diff | 6 + sip/tdefile/tdefile-kde353.diff | 5 + sip/tdefile/tdefile.sip | 115 ++++ sip/tdefile/tdefilebookmark.sip | 154 +++++ sip/tdefile/tdefiledetailview.sip | 207 ++++++ sip/tdefile/tdefiledialog.sip | 207 ++++++ sip/tdefile/tdefilefiltercombo.sip | 58 ++ sip/tdefile/tdefileiconview.sip | 141 ++++ sip/tdefile/tdefilemod.sip.in | 63 ++ sip/tdefile/tdefilepreview.sip | 80 +++ sip/tdefile/tdefilereader.sip | 47 ++ sip/tdefile/tdefilesharedlg.sip | 53 ++ sip/tdefile/tdefiletreebranch.sip | 233 +++++++ sip/tdefile/tdefiletreeview.sip | 109 +++ sip/tdefile/tdefiletreeviewitem.sip | 48 ++ sip/tdefile/tdefileview.sip | 153 +++++ sip/tdefile/tdefileviewitem.sip | 58 ++ sip/tderesources/resource.sip | 2 +- sip/tdespell/tdespellmod.sip.in | 2 +- sip/tdeui/kactionshortcutlist.sip | 4 +- sip/tdeui/kconfigdialog.sip | 69 -- sip/tdeui/tdeconfigdialog.sip | 69 ++ sip/tdeui/tdeui-kde320.diff | 2 +- sip/tdeui/tdeui-kde321.diff | 2 +- sip/tdeui/tdeui-kde322.diff | 2 +- sip/tdeui/tdeui-kde323.diff | 2 +- sip/tdeui/tdeui-kde330.diff | 2 +- sip/tdeui/tdeui-kde331.diff | 2 +- sip/tdeui/tdeui-kde332.diff | 2 +- sip/tdeui/tdeui-kde340.diff | 2 +- sip/tdeui/tdeui-kde341.diff | 2 +- sip/tdeui/tdeui-kde342.diff | 2 +- sip/tdeui/tdeui-kde343.diff | 2 +- sip/tdeui/tdeui-kde350.diff | 2 +- sip/tdeui/tdeui-kde351.diff | 2 +- sip/tdeui/tdeui-kde352.diff | 2 +- sip/tdeui/tdeui-kde353.diff | 2 +- 198 files changed, 7331 insertions(+), 7331 deletions(-) delete mode 100644 sip/kfile/booktoken.sip delete mode 100644 sip/kfile/kcombiview.sip delete mode 100644 sip/kfile/kcustommenueditor.sip delete mode 100644 sip/kfile/kdiroperator.sip delete mode 100644 sip/kfile/kdirselectdialog.sip delete mode 100644 sip/kfile/kdirsize.sip delete mode 100644 sip/kfile/kdiskfreesp.sip delete mode 100644 sip/kfile/kencodingfiledialog.sip delete mode 100644 sip/kfile/kfile-kde310.diff delete mode 100644 sip/kfile/kfile-kde311.diff delete mode 100644 sip/kfile/kfile-kde312.diff delete mode 100644 sip/kfile/kfile-kde313.diff delete mode 100644 sip/kfile/kfile-kde314.diff delete mode 100644 sip/kfile/kfile-kde315.diff delete mode 100644 sip/kfile/kfile-kde320.diff delete mode 100644 sip/kfile/kfile-kde321.diff delete mode 100644 sip/kfile/kfile-kde322.diff delete mode 100644 sip/kfile/kfile-kde323.diff delete mode 100644 sip/kfile/kfile-kde330.diff delete mode 100644 sip/kfile/kfile-kde331.diff delete mode 100644 sip/kfile/kfile-kde332.diff delete mode 100644 sip/kfile/kfile-kde340.diff delete mode 100644 sip/kfile/kfile-kde341.diff delete mode 100644 sip/kfile/kfile-kde342.diff delete mode 100644 sip/kfile/kfile-kde343.diff delete mode 100644 sip/kfile/kfile-kde350.diff delete mode 100644 sip/kfile/kfile-kde351.diff delete mode 100644 sip/kfile/kfile-kde352.diff delete mode 100644 sip/kfile/kfile-kde353.diff delete mode 100644 sip/kfile/kfile.sip delete mode 100644 sip/kfile/kfilebookmark.sip delete mode 100644 sip/kfile/kfiledetailview.sip delete mode 100644 sip/kfile/kfiledialog.sip delete mode 100644 sip/kfile/kfilefiltercombo.sip delete mode 100644 sip/kfile/kfileiconview.sip delete mode 100644 sip/kfile/kfilemod.sip.in delete mode 100644 sip/kfile/kfilepreview.sip delete mode 100644 sip/kfile/kfilereader.sip delete mode 100644 sip/kfile/kfilesharedlg.sip delete mode 100644 sip/kfile/kfiletreebranch.sip delete mode 100644 sip/kfile/kfiletreeview.sip delete mode 100644 sip/kfile/kfiletreeviewitem.sip delete mode 100644 sip/kfile/kfileview.sip delete mode 100644 sip/kfile/kfileviewitem.sip delete mode 100644 sip/kfile/kicondialog.sip delete mode 100644 sip/kfile/kimagefilepreview.sip delete mode 100644 sip/kfile/knotifydialog.sip delete mode 100644 sip/kfile/knotifywidgetbase.sip delete mode 100644 sip/kfile/kopenwith.sip delete mode 100644 sip/kfile/kpreviewwidgetbase.sip delete mode 100644 sip/kfile/kpropertiesdialog.sip delete mode 100644 sip/kfile/kpropsdlg.sip delete mode 100644 sip/kfile/krecentdirs.sip delete mode 100644 sip/kfile/krecentdocument.sip delete mode 100644 sip/kfile/kurlbar.sip delete mode 100644 sip/kfile/kurlcombobox.sip delete mode 100644 sip/kfile/kurlrequester.sip delete mode 100644 sip/kfile/kurlrequesterdlg.sip delete mode 100644 sip/kio/kfilefilter.sip delete mode 100644 sip/kio/kfileitem.sip delete mode 100644 sip/kio/kfilemetainfo.sip delete mode 100644 sip/kio/kfileshare.sip create mode 100644 sip/kio/tdefilefilter.sip create mode 100644 sip/kio/tdefileitem.sip create mode 100644 sip/kio/tdefilemetainfo.sip create mode 100644 sip/kio/tdefileshare.sip delete mode 100644 sip/tdecore/kconfig.sip delete mode 100644 sip/tdecore/kconfigbackend.sip delete mode 100644 sip/tdecore/kconfigbase.sip delete mode 100644 sip/tdecore/kconfigdata.sip delete mode 100644 sip/tdecore/kconfigdialogmanager.sip delete mode 100644 sip/tdecore/kconfigskeleton.sip create mode 100644 sip/tdecore/tdeconfig.sip create mode 100644 sip/tdecore/tdeconfigbackend.sip create mode 100644 sip/tdecore/tdeconfigbase.sip create mode 100644 sip/tdecore/tdeconfigdata.sip create mode 100644 sip/tdecore/tdeconfigdialogmanager.sip create mode 100644 sip/tdecore/tdeconfigskeleton.sip create mode 100644 sip/tdefile/booktoken.sip create mode 100644 sip/tdefile/kcombiview.sip create mode 100644 sip/tdefile/kcustommenueditor.sip create mode 100644 sip/tdefile/kdiroperator.sip create mode 100644 sip/tdefile/kdirselectdialog.sip create mode 100644 sip/tdefile/kdirsize.sip create mode 100644 sip/tdefile/kdiskfreesp.sip create mode 100644 sip/tdefile/kencodingfiledialog.sip create mode 100644 sip/tdefile/kicondialog.sip create mode 100644 sip/tdefile/kimagefilepreview.sip create mode 100644 sip/tdefile/knotifydialog.sip create mode 100644 sip/tdefile/knotifywidgetbase.sip create mode 100644 sip/tdefile/kopenwith.sip create mode 100644 sip/tdefile/kpreviewwidgetbase.sip create mode 100644 sip/tdefile/kpropertiesdialog.sip create mode 100644 sip/tdefile/kpropsdlg.sip create mode 100644 sip/tdefile/krecentdirs.sip create mode 100644 sip/tdefile/krecentdocument.sip create mode 100644 sip/tdefile/kurlbar.sip create mode 100644 sip/tdefile/kurlcombobox.sip create mode 100644 sip/tdefile/kurlrequester.sip create mode 100644 sip/tdefile/kurlrequesterdlg.sip create mode 100644 sip/tdefile/tdefile-kde310.diff create mode 100644 sip/tdefile/tdefile-kde311.diff create mode 100644 sip/tdefile/tdefile-kde312.diff create mode 100644 sip/tdefile/tdefile-kde313.diff create mode 100644 sip/tdefile/tdefile-kde314.diff create mode 100644 sip/tdefile/tdefile-kde315.diff create mode 100644 sip/tdefile/tdefile-kde320.diff create mode 100644 sip/tdefile/tdefile-kde321.diff create mode 100644 sip/tdefile/tdefile-kde322.diff create mode 100644 sip/tdefile/tdefile-kde323.diff create mode 100644 sip/tdefile/tdefile-kde330.diff create mode 100644 sip/tdefile/tdefile-kde331.diff create mode 100644 sip/tdefile/tdefile-kde332.diff create mode 100644 sip/tdefile/tdefile-kde340.diff create mode 100644 sip/tdefile/tdefile-kde341.diff create mode 100644 sip/tdefile/tdefile-kde342.diff create mode 100644 sip/tdefile/tdefile-kde343.diff create mode 100644 sip/tdefile/tdefile-kde350.diff create mode 100644 sip/tdefile/tdefile-kde351.diff create mode 100644 sip/tdefile/tdefile-kde352.diff create mode 100644 sip/tdefile/tdefile-kde353.diff create mode 100644 sip/tdefile/tdefile.sip create mode 100644 sip/tdefile/tdefilebookmark.sip create mode 100644 sip/tdefile/tdefiledetailview.sip create mode 100644 sip/tdefile/tdefiledialog.sip create mode 100644 sip/tdefile/tdefilefiltercombo.sip create mode 100644 sip/tdefile/tdefileiconview.sip create mode 100644 sip/tdefile/tdefilemod.sip.in create mode 100644 sip/tdefile/tdefilepreview.sip create mode 100644 sip/tdefile/tdefilereader.sip create mode 100644 sip/tdefile/tdefilesharedlg.sip create mode 100644 sip/tdefile/tdefiletreebranch.sip create mode 100644 sip/tdefile/tdefiletreeview.sip create mode 100644 sip/tdefile/tdefiletreeviewitem.sip create mode 100644 sip/tdefile/tdefileview.sip create mode 100644 sip/tdefile/tdefileviewitem.sip delete mode 100644 sip/tdeui/kconfigdialog.sip create mode 100644 sip/tdeui/tdeconfigdialog.sip (limited to 'sip') diff --git a/sip/kfile/booktoken.sip b/sip/kfile/booktoken.sip deleted file mode 100644 index 182f5cd..0000000 --- a/sip/kfile/booktoken.sip +++ /dev/null @@ -1,66 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%End - - -public: - BMToken (const char*, int); - char* token (); - BMToken* next (); - void setNext (BMToken*); - -}; // class BMToken - - -class BookmarkTokenizer -{ -%TypeHeaderCode -#include -%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/kfile/kcombiview.sip b/sip/kfile/kcombiview.sip deleted file mode 100644 index 6e44ab4..0000000 --- a/sip/kfile/kcombiview.sip +++ /dev/null @@ -1,90 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kcustommenueditor.sip b/sip/kfile/kcustommenueditor.sip deleted file mode 100644 index 733d7bd..0000000 --- a/sip/kfile/kcustommenueditor.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kdiroperator.sip b/sip/kfile/kdiroperator.sip deleted file mode 100644 index 31ac0e2..0000000 --- a/sip/kfile/kdiroperator.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kdirselectdialog.sip b/sip/kfile/kdirselectdialog.sip deleted file mode 100644 index d464907..0000000 --- a/sip/kfile/kdirselectdialog.sip +++ /dev/null @@ -1,71 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kdirsize.sip b/sip/kfile/kdirsize.sip deleted file mode 100644 index 2f0a553..0000000 --- a/sip/kfile/kdirsize.sip +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kdiskfreesp.sip b/sip/kfile/kdiskfreesp.sip deleted file mode 100644 index 4e8433b..0000000 --- a/sip/kfile/kdiskfreesp.sip +++ /dev/null @@ -1,49 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kencodingfiledialog.sip b/sip/kfile/kencodingfiledialog.sip deleted file mode 100644 index 9214b47..0000000 --- a/sip/kfile/kencodingfiledialog.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfile-kde310.diff b/sip/kfile/kfile-kde310.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde310.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde311.diff b/sip/kfile/kfile-kde311.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde311.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde312.diff b/sip/kfile/kfile-kde312.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde312.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde313.diff b/sip/kfile/kfile-kde313.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde313.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde314.diff b/sip/kfile/kfile-kde314.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde314.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde315.diff b/sip/kfile/kfile-kde315.diff deleted file mode 100644 index ddad6d6..0000000 --- a/sip/kfile/kfile-kde315.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip diff --git a/sip/kfile/kfile-kde320.diff b/sip/kfile/kfile-kde320.diff deleted file mode 100644 index f5ab9bd..0000000 --- a/sip/kfile/kfile-kde320.diff +++ /dev/null @@ -1,6 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip -+ %Include knotifywidgetbase.sip \ No newline at end of file diff --git a/sip/kfile/kfile-kde321.diff b/sip/kfile/kfile-kde321.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde321.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde322.diff b/sip/kfile/kfile-kde322.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde322.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde323.diff b/sip/kfile/kfile-kde323.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde323.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde330.diff b/sip/kfile/kfile-kde330.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde330.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde331.diff b/sip/kfile/kfile-kde331.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde331.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde332.diff b/sip/kfile/kfile-kde332.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde332.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde340.diff b/sip/kfile/kfile-kde340.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde340.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde341.diff b/sip/kfile/kfile-kde341.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde341.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde342.diff b/sip/kfile/kfile-kde342.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde342.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde343.diff b/sip/kfile/kfile-kde343.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde343.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde350.diff b/sip/kfile/kfile-kde350.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde350.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde351.diff b/sip/kfile/kfile-kde351.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde351.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde352.diff b/sip/kfile/kfile-kde352.diff deleted file mode 100644 index 81a0603..0000000 --- a/sip/kfile/kfile-kde352.diff +++ /dev/null @@ -1,6 +0,0 @@ -- %Include krecentdirs.sip -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile-kde353.diff b/sip/kfile/kfile-kde353.diff deleted file mode 100644 index 2545aae..0000000 --- a/sip/kfile/kfile-kde353.diff +++ /dev/null @@ -1,5 +0,0 @@ -+ %Include kcustommenueditor.sip -+ %Include kdiskfreesp.sip -+ %Include kencodingfiledialog.sip -+ %Include kfilesharedlg.sip -+ %Include knotifydialog.sip diff --git a/sip/kfile/kfile.sip b/sip/kfile/kfile.sip deleted file mode 100644 index e145655..0000000 --- a/sip/kfile/kfile.sip +++ /dev/null @@ -1,115 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfilebookmark.sip b/sip/kfile/kfilebookmark.sip deleted file mode 100644 index 59315ab..0000000 --- a/sip/kfile/kfilebookmark.sip +++ /dev/null @@ -1,154 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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& getChildren (); - -}; // class KFileBookmark - - -class KFileBookmarkManager : TQObject -{ -%TypeHeaderCode -#include -%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 -//converts a Python list of KFileBookmark -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - TQPtrList *cpplist = (TQPtrList *)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 *cpplist = new TQPtrList; - - 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/kfile/kfiledetailview.sip b/sip/kfile/kfiledetailview.sip deleted file mode 100644 index 0b7e13e..0000000 --- a/sip/kfile/kfiledetailview.sip +++ /dev/null @@ -1,207 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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/kfile/kfiledialog.sip b/sip/kfile/kfiledialog.sip deleted file mode 100644 index 9b68e13..0000000 --- a/sip/kfile/kfiledialog.sip +++ /dev/null @@ -1,207 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfilefiltercombo.sip b/sip/kfile/kfilefiltercombo.sip deleted file mode 100644 index 28f43d2..0000000 --- a/sip/kfile/kfilefiltercombo.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfileiconview.sip b/sip/kfile/kfileiconview.sip deleted file mode 100644 index e7717ae..0000000 --- a/sip/kfile/kfileiconview.sip +++ /dev/null @@ -1,141 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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/kfile/kfilemod.sip.in b/sip/kfile/kfilemod.sip.in deleted file mode 100644 index 34e1179..0000000 --- a/sip/kfile/kfilemod.sip.in +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 kfile - -%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 kfile.sip -%Include kfiledetailview.sip -%Include kfiledialog.sip -%Include kfilefiltercombo.sip -%Include kfileiconview.sip -%Include kfilepreview.sip -%Include kfiletreebranch.sip -%Include kfiletreeview.sip -%Include kfiletreeviewitem.sip -%Include kfileview.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/kfile/kfilepreview.sip b/sip/kfile/kfilepreview.sip deleted file mode 100644 index 6d2095e..0000000 --- a/sip/kfile/kfilepreview.sip +++ /dev/null @@ -1,80 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfilereader.sip b/sip/kfile/kfilereader.sip deleted file mode 100644 index 8f4a5d6..0000000 --- a/sip/kfile/kfilereader.sip +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfilesharedlg.sip b/sip/kfile/kfilesharedlg.sip deleted file mode 100644 index b3d78ff..0000000 --- a/sip/kfile/kfilesharedlg.sip +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kfiletreebranch.sip b/sip/kfile/kfiletreebranch.sip deleted file mode 100644 index 15c9d47..0000000 --- a/sip/kfile/kfiletreebranch.sip +++ /dev/null @@ -1,233 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 KFileTreeBranchList; -//ig typedef TQPtrListIterator KFileTreeBranchIterator; - - -%MappedType TQPtrList -//converts a Python list of KFileTreeViewItem -{ -%TypeHeaderCode -#include -typedef TQPtrList 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 *cList = (TQPtrList *)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 *cList = new TQPtrList; - - 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 -//converts a Python list of KFileTreeBranch -{ -%TypeHeaderCode -#include -//typedef TQPtrList 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 *cList = (TQPtrList *)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 *cList = new TQPtrList; - - 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/kfile/kfiletreeview.sip b/sip/kfile/kfiletreeview.sip deleted file mode 100644 index d89e59a..0000000 --- a/sip/kfile/kfiletreeview.sip +++ /dev/null @@ -1,109 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%End - - -public: - KFileTreeViewToolTip (TQListView*); - -protected: - virtual void maybeTip (const TQPoint&); - -}; // class KFileTreeViewToolTip - - -class KFileTreeView : KListView -{ -%TypeHeaderCode -#include -%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/kfile/kfiletreeviewitem.sip b/sip/kfile/kfiletreeviewitem.sip deleted file mode 100644 index 1d52d86..0000000 --- a/sip/kfile/kfiletreeviewitem.sip +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 KFileTreeViewItemList; -//ig typedef TQPtrListIterator KFileTreeViewItemListIterator; diff --git a/sip/kfile/kfileview.sip b/sip/kfile/kfileview.sip deleted file mode 100644 index b29fe7e..0000000 --- a/sip/kfile/kfileview.sip +++ /dev/null @@ -1,153 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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/kfile/kfileviewitem.sip b/sip/kfile/kfileviewitem.sip deleted file mode 100644 index 4193b3a..0000000 --- a/sip/kfile/kfileviewitem.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 KFileViewItemList; -//ig typedef TQListIterator KFileViewItemListIterator; - - diff --git a/sip/kfile/kicondialog.sip b/sip/kfile/kicondialog.sip deleted file mode 100644 index 819bac2..0000000 --- a/sip/kfile/kicondialog.sip +++ /dev/null @@ -1,131 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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 -%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/kfile/kimagefilepreview.sip b/sip/kfile/kimagefilepreview.sip deleted file mode 100644 index 808b307..0000000 --- a/sip/kfile/kimagefilepreview.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -#include -%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/kfile/knotifydialog.sip b/sip/kfile/knotifydialog.sip deleted file mode 100644 index ad16340..0000000 --- a/sip/kfile/knotifydialog.sip +++ /dev/null @@ -1,314 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 EventList; -//ig typedef TQPtrListIterator ApplicationListIterator; -//ig typedef TQPtrListIterator EventListIterator; - -class Application -{ -%TypeHeaderCode -#include -%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 -%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 -#include -%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 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 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 -%End - - -}; // class ApplicationList - -//end -}; // namespace KNotify - -%End - - - -%If (KDE_3_1_0 - ) -%MappedType TQPtrList -//converts a Python list of KNotify.Event -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New (0); - - PyObject *pylist; - - // Create the list - - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - // Get it. - - TQPtrList *cpplist = (TQPtrList *)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 *cpplist = new TQPtrList; - - 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/kfile/knotifywidgetbase.sip b/sip/kfile/knotifywidgetbase.sip deleted file mode 100644 index f83b853..0000000 --- a/sip/kfile/knotifywidgetbase.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kopenwith.sip b/sip/kfile/kopenwith.sip deleted file mode 100644 index 840186d..0000000 --- a/sip/kfile/kopenwith.sip +++ /dev/null @@ -1,146 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%End - - -public: - KFileOpenWithHandler (); - virtual bool displayOpenWithDialog (const KURL::List&); - -}; // class KFileOpenWithHandler - - -%If ( - KDE_3_1_0 ) - -class KAppTreeListItem : TQListViewItem -{ -%TypeHeaderCode -#include -%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 -%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/kfile/kpreviewwidgetbase.sip b/sip/kfile/kpreviewwidgetbase.sip deleted file mode 100644 index cb44f70..0000000 --- a/sip/kfile/kpreviewwidgetbase.sip +++ /dev/null @@ -1,57 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kpropertiesdialog.sip b/sip/kfile/kpropertiesdialog.sip deleted file mode 100644 index 5229058..0000000 --- a/sip/kfile/kpropertiesdialog.sip +++ /dev/null @@ -1,304 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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 -%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 -%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 -%End - - -public: - KURLPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KURLPropsPlugin - - -class KBindingPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KBindingPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KBindingPropsPlugin - - -class KDevicePropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KDevicePropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KDevicePropsPlugin - - -%If ( KDE_3_2_0 - ) - -class KDesktopPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%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 -%End - - -public: - KExecPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -public slots: - void slotBrowseExec (); - -}; // class KExecPropsPlugin - - -class TDEApplicationPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - TDEApplicationPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -public slots: - void slotDelExtension (); - void slotAddExtension (); - -}; // class TDEApplicationPropsPlugin - diff --git a/sip/kfile/kpropsdlg.sip b/sip/kfile/kpropsdlg.sip deleted file mode 100644 index 81d697f..0000000 --- a/sip/kfile/kpropsdlg.sip +++ /dev/null @@ -1,208 +0,0 @@ -// -// Copyright 2003 Jim Bublitz -// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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 -%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 -%End - - -public: - KFilePermissionsPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KFilePermissionsPropsPlugin - - -class KExecPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KExecPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -public slots: - void slotBrowseExec (); - -}; // class KExecPropsPlugin - - -class KURLPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KURLPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KURLPropsPlugin - - -class TDEApplicationPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - TDEApplicationPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -public slots: - void slotDelExtension (); - void slotAddExtension (); - -}; // class TDEApplicationPropsPlugin - - -class KBindingPropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KBindingPropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KBindingPropsPlugin - - -class KDevicePropsPlugin : KPropsDlgPlugin -{ -%TypeHeaderCode -#include -%End - - -public: - KDevicePropsPlugin (KPropertiesDialog*); - virtual void applyChanges (); - static bool supports (KFileItemList); - -}; // class KDevicePropsPlugin - diff --git a/sip/kfile/krecentdirs.sip b/sip/kfile/krecentdirs.sip deleted file mode 100644 index 31fed75..0000000 --- a/sip/kfile/krecentdirs.sip +++ /dev/null @@ -1,40 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/krecentdocument.sip b/sip/kfile/krecentdocument.sip deleted file mode 100644 index 7e4c8cc..0000000 --- a/sip/kfile/krecentdocument.sip +++ /dev/null @@ -1,44 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kurlbar.sip b/sip/kfile/kurlbar.sip deleted file mode 100644 index d6e92f9..0000000 --- a/sip/kfile/kurlbar.sip +++ /dev/null @@ -1,213 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%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 -%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 -%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/kfile/kurlcombobox.sip b/sip/kfile/kurlcombobox.sip deleted file mode 100644 index 09e36a5..0000000 --- a/sip/kfile/kurlcombobox.sip +++ /dev/null @@ -1,80 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kfile/kurlrequester.sip b/sip/kfile/kurlrequester.sip deleted file mode 100644 index 9d44788..0000000 --- a/sip/kfile/kurlrequester.sip +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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 -%End - - -public: - KURLComboRequester (TQWidget* /TransferThis/ = 0, const char* = 0); - -}; // class KURLComboRequester - -%End - diff --git a/sip/kfile/kurlrequesterdlg.sip b/sip/kfile/kurlrequesterdlg.sip deleted file mode 100644 index d58e786..0000000 --- a/sip/kfile/kurlrequesterdlg.sip +++ /dev/null @@ -1,43 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kfile 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 -%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/kio/global.sip b/sip/kio/global.sip index 6ba32e2..0923e77 100644 --- a/sip/kio/global.sip +++ b/sip/kio/global.sip @@ -24,7 +24,7 @@ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %ModuleHeaderCode -#include +#include %End namespace TDEIO diff --git a/sip/kio/kdirlister.sip b/sip/kio/kdirlister.sip index f41aa68..6adce18 100644 --- a/sip/kio/kdirlister.sip +++ b/sip/kio/kdirlister.sip @@ -129,7 +129,7 @@ protected: //converts a Python list of KFileItem { %TypeHeaderCode -#include +#include %End %ConvertFromTypeCode diff --git a/sip/kio/kfilefilter.sip b/sip/kio/kfilefilter.sip deleted file mode 100644 index 481f004..0000000 --- a/sip/kio/kfilefilter.sip +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio 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 KFileFilter -{ -%TypeHeaderCode -#include -%End - - -public: - virtual bool passesFilter (const KFileItem*) const = 0; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFileFilter - - -class KSimpleFileFilter : KFileFilter -{ -%TypeHeaderCode -#include -%End - - -public: - KSimpleFileFilter (); - virtual void setFilterDotFiles (bool); - bool filterDotFiles () const; - virtual void setFilterSpecials (bool); - bool filterSpecials () const; - -%If ( KDE_3_1_0 - ) - void setNameFilters (const TQString&, bool, const TQChar& = ' '); -%End - - virtual void setNameFilters (const TQString&); - virtual void setMimeFilters (const TQStringList&); - TQStringList mimeFilters () const; - virtual void setModeFilter (mode_t); - mode_t modeFilter () const; - virtual bool passesFilter (const KFileItem*) const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -public: - -%If ( - KDE_3_2_0 ) -//ig TQString nameFilters () const; -%End - - -}; // class KSimpleFileFilter - diff --git a/sip/kio/kfileitem.sip b/sip/kio/kfileitem.sip deleted file mode 100644 index 3cf982b..0000000 --- a/sip/kio/kfileitem.sip +++ /dev/null @@ -1,171 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio 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 KFileItem -{ -%TypeHeaderCode -#include -%End - - -public: - - enum - { - Unknown - }; - - KFileItem (const TDEIO::UDSEntry&, const KURL&, bool = 0, bool = 0); - KFileItem (mode_t, mode_t, const KURL&, bool = 0); - KFileItem (const KURL&, const TQString&, mode_t); - KFileItem (const KFileItem&); - void refresh (); - void refreshMimeType (); - const KURL& url () const; - void setURL (const KURL&); - -%If ( KDE_3_2_0 - ) - void setName (const TQString&); -%End - - mode_t permissions () const; - TQString permissionsString () const; - -%If ( KDE_3_5_0 - ) - bool hasExtendedACL () const; - KACL ACL () const; - KACL defaultACL () const; -%End - - mode_t mode () const; - TQString user () const; - TQString group () const; - bool isLink () const; - bool isDir () const; - bool isFile () const; - bool isReadable () const; - -%If ( KDE_3_4_0 - ) - bool isWritable () const; -%End - - -%If ( KDE_3_3_0 - ) - bool isHidden () const; -%End - - TQString linkDest () const; - -%If ( KDE_3_4_0 - ) - TQString localPath () const; -%End - - TDEIO::filesize_t size () const; - -%If ( KDE_3_5_0 - ) - TDEIO::filesize_t size (bool& /Out/) const /PyName=sizeAndExists/; -%End - - time_t time (uint) const; - -%If ( KDE_3_5_0 - ) - time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; -%End - - TQString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; - bool isLocalFile () const; - const TQString& text () const; - const TQString& name (bool = 0) const; - TQString mimetype () const; - KMimeType::Ptr determineMimeType (); - KMimeType::Ptr mimeTypePtr (); - bool isMimeTypeKnown () const; - TQString mimeComment (); - TQString iconName (); - TQPixmap pixmap (int, int = 0) const; - int overlays () const; - TQString getStatusBarInfo (); - TQString getToolTipText (int = 6); - bool acceptsDrops (); - void run (); - const TDEIO::UDSEntry& entry () const; - bool isMarked () const; - void mark (); - void unmark (); - bool cmp (const KFileItem&); -//ig virtual void setExtraData (const void*, void*); -//ig virtual const void* extraData (const void*) const; -//ig virtual void removeExtraData (const void*); - void setMetaInfo (const KFileMetaInfo&); - -%If ( KDE_3_5_0 - ) - void setFileMode (mode_t); - void setMimeType (const TQString&); -%End - - const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; - void assign (const KFileItem&); - -%If ( KDE_3_4_3 - ) - void setUDSEntry (const TDEIO::UDSEntry&, const KURL&, bool = 0, bool = 0); -%End - - -%If ( KDE_3_4_0 - ) - KURL mostLocalURL (bool&) const; -%End - - -protected: - void init (bool); - -%If ( KDE_3_4_3 - ) - void readUDSEntry (bool); -%End - - TQString parsePermissions (mode_t) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFileItem - -typedef TQPtrList KFileItemList; - -%If ( KDE_3_1_4 - ) -//ig typedef TQPtrListIterator KFileItemListIterator; - -%If ( KDE_3_2_0 - ) -//igx TQDataStream& operator << (TQDataStream&, const KFileItem&); -//igx TQDataStream& operator >> (TQDataStream&, KFileItem&); -%End - -%End - - -%If ( - KDE_3_1_4 ) -//ig typedef TQListIterator KFileItemListIterator; -%End diff --git a/sip/kio/kfilemetainfo.sip b/sip/kio/kfilemetainfo.sip deleted file mode 100644 index a5d8b78..0000000 --- a/sip/kio/kfilemetainfo.sip +++ /dev/null @@ -1,460 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio 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 KFileMimeTypeInfo -{ -%TypeHeaderCode -#include -%End - - -public: - KFileMimeTypeInfo (); - -%If ( KDE_3_3_0 - ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cumulative, - Cummulative, - Averaged, - MultiLine, - SqueezeText - }; - -%End - - - enum Hint - { - NoHint, - Name, - Author, - Description, - Width, - Height, - Size, - Bitrate, - Length, - Hidden, - Thumbnail - }; - - -%If ( KDE_3_3_0 - ) - - enum Unit - { - NoUnit, - Seconds, - MilliSeconds, - BitsPerSecond, - Pixels, - Inches, - Centimeters, - Bytes, - FramesPerSecond, - DotsPerInch, - BitsPerPixel, - Hertz, - KiloBytes, - Millimeters - }; - -%End - - - class GroupInfo - { - - public: - TQStringList supportedKeys () const; - const TQString& name () const; - const TQString& translatedName () const; - const KFileMimeTypeInfo::ItemInfo* itemInfo (const TQString&) const; - uint attributes () const; - bool supportsVariableKeys () const; - const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; - - private: - GroupInfo (const TQString&, const TQString&); - - }; // class GroupInfo - - -public: - - class ItemInfo - { - - public: - ItemInfo (); - const TQString& prefix () const; - const TQString& suffix () const; - TQVariant::Type type () const; - const TQString& key () const; - -%If ( KDE_3_1_0 - ) - TQString string (const TQVariant&, bool = 1) const; -%End - - bool isVariableItem () const; - const TQString& translatedKey () const; - uint attributes () const; - uint hint () const; - uint unit () const; - - private: - ItemInfo (const TQString&, const TQString&, TQVariant::Type); - - }; // class ItemInfo - - -public: - TQValidator* createValidator (const TQString&, const TQString&, TQObject* /Transfer/ = 0, const char* = 0) const; - TQStringList supportedGroups () const; - TQStringList translatedGroups () const; - TQStringList preferredGroups () const; - TQString mimeType () const; - const KFileMimeTypeInfo::GroupInfo* groupInfo (const TQString&) const; - TQStringList supportedKeys () const; - TQStringList preferredKeys () const; - KFileMimeTypeInfo::GroupInfo* addGroupInfo (const TQString&, const TQString&); - TQString m_translatedName; - TQStringList m_supportedKeys; - uint m_attr; -//ig TQDict m_itemDict; - -protected: - KFileMimeTypeInfo (const TQString&); - -public: - -%If ( KDE_3_1_0 - KDE_3_3_0 ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cummulative, - Averaged, - MultiLine, - SqueezeText - }; - -%End - - -public: - -%If ( - KDE_3_1_0 ) - - enum Attributes - { - Addable, - Removable, - Modifiable, - Cummulative, - Averaged - }; - -%End - - -}; // class KFileMimeTypeInfo - - -class KFileMetaInfoItem -{ -%TypeHeaderCode -#include -%End - - -public: - typedef KFileMimeTypeInfo::Hint Hint; -//ig typedef KFileMimeTypeInfo::Unit Unit; - typedef KFileMimeTypeInfo::Attributes Attributes; - KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const TQString&, const TQVariant&); - KFileMetaInfoItem (const KFileMetaInfoItem&); - KFileMetaInfoItem (); - TQString key () const; - TQString translatedKey () const; - const TQVariant& value () const; - TQString string (bool = 1) const; - bool setValue (const TQVariant&); - TQVariant::Type type () const; - bool isEditable () const; - bool isRemoved () const; - bool isModified () const; - TQString prefix () const; - TQString suffix () const; - uint hint () const; -//ig uint unit () const; - uint attributes () const; - bool isValid () const; - -protected: - void setAdded (); - -%If ( KDE_3_1_0 - ) - void setRemoved (); -%End - - void ref (); - void deref (); - -}; // class KFileMetaInfoItem - - -class KFileMetaInfoGroup -{ -%TypeHeaderCode -#include -%End - - -public: - KFileMetaInfoGroup (const TQString&, const KFileMimeTypeInfo*); - KFileMetaInfoGroup (const KFileMetaInfoGroup&); - KFileMetaInfoGroup (); - bool isValid () const; - bool isEmpty () const; - -%If ( KDE_3_1_0 - ) - bool isModified () const; - -%If ( KDE_3_1_4 - ) - KFileMetaInfoItem operator [] (const TQString&) const; -%MethodCode -//returns (KFileMetaInfoItem) -//takes key | (TQString) - KFileMetaInfoItem sipResObj = ((*sipCpp) [*static_cast(a0)]); - sipRes = &sipResObj; -%End - -%End - -%End - - KFileMetaInfoItem item (const TQString&) const; - KFileMetaInfoItem item (uint) const; - const TQVariant value (const TQString&) const; - TQStringList supportedKeys () const; - bool supportsVariableKeys () const; - bool contains (const TQString&) const; - TQStringList keys () const; - TQStringList preferredKeys () const; - KFileMetaInfoItem addItem (const TQString&); - bool removeItem (const TQString&); - TQStringList removedItems (); - TQString name () const; - -%If ( KDE_3_2_0 - ) - TQString translatedName () const; -%End - - uint attributes () const; - -protected: - void setAdded (); - KFileMetaInfoItem appendItem (const TQString&, const TQVariant&); - void ref (); - void deref (); - -}; // class KFileMetaInfoGroup - - -class KFileMetaInfo -{ -%TypeHeaderCode -#include -%End - - -public: - typedef KFileMimeTypeInfo::Hint Hint; -//ig typedef KFileMimeTypeInfo::Unit Unit; - typedef KFileMimeTypeInfo::Attributes Attributes; - - enum What - { - Fastest, - DontCare, - TechnicalInfo, - ContentInfo, - ExtenedAttr, - Thumbnail, - Preferred, - Everything - }; - - KFileMetaInfo (const TQString&, const TQString& = TQString ::null , uint = Fastest ); - -%If ( KDE_3_2_0 - ) - KFileMetaInfo (const KURL&, const TQString& = TQString ::null , uint = Fastest ); -%End - - KFileMetaInfo (); - KFileMetaInfo (const KFileMetaInfo&); - TQStringList groups () const; - TQStringList supportedGroups () const; - TQStringList preferredGroups () const; - TQStringList preferredKeys () const; - TQStringList supportedKeys () const; - TQStringList editableGroups () const; - KFileMetaInfoItem item (const TQString&) const; - KFileMetaInfoItem item (const Hint) const; - KFileMetaInfoItem saveItem (const TQString&, const TQString& = TQString ::null , bool = 1); - KFileMetaInfoGroup group (const TQString&) const; - -%If ( KDE_3_1_4 - ) - KFileMetaInfoGroup operator [] (const TQString&) const; -%MethodCode -//returns (KFileMetaInfoGroup) -//takes key | (TQString) - KFileMetaInfoGroup sipResObj = ((*sipCpp) [*static_cast(a0)]); - sipRes = &sipResObj; -%End - -%End - - bool addGroup (const TQString&); - bool removeGroup (const TQString&); - TQStringList removedGroups (); - bool applyChanges (); - -%If ( KDE_3_5_3 - ) - bool applyChanges (const TQString&); -%End - - bool contains (const TQString&) const; - bool containsGroup (const TQString&) const; - const TQVariant value (const TQString&) const; - bool isValid () const; - bool isEmpty () const; - TQString mimeType () const; - TQString path () const; - -%If ( KDE_3_2_0 - ) - KURL url () const; -%End - - -protected: - KFileMetaInfoGroup appendGroup (const TQString&); - KFilePlugin* plugin () const; - void ref (); - void deref (); - -}; // class KFileMetaInfo - - -class KFilePlugin : TQObject -{ -%TypeHeaderCode -#include -%End - - -public: - KFilePlugin (TQObject* /TransferThis/, const char*, const TQStringList&); - virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; - virtual bool writeInfo (const KFileMetaInfo&) const; - virtual TQValidator* createValidator (const TQString&, const TQString&, const TQString&, TQObject*, const char*) const; - -protected: - KFileMimeTypeInfo* addMimeTypeInfo (const TQString&); - KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const TQString&, const TQString&) const; - void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; - void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, TQVariant::Type, uint) const; - KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const TQString&, const TQString&, TQVariant::Type); - void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); - void setHint (KFileMimeTypeInfo::ItemInfo*, uint); - void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); - void setPrefix (KFileMimeTypeInfo::ItemInfo*, const TQString&); - void setSuffix (KFileMimeTypeInfo::ItemInfo*, const TQString&); - KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const TQString&); - void appendItem (KFileMetaInfoGroup&, const TQString&, TQVariant); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KFilePlugin - - -class KFileMetaInfoProvider : TQObject -{ -%TypeHeaderCode -#include -%End - - -public: - static KFileMetaInfoProvider* self (); - KFilePlugin* plugin (const TQString&); - -%If ( KDE_3_4_0 - ) - KFilePlugin* plugin (const TQString&, const TQString&); -%End - - const KFileMimeTypeInfo* mimeTypeInfo (const TQString&); - -%If ( KDE_3_4_0 - ) - const KFileMimeTypeInfo* mimeTypeInfo (const TQString&, const TQString&); -%End - - TQStringList preferredKeys (const TQString&) const; - TQStringList preferredGroups (const TQString&) const; - -%If ( KDE_3_1_0 - ) - TQStringList supportedMimeTypes () const; -%End - - -protected: -//ig KFileMetaInfoProvider (); -//force - -private: - KFileMetaInfoProvider (); -//end - -}; // class KFileMetaInfoProvider - - -%If ( KDE_3_1_4 - ) -//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoItem&); -//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoItem&); -//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoGroup&); -//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoGroup&); -//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfo&); -//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfo&); -%End diff --git a/sip/kio/kfileshare.sip b/sip/kio/kfileshare.sip deleted file mode 100644 index 8b917dd..0000000 --- a/sip/kio/kfileshare.sip +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module kio 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. - - -//ig class KFileSharePrivate : TQObject; - - -%If ( KDE_3_1_0 - ) - -class KFileShare -{ -%TypeHeaderCode -#include -%End - - -public: - static void readConfig (); - -%If ( KDE_3_3_0 - ) - static void readShareList (); -%End - - static bool isDirectoryShared (const TQString&); - - enum Authorization - { - NotInitialized, - ErrorNotFound, - Authorized, - UserNotAllowed - }; - - static KFileShare::Authorization authorization (); - static TQString findExe (const char*); - static bool setShared (const TQString&, bool); - -%If ( KDE_3_3_0 - ) - - enum ShareMode - { - Simple, - Advanced - }; - - static bool sharingEnabled (); - static bool isRestricted (); - static TQString fileShareGroup (); - static KFileShare::ShareMode shareMode (); - static bool sambaEnabled (); - static bool nfsEnabled (); -%End - - -public: - -%If ( - KDE_3_1_5 ) -//ig static bool setShared (const TQString&, bool, bool); -%End - - -}; // class KFileShare - -%End - diff --git a/sip/kio/kio-kde310.diff b/sip/kio/kio-kde310.diff index 89a40fb..7abe6b3 100644 --- a/sip/kio/kio-kde310.diff +++ b/sip/kio/kio-kde310.diff @@ -1,5 +1,5 @@ + %Include davjob.sip + %Include kar.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde312.diff b/sip/kio/kio-kde312.diff index 89a40fb..7abe6b3 100644 --- a/sip/kio/kio-kde312.diff +++ b/sip/kio/kio-kde312.diff @@ -1,5 +1,5 @@ + %Include davjob.sip + %Include kar.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde313.diff b/sip/kio/kio-kde313.diff index 89a40fb..7abe6b3 100644 --- a/sip/kio/kio-kde313.diff +++ b/sip/kio/kio-kde313.diff @@ -1,5 +1,5 @@ + %Include davjob.sip + %Include kar.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde314.diff b/sip/kio/kio-kde314.diff index 89a40fb..7abe6b3 100644 --- a/sip/kio/kio-kde314.diff +++ b/sip/kio/kio-kde314.diff @@ -1,5 +1,5 @@ + %Include davjob.sip + %Include kar.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde315.diff b/sip/kio/kio-kde315.diff index 89a40fb..7abe6b3 100644 --- a/sip/kio/kio-kde315.diff +++ b/sip/kio/kio-kde315.diff @@ -1,5 +1,5 @@ + %Include davjob.sip + %Include kar.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde320.diff b/sip/kio/kio-kde320.diff index 5124944..db94510 100644 --- a/sip/kio/kio-kde320.diff +++ b/sip/kio/kio-kde320.diff @@ -1,6 +1,6 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde321.diff b/sip/kio/kio-kde321.diff index 5124944..db94510 100644 --- a/sip/kio/kio-kde321.diff +++ b/sip/kio/kio-kde321.diff @@ -1,6 +1,6 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde322.diff b/sip/kio/kio-kde322.diff index 5124944..db94510 100644 --- a/sip/kio/kio-kde322.diff +++ b/sip/kio/kio-kde322.diff @@ -1,6 +1,6 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde323.diff b/sip/kio/kio-kde323.diff index 5124944..db94510 100644 --- a/sip/kio/kio-kde323.diff +++ b/sip/kio/kio-kde323.diff @@ -1,6 +1,6 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kzip.sip + %Include metainfojob.sip diff --git a/sip/kio/kio-kde330.diff b/sip/kio/kio-kde330.diff index 901fbeb..acae23f 100644 --- a/sip/kio/kio-kde330.diff +++ b/sip/kio/kio-kde330.diff @@ -1,7 +1,7 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde331.diff b/sip/kio/kio-kde331.diff index 901fbeb..acae23f 100644 --- a/sip/kio/kio-kde331.diff +++ b/sip/kio/kio-kde331.diff @@ -1,7 +1,7 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde332.diff b/sip/kio/kio-kde332.diff index 901fbeb..acae23f 100644 --- a/sip/kio/kio-kde332.diff +++ b/sip/kio/kio-kde332.diff @@ -1,7 +1,7 @@ + %Include davjob.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde340.diff b/sip/kio/kio-kde340.diff index 324b1d4..ee6caf2 100644 --- a/sip/kio/kio-kde340.diff +++ b/sip/kio/kio-kde340.diff @@ -2,7 +2,7 @@ + %Include forwardingslavebase.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde341.diff b/sip/kio/kio-kde341.diff index 324b1d4..ee6caf2 100644 --- a/sip/kio/kio-kde341.diff +++ b/sip/kio/kio-kde341.diff @@ -2,7 +2,7 @@ + %Include forwardingslavebase.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde342.diff b/sip/kio/kio-kde342.diff index 324b1d4..ee6caf2 100644 --- a/sip/kio/kio-kde342.diff +++ b/sip/kio/kio-kde342.diff @@ -2,7 +2,7 @@ + %Include forwardingslavebase.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde343.diff b/sip/kio/kio-kde343.diff index 324b1d4..ee6caf2 100644 --- a/sip/kio/kio-kde343.diff +++ b/sip/kio/kio-kde343.diff @@ -2,7 +2,7 @@ + %Include forwardingslavebase.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde350.diff b/sip/kio/kio-kde350.diff index 3d0cb01..a601d8b 100644 --- a/sip/kio/kio-kde350.diff +++ b/sip/kio/kio-kde350.diff @@ -3,7 +3,7 @@ + %Include kacl.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde351.diff b/sip/kio/kio-kde351.diff index 3d0cb01..a601d8b 100644 --- a/sip/kio/kio-kde351.diff +++ b/sip/kio/kio-kde351.diff @@ -3,7 +3,7 @@ + %Include kacl.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde352.diff b/sip/kio/kio-kde352.diff index 3d0cb01..a601d8b 100644 --- a/sip/kio/kio-kde352.diff +++ b/sip/kio/kio-kde352.diff @@ -3,7 +3,7 @@ + %Include kacl.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kio-kde353.diff b/sip/kio/kio-kde353.diff index 3d0cb01..a601d8b 100644 --- a/sip/kio/kio-kde353.diff +++ b/sip/kio/kio-kde353.diff @@ -3,7 +3,7 @@ + %Include kacl.sip + %Include kar.sip + %Include kdcopservicestarter.sip -+ %Include kfileshare.sip ++ %Include tdefileshare.sip + %Include kmimetypechooser.sip + %Include knfsshare.sip + %Include kremoteencoding.sip diff --git a/sip/kio/kiomod.sip.in b/sip/kio/kiomod.sip.in index 5439424..913a7dc 100644 --- a/sip/kio/kiomod.sip.in +++ b/sip/kio/kiomod.sip.in @@ -49,9 +49,9 @@ %Include kdirnotify.sip %Include kdirwatch.sip %Include kemailsettings.sip -%Include kfilefilter.sip -%Include kfileitem.sip -%Include kfilemetainfo.sip +%Include tdefilefilter.sip +%Include tdefileitem.sip +%Include tdefilemetainfo.sip %Include kfilterbase.sip %Include kfilterdev.sip %Include kimageio.sip diff --git a/sip/kio/metainfojob.sip b/sip/kio/metainfojob.sip index 3433bd3..a20eb05 100644 --- a/sip/kio/metainfojob.sip +++ b/sip/kio/metainfojob.sip @@ -31,7 +31,7 @@ namespace TDEIO class MetaInfoJob : TDEIO::Job { %TypeHeaderCode -#include +#include #include #include %End diff --git a/sip/kio/tdefilefilter.sip b/sip/kio/tdefilefilter.sip new file mode 100644 index 0000000..d86093a --- /dev/null +++ b/sip/kio/tdefilefilter.sip @@ -0,0 +1,81 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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 KFileFilter +{ +%TypeHeaderCode +#include +%End + + +public: + virtual bool passesFilter (const KFileItem*) const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilter + + +class KSimpleFileFilter : KFileFilter +{ +%TypeHeaderCode +#include +%End + + +public: + KSimpleFileFilter (); + virtual void setFilterDotFiles (bool); + bool filterDotFiles () const; + virtual void setFilterSpecials (bool); + bool filterSpecials () const; + +%If ( KDE_3_1_0 - ) + void setNameFilters (const TQString&, bool, const TQChar& = ' '); +%End + + virtual void setNameFilters (const TQString&); + virtual void setMimeFilters (const TQStringList&); + TQStringList mimeFilters () const; + virtual void setModeFilter (mode_t); + mode_t modeFilter () const; + virtual bool passesFilter (const KFileItem*) const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) +//ig TQString nameFilters () const; +%End + + +}; // class KSimpleFileFilter + diff --git a/sip/kio/tdefileitem.sip b/sip/kio/tdefileitem.sip new file mode 100644 index 0000000..da88569 --- /dev/null +++ b/sip/kio/tdefileitem.sip @@ -0,0 +1,171 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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 KFileItem +{ +%TypeHeaderCode +#include +%End + + +public: + + enum + { + Unknown + }; + + KFileItem (const TDEIO::UDSEntry&, const KURL&, bool = 0, bool = 0); + KFileItem (mode_t, mode_t, const KURL&, bool = 0); + KFileItem (const KURL&, const TQString&, mode_t); + KFileItem (const KFileItem&); + void refresh (); + void refreshMimeType (); + const KURL& url () const; + void setURL (const KURL&); + +%If ( KDE_3_2_0 - ) + void setName (const TQString&); +%End + + mode_t permissions () const; + TQString permissionsString () const; + +%If ( KDE_3_5_0 - ) + bool hasExtendedACL () const; + KACL ACL () const; + KACL defaultACL () const; +%End + + mode_t mode () const; + TQString user () const; + TQString group () const; + bool isLink () const; + bool isDir () const; + bool isFile () const; + bool isReadable () const; + +%If ( KDE_3_4_0 - ) + bool isWritable () const; +%End + + +%If ( KDE_3_3_0 - ) + bool isHidden () const; +%End + + TQString linkDest () const; + +%If ( KDE_3_4_0 - ) + TQString localPath () const; +%End + + TDEIO::filesize_t size () const; + +%If ( KDE_3_5_0 - ) + TDEIO::filesize_t size (bool& /Out/) const /PyName=sizeAndExists/; +%End + + time_t time (uint) const; + +%If ( KDE_3_5_0 - ) + time_t time (uint, bool& /Out/) const /PyName=timeAndHasTime/; +%End + + TQString timeString (uint = KIO ::UDS_MODIFICATION_TIME ) const; + bool isLocalFile () const; + const TQString& text () const; + const TQString& name (bool = 0) const; + TQString mimetype () const; + KMimeType::Ptr determineMimeType (); + KMimeType::Ptr mimeTypePtr (); + bool isMimeTypeKnown () const; + TQString mimeComment (); + TQString iconName (); + TQPixmap pixmap (int, int = 0) const; + int overlays () const; + TQString getStatusBarInfo (); + TQString getToolTipText (int = 6); + bool acceptsDrops (); + void run (); + const TDEIO::UDSEntry& entry () const; + bool isMarked () const; + void mark (); + void unmark (); + bool cmp (const KFileItem&); +//ig virtual void setExtraData (const void*, void*); +//ig virtual const void* extraData (const void*) const; +//ig virtual void removeExtraData (const void*); + void setMetaInfo (const KFileMetaInfo&); + +%If ( KDE_3_5_0 - ) + void setFileMode (mode_t); + void setMimeType (const TQString&); +%End + + const KFileMetaInfo& metaInfo (bool = 1, int = KFileMetaInfo ::Fastest ) const; + void assign (const KFileItem&); + +%If ( KDE_3_4_3 - ) + void setUDSEntry (const TDEIO::UDSEntry&, const KURL&, bool = 0, bool = 0); +%End + + +%If ( KDE_3_4_0 - ) + KURL mostLocalURL (bool&) const; +%End + + +protected: + void init (bool); + +%If ( KDE_3_4_3 - ) + void readUDSEntry (bool); +%End + + TQString parsePermissions (mode_t) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileItem + +typedef TQPtrList KFileItemList; + +%If ( KDE_3_1_4 - ) +//ig typedef TQPtrListIterator KFileItemListIterator; + +%If ( KDE_3_2_0 - ) +//igx TQDataStream& operator << (TQDataStream&, const KFileItem&); +//igx TQDataStream& operator >> (TQDataStream&, KFileItem&); +%End + +%End + + +%If ( - KDE_3_1_4 ) +//ig typedef TQListIterator KFileItemListIterator; +%End diff --git a/sip/kio/tdefilemetainfo.sip b/sip/kio/tdefilemetainfo.sip new file mode 100644 index 0000000..3053f6e --- /dev/null +++ b/sip/kio/tdefilemetainfo.sip @@ -0,0 +1,460 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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 KFileMimeTypeInfo +{ +%TypeHeaderCode +#include +%End + + +public: + KFileMimeTypeInfo (); + +%If ( KDE_3_3_0 - ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cumulative, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + + enum Hint + { + NoHint, + Name, + Author, + Description, + Width, + Height, + Size, + Bitrate, + Length, + Hidden, + Thumbnail + }; + + +%If ( KDE_3_3_0 - ) + + enum Unit + { + NoUnit, + Seconds, + MilliSeconds, + BitsPerSecond, + Pixels, + Inches, + Centimeters, + Bytes, + FramesPerSecond, + DotsPerInch, + BitsPerPixel, + Hertz, + KiloBytes, + Millimeters + }; + +%End + + + class GroupInfo + { + + public: + TQStringList supportedKeys () const; + const TQString& name () const; + const TQString& translatedName () const; + const KFileMimeTypeInfo::ItemInfo* itemInfo (const TQString&) const; + uint attributes () const; + bool supportsVariableKeys () const; + const KFileMimeTypeInfo::ItemInfo* variableItemInfo () const; + + private: + GroupInfo (const TQString&, const TQString&); + + }; // class GroupInfo + + +public: + + class ItemInfo + { + + public: + ItemInfo (); + const TQString& prefix () const; + const TQString& suffix () const; + TQVariant::Type type () const; + const TQString& key () const; + +%If ( KDE_3_1_0 - ) + TQString string (const TQVariant&, bool = 1) const; +%End + + bool isVariableItem () const; + const TQString& translatedKey () const; + uint attributes () const; + uint hint () const; + uint unit () const; + + private: + ItemInfo (const TQString&, const TQString&, TQVariant::Type); + + }; // class ItemInfo + + +public: + TQValidator* createValidator (const TQString&, const TQString&, TQObject* /Transfer/ = 0, const char* = 0) const; + TQStringList supportedGroups () const; + TQStringList translatedGroups () const; + TQStringList preferredGroups () const; + TQString mimeType () const; + const KFileMimeTypeInfo::GroupInfo* groupInfo (const TQString&) const; + TQStringList supportedKeys () const; + TQStringList preferredKeys () const; + KFileMimeTypeInfo::GroupInfo* addGroupInfo (const TQString&, const TQString&); + TQString m_translatedName; + TQStringList m_supportedKeys; + uint m_attr; +//ig TQDict m_itemDict; + +protected: + KFileMimeTypeInfo (const TQString&); + +public: + +%If ( KDE_3_1_0 - KDE_3_3_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged, + MultiLine, + SqueezeText + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + + enum Attributes + { + Addable, + Removable, + Modifiable, + Cummulative, + Averaged + }; + +%End + + +}; // class KFileMimeTypeInfo + + +class KFileMetaInfoItem +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo*, const TQString&, const TQVariant&); + KFileMetaInfoItem (const KFileMetaInfoItem&); + KFileMetaInfoItem (); + TQString key () const; + TQString translatedKey () const; + const TQVariant& value () const; + TQString string (bool = 1) const; + bool setValue (const TQVariant&); + TQVariant::Type type () const; + bool isEditable () const; + bool isRemoved () const; + bool isModified () const; + TQString prefix () const; + TQString suffix () const; + uint hint () const; +//ig uint unit () const; + uint attributes () const; + bool isValid () const; + +protected: + void setAdded (); + +%If ( KDE_3_1_0 - ) + void setRemoved (); +%End + + void ref (); + void deref (); + +}; // class KFileMetaInfoItem + + +class KFileMetaInfoGroup +{ +%TypeHeaderCode +#include +%End + + +public: + KFileMetaInfoGroup (const TQString&, const KFileMimeTypeInfo*); + KFileMetaInfoGroup (const KFileMetaInfoGroup&); + KFileMetaInfoGroup (); + bool isValid () const; + bool isEmpty () const; + +%If ( KDE_3_1_0 - ) + bool isModified () const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoItem operator [] (const TQString&) const; +%MethodCode +//returns (KFileMetaInfoItem) +//takes key | (TQString) + KFileMetaInfoItem sipResObj = ((*sipCpp) [*static_cast(a0)]); + sipRes = &sipResObj; +%End + +%End + +%End + + KFileMetaInfoItem item (const TQString&) const; + KFileMetaInfoItem item (uint) const; + const TQVariant value (const TQString&) const; + TQStringList supportedKeys () const; + bool supportsVariableKeys () const; + bool contains (const TQString&) const; + TQStringList keys () const; + TQStringList preferredKeys () const; + KFileMetaInfoItem addItem (const TQString&); + bool removeItem (const TQString&); + TQStringList removedItems (); + TQString name () const; + +%If ( KDE_3_2_0 - ) + TQString translatedName () const; +%End + + uint attributes () const; + +protected: + void setAdded (); + KFileMetaInfoItem appendItem (const TQString&, const TQVariant&); + void ref (); + void deref (); + +}; // class KFileMetaInfoGroup + + +class KFileMetaInfo +{ +%TypeHeaderCode +#include +%End + + +public: + typedef KFileMimeTypeInfo::Hint Hint; +//ig typedef KFileMimeTypeInfo::Unit Unit; + typedef KFileMimeTypeInfo::Attributes Attributes; + + enum What + { + Fastest, + DontCare, + TechnicalInfo, + ContentInfo, + ExtenedAttr, + Thumbnail, + Preferred, + Everything + }; + + KFileMetaInfo (const TQString&, const TQString& = TQString ::null , uint = Fastest ); + +%If ( KDE_3_2_0 - ) + KFileMetaInfo (const KURL&, const TQString& = TQString ::null , uint = Fastest ); +%End + + KFileMetaInfo (); + KFileMetaInfo (const KFileMetaInfo&); + TQStringList groups () const; + TQStringList supportedGroups () const; + TQStringList preferredGroups () const; + TQStringList preferredKeys () const; + TQStringList supportedKeys () const; + TQStringList editableGroups () const; + KFileMetaInfoItem item (const TQString&) const; + KFileMetaInfoItem item (const Hint) const; + KFileMetaInfoItem saveItem (const TQString&, const TQString& = TQString ::null , bool = 1); + KFileMetaInfoGroup group (const TQString&) const; + +%If ( KDE_3_1_4 - ) + KFileMetaInfoGroup operator [] (const TQString&) const; +%MethodCode +//returns (KFileMetaInfoGroup) +//takes key | (TQString) + KFileMetaInfoGroup sipResObj = ((*sipCpp) [*static_cast(a0)]); + sipRes = &sipResObj; +%End + +%End + + bool addGroup (const TQString&); + bool removeGroup (const TQString&); + TQStringList removedGroups (); + bool applyChanges (); + +%If ( KDE_3_5_3 - ) + bool applyChanges (const TQString&); +%End + + bool contains (const TQString&) const; + bool containsGroup (const TQString&) const; + const TQVariant value (const TQString&) const; + bool isValid () const; + bool isEmpty () const; + TQString mimeType () const; + TQString path () const; + +%If ( KDE_3_2_0 - ) + KURL url () const; +%End + + +protected: + KFileMetaInfoGroup appendGroup (const TQString&); + KFilePlugin* plugin () const; + void ref (); + void deref (); + +}; // class KFileMetaInfo + + +class KFilePlugin : TQObject +{ +%TypeHeaderCode +#include +%End + + +public: + KFilePlugin (TQObject* /TransferThis/, const char*, const TQStringList&); + virtual bool readInfo (KFileMetaInfo&, uint = KFileMetaInfo ::Fastest ) = 0; + virtual bool writeInfo (const KFileMetaInfo&) const; + virtual TQValidator* createValidator (const TQString&, const TQString&, const TQString&, TQObject*, const char*) const; + +protected: + KFileMimeTypeInfo* addMimeTypeInfo (const TQString&); + KFileMimeTypeInfo::GroupInfo* addGroupInfo (KFileMimeTypeInfo*, const TQString&, const TQString&) const; + void setAttributes (KFileMimeTypeInfo::GroupInfo*, uint) const; + void addVariableInfo (KFileMimeTypeInfo::GroupInfo*, TQVariant::Type, uint) const; + KFileMimeTypeInfo::ItemInfo* addItemInfo (KFileMimeTypeInfo::GroupInfo*, const TQString&, const TQString&, TQVariant::Type); + void setAttributes (KFileMimeTypeInfo::ItemInfo*, uint); + void setHint (KFileMimeTypeInfo::ItemInfo*, uint); + void setUnit (KFileMimeTypeInfo::ItemInfo*, uint); + void setPrefix (KFileMimeTypeInfo::ItemInfo*, const TQString&); + void setSuffix (KFileMimeTypeInfo::ItemInfo*, const TQString&); + KFileMetaInfoGroup appendGroup (KFileMetaInfo&, const TQString&); + void appendItem (KFileMetaInfoGroup&, const TQString&, TQVariant); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFilePlugin + + +class KFileMetaInfoProvider : TQObject +{ +%TypeHeaderCode +#include +%End + + +public: + static KFileMetaInfoProvider* self (); + KFilePlugin* plugin (const TQString&); + +%If ( KDE_3_4_0 - ) + KFilePlugin* plugin (const TQString&, const TQString&); +%End + + const KFileMimeTypeInfo* mimeTypeInfo (const TQString&); + +%If ( KDE_3_4_0 - ) + const KFileMimeTypeInfo* mimeTypeInfo (const TQString&, const TQString&); +%End + + TQStringList preferredKeys (const TQString&) const; + TQStringList preferredGroups (const TQString&) const; + +%If ( KDE_3_1_0 - ) + TQStringList supportedMimeTypes () const; +%End + + +protected: +//ig KFileMetaInfoProvider (); +//force + +private: + KFileMetaInfoProvider (); +//end + +}; // class KFileMetaInfoProvider + + +%If ( KDE_3_1_4 - ) +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoItem&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoItem&); +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfoGroup&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfoGroup&); +//igx TQDataStream& operator << (TQDataStream&, const KFileMetaInfo&); +//igx TQDataStream& operator >> (TQDataStream&, KFileMetaInfo&); +%End diff --git a/sip/kio/tdefileshare.sip b/sip/kio/tdefileshare.sip new file mode 100644 index 0000000..a4e5aa2 --- /dev/null +++ b/sip/kio/tdefileshare.sip @@ -0,0 +1,87 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kio 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. + + +//ig class KFileSharePrivate : TQObject; + + +%If ( KDE_3_1_0 - ) + +class KFileShare +{ +%TypeHeaderCode +#include +%End + + +public: + static void readConfig (); + +%If ( KDE_3_3_0 - ) + static void readShareList (); +%End + + static bool isDirectoryShared (const TQString&); + + enum Authorization + { + NotInitialized, + ErrorNotFound, + Authorized, + UserNotAllowed + }; + + static KFileShare::Authorization authorization (); + static TQString findExe (const char*); + static bool setShared (const TQString&, bool); + +%If ( KDE_3_3_0 - ) + + enum ShareMode + { + Simple, + Advanced + }; + + static bool sharingEnabled (); + static bool isRestricted (); + static TQString fileShareGroup (); + static KFileShare::ShareMode shareMode (); + static bool sambaEnabled (); + static bool nfsEnabled (); +%End + + +public: + +%If ( - KDE_3_1_5 ) +//ig static bool setShared (const TQString&, bool, bool); +%End + + +}; // class KFileShare + +%End + diff --git a/sip/tdecore/bytearray.sip b/sip/tdecore/bytearray.sip index 507ef3c..743aff6 100644 --- a/sip/tdecore/bytearray.sip +++ b/sip/tdecore/bytearray.sip @@ -785,7 +785,7 @@ void dcop_add (TQDataStream& s, TQByteArray value) }; -//%MappedType TQMap is available in tdecore/kconfig.sip +//%MappedType TQMap is available in tdecore/tdeconfig.sip %MappedType TQMap diff --git a/sip/tdecore/kconfig.sip b/sip/tdecore/kconfig.sip deleted file mode 100644 index 1e30b31..0000000 --- a/sip/tdecore/kconfig.sip +++ /dev/null @@ -1,238 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEConfig : TDEConfigBase -{ -%TypeHeaderCode -#include -%End - - -public: - TDEConfig (const TQString& = TQString ::null , bool = 0, bool = 1, const char* = "config"); - -%If ( KDE_3_2_0 - ) - TDEConfig (TDEConfigBackEnd*, bool = 0); -%End - - virtual void rollback (bool = 1); - virtual TQStringList groupList () const; - virtual TQMap entryMap (const TQString&) const; - virtual void reparseConfiguration (); - void setFileWriteMode (int); - void setForceGlobal (bool); - bool forceGlobal () const; - -%If ( KDE_3_1_0 - ) - void checkUpdate (const TQString&, const TQString&); - -%If ( KDE_3_2_0 - ) - TDEConfig* copyTo (const TQString&, TDEConfig* = 0) const; - -%If ( KDE_3_3_0 - ) - KLockFile::Ptr lockFile (bool = 0); -%End - -%End - -%End - - -protected: - virtual bool internalHasGroup (const TQCString&) const; - virtual KEntryMap internalEntryMap (const TQString&) const; - virtual KEntryMap internalEntryMap () const; - virtual void putData (const KEntryKey&, const KEntry&, bool = 1); - virtual KEntry lookupData (const KEntryKey&) const; - -private: - TDEConfig (const TDEConfig&); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TDEConfig - - -%If ( KDE_3_2_0 - ) - -class KSharedConfig : TDEConfig, KShared -{ -%TypeHeaderCode -#include -%End - - -public: -//ig typedef KSharedPtr Ptr; - -public: - static KSharedConfig::Ptr openConfig (const TQString&, bool = 0, bool = 1); - -private: - KSharedConfig (const TQString&, bool, bool); - ~KSharedConfig (); - -}; // class KSharedConfig - -%End - - - -%MappedType TQMap -//converts a Python dict of TQString:TQString -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const TQMap cppmap = *sipCpp; - TQMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - TQString acpp = it.key (); - TQString bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_TQString, sipTransferObj)) == NULL) - || ((binst = sipConvertFromNewType(new TQString(bcpp), sipType_TQString, sipTransferObj)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a TQMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - TQMap *cppmap = new TQMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - TQString *acpp; - TQString *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0, acpp_state, bcpp_state; - - acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); - bcpp = (TQString *)sipForceConvertToType(belem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); - - if (iserr) - { - if (acpp) - sipReleaseType(acpp, sipType_TQString, acpp_state); - - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - - sipReleaseType(acpp, sipType_TQString, acpp_state); - sipReleaseType(bcpp, sipType_TQString, bcpp_state); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - -%If (KDE_3_2_0 - ) -%MappedType KSharedConfig::Ptr -//converts KSharedConfig -{ -%TypeHeaderCode -#include -#include -%End - -%ConvertFromTypeCode - // Convert to a Python instance - - if (!sipCpp) - return NULL; - - KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); - KSharedConfig *cpp = cPtr->data (); - PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSharedConfig, sipTransferObj); - - return obj; -%End - -%ConvertToTypeCode - // Convert a Python instance to a Ptr on the heap. - - if (sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = new KSharedPtr (cpp); - - return 1; -%End -}; -%End - - diff --git a/sip/tdecore/kconfigbackend.sip b/sip/tdecore/kconfigbackend.sip deleted file mode 100644 index 2df5316..0000000 --- a/sip/tdecore/kconfigbackend.sip +++ /dev/null @@ -1,93 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEConfigBackEnd -{ -%TypeHeaderCode -#include -%End - - -public: - TDEConfigBackEnd (TDEConfigBase*, const TQString&, const char*, bool); - virtual bool parseConfigFiles () = 0; - virtual void sync (bool = 1) = 0; - void changeFileName (const TQString&, const char*, bool); - virtual TDEConfigBase::ConfigState getConfigState () const; - TQString fileName () const; - const char* resource () const; - void setLocaleString (const TQCString&); - void setFileWriteMode (int); - -%If ( KDE_3_2_0 - ) - bool checkConfigFilesWritable (bool); - -%If ( KDE_3_3_0 - ) - KLockFile::Ptr lockFile (bool = 0); -%End - -%End - - TQString filename () const; - -protected: - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -}; // class TDEConfigBackEnd - - -class TDEConfigINIBackEnd : TDEConfigBackEnd -{ -%TypeHeaderCode -#include -#include -%End - - -public: - TDEConfigINIBackEnd (TDEConfigBase*, const TQString&, const char*, bool = 1); - bool parseConfigFiles (); - virtual void sync (bool = 1); - -protected: - void parseSingleConfigFile (TQFile&, KEntryMap* = 0, bool = 0, bool = 0); - bool writeConfigFile (TQString, bool = 0, bool = 1); - -%If ( KDE_3_2_0 - ) - bool getEntryMap (KEntryMap&, bool, TQFile*); -//ig void writeEntries (FILE*, const KEntryMap&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TDEConfigINIBackEnd - diff --git a/sip/tdecore/kconfigbase.sip b/sip/tdecore/kconfigbase.sip deleted file mode 100644 index 2f9d9c9..0000000 --- a/sip/tdecore/kconfigbase.sip +++ /dev/null @@ -1,333 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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. - - -%ModuleHeaderCode -typedef long long longlong; -typedef unsigned long long ulonglong; -%End - - -class TDEConfigBase : TQObject -{ -%TypeHeaderCode -#include -%End - - -public: - TDEConfigBase (); - void setGroup (const TQString&); - void setDesktopGroup (); - TQString group () const; - bool hasGroup (const TQString&) const; - virtual TQStringList groupList () const = 0; - TQString locale () const; - TQString readEntry (const TQString&, const TQString& = TQString ::null ) const; - TQString readEntry (const char*, const TQString& = TQString ::null ) const; - TQVariant readPropertyEntry (const TQString&, TQVariant::Type) const; - TQVariant readPropertyEntry (const char*, TQVariant::Type) const; - TQVariant readPropertyEntry (const TQString&, const TQVariant&) const; - TQVariant readPropertyEntry (const char*, const TQVariant&) const; - int readListEntry (const TQString&, TQStrList&, char = ',') const; - int readListEntry (const char*, TQStrList&, char = ',') const; - TQStringList readListEntry (const TQString&, char = ',') const; - TQStringList readListEntry (const char*, char = ',') const; - -%If ( KDE_3_3_0 - ) - TQStringList readListEntry (const char*, const TQStringList&, char = ',') const; -%End - - TQValueList readIntListEntry (const TQString&) const; - TQValueList readIntListEntry (const char*) const; - TQString readPathEntry (const TQString&, const TQString& = TQString ::null ) const; - TQString readPathEntry (const char*, const TQString& = TQString ::null ) const; - -%If ( KDE_3_1_3 - ) - TQStringList readPathListEntry (const TQString&, char = ',') const; - TQStringList readPathListEntry (const char*, char = ',') const; -%End - - int readNumEntry (const TQString&, int = 0) const; - int readNumEntry (const char*, int = 0) const; - uint readUnsignedNumEntry (const TQString&, uint = 0) const; - uint readUnsignedNumEntry (const char*, uint = 0) const; - long readLongNumEntry (const TQString&, long = 0) const; - long readLongNumEntry (const char*, long = 0) const; - ulong readUnsignedLongNumEntry (const TQString&, ulong = 0) const; - ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; - -%If ( KDE_3_2_0 - ) - longlong readNum64Entry (const TQString&, longlong = 0) const; - longlong readNum64Entry (const char*, longlong = 0) const; - ulonglong readUnsignedNum64Entry (const TQString&, ulonglong = 0) const; - ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; -%End - - double readDoubleNumEntry (const TQString&, double = 0.0) const; - double readDoubleNumEntry (const char*, double = 0.0) const; - TQFont readFontEntry (const TQString&, const TQFont* = 0) const; - TQFont readFontEntry (const char*, const TQFont* = 0) const; - bool readBoolEntry (const TQString&, const bool = 0) const; - bool readBoolEntry (const char*, const bool = 0) const; - TQRect readRectEntry (const TQString&, const TQRect* = 0) const; - TQRect readRectEntry (const char*, const TQRect* = 0) const; - TQPoint readPointEntry (const TQString&, const TQPoint* = 0) const; - TQPoint readPointEntry (const char*, const TQPoint* = 0) const; - TQSize readSizeEntry (const TQString&, const TQSize* = 0) const; - TQSize readSizeEntry (const char*, const TQSize* = 0) const; - TQColor readColorEntry (const TQString&, const TQColor* = 0) const; - TQColor readColorEntry (const char*, const TQColor* = 0) const; - TQDateTime readDateTimeEntry (const TQString&, const TQDateTime* = 0) const; - TQDateTime readDateTimeEntry (const char*, const TQDateTime* = 0) const; - TQString readEntryUntranslated (const TQString&, const TQString& = TQString ::null ) const; - TQString readEntryUntranslated (const char*, const TQString& = TQString ::null ) const; - void writeEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQVariant&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQValueList&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQValueList&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const char*, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, int, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); - -%If ( KDE_3_2_0 - ) - void writeEntry (const TQString&, longlong, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, ulonglong, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); -%End - -//ig void writeEntry (const TQString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); -//ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); - void writeEntry (const TQString&, const TQFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQFont&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQColor&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQDateTime&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQRect&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQPoint&, bool = 1, bool = 0, bool = 0); - void writeEntry (const TQString&, const TQSize&, bool = 1, bool = 0, bool = 0); - void writeEntry (const char*, const TQSize&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); - -%If ( KDE_3_1_3 - ) - void writePathEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); - void writePathEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); -%End - - void deleteEntry (const TQString&, bool = 0, bool = 0); - void deleteEntry (const char*, bool = 0, bool = 0); - bool deleteGroup (const TQString&, bool = 1, bool = 0); - void setDollarExpansion (bool = 1); - bool isDollarExpansion () const; - virtual void rollback (bool = 1); - virtual void sync (); - bool isDirty () const; - virtual void setReadOnly (bool); - bool isReadOnly () const; - bool hasKey (const TQString&) const; - virtual TQMap entryMap (const TQString&) const = 0; - virtual void reparseConfiguration () = 0; - bool isImmutable () const; - bool groupIsImmutable (const TQString&) const; - bool entryIsImmutable (const TQString&) const; - - enum ConfigState - { - NoAccess, - ReadOnly, - ReadWrite - }; - - ConfigState getConfigState () const; - -%If ( KDE_3_2_0 - ) - bool checkConfigFilesWritable (bool); - void setReadDefaults (bool); - bool readDefaults () const; - void revertToDefault (const TQString&); - bool hasDefault (const TQString&) const; -%End - - -protected: - void setLocale (); - virtual void setDirty (bool = 1); - virtual void parseConfigFiles (); - virtual KEntryMap internalEntryMap (const TQString&) const = 0; - virtual KEntryMap internalEntryMap () const = 0; - virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; - virtual KEntry lookupData (const KEntryKey&) const = 0; - virtual bool internalHasGroup (const TQCString&) const = 0; - -public: - void setGroup (const TQCString&); - void setGroup (const char*); - bool hasGroup (const TQCString&) const; - bool hasGroup (const char*) const; - bool hasKey (const char*) const; - -protected: - TQCString readEntryUtf8 (const char*) const; - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TDEConfigBase - - -class TDEConfigGroupSaver -{ -%TypeHeaderCode -#include -%End - - -public: - TDEConfigGroupSaver (TDEConfigBase*, TQString); - TDEConfigGroupSaver (TDEConfigBase*, const char*); - TDEConfigGroupSaver (TDEConfigBase*, const TQCString&); - TDEConfigBase* config (); - -private: - TDEConfigGroupSaver (const TDEConfigGroupSaver&); - -}; // class TDEConfigGroupSaver - - -class TDEConfigGroup : TDEConfigBase -{ -%TypeHeaderCode -#include -%End - - -public: - TDEConfigGroup (TDEConfigBase*, const TQCString&); - TDEConfigGroup (TDEConfigBase*, const TQString&); - TDEConfigGroup (TDEConfigBase*, const char*); - void deleteGroup (bool = 0); - -%If ( KDE_3_4_0 - ) - bool groupIsImmutable () const; -%End - - virtual void setDirty (bool); - virtual void putData (const KEntryKey&, const KEntry&, bool = 1); - virtual KEntry lookupData (const KEntryKey&) const; - virtual void sync (); - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class TDEConfigGroup - - - -%MappedType longlong -//converts a Python long -{ -%TypeHeaderCode -#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End -%ConvertFromTypeCode - if (!sipCpp) - Py_INCREF (Py_None); - return Py_None; - -// PyObject *LongLong; - - return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); - - long long *ll = new long long; - *ll = 0; - - if (PyLong_Check (sipPy)) - *ll = PyLong_AsLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ll = (long long)PyInt_AS_LONG (sipPy); - - *sipCppPtr = ll; - - return 1; -%End - -}; - - -%MappedType ulonglong -//converts a Python long -{ -%TypeHeaderCode -#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 -#define LONG_LONG PY_LONG_LONG -#endif -%End -%ConvertFromTypeCode - if (!sipCpp) - Py_INCREF (Py_None); - return Py_None; - - return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); -%End - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyLong_Check (sipPy) || PyInt_Check (sipPy); - - unsigned long long *ul = new unsigned long long; - *ul = 0; - - if (PyLong_Check (sipPy)) - *ul = PyLong_AsUnsignedLongLong (sipPy); - else if (PyInt_Check (sipPy)) - *ul = (unsigned long long)PyInt_AS_LONG (sipPy); - - *sipCppPtr = ul; - - return 1; -%End - -}; - - diff --git a/sip/tdecore/kconfigdata.sip b/sip/tdecore/kconfigdata.sip deleted file mode 100644 index 96a22cf..0000000 --- a/sip/tdecore/kconfigdata.sip +++ /dev/null @@ -1,172 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 KEntry -{ -%TypeHeaderCode -#include -%End - - -public: - KEntry (); - TQCString mValue; - bool bDirty; - bool bNLS; - bool bGlobal; - bool bImmutable; - bool bDeleted; - -%If ( KDE_3_1_0 - ) - bool bExpand; -%End - - -}; // class KEntry - - -class KEntryKey -{ -%TypeHeaderCode -#include -%End - - -public: - KEntryKey (const TQCString& = TQCString ("" ), const TQCString& = TQCString ("" )); - TQCString mGroup; - TQCString mKey; - bool bLocal; - bool bDefault; - const char* c_key; - -}; // class KEntryKey - -//ig typedef TQMap::Iterator KEntryMapIterator; -//ig typedef TQMap::ConstIterator KEntryMapConstIterator; -//force -KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; -%MethodCode -//takes dict | (KEntryMap) -//returns (TQMap -#include -%End - -%ConvertFromTypeCode - // Convert to a Python dict - - if (!sipCpp) - return PyDict_New(); - - PyObject *dict; - - // Create the dictionary. - - if ((dict = PyDict_New()) == NULL) - return NULL; - - // Get it. - - const KEntryMap cppmap = *sipCpp; - KEntryMap::ConstIterator it; - - for (it = cppmap.begin (); it != cppmap.end (); ++it) - { - KEntryKey acpp = it.key (); - KEntry bcpp = it.data (); - PyObject *ainst; - PyObject *binst = NULL; - if (((ainst = sipConvertFromNewType(new KEntryKey(acpp), sipType_KEntryKey, NULL)) == NULL) - || ((binst = sipConvertFromNewType(new KEntry(bcpp), sipType_KEntry, NULL)) == NULL) - || (PyDict_SetItem (dict, ainst, binst) < 0)) - { - Py_XDECREF (ainst); - Py_XDECREF (binst); - Py_DECREF (dict); - return NULL; - } - } - - return dict; -%End - - -%ConvertToTypeCode - // Convert a Python dictionary to a TQMap on the heap. - - if (sipIsErr == NULL) - return PyDict_Check(sipPy); - - - KEntryMap *cppmap = new KEntryMap; - - PyObject *aelem, *belem; - SIP_SSIZE_T pos = 0; - KEntryKey *acpp; - KEntry *bcpp; - - while (PyDict_Next(sipPy, &pos, &aelem, &belem)) - { - int iserr = 0; - - acpp = (KEntryKey *)sipForceConvertToType(aelem, sipType_KEntryKey, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - bcpp = (KEntry *)sipForceConvertToType(belem, sipType_KEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); - - if (iserr) - { - *sipIsErr = 1; - delete cppmap; - return 0; - } - - cppmap->insert (*acpp, *bcpp); - } - - *sipCppPtr = cppmap; - - return 1; -%End -}; - - diff --git a/sip/tdecore/kconfigdialogmanager.sip b/sip/tdecore/kconfigdialogmanager.sip deleted file mode 100644 index cec0949..0000000 --- a/sip/tdecore/kconfigdialogmanager.sip +++ /dev/null @@ -1,64 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEConfigDialogManager : TQObject -{ -%TypeHeaderCode -#include -%End - - -signals: - void settingsChanged (); - void settingsChanged (TQWidget*); - void widgetModified (); - -public: - TDEConfigDialogManager (TQWidget* /TransferThis/, TDEConfigSkeleton*, const char* = 0); - void addWidget (TQWidget*); - bool hasChanged (); - bool isDefault (); - -public slots: - void updateSettings (); - void updateWidgets (); - void updateWidgetsDefault (); - -protected: - void init (bool); - bool parseChildren (const TQWidget*, bool); - void setProperty (TQWidget*, const TQVariant&); - TQVariant property (TQWidget*); - void setupWidget (TQWidget*, TDEConfigSkeletonItem*); - -protected: - -}; // class TDEConfigDialogManager - -%End - diff --git a/sip/tdecore/kconfigskeleton.sip b/sip/tdecore/kconfigskeleton.sip deleted file mode 100644 index 61e9b52..0000000 --- a/sip/tdecore/kconfigskeleton.sip +++ /dev/null @@ -1,1146 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEConfigSkeletonItem -{ -%TypeHeaderCode -#include -#include -%End - - -public: - typedef TQValueList List; -//ig typedef TQDict Dict; -//ig typedef TQDictIterator DictIterator; - TDEConfigSkeletonItem (const TQString&, const TQString&); - void setGroup (const TQString&); - TQString group () const; - void setKey (const TQString&); - TQString key () const; - void setName (const TQString&); - TQString name () const; - void setLabel (const TQString&); - TQString label () const; - void setWhatsThis (const TQString&); - TQString whatsThis () const; - virtual void readConfig (TDEConfig*) = 0; - virtual void writeConfig (TDEConfig*) = 0; - virtual void readDefault (TDEConfig*) = 0; - virtual void setProperty (const TQVariant&) = 0; - virtual TQVariant property () const = 0; - virtual TQVariant minValue () const; - virtual TQVariant maxValue () const; - virtual void setDefault () = 0; - virtual void swapDefault () = 0; - bool isImmutable () const; - -protected: - void readImmutability (TDEConfig*); - -//force -%ConvertToSubClassCode - if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemBool; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemColor; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemDateTime; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemDouble; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemEnum; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemFont; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemInt; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemInt64; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemIntList; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemLong; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemPassword; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemPath; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemPoint; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemProperty; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemRect; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemSize; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemString; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemStringList; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemUInt; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemUInt64; - else if (dynamic_cast(sipCpp)) - sipClass = sipClass_TDEConfigSkeleton_ItemULong; - else - sipClass = NULL; -%End -//end - -}; // class TDEConfigSkeletonItem - -%End - - -%If ( KDE_3_2_0 - ) - -class TDEConfigSkeleton -{ -%TypeHeaderCode -#include -typedef TQValueList IntList; -%End - - -public: - - class ItemPassword : TDEConfigSkeleton::ItemString - { - - public: - ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" )); - - }; // class ItemPassword - - -public: - - class ItemPath : TDEConfigSkeleton::ItemString - { - - public: - ItemPath (const TQString&, const TQString&, TQString&, const TQString& = TQString ::null ); - - }; // class ItemPath - - -public: - - class ItemEnum : TDEConfigSkeleton::ItemInt - { - - public: - - class Choice - { - - public: - TQString name; - TQString label; - TQString whatsThis; - - }; // class Choice - - - public: - ItemEnum (const TQString&, const TQString&, int, const TQValueList&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList&, int = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList) |defaultValue | (int = 1) - - class PyItemEnum : public TDEConfigSkeleton::ItemEnum - { - public: - PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList& choices, int defaultValue = 0) : - TDEConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) - { - value = val; - }; - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4); - Py_END_ALLOW_THREADS -%End - - TQValueList choices () const; - void readConfig (TDEConfig*); - void writeConfig (TDEConfig*); - - public: -//force - void setValue (const int&); - int value (); - virtual void setDefaultValue (const int&); - virtual void setDefault (); - void swapDefault (); -//end - - }; // class ItemEnum - - -public: - -%If ( KDE_3_4_0 - ) - - class ItemPathList : TDEConfigSkeleton::ItemStringList - { - - public: - ItemPathList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); - void readConfig (TDEConfig*); - void writeConfig (TDEConfig*); - - }; // class ItemPathList - - -public: -%End - - -public: - TDEConfigSkeleton (const TQString& = TQString ::null ); - TDEConfigSkeleton (KSharedConfig::Ptr); - void setDefaults (); - void readConfig (); - void writeConfig (); - void setCurrentGroup (const TQString&); - TQString currentGroup (); - void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null ); - ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); - TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); - TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); - ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null ); - ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (bool) | defaultValue | (bool) | key | (TQString = TQString::null) - - class PyItemBool : public TDEConfigSkeleton::ItemBool - { - public: - PyItemBool (const TQString &group, const TQString &key, bool val, bool defaultValue = 0) : - TDEConfigSkeleton::ItemBool (group, key, this->value, defaultValue) - { - value = val; - } - - private: - bool value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemInt* addItemInt (const TQString&, int&, int = 0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (int) | defaultValue | (int) | key | (TQString = TQString::null) - - class PyItemInt : public TDEConfigSkeleton::ItemInt - { - public: - PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue=0) : - TDEConfigSkeleton::ItemInt (group, key, this->value, defaultValue) - { - value = val; - } - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemUInt* addItemUInt (const TQString&, uint&, uint = 0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (uint) | defaultValue | (uint) | key | (TQString = TQString::null) - - class PyItemUInt : public TDEConfigSkeleton::ItemUInt - { - public: - PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : - TDEConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) - { - value = val; - } - - private: - uint value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemLong* addItemLong (const TQString&, long&, long = 0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (long) | defaultValue | (long) | key | (TQString = TQString::null) - - class PyItemLong : public TDEConfigSkeleton::ItemLong - { - public: - PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue=0) : - TDEConfigSkeleton::ItemLong (group, key, this->value, defaultValue) - { - value = val; - } - - private: - long value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemULong* addItemULong (const TQString&, ulong&, ulong = 0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (ulong) | defaultValue | (ulong) | key | (TQString = TQString::null) - - class PyItemULong : public TDEConfigSkeleton::ItemULong - { - public: - PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : - TDEConfigSkeleton::ItemULong (group, key, this->value, defaultValue) - { - value = val; - } - - private: - ulong value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - TDEConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null ); - TDEConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null ); - ItemDouble* addItemDouble (const TQString&, double&, double = 0.0, const TQString& = TQString ::null ); -%MethodCode -//takes name | (TQString) | value | (double) | defaultValue | (double) | key | (TQString = TQString::null) - - class PyItemDouble : public TDEConfigSkeleton::ItemDouble - { - public: - PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : - TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - double value; - }; - - Py_BEGIN_ALLOW_THREADS - sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); - sipCpp->addItem(sipRes, *a0); - Py_END_ALLOW_THREADS -%End - - ItemColor* addItemColor (const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 ), const TQString& = TQString ::null ); - ItemFont* addItemFont (const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont (), const TQString& = TQString ::null ); - ItemRect* addItemRect (const TQString&, TQRect&, const TQRect& = TQRect (), const TQString& = TQString ::null ); - ItemPoint* addItemPoint (const TQString&, TQPoint&, const TQPoint& = TQPoint (), const TQString& = TQString ::null ); - ItemSize* addItemSize (const TQString&, TQSize&, const TQSize& = TQSize (), const TQString& = TQString ::null ); - ItemDateTime* addItemDateTime (const TQString&, TQDateTime&, const TQDateTime& = TQDateTime (), const TQString& = TQString ::null ); - TDEConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null ); - TDEConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList&, const TQValueList& = IntList (), const TQString& = TQString ::null ); -%MethodCode -//returns a Python list of int -//takes name | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (TQString = TQString::null) - if (a2 == NULL) *(TQValueList *)a2 = TQValueList(); - Py_BEGIN_ALLOW_THREADS - sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - TDEConfig* config () const; - SIP_PYLIST items () const [TDEConfigSkeletonItem::List ()]; -%MethodCode -//returns (a Python list of Items) - - TDEConfigSkeletonItem::List list; - - Py_BEGIN_ALLOW_THREADS - list = sipCpp->items (); - Py_END_ALLOW_THREADS - - int n = list.count (); - if (n > 0) - for (int i = 0; i < n; i++) - PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_TDEConfigSkeletonItem, NULL)); -%End - - bool isImmutable (const TQString&); - TDEConfigSkeletonItem* findItem (const TQString&); - bool useDefaults (bool); - -protected: - virtual void usrUseDefaults (bool); - virtual void usrSetDefaults (); - virtual void usrReadConfig (); - virtual void usrWriteConfig (); - -public: -//force - - class ItemString : TDEConfigSkeletonItem - { - - public: - - enum Type - { - Normal, - Password, - Path - }; - - ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal ); - void setValue (const TQString&); - TQString& value (); - virtual void setDefaultValue (const TQString&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemString - - -public: -//end - -public: -//force - - class ItemProperty : TDEConfigSkeletonItem - { - - public: - ItemProperty (const TQString&, const TQString&, TQVariant, TQVariant = 0) [(const TQString&, const TQString&, TQVariant&, TQVariant = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (TQVariant) | defaultValue | (TQVariant = 0) - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemProperty *) new TDEConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const TQVariant&); - TQVariant& value (); - virtual void setDefaultValue (const TQVariant&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemProperty - - -public: -//end - -public: -//force - - class ItemBool : TDEConfigSkeletonItem - { - - public: - ItemBool (const TQString&, const TQString&, bool, bool = 1) [(const TQString&, const TQString&, bool&, bool = 1)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (bool) | defaultValue | (bool = 1) - - class PyItemBool : public TDEConfigSkeleton::ItemBool - { - public: - PyItemBool(const TQString &group, const TQString &key, bool val, bool defaultValue = false) : - TDEConfigSkeleton::ItemBool(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - bool value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const bool&); - bool value (); - virtual void setDefaultValue (const bool&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemBool - - -public: -//end - -public: -//force - - class ItemInt : TDEConfigSkeletonItem - { - - public: - ItemInt (const TQString&, const TQString&, int, int = 1) [(const TQString&, const TQString&, int&, int = 1)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (int) | defaultValue | (int = 1) - - class PyItemInt : public TDEConfigSkeleton::ItemInt - { - public: - PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue = 0) : - TDEConfigSkeleton::ItemInt(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - int value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const int&); - int value (); - virtual void setDefaultValue (const int&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (int); - void setMaxValue (int); - - }; // class ItemInt - - -public: -//end - -public: -//force - - class ItemInt64 : TDEConfigSkeletonItem - { - - public: - ItemInt64 (const TQString&, const TQString&, longlong&, longlong = 0); -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (longlong) | defaultValue | (longlong = 0) - - class PyItemInt64 : public TDEConfigSkeleton::ItemInt64 - { - public: - PyItemInt64(const TQString &group, const TQString &key, TQ_INT64 val, TQ_INT64 defaultValue=0) : - TDEConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - TQ_INT64 value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const longlong&); - longlong& value (); - virtual void setDefaultValue (const longlong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (longlong); - void setMaxValue (longlong); - - }; // class ItemInt64 - - -public: -//end - -public: -//force - - class ItemUInt : TDEConfigSkeletonItem - { - - public: - ItemUInt (const TQString&, const TQString&, uint, uint = 0) [(const TQString&, const TQString&, uint&, uint = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (uint) | defaultValue | (uint = 1) - - class PyItemUInt : public TDEConfigSkeleton::ItemUInt - { - public: - PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : - TDEConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - uint value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const uint&); - uint value (); - virtual void setDefaultValue (const uint&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (uint); - void setMaxValue (uint); - - }; // class ItemUInt - - -public: - -public: - - class ItemLong : TDEConfigSkeletonItem - { - - public: - ItemLong (const TQString&, const TQString&, long&, long = 0) [(const TQString&, const TQString&, long&, long = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (long) | defaultValue | (long = 1) - - class PyItemLong : public TDEConfigSkeleton::ItemLong - { - public: - PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue = 0) : - TDEConfigSkeleton::ItemLong(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - long value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const long&); - long value (); - virtual void setDefaultValue (const long&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (long); - void setMaxValue (long); - - }; // class ItemLong - - -public: -//end - -public: -//force - - class ItemULong : TDEConfigSkeletonItem - { - - public: - ItemULong (const TQString&, const TQString&, ulong, ulong = 0) [(const TQString&, const TQString&, ulong&, ulong = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (ulong) | defaultValue | (ulong = 1) - - class PyItemULong : public TDEConfigSkeleton::ItemULong - { - public: - PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : - TDEConfigSkeleton::ItemULong(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - ulong value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); - Py_END_ALLOW_THREADS -%End - - void setValue (const ulong&); - ulong value (); - virtual void setDefaultValue (const ulong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (ulong); - void setMaxValue (ulong); - - }; // class ItemULong - - -public: -//end - -public: -//force - - class ItemUInt64 : TDEConfigSkeletonItem - { - - public: - ItemUInt64 (const TQString&, const TQString&, ulonglong&, ulonglong = 0); -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) - - class PyItemUInt64 : public TDEConfigSkeleton::ItemUInt64 - { - public: - PyItemUInt64(const TQString &group, const TQString &key, TQ_UINT64 val, TQ_UINT64 defaultValue = 0) : - TDEConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - TQ_UINT64 value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const ulonglong&); - ulonglong value (); - virtual void setDefaultValue (const ulonglong&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (ulonglong); - void setMaxValue (ulonglong); - - }; // class ItemUInt64 - - -public: -//end - -public: -//force - - class ItemDouble : TDEConfigSkeletonItem - { - - public: - ItemDouble (const TQString&, const TQString&, double, double = 0) [(const TQString&, const TQString&, double&, double = 0)]; -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (double) | defaultValue | (double = 0) - class PyItemDouble : public TDEConfigSkeleton::ItemDouble - { - public: - PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : - TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) - { - value = val; - }; - - private: - double value; - }; - - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const double&); - double value (); - virtual void setDefaultValue (const double&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - TQVariant minValue () const; - TQVariant maxValue () const; - void setMinValue (double); - void setMaxValue (double); - - }; // class ItemDouble - - -public: -//end - -public: -//force - - class ItemColor : TDEConfigSkeletonItem - { - - public: - ItemColor (const TQString&, const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 )); - void setValue (const TQColor&); - TQColor& value (); - virtual void setDefaultValue (const TQColor&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemColor - - -public: -//end - -public: -//force - - class ItemFont : TDEConfigSkeletonItem - { - - public: - ItemFont (const TQString&, const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont ()); - void setValue (const TQFont&); - TQFont& value (); - virtual void setDefaultValue (const TQFont&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemFont - - -public: -//end - -public: -//force - - class ItemRect : TDEConfigSkeletonItem - { - - public: - ItemRect (const TQString&, const TQString&, TQRect&, const TQRect& = TQRect ()); - void setValue (const TQRect&); - TQRect& value (); - virtual void setDefaultValue (const TQRect&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemRect - - -public: -//end - -public: -//force - - class ItemPoint : TDEConfigSkeletonItem - { - - public: - ItemPoint (const TQString&, const TQString&, TQPoint&, const TQPoint& = TQPoint ()); - void setValue (const TQPoint&); - TQPoint& value (); - virtual void setDefaultValue (const TQPoint&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemPoint - - -public: -//end - -public: -//force - - class ItemSize : TDEConfigSkeletonItem - { - - public: - ItemSize (const TQString&, const TQString&, TQSize&, const TQSize& = TQSize ()); - void setValue (const TQSize&); - TQSize& value (); - virtual void setDefaultValue (const TQSize&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemSize - - -public: -//end - -public: -//force - - class ItemDateTime : TDEConfigSkeletonItem - { - - public: - ItemDateTime (const TQString&, const TQString&, TQDateTime&, const TQDateTime& = TQDateTime ()); - void setValue (const TQDateTime&); - TQDateTime& value (); - virtual void setDefaultValue (const TQDateTime&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemDateTime - - -public: -//end - -public: -//force - - class ItemStringList : TDEConfigSkeletonItem - { - - public: - ItemStringList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); - void setValue (const TQStringList&); - TQStringList& value (); - virtual void setDefaultValue (const TQStringList&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemStringList - - -public: -//end - -public: -//force - - class ItemIntList : TDEConfigSkeletonItem - { - - public: - ItemIntList (const TQString&, const TQString&, TQValueList&, const TQValueList& = IntList ()); -%MethodCode -//takes group | (TQString) | key | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) - if (a3 == NULL) *(TQValueList *)a3 = TQValueList(); - Py_BEGIN_ALLOW_THREADS - sipCpp = (sipTDEConfigSkeleton_ItemIntList *) new TDEConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); - Py_END_ALLOW_THREADS -%End - - void setValue (const TQValueList&); - TQValueList& value (); - virtual void setDefaultValue (const TQValueList&); - virtual void setDefault (); - void swapDefault (); - void writeConfig (TDEConfig*); - void readConfig (TDEConfig*); - void setProperty (const TQVariant&); - TQVariant property () const; - - }; // class ItemIntList - - -public: -//end - -}; // class TDEConfigSkeleton - -%End - - - -%If (KDE_3_2_0 - ) -%MappedType TQValueList -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - if (!sipCpp) - return PyList_New(0); - - // Create the list - PyObject *pylist; - if ((pylist = PyList_New(0)) == NULL) - return NULL; - - TQValueList *cpplist = (TQValueList *)sipCpp; - PyObject *inst; - - // Get it. - TQValueList::Iterator it; - for( it = cpplist->begin(); it != cpplist->end(); ++it ) - { - if (((inst = sipConvertFromNewType(new TDEConfigSkeleton::ItemEnum::Choice(*it), sipType_TDEConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) - || PyList_Append (pylist, inst) < 0) - { - Py_DECREF (pylist); - return NULL; - } - } - - return pylist; -%End - - -%ConvertToTypeCode - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - TQValueList *cpplist = new TQValueList; - - PyObject *elem; - TDEConfigSkeleton::ItemEnum::Choice *cpp; - int iserr = 0; - - for (int i = 0; i < PyList_Size (sipPy); i++) - { - elem = PyList_GET_ITEM (sipPy, i); - cpp = (TDEConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_TDEConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|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/tdecore/kshortcutlist.sip b/sip/tdecore/kshortcutlist.sip index 53ce168..e5eca23 100644 --- a/sip/tdecore/kshortcutlist.sip +++ b/sip/tdecore/kshortcutlist.sip @@ -27,7 +27,7 @@ class KShortcutList { %TypeHeaderCode -#include +#include #include #include %End @@ -68,7 +68,7 @@ protected: class KAccelShortcutList : KShortcutList { %TypeHeaderCode -#include +#include #include #include %End @@ -104,7 +104,7 @@ namespace KStdAccel class ShortcutList : KShortcutList { %TypeHeaderCode -#include +#include #include #include %End diff --git a/sip/tdecore/tdeconfig.sip b/sip/tdecore/tdeconfig.sip new file mode 100644 index 0000000..c60c002 --- /dev/null +++ b/sip/tdecore/tdeconfig.sip @@ -0,0 +1,238 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEConfig : TDEConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + TDEConfig (const TQString& = TQString ::null , bool = 0, bool = 1, const char* = "config"); + +%If ( KDE_3_2_0 - ) + TDEConfig (TDEConfigBackEnd*, bool = 0); +%End + + virtual void rollback (bool = 1); + virtual TQStringList groupList () const; + virtual TQMap entryMap (const TQString&) const; + virtual void reparseConfiguration (); + void setFileWriteMode (int); + void setForceGlobal (bool); + bool forceGlobal () const; + +%If ( KDE_3_1_0 - ) + void checkUpdate (const TQString&, const TQString&); + +%If ( KDE_3_2_0 - ) + TDEConfig* copyTo (const TQString&, TDEConfig* = 0) const; + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + +%End + + +protected: + virtual bool internalHasGroup (const TQCString&) const; + virtual KEntryMap internalEntryMap (const TQString&) const; + virtual KEntryMap internalEntryMap () const; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + +private: + TDEConfig (const TDEConfig&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDEConfig + + +%If ( KDE_3_2_0 - ) + +class KSharedConfig : TDEConfig, KShared +{ +%TypeHeaderCode +#include +%End + + +public: +//ig typedef KSharedPtr Ptr; + +public: + static KSharedConfig::Ptr openConfig (const TQString&, bool = 0, bool = 1); + +private: + KSharedConfig (const TQString&, bool, bool); + ~KSharedConfig (); + +}; // class KSharedConfig + +%End + + + +%MappedType TQMap +//converts a Python dict of TQString:TQString +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const TQMap cppmap = *sipCpp; + TQMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + TQString acpp = it.key (); + TQString bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new TQString(acpp), sipType_TQString, sipTransferObj)) == NULL) + || ((binst = sipConvertFromNewType(new TQString(bcpp), sipType_TQString, sipTransferObj)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a TQMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + TQMap *cppmap = new TQMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + TQString *acpp; + TQString *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0, acpp_state, bcpp_state; + + acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr); + bcpp = (TQString *)sipForceConvertToType(belem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &bcpp_state, &iserr); + + if (iserr) + { + if (acpp) + sipReleaseType(acpp, sipType_TQString, acpp_state); + + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + + sipReleaseType(acpp, sipType_TQString, acpp_state); + sipReleaseType(bcpp, sipType_TQString, bcpp_state); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + +%If (KDE_3_2_0 - ) +%MappedType KSharedConfig::Ptr +//converts KSharedConfig +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + // Convert to a Python instance + + if (!sipCpp) + return NULL; + + KSharedPtr *cPtr = new KSharedPtr (*(KSharedPtr *)sipCpp); + KSharedConfig *cpp = cPtr->data (); + PyObject *obj = sipConvertFromInstance (cpp, sipClass_KSharedConfig, sipTransferObj); + + return obj; +%End + +%ConvertToTypeCode + // Convert a Python instance to a Ptr on the heap. + + if (sipIsErr == NULL) + return PyInstance_Check(sipPy); + + int iserr = 0; + KSharedConfig *cpp = (KSharedConfig *)sipForceConvertToType(sipPy, sipType_KSharedConfig, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + *sipCppPtr = new KSharedPtr (cpp); + + return 1; +%End +}; +%End + + diff --git a/sip/tdecore/tdeconfigbackend.sip b/sip/tdecore/tdeconfigbackend.sip new file mode 100644 index 0000000..1afa8e2 --- /dev/null +++ b/sip/tdecore/tdeconfigbackend.sip @@ -0,0 +1,93 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEConfigBackEnd +{ +%TypeHeaderCode +#include +%End + + +public: + TDEConfigBackEnd (TDEConfigBase*, const TQString&, const char*, bool); + virtual bool parseConfigFiles () = 0; + virtual void sync (bool = 1) = 0; + void changeFileName (const TQString&, const char*, bool); + virtual TDEConfigBase::ConfigState getConfigState () const; + TQString fileName () const; + const char* resource () const; + void setLocaleString (const TQCString&); + void setFileWriteMode (int); + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + +%If ( KDE_3_3_0 - ) + KLockFile::Ptr lockFile (bool = 0); +%End + +%End + + TQString filename () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +}; // class TDEConfigBackEnd + + +class TDEConfigINIBackEnd : TDEConfigBackEnd +{ +%TypeHeaderCode +#include +#include +%End + + +public: + TDEConfigINIBackEnd (TDEConfigBase*, const TQString&, const char*, bool = 1); + bool parseConfigFiles (); + virtual void sync (bool = 1); + +protected: + void parseSingleConfigFile (TQFile&, KEntryMap* = 0, bool = 0, bool = 0); + bool writeConfigFile (TQString, bool = 0, bool = 1); + +%If ( KDE_3_2_0 - ) + bool getEntryMap (KEntryMap&, bool, TQFile*); +//ig void writeEntries (FILE*, const KEntryMap&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDEConfigINIBackEnd + diff --git a/sip/tdecore/tdeconfigbase.sip b/sip/tdecore/tdeconfigbase.sip new file mode 100644 index 0000000..53b36a2 --- /dev/null +++ b/sip/tdecore/tdeconfigbase.sip @@ -0,0 +1,333 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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. + + +%ModuleHeaderCode +typedef long long longlong; +typedef unsigned long long ulonglong; +%End + + +class TDEConfigBase : TQObject +{ +%TypeHeaderCode +#include +%End + + +public: + TDEConfigBase (); + void setGroup (const TQString&); + void setDesktopGroup (); + TQString group () const; + bool hasGroup (const TQString&) const; + virtual TQStringList groupList () const = 0; + TQString locale () const; + TQString readEntry (const TQString&, const TQString& = TQString ::null ) const; + TQString readEntry (const char*, const TQString& = TQString ::null ) const; + TQVariant readPropertyEntry (const TQString&, TQVariant::Type) const; + TQVariant readPropertyEntry (const char*, TQVariant::Type) const; + TQVariant readPropertyEntry (const TQString&, const TQVariant&) const; + TQVariant readPropertyEntry (const char*, const TQVariant&) const; + int readListEntry (const TQString&, TQStrList&, char = ',') const; + int readListEntry (const char*, TQStrList&, char = ',') const; + TQStringList readListEntry (const TQString&, char = ',') const; + TQStringList readListEntry (const char*, char = ',') const; + +%If ( KDE_3_3_0 - ) + TQStringList readListEntry (const char*, const TQStringList&, char = ',') const; +%End + + TQValueList readIntListEntry (const TQString&) const; + TQValueList readIntListEntry (const char*) const; + TQString readPathEntry (const TQString&, const TQString& = TQString ::null ) const; + TQString readPathEntry (const char*, const TQString& = TQString ::null ) const; + +%If ( KDE_3_1_3 - ) + TQStringList readPathListEntry (const TQString&, char = ',') const; + TQStringList readPathListEntry (const char*, char = ',') const; +%End + + int readNumEntry (const TQString&, int = 0) const; + int readNumEntry (const char*, int = 0) const; + uint readUnsignedNumEntry (const TQString&, uint = 0) const; + uint readUnsignedNumEntry (const char*, uint = 0) const; + long readLongNumEntry (const TQString&, long = 0) const; + long readLongNumEntry (const char*, long = 0) const; + ulong readUnsignedLongNumEntry (const TQString&, ulong = 0) const; + ulong readUnsignedLongNumEntry (const char*, ulong = 0) const; + +%If ( KDE_3_2_0 - ) + longlong readNum64Entry (const TQString&, longlong = 0) const; + longlong readNum64Entry (const char*, longlong = 0) const; + ulonglong readUnsignedNum64Entry (const TQString&, ulonglong = 0) const; + ulonglong readUnsignedNum64Entry (const char*, ulonglong = 0) const; +%End + + double readDoubleNumEntry (const TQString&, double = 0.0) const; + double readDoubleNumEntry (const char*, double = 0.0) const; + TQFont readFontEntry (const TQString&, const TQFont* = 0) const; + TQFont readFontEntry (const char*, const TQFont* = 0) const; + bool readBoolEntry (const TQString&, const bool = 0) const; + bool readBoolEntry (const char*, const bool = 0) const; + TQRect readRectEntry (const TQString&, const TQRect* = 0) const; + TQRect readRectEntry (const char*, const TQRect* = 0) const; + TQPoint readPointEntry (const TQString&, const TQPoint* = 0) const; + TQPoint readPointEntry (const char*, const TQPoint* = 0) const; + TQSize readSizeEntry (const TQString&, const TQSize* = 0) const; + TQSize readSizeEntry (const char*, const TQSize* = 0) const; + TQColor readColorEntry (const TQString&, const TQColor* = 0) const; + TQColor readColorEntry (const char*, const TQColor* = 0) const; + TQDateTime readDateTimeEntry (const TQString&, const TQDateTime* = 0) const; + TQDateTime readDateTimeEntry (const char*, const TQDateTime* = 0) const; + TQString readEntryUntranslated (const TQString&, const TQString& = TQString ::null ) const; + TQString readEntryUntranslated (const char*, const TQString& = TQString ::null ) const; + void writeEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQVariant&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQStrList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQValueList&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const char*, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, int, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, int, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_2_0 - ) + void writeEntry (const TQString&, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, longlong, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, ulonglong, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, ulonglong, bool = 1, bool = 0, bool = 0); +%End + +//ig void writeEntry (const TQString&, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); +//ig void writeEntry (const char*, double, bool = 1, bool = 0, char = 'g', int = 6, bool = 0); + void writeEntry (const TQString&, const TQFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQFont&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQColor&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQDateTime&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQRect&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQPoint&, bool = 1, bool = 0, bool = 0); + void writeEntry (const TQString&, const TQSize&, bool = 1, bool = 0, bool = 0); + void writeEntry (const char*, const TQSize&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const TQString&, const TQString&, bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const TQString&, bool = 1, bool = 0, bool = 0); + +%If ( KDE_3_1_3 - ) + void writePathEntry (const TQString&, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); + void writePathEntry (const char*, const TQStringList&, char = ',', bool = 1, bool = 0, bool = 0); +%End + + void deleteEntry (const TQString&, bool = 0, bool = 0); + void deleteEntry (const char*, bool = 0, bool = 0); + bool deleteGroup (const TQString&, bool = 1, bool = 0); + void setDollarExpansion (bool = 1); + bool isDollarExpansion () const; + virtual void rollback (bool = 1); + virtual void sync (); + bool isDirty () const; + virtual void setReadOnly (bool); + bool isReadOnly () const; + bool hasKey (const TQString&) const; + virtual TQMap entryMap (const TQString&) const = 0; + virtual void reparseConfiguration () = 0; + bool isImmutable () const; + bool groupIsImmutable (const TQString&) const; + bool entryIsImmutable (const TQString&) const; + + enum ConfigState + { + NoAccess, + ReadOnly, + ReadWrite + }; + + ConfigState getConfigState () const; + +%If ( KDE_3_2_0 - ) + bool checkConfigFilesWritable (bool); + void setReadDefaults (bool); + bool readDefaults () const; + void revertToDefault (const TQString&); + bool hasDefault (const TQString&) const; +%End + + +protected: + void setLocale (); + virtual void setDirty (bool = 1); + virtual void parseConfigFiles (); + virtual KEntryMap internalEntryMap (const TQString&) const = 0; + virtual KEntryMap internalEntryMap () const = 0; + virtual void putData (const KEntryKey&, const KEntry&, bool = 1) = 0; + virtual KEntry lookupData (const KEntryKey&) const = 0; + virtual bool internalHasGroup (const TQCString&) const = 0; + +public: + void setGroup (const TQCString&); + void setGroup (const char*); + bool hasGroup (const TQCString&) const; + bool hasGroup (const char*) const; + bool hasKey (const char*) const; + +protected: + TQCString readEntryUtf8 (const char*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDEConfigBase + + +class TDEConfigGroupSaver +{ +%TypeHeaderCode +#include +%End + + +public: + TDEConfigGroupSaver (TDEConfigBase*, TQString); + TDEConfigGroupSaver (TDEConfigBase*, const char*); + TDEConfigGroupSaver (TDEConfigBase*, const TQCString&); + TDEConfigBase* config (); + +private: + TDEConfigGroupSaver (const TDEConfigGroupSaver&); + +}; // class TDEConfigGroupSaver + + +class TDEConfigGroup : TDEConfigBase +{ +%TypeHeaderCode +#include +%End + + +public: + TDEConfigGroup (TDEConfigBase*, const TQCString&); + TDEConfigGroup (TDEConfigBase*, const TQString&); + TDEConfigGroup (TDEConfigBase*, const char*); + void deleteGroup (bool = 0); + +%If ( KDE_3_4_0 - ) + bool groupIsImmutable () const; +%End + + virtual void setDirty (bool); + virtual void putData (const KEntryKey&, const KEntry&, bool = 1); + virtual KEntry lookupData (const KEntryKey&) const; + virtual void sync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class TDEConfigGroup + + + +%MappedType longlong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + +// PyObject *LongLong; + + return PyLong_FromLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + long long *ll = new long long; + *ll = 0; + + if (PyLong_Check (sipPy)) + *ll = PyLong_AsLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ll = (long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ll; + + return 1; +%End + +}; + + +%MappedType ulonglong +//converts a Python long +{ +%TypeHeaderCode +#if PY_MAJOR_VERSION >= 2 && PY_MINOR_VERSION >= 3 +#define LONG_LONG PY_LONG_LONG +#endif +%End +%ConvertFromTypeCode + if (!sipCpp) + Py_INCREF (Py_None); + return Py_None; + + return PyLong_FromUnsignedLongLong (*(LONG_LONG *)sipCpp); +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyLong_Check (sipPy) || PyInt_Check (sipPy); + + unsigned long long *ul = new unsigned long long; + *ul = 0; + + if (PyLong_Check (sipPy)) + *ul = PyLong_AsUnsignedLongLong (sipPy); + else if (PyInt_Check (sipPy)) + *ul = (unsigned long long)PyInt_AS_LONG (sipPy); + + *sipCppPtr = ul; + + return 1; +%End + +}; + + diff --git a/sip/tdecore/tdeconfigdata.sip b/sip/tdecore/tdeconfigdata.sip new file mode 100644 index 0000000..6c20ab9 --- /dev/null +++ b/sip/tdecore/tdeconfigdata.sip @@ -0,0 +1,172 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 KEntry +{ +%TypeHeaderCode +#include +%End + + +public: + KEntry (); + TQCString mValue; + bool bDirty; + bool bNLS; + bool bGlobal; + bool bImmutable; + bool bDeleted; + +%If ( KDE_3_1_0 - ) + bool bExpand; +%End + + +}; // class KEntry + + +class KEntryKey +{ +%TypeHeaderCode +#include +%End + + +public: + KEntryKey (const TQCString& = TQCString ("" ), const TQCString& = TQCString ("" )); + TQCString mGroup; + TQCString mKey; + bool bLocal; + bool bDefault; + const char* c_key; + +}; // class KEntryKey + +//ig typedef TQMap::Iterator KEntryMapIterator; +//ig typedef TQMap::ConstIterator KEntryMapConstIterator; +//force +KEntryMap testKEntryMap (SIP_PYOBJECT) [KEntryMap (KEntryMap)]; +%MethodCode +//takes dict | (KEntryMap) +//returns (TQMap +#include +%End + +%ConvertFromTypeCode + // Convert to a Python dict + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + const KEntryMap cppmap = *sipCpp; + KEntryMap::ConstIterator it; + + for (it = cppmap.begin (); it != cppmap.end (); ++it) + { + KEntryKey acpp = it.key (); + KEntry bcpp = it.data (); + PyObject *ainst; + PyObject *binst = NULL; + if (((ainst = sipConvertFromNewType(new KEntryKey(acpp), sipType_KEntryKey, NULL)) == NULL) + || ((binst = sipConvertFromNewType(new KEntry(bcpp), sipType_KEntry, NULL)) == NULL) + || (PyDict_SetItem (dict, ainst, binst) < 0)) + { + Py_XDECREF (ainst); + Py_XDECREF (binst); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a TQMap on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + + KEntryMap *cppmap = new KEntryMap; + + PyObject *aelem, *belem; + SIP_SSIZE_T pos = 0; + KEntryKey *acpp; + KEntry *bcpp; + + while (PyDict_Next(sipPy, &pos, &aelem, &belem)) + { + int iserr = 0; + + acpp = (KEntryKey *)sipForceConvertToType(aelem, sipType_KEntryKey, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + bcpp = (KEntry *)sipForceConvertToType(belem, sipType_KEntry, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cppmap; + return 0; + } + + cppmap->insert (*acpp, *bcpp); + } + + *sipCppPtr = cppmap; + + return 1; +%End +}; + + diff --git a/sip/tdecore/tdeconfigdialogmanager.sip b/sip/tdecore/tdeconfigdialogmanager.sip new file mode 100644 index 0000000..52e4951 --- /dev/null +++ b/sip/tdecore/tdeconfigdialogmanager.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEConfigDialogManager : TQObject +{ +%TypeHeaderCode +#include +%End + + +signals: + void settingsChanged (); + void settingsChanged (TQWidget*); + void widgetModified (); + +public: + TDEConfigDialogManager (TQWidget* /TransferThis/, TDEConfigSkeleton*, const char* = 0); + void addWidget (TQWidget*); + bool hasChanged (); + bool isDefault (); + +public slots: + void updateSettings (); + void updateWidgets (); + void updateWidgetsDefault (); + +protected: + void init (bool); + bool parseChildren (const TQWidget*, bool); + void setProperty (TQWidget*, const TQVariant&); + TQVariant property (TQWidget*); + void setupWidget (TQWidget*, TDEConfigSkeletonItem*); + +protected: + +}; // class TDEConfigDialogManager + +%End + diff --git a/sip/tdecore/tdeconfigskeleton.sip b/sip/tdecore/tdeconfigskeleton.sip new file mode 100644 index 0000000..6e588c1 --- /dev/null +++ b/sip/tdecore/tdeconfigskeleton.sip @@ -0,0 +1,1146 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEConfigSkeletonItem +{ +%TypeHeaderCode +#include +#include +%End + + +public: + typedef TQValueList List; +//ig typedef TQDict Dict; +//ig typedef TQDictIterator DictIterator; + TDEConfigSkeletonItem (const TQString&, const TQString&); + void setGroup (const TQString&); + TQString group () const; + void setKey (const TQString&); + TQString key () const; + void setName (const TQString&); + TQString name () const; + void setLabel (const TQString&); + TQString label () const; + void setWhatsThis (const TQString&); + TQString whatsThis () const; + virtual void readConfig (TDEConfig*) = 0; + virtual void writeConfig (TDEConfig*) = 0; + virtual void readDefault (TDEConfig*) = 0; + virtual void setProperty (const TQVariant&) = 0; + virtual TQVariant property () const = 0; + virtual TQVariant minValue () const; + virtual TQVariant maxValue () const; + virtual void setDefault () = 0; + virtual void swapDefault () = 0; + bool isImmutable () const; + +protected: + void readImmutability (TDEConfig*); + +//force +%ConvertToSubClassCode + if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemBool; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemColor; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemDateTime; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemDouble; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemEnum; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemFont; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemIntList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemLong; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemPassword; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemPath; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemPoint; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemProperty; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemRect; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemSize; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemString; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemStringList; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemUInt; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemUInt64; + else if (dynamic_cast(sipCpp)) + sipClass = sipClass_TDEConfigSkeleton_ItemULong; + else + sipClass = NULL; +%End +//end + +}; // class TDEConfigSkeletonItem + +%End + + +%If ( KDE_3_2_0 - ) + +class TDEConfigSkeleton +{ +%TypeHeaderCode +#include +typedef TQValueList IntList; +%End + + +public: + + class ItemPassword : TDEConfigSkeleton::ItemString + { + + public: + ItemPassword (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" )); + + }; // class ItemPassword + + +public: + + class ItemPath : TDEConfigSkeleton::ItemString + { + + public: + ItemPath (const TQString&, const TQString&, TQString&, const TQString& = TQString ::null ); + + }; // class ItemPath + + +public: + + class ItemEnum : TDEConfigSkeleton::ItemInt + { + + public: + + class Choice + { + + public: + TQString name; + TQString label; + TQString whatsThis; + + }; // class Choice + + + public: + ItemEnum (const TQString&, const TQString&, int, const TQValueList&, int = 0) [(const TQString&, const TQString&, int&, const TQValueList&, int = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (int) | choices | (TQValueList) |defaultValue | (int = 1) + + class PyItemEnum : public TDEConfigSkeleton::ItemEnum + { + public: + PyItemEnum (const TQString& group, const TQString& key, int& val, const TQValueList& choices, int defaultValue = 0) : + TDEConfigSkeleton::ItemEnum(group, key, this->value, choices, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemEnum *) new PyItemEnum (*a0, *a1, a2, *a3, a4); + Py_END_ALLOW_THREADS +%End + + TQValueList choices () const; + void readConfig (TDEConfig*); + void writeConfig (TDEConfig*); + + public: +//force + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); +//end + + }; // class ItemEnum + + +public: + +%If ( KDE_3_4_0 - ) + + class ItemPathList : TDEConfigSkeleton::ItemStringList + { + + public: + ItemPathList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); + void readConfig (TDEConfig*); + void writeConfig (TDEConfig*); + + }; // class ItemPathList + + +public: +%End + + +public: + TDEConfigSkeleton (const TQString& = TQString ::null ); + TDEConfigSkeleton (KSharedConfig::Ptr); + void setDefaults (); + void readConfig (); + void writeConfig (); + void setCurrentGroup (const TQString&); + TQString currentGroup (); + void addItem (TDEConfigSkeletonItem*, const TQString& = TQString ::null ); + ItemString* addItemString (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + TDEConfigSkeleton::ItemPassword* addItemPassword (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + TDEConfigSkeleton::ItemPath* addItemPath (const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), const TQString& = TQString ::null ); + ItemProperty* addItemProperty (const TQString&, TQVariant&, const TQVariant& = TQVariant (), const TQString& = TQString ::null ); + ItemBool* addItemBool (const TQString&, bool&, bool = 0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (bool) | defaultValue | (bool) | key | (TQString = TQString::null) + + class PyItemBool : public TDEConfigSkeleton::ItemBool + { + public: + PyItemBool (const TQString &group, const TQString &key, bool val, bool defaultValue = 0) : + TDEConfigSkeleton::ItemBool (group, key, this->value, defaultValue) + { + value = val; + } + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemBool (sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemInt* addItemInt (const TQString&, int&, int = 0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (int) | defaultValue | (int) | key | (TQString = TQString::null) + + class PyItemInt : public TDEConfigSkeleton::ItemInt + { + public: + PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue=0) : + TDEConfigSkeleton::ItemInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemUInt* addItemUInt (const TQString&, uint&, uint = 0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (uint) | defaultValue | (uint) | key | (TQString = TQString::null) + + class PyItemUInt : public TDEConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : + TDEConfigSkeleton::ItemUInt (group, key, this->value, defaultValue) + { + value = val; + } + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemUInt(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemLong* addItemLong (const TQString&, long&, long = 0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (long) | defaultValue | (long) | key | (TQString = TQString::null) + + class PyItemLong : public TDEConfigSkeleton::ItemLong + { + public: + PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue=0) : + TDEConfigSkeleton::ItemLong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemLong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemULong* addItemULong (const TQString&, ulong&, ulong = 0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (ulong) | defaultValue | (ulong) | key | (TQString = TQString::null) + + class PyItemULong : public TDEConfigSkeleton::ItemULong + { + public: + PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : + TDEConfigSkeleton::ItemULong (group, key, this->value, defaultValue) + { + value = val; + } + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemULong(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + TDEConfigSkeleton::ItemInt64* addItemInt64 (const TQString&, longlong&, longlong = 0, const TQString& = TQString ::null ); + TDEConfigSkeleton::ItemUInt64* addItemUInt64 (const TQString&, ulonglong&, ulonglong = 0, const TQString& = TQString ::null ); + ItemDouble* addItemDouble (const TQString&, double&, double = 0.0, const TQString& = TQString ::null ); +%MethodCode +//takes name | (TQString) | value | (double) | defaultValue | (double) | key | (TQString = TQString::null) + + class PyItemDouble : public TDEConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : + TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipRes = new PyItemDouble(sipCpp->currentGroup(), a3->isNull() ? *a0 : *a3, a1, a2); + sipCpp->addItem(sipRes, *a0); + Py_END_ALLOW_THREADS +%End + + ItemColor* addItemColor (const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 ), const TQString& = TQString ::null ); + ItemFont* addItemFont (const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont (), const TQString& = TQString ::null ); + ItemRect* addItemRect (const TQString&, TQRect&, const TQRect& = TQRect (), const TQString& = TQString ::null ); + ItemPoint* addItemPoint (const TQString&, TQPoint&, const TQPoint& = TQPoint (), const TQString& = TQString ::null ); + ItemSize* addItemSize (const TQString&, TQSize&, const TQSize& = TQSize (), const TQString& = TQString ::null ); + ItemDateTime* addItemDateTime (const TQString&, TQDateTime&, const TQDateTime& = TQDateTime (), const TQString& = TQString ::null ); + TDEConfigSkeleton::ItemStringList* addItemStringList (const TQString&, TQStringList&, const TQStringList& = TQStringList (), const TQString& = TQString ::null ); + TDEConfigSkeleton::ItemIntList* addItemIntList (const TQString&, TQValueList&, const TQValueList& = IntList (), const TQString& = TQString ::null ); +%MethodCode +//returns a Python list of int +//takes name | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = []) | key | (TQString = TQString::null) + if (a2 == NULL) *(TQValueList *)a2 = TQValueList(); + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp->addItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + TDEConfig* config () const; + SIP_PYLIST items () const [TDEConfigSkeletonItem::List ()]; +%MethodCode +//returns (a Python list of Items) + + TDEConfigSkeletonItem::List list; + + Py_BEGIN_ALLOW_THREADS + list = sipCpp->items (); + Py_END_ALLOW_THREADS + + int n = list.count (); + if (n > 0) + for (int i = 0; i < n; i++) + PyList_Append (sipRes, sipConvertFromInstance (&(list [i]), sipClass_TDEConfigSkeletonItem, NULL)); +%End + + bool isImmutable (const TQString&); + TDEConfigSkeletonItem* findItem (const TQString&); + bool useDefaults (bool); + +protected: + virtual void usrUseDefaults (bool); + virtual void usrSetDefaults (); + virtual void usrReadConfig (); + virtual void usrWriteConfig (); + +public: +//force + + class ItemString : TDEConfigSkeletonItem + { + + public: + + enum Type + { + Normal, + Password, + Path + }; + + ItemString (const TQString&, const TQString&, TQString&, const TQString& = TQString ::fromLatin1 ("" ), TDEConfigSkeleton::ItemString::Type = TDEConfigSkeleton ::ItemString ::Normal ); + void setValue (const TQString&); + TQString& value (); + virtual void setDefaultValue (const TQString&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemString + + +public: +//end + +public: +//force + + class ItemProperty : TDEConfigSkeletonItem + { + + public: + ItemProperty (const TQString&, const TQString&, TQVariant, TQVariant = 0) [(const TQString&, const TQString&, TQVariant&, TQVariant = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (TQVariant) | defaultValue | (TQVariant = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemProperty *) new TDEConfigSkeleton::ItemProperty (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const TQVariant&); + TQVariant& value (); + virtual void setDefaultValue (const TQVariant&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemProperty + + +public: +//end + +public: +//force + + class ItemBool : TDEConfigSkeletonItem + { + + public: + ItemBool (const TQString&, const TQString&, bool, bool = 1) [(const TQString&, const TQString&, bool&, bool = 1)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (bool) | defaultValue | (bool = 1) + + class PyItemBool : public TDEConfigSkeleton::ItemBool + { + public: + PyItemBool(const TQString &group, const TQString &key, bool val, bool defaultValue = false) : + TDEConfigSkeleton::ItemBool(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + bool value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemBool *) new PyItemBool (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const bool&); + bool value (); + virtual void setDefaultValue (const bool&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemBool + + +public: +//end + +public: +//force + + class ItemInt : TDEConfigSkeletonItem + { + + public: + ItemInt (const TQString&, const TQString&, int, int = 1) [(const TQString&, const TQString&, int&, int = 1)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (int) | defaultValue | (int = 1) + + class PyItemInt : public TDEConfigSkeleton::ItemInt + { + public: + PyItemInt(const TQString &group, const TQString &key, int val, int defaultValue = 0) : + TDEConfigSkeleton::ItemInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + int value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemInt *) new PyItemInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const int&); + int value (); + virtual void setDefaultValue (const int&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (int); + void setMaxValue (int); + + }; // class ItemInt + + +public: +//end + +public: +//force + + class ItemInt64 : TDEConfigSkeletonItem + { + + public: + ItemInt64 (const TQString&, const TQString&, longlong&, longlong = 0); +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (longlong) | defaultValue | (longlong = 0) + + class PyItemInt64 : public TDEConfigSkeleton::ItemInt64 + { + public: + PyItemInt64(const TQString &group, const TQString &key, TQ_INT64 val, TQ_INT64 defaultValue=0) : + TDEConfigSkeleton::ItemInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + TQ_INT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemInt64 *) new PyItemInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const longlong&); + longlong& value (); + virtual void setDefaultValue (const longlong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (longlong); + void setMaxValue (longlong); + + }; // class ItemInt64 + + +public: +//end + +public: +//force + + class ItemUInt : TDEConfigSkeletonItem + { + + public: + ItemUInt (const TQString&, const TQString&, uint, uint = 0) [(const TQString&, const TQString&, uint&, uint = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (uint) | defaultValue | (uint = 1) + + class PyItemUInt : public TDEConfigSkeleton::ItemUInt + { + public: + PyItemUInt(const TQString &group, const TQString &key, uint val, uint defaultValue = 0) : + TDEConfigSkeleton::ItemUInt(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + uint value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemUInt *) new PyItemUInt (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const uint&); + uint value (); + virtual void setDefaultValue (const uint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (uint); + void setMaxValue (uint); + + }; // class ItemUInt + + +public: + +public: + + class ItemLong : TDEConfigSkeletonItem + { + + public: + ItemLong (const TQString&, const TQString&, long&, long = 0) [(const TQString&, const TQString&, long&, long = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (long) | defaultValue | (long = 1) + + class PyItemLong : public TDEConfigSkeleton::ItemLong + { + public: + PyItemLong(const TQString &group, const TQString &key, long val, long defaultValue = 0) : + TDEConfigSkeleton::ItemLong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + long value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemLong *) new PyItemLong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const long&); + long value (); + virtual void setDefaultValue (const long&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (long); + void setMaxValue (long); + + }; // class ItemLong + + +public: +//end + +public: +//force + + class ItemULong : TDEConfigSkeletonItem + { + + public: + ItemULong (const TQString&, const TQString&, ulong, ulong = 0) [(const TQString&, const TQString&, ulong&, ulong = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (ulong) | defaultValue | (ulong = 1) + + class PyItemULong : public TDEConfigSkeleton::ItemULong + { + public: + PyItemULong(const TQString &group, const TQString &key, ulong val, ulong defaultValue = 0) : + TDEConfigSkeleton::ItemULong(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + ulong value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemULong *) new PyItemULong (*a0, *a1, a2); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulong&); + ulong value (); + virtual void setDefaultValue (const ulong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (ulong); + void setMaxValue (ulong); + + }; // class ItemULong + + +public: +//end + +public: +//force + + class ItemUInt64 : TDEConfigSkeletonItem + { + + public: + ItemUInt64 (const TQString&, const TQString&, ulonglong&, ulonglong = 0); +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (ulonglong) | defaultValue | (ulonglong = 0) + + class PyItemUInt64 : public TDEConfigSkeleton::ItemUInt64 + { + public: + PyItemUInt64(const TQString &group, const TQString &key, TQ_UINT64 val, TQ_UINT64 defaultValue = 0) : + TDEConfigSkeleton::ItemUInt64(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + TQ_UINT64 value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemUInt64 *) new PyItemUInt64 (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const ulonglong&); + ulonglong value (); + virtual void setDefaultValue (const ulonglong&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (ulonglong); + void setMaxValue (ulonglong); + + }; // class ItemUInt64 + + +public: +//end + +public: +//force + + class ItemDouble : TDEConfigSkeletonItem + { + + public: + ItemDouble (const TQString&, const TQString&, double, double = 0) [(const TQString&, const TQString&, double&, double = 0)]; +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (double) | defaultValue | (double = 0) + class PyItemDouble : public TDEConfigSkeleton::ItemDouble + { + public: + PyItemDouble(const TQString &group, const TQString &key, double val, double defaultValue=0.0) : + TDEConfigSkeleton::ItemDouble(group, key, this->value, defaultValue) + { + value = val; + }; + + private: + double value; + }; + + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemDouble *) new PyItemDouble (*a0, *a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const double&); + double value (); + virtual void setDefaultValue (const double&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + TQVariant minValue () const; + TQVariant maxValue () const; + void setMinValue (double); + void setMaxValue (double); + + }; // class ItemDouble + + +public: +//end + +public: +//force + + class ItemColor : TDEConfigSkeletonItem + { + + public: + ItemColor (const TQString&, const TQString&, TQColor&, const TQColor& = TQColor (128 ,128 ,128 )); + void setValue (const TQColor&); + TQColor& value (); + virtual void setDefaultValue (const TQColor&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemColor + + +public: +//end + +public: +//force + + class ItemFont : TDEConfigSkeletonItem + { + + public: + ItemFont (const TQString&, const TQString&, TQFont&, const TQFont& = TDEGlobalSettings ::generalFont ()); + void setValue (const TQFont&); + TQFont& value (); + virtual void setDefaultValue (const TQFont&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemFont + + +public: +//end + +public: +//force + + class ItemRect : TDEConfigSkeletonItem + { + + public: + ItemRect (const TQString&, const TQString&, TQRect&, const TQRect& = TQRect ()); + void setValue (const TQRect&); + TQRect& value (); + virtual void setDefaultValue (const TQRect&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemRect + + +public: +//end + +public: +//force + + class ItemPoint : TDEConfigSkeletonItem + { + + public: + ItemPoint (const TQString&, const TQString&, TQPoint&, const TQPoint& = TQPoint ()); + void setValue (const TQPoint&); + TQPoint& value (); + virtual void setDefaultValue (const TQPoint&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemPoint + + +public: +//end + +public: +//force + + class ItemSize : TDEConfigSkeletonItem + { + + public: + ItemSize (const TQString&, const TQString&, TQSize&, const TQSize& = TQSize ()); + void setValue (const TQSize&); + TQSize& value (); + virtual void setDefaultValue (const TQSize&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemSize + + +public: +//end + +public: +//force + + class ItemDateTime : TDEConfigSkeletonItem + { + + public: + ItemDateTime (const TQString&, const TQString&, TQDateTime&, const TQDateTime& = TQDateTime ()); + void setValue (const TQDateTime&); + TQDateTime& value (); + virtual void setDefaultValue (const TQDateTime&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemDateTime + + +public: +//end + +public: +//force + + class ItemStringList : TDEConfigSkeletonItem + { + + public: + ItemStringList (const TQString&, const TQString&, TQStringList&, const TQStringList& = TQStringList ()); + void setValue (const TQStringList&); + TQStringList& value (); + virtual void setDefaultValue (const TQStringList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemStringList + + +public: +//end + +public: +//force + + class ItemIntList : TDEConfigSkeletonItem + { + + public: + ItemIntList (const TQString&, const TQString&, TQValueList&, const TQValueList& = IntList ()); +%MethodCode +//takes group | (TQString) | key | (TQString) | reference | (a Python list of int) | defaultValue | (a Python list of int = 0) + if (a3 == NULL) *(TQValueList *)a3 = TQValueList(); + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipTDEConfigSkeleton_ItemIntList *) new TDEConfigSkeleton::ItemIntList (*a0, *a1, *a2, *a3); + Py_END_ALLOW_THREADS +%End + + void setValue (const TQValueList&); + TQValueList& value (); + virtual void setDefaultValue (const TQValueList&); + virtual void setDefault (); + void swapDefault (); + void writeConfig (TDEConfig*); + void readConfig (TDEConfig*); + void setProperty (const TQVariant&); + TQVariant property () const; + + }; // class ItemIntList + + +public: +//end + +}; // class TDEConfigSkeleton + +%End + + + +%If (KDE_3_2_0 - ) +%MappedType TQValueList +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + TQValueList *cpplist = (TQValueList *)sipCpp; + PyObject *inst; + + // Get it. + TQValueList::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromNewType(new TDEConfigSkeleton::ItemEnum::Choice(*it), sipType_TDEConfigSkeleton_ItemEnum_Choice, NULL)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + TQValueList *cpplist = new TQValueList; + + PyObject *elem; + TDEConfigSkeleton::ItemEnum::Choice *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (TDEConfigSkeleton::ItemEnum::Choice *)sipForceConvertToType(elem, sipType_TDEConfigSkeleton_ItemEnum_Choice, sipTransferObj, SIP_NOT_NONE|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/tdecore/tdecore-kde320.diff b/sip/tdecore/tdecore-kde320.diff index 91d9a2c..5bce785 100644 --- a/sip/tdecore/tdecore-kde320.diff +++ b/sip/tdecore/tdecore-kde320.diff @@ -1,8 +1,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include kmacroexpander.sip diff --git a/sip/tdecore/tdecore-kde321.diff b/sip/tdecore/tdecore-kde321.diff index 70ae29c..1e2c244 100644 --- a/sip/tdecore/tdecore-kde321.diff +++ b/sip/tdecore/tdecore-kde321.diff @@ -1,8 +1,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include kmacroexpander.sip diff --git a/sip/tdecore/tdecore-kde322.diff b/sip/tdecore/tdecore-kde322.diff index 2114627..a4eb42c 100644 --- a/sip/tdecore/tdecore-kde322.diff +++ b/sip/tdecore/tdecore-kde322.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include kmacroexpander.sip diff --git a/sip/tdecore/tdecore-kde323.diff b/sip/tdecore/tdecore-kde323.diff index 2114627..a4eb42c 100644 --- a/sip/tdecore/tdecore-kde323.diff +++ b/sip/tdecore/tdecore-kde323.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include kmacroexpander.sip diff --git a/sip/tdecore/tdecore-kde330.diff b/sip/tdecore/tdecore-kde330.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde330.diff +++ b/sip/tdecore/tdecore-kde330.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde331.diff b/sip/tdecore/tdecore-kde331.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde331.diff +++ b/sip/tdecore/tdecore-kde331.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde332.diff b/sip/tdecore/tdecore-kde332.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde332.diff +++ b/sip/tdecore/tdecore-kde332.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde340.diff b/sip/tdecore/tdecore-kde340.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde340.diff +++ b/sip/tdecore/tdecore-kde340.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde341.diff b/sip/tdecore/tdecore-kde341.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde341.diff +++ b/sip/tdecore/tdecore-kde341.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde342.diff b/sip/tdecore/tdecore-kde342.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde342.diff +++ b/sip/tdecore/tdecore-kde342.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde343.diff b/sip/tdecore/tdecore-kde343.diff index 335a5f4..906da95 100644 --- a/sip/tdecore/tdecore-kde343.diff +++ b/sip/tdecore/tdecore-kde343.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde350.diff b/sip/tdecore/tdecore-kde350.diff index 72166a8..1d1dca9 100644 --- a/sip/tdecore/tdecore-kde350.diff +++ b/sip/tdecore/tdecore-kde350.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde351.diff b/sip/tdecore/tdecore-kde351.diff index 72166a8..1d1dca9 100644 --- a/sip/tdecore/tdecore-kde351.diff +++ b/sip/tdecore/tdecore-kde351.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde352.diff b/sip/tdecore/tdecore-kde352.diff index 72166a8..1d1dca9 100644 --- a/sip/tdecore/tdecore-kde352.diff +++ b/sip/tdecore/tdecore-kde352.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecore-kde353.diff b/sip/tdecore/tdecore-kde353.diff index 72166a8..1d1dca9 100644 --- a/sip/tdecore/tdecore-kde353.diff +++ b/sip/tdecore/tdecore-kde353.diff @@ -2,8 +2,8 @@ + %Include kcalendarsystem.sip + %Include kcalendarsystemfactory.sip + %Include kclipboard.sip -+ %Include kconfigdialogmanager.sip -+ %Include kconfigskeleton.sip ++ %Include tdeconfigdialogmanager.sip ++ %Include tdeconfigskeleton.sip + %Include tdeversion.sip + %Include kidna.sip + %Include klockfile.sip diff --git a/sip/tdecore/tdecoremod.sip.in b/sip/tdecore/tdecoremod.sip.in index 27f0764..28b89d6 100644 --- a/sip/tdecore/tdecoremod.sip.in +++ b/sip/tdecore/tdecoremod.sip.in @@ -45,10 +45,10 @@ %Include kcharsets.sip %Include kcmdlineargs.sip %Include kcompletion.sip -%Include kconfig.sip -%Include kconfigbackend.sip -%Include kconfigbase.sip -%Include kconfigdata.sip +%Include tdeconfig.sip +%Include tdeconfigbackend.sip +%Include tdeconfigbase.sip +%Include tdeconfigdata.sip %Include kcrash.sip %Include kdcoppropertyproxy.sip %Include kdesktopfile.sip 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 +// 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 +%End + + +public: + BMToken (const char*, int); + char* token (); + BMToken* next (); + void setNext (BMToken*); + +}; // class BMToken + + +class BookmarkTokenizer +{ +%TypeHeaderCode +#include +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +%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 +%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 +// 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 +#include +%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 +// 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 +%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 EventList; +//ig typedef TQPtrListIterator ApplicationListIterator; +//ig typedef TQPtrListIterator EventListIterator; + +class Application +{ +%TypeHeaderCode +#include +%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 +%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 +#include +%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 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 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 +%End + + +}; // class ApplicationList + +//end +}; // namespace KNotify + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType TQPtrList +//converts a Python list of KNotify.Event +{ +%TypeHeaderCode +#include +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + TQPtrList *cpplist = (TQPtrList *)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 *cpplist = new TQPtrList; + + 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 +// 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 +%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 +// 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 +%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 +%End + + +public: + KFileOpenWithHandler (); + virtual bool displayOpenWithDialog (const KURL::List&); + +}; // class KFileOpenWithHandler + + +%If ( - KDE_3_1_0 ) + +class KAppTreeListItem : TQListViewItem +{ +%TypeHeaderCode +#include +%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 +%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 +// 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 +%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 +// 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 +%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 +%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 +%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 +%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 +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + + +%If ( KDE_3_2_0 - ) + +class KDesktopPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%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 +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class TDEApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%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 +// 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 +%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 +%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 +%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 +%End + + +public: + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class TDEApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + TDEApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class TDEApplicationPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +%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 +%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 +%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 +// 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 +%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 +// 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 +%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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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& getChildren (); + +}; // class KFileBookmark + + +class KFileBookmarkManager : TQObject +{ +%TypeHeaderCode +#include +%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 +//converts a Python list of KFileBookmark +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + TQPtrList *cpplist = (TQPtrList *)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 *cpplist = new TQPtrList; + + 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 +// 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 +%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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +%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 +// 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 +// 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 +%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 +// 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 +%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 +// 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 +%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 +// 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 +%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 KFileTreeBranchList; +//ig typedef TQPtrListIterator KFileTreeBranchIterator; + + +%MappedType TQPtrList +//converts a Python list of KFileTreeViewItem +{ +%TypeHeaderCode +#include +typedef TQPtrList 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 *cList = (TQPtrList *)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 *cList = new TQPtrList; + + 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 +//converts a Python list of KFileTreeBranch +{ +%TypeHeaderCode +#include +//typedef TQPtrList 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 *cList = (TQPtrList *)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 *cList = new TQPtrList; + + 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 +// 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 +%End + + +public: + KFileTreeViewToolTip (TQListView*); + +protected: + virtual void maybeTip (const TQPoint&); + +}; // class KFileTreeViewToolTip + + +class KFileTreeView : KListView +{ +%TypeHeaderCode +#include +%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 +// 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 +%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 KFileTreeViewItemList; +//ig typedef TQPtrListIterator 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 +// 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 +%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 +%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 +// 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 +%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 KFileViewItemList; +//ig typedef TQListIterator KFileViewItemListIterator; + + diff --git a/sip/tderesources/resource.sip b/sip/tderesources/resource.sip index 0831a82..972d3a1 100644 --- a/sip/tderesources/resource.sip +++ b/sip/tderesources/resource.sip @@ -31,7 +31,7 @@ namespace KRES class Resource : TQObject { %TypeHeaderCode -#include +#include #include %End diff --git a/sip/tdespell/tdespellmod.sip.in b/sip/tdespell/tdespellmod.sip.in index cc6d5c4..95670ca 100644 --- a/sip/tdespell/tdespellmod.sip.in +++ b/sip/tdespell/tdespellmod.sip.in @@ -34,7 +34,7 @@ %Import tdecoremod.sip %Import tdefxmod.sip %Import tdeuimod.sip -%Import kfilemod.sip +%Import tdefilemod.sip %Include ksconfig.sip %Include tdespell.sip diff --git a/sip/tdeui/kactionshortcutlist.sip b/sip/tdeui/kactionshortcutlist.sip index 2d5a0d7..22a07a4 100644 --- a/sip/tdeui/kactionshortcutlist.sip +++ b/sip/tdeui/kactionshortcutlist.sip @@ -27,7 +27,7 @@ class KActionShortcutList : KShortcutList { %TypeHeaderCode -#include +#include #include #include #include @@ -65,7 +65,7 @@ protected: class KActionPtrShortcutList : KShortcutList { %TypeHeaderCode -#include +#include #include #include #include diff --git a/sip/tdeui/kconfigdialog.sip b/sip/tdeui/kconfigdialog.sip deleted file mode 100644 index 30a7234..0000000 --- a/sip/tdeui/kconfigdialog.sip +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeui 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 TDEConfigDialog : KDialogBase -{ -%TypeHeaderCode -#include -%End - - -signals: - void widgetModified (); - void settingsChanged (); - void settingsChanged (const char*); - -public: - TDEConfigDialog (TQWidget* /TransferThis/, const char*, TDEConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); - void addPage (TQWidget*, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_3_0 - ) - void addPage (TQWidget*, TDEConfigSkeleton*, const TQString&, const TQString&, const TQString& = TQString ::null ); -%End - - static TDEConfigDialog* exists (const char*); - static bool showDialog (const char*); - virtual void show (); - -protected slots: - virtual void updateSettings (); - virtual void updateWidgets (); - virtual void updateWidgetsDefault (); - -protected: - virtual bool hasChanged (); - virtual bool isDefault (); - -protected slots: - void updateButtons (); - void settingsChangedSlot (); - -}; // class TDEConfigDialog - -%End - diff --git a/sip/tdeui/tdeconfigdialog.sip b/sip/tdeui/tdeconfigdialog.sip new file mode 100644 index 0000000..ea5d046 --- /dev/null +++ b/sip/tdeui/tdeconfigdialog.sip @@ -0,0 +1,69 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeui 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 TDEConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include +%End + + +signals: + void widgetModified (); + void settingsChanged (); + void settingsChanged (const char*); + +public: + TDEConfigDialog (TQWidget* /TransferThis/, const char*, TDEConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); + void addPage (TQWidget*, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_3_0 - ) + void addPage (TQWidget*, TDEConfigSkeleton*, const TQString&, const TQString&, const TQString& = TQString ::null ); +%End + + static TDEConfigDialog* exists (const char*); + static bool showDialog (const char*); + virtual void show (); + +protected slots: + virtual void updateSettings (); + virtual void updateWidgets (); + virtual void updateWidgetsDefault (); + +protected: + virtual bool hasChanged (); + virtual bool isDefault (); + +protected slots: + void updateButtons (); + void settingsChangedSlot (); + +}; // class TDEConfigDialog + +%End + diff --git a/sip/tdeui/tdeui-kde320.diff b/sip/tdeui/tdeui-kde320.diff index 2e22393..f1c0755 100644 --- a/sip/tdeui/tdeui-kde320.diff +++ b/sip/tdeui/tdeui-kde320.diff @@ -1,6 +1,6 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde321.diff b/sip/tdeui/tdeui-kde321.diff index 2e22393..f1c0755 100644 --- a/sip/tdeui/tdeui-kde321.diff +++ b/sip/tdeui/tdeui-kde321.diff @@ -1,6 +1,6 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde322.diff b/sip/tdeui/tdeui-kde322.diff index 2e22393..f1c0755 100644 --- a/sip/tdeui/tdeui-kde322.diff +++ b/sip/tdeui/tdeui-kde322.diff @@ -1,6 +1,6 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde323.diff b/sip/tdeui/tdeui-kde323.diff index a5989d4..18841bb 100644 --- a/sip/tdeui/tdeui-kde323.diff +++ b/sip/tdeui/tdeui-kde323.diff @@ -1,6 +1,6 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde330.diff b/sip/tdeui/tdeui-kde330.diff index dfe8ea4..0e78196 100644 --- a/sip/tdeui/tdeui-kde330.diff +++ b/sip/tdeui/tdeui-kde330.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde331.diff b/sip/tdeui/tdeui-kde331.diff index dfe8ea4..0e78196 100644 --- a/sip/tdeui/tdeui-kde331.diff +++ b/sip/tdeui/tdeui-kde331.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde332.diff b/sip/tdeui/tdeui-kde332.diff index dfe8ea4..0e78196 100644 --- a/sip/tdeui/tdeui-kde332.diff +++ b/sip/tdeui/tdeui-kde332.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kinputdialog.sip diff --git a/sip/tdeui/tdeui-kde340.diff b/sip/tdeui/tdeui-kde340.diff index 57d6793..a59386a 100644 --- a/sip/tdeui/tdeui-kde340.diff +++ b/sip/tdeui/tdeui-kde340.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde341.diff b/sip/tdeui/tdeui-kde341.diff index 57d6793..a59386a 100644 --- a/sip/tdeui/tdeui-kde341.diff +++ b/sip/tdeui/tdeui-kde341.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde342.diff b/sip/tdeui/tdeui-kde342.diff index 57d6793..a59386a 100644 --- a/sip/tdeui/tdeui-kde342.diff +++ b/sip/tdeui/tdeui-kde342.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde343.diff b/sip/tdeui/tdeui-kde343.diff index 57d6793..a59386a 100644 --- a/sip/tdeui/tdeui-kde343.diff +++ b/sip/tdeui/tdeui-kde343.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde350.diff b/sip/tdeui/tdeui-kde350.diff index 381467e..b78a05a 100644 --- a/sip/tdeui/tdeui-kde350.diff +++ b/sip/tdeui/tdeui-kde350.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde351.diff b/sip/tdeui/tdeui-kde351.diff index 381467e..b78a05a 100644 --- a/sip/tdeui/tdeui-kde351.diff +++ b/sip/tdeui/tdeui-kde351.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde352.diff b/sip/tdeui/tdeui-kde352.diff index 381467e..b78a05a 100644 --- a/sip/tdeui/tdeui-kde352.diff +++ b/sip/tdeui/tdeui-kde352.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip diff --git a/sip/tdeui/tdeui-kde353.diff b/sip/tdeui/tdeui-kde353.diff index 381467e..b78a05a 100644 --- a/sip/tdeui/tdeui-kde353.diff +++ b/sip/tdeui/tdeui-kde353.diff @@ -1,7 +1,7 @@ + %Include kactionclasses.sip + %Include kactioncollection.sip + %Include kactionselector.sip -+ %Include kconfigdialog.sip ++ %Include tdeconfigdialog.sip + %Include kdatetimewidget.sip + %Include kfontrequester.sip + %Include kiconviewsearchline.sip -- cgit v1.2.1