diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /python/pykde/sip/kfile | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/sip/kfile')
59 files changed, 4408 insertions, 0 deletions
diff --git a/python/pykde/sip/kfile/booktoken.sip b/python/pykde/sip/kfile/booktoken.sip new file mode 100644 index 00000000..08edcc51 --- /dev/null +++ b/python/pykde/sip/kfile/booktoken.sip @@ -0,0 +1,66 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class BMToken +{ +%TypeHeaderCode +#include <booktoken.h> +%End + + +public: + BMToken (const char*, int); + char* token (); + BMToken* next (); + void setNext (BMToken*); + +}; // class BMToken + + +class BookmarkTokenizer +{ +%TypeHeaderCode +#include <booktoken.h> +%End + + +public: + BookmarkTokenizer (); + void begin (); + void write (const QString&); + void end (); + char* nextToken (); + bool hasMoreTokens (); + void first (); + +protected: + void reset (); + void appendToken (const char*, int); + +protected: + +}; // class BookmarkTokenizer + diff --git a/python/pykde/sip/kfile/kcombiview.sip b/python/pykde/sip/kfile/kcombiview.sip new file mode 100644 index 00000000..edc39f57 --- /dev/null +++ b/python/pykde/sip/kfile/kcombiview.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCombiView : QSplitter, KFileView +{ +%TypeHeaderCode +#include <kcombiview.h> +%End + + +public: + KCombiView (QWidget* /TransferThis/, const char*); + virtual QWidget* 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 (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::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 (QDir::SortSpec); + +protected: + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + void setDropOptions_impl (int); +%End + +//igx virtual void virtual_hook (int, void*); + +}; // class KCombiView + diff --git a/python/pykde/sip/kfile/kcustommenueditor.sip b/python/pykde/sip/kfile/kcustommenueditor.sip new file mode 100644 index 00000000..4307d806 --- /dev/null +++ b/python/pykde/sip/kfile/kcustommenueditor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KCustomMenuEditor : KDialogBase +{ +%TypeHeaderCode +#include <kcustommenueditor.h> +%End + + +public: + KCustomMenuEditor (QWidget* /TransferThis/); + void load (KConfigBase*); + void save (KConfigBase*); + +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/python/pykde/sip/kfile/kdiroperator.sip b/python/pykde/sip/kfile/kdiroperator.sip new file mode 100644 index 00000000..816d9851 --- /dev/null +++ b/python/pykde/sip/kfile/kdiroperator.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDirOperator : QWidget +{ +%TypeHeaderCode +#include <kdiroperator.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum ActionTypes + { + SortActions, + ViewActions, + NavActions, + FileActions, + AllActions + }; + +%End + + KDirOperator (const KURL& = KURL (), QWidget* /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 QString&); + const QString& nameFilter () const; + +%If ( KDE_3_1_2 - ) + void setMimeFilter (const QStringList&); + QStringList mimeFilter () const; + void clearFilter (); +%End + + KURL url () const; + void setURL (const KURL&, bool); + void setCurrentItem (const QString&); + void setView (KFileView*); + const KFileView* view () const; + QWidget* viewWidget () const; + void setView (KFile::FileView); + void setSorting (QDir::SortSpec); + QDir::SortSpec sorting () const; + bool isRoot () const; + KDirLister* dirLister () const; + KProgress* progressBar () const; + void setMode (KFile::Mode); + KFile::Mode mode () const; + void setPreviewWidget (const QWidget*); + 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 (KConfig*, const QString&); + KConfig* viewConfig (); + QString viewConfigGroup () const; +%End + + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool mkdir (const QString&, bool = 1); + KIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/; + +%If ( KDE_3_0_3 - ) + KIO::DeleteJob* del (const KFileItemList&, QWidget* /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 - ) + KIO::CopyJob* trash (const KFileItemList&, QWidget* /Transfer/, bool = 1, bool = 1); +%End + +%End + +%End + + +protected: + virtual KFileView* createView (QWidget* /Transfer/, KFile::FileView); + void setDirLister (KDirLister*); + +%If ( KDE_3_2_0 - ) + virtual void resizeEvent (QResizeEvent*); +%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 (); + QString makeCompletion (const QString&); + QString makeDirCompletion (const QString&); + +%If ( KDE_3_4_0 - ) + void trashSelected (KAction::ActivationReason, Qt::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 QPoint&); + void sortByName (); + void sortBySize (); + void sortByDate (); + void sortReversed (); + void toggleDirsFirst (); + void toggleIgnoreCase (); + void slotCompletionMatch (const QString&); + +signals: + void urlEntered (const KURL&); + void updateInformation (int, int); + void completion (const QString&); + 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*, QDropEvent*, const KURL::List&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDirOperator + diff --git a/python/pykde/sip/kfile/kdirselectdialog.sip b/python/pykde/sip/kfile/kdirselectdialog.sip new file mode 100644 index 00000000..2bafa099 --- /dev/null +++ b/python/pykde/sip/kfile/kdirselectdialog.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDirSelectDialog : KDialogBase +{ +%TypeHeaderCode +#include <kdirselectdialog.h> +%End + + +public: + KDirSelectDialog (const QString& = QString ::null , bool = 0, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KURL url () const; + KFileTreeView* view () const; + bool localOnly () const; + static KURL selectDirectory (const QString& = QString ::null , bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + QString 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/python/pykde/sip/kfile/kdirsize.sip b/python/pykde/sip/kfile/kdirsize.sip new file mode 100644 index 00000000..cec93a14 --- /dev/null +++ b/python/pykde/sip/kfile/kdirsize.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDirSize : KIO::Job +{ +%TypeHeaderCode +#include <sipkdecoreulonglong.h> +#include <kdirsize.h> +%End + + +protected: + KDirSize (const KURL&); + KDirSize (const KFileItemList&); + ~KDirSize (); + +public: + KIO::filesize_t totalSize () const; + +%If ( KDE_3_3_0 - ) + KIO::filesize_t totalFiles () const; + KIO::filesize_t totalSubdirs () const; +%End + + static KDirSize* dirSizeJob (const KURL&); + static KDirSize* dirSizeJob (const KFileItemList&); + +%If ( KDE_3_1_2 - ) + static KIO::filesize_t dirSize (const KURL&); +%End + + +protected: + void setSync (); + void startNextJob (const KURL&); + +protected slots: + virtual void slotResult (KIO::Job*); + void slotEntries (KIO::Job*, const KIO::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/python/pykde/sip/kfile/kdiskfreesp.sip b/python/pykde/sip/kfile/kdiskfreesp.sip new file mode 100644 index 00000000..b4ee3728 --- /dev/null +++ b/python/pykde/sip/kfile/kdiskfreesp.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KDiskFreeSp : QObject +{ +%TypeHeaderCode +#include <kdiskfreesp.h> +%End + + +public: + KDiskFreeSp (QObject* /TransferThis/ = 0, const char* = 0); + int readDF (const QString&); + static KDiskFreeSp* findUsageInfo (const QString&); + +signals: + void foundMountPoint (const QString&, ulong, ulong, ulong); +//ig void foundMountPoint (const ulong&, const ulong&, const ulong&, const QString&); + void done (); + +}; // class KDiskFreeSp + +%End + diff --git a/python/pykde/sip/kfile/kencodingfiledialog.sip b/python/pykde/sip/kfile/kencodingfiledialog.sip new file mode 100644 index 00000000..b5163528 --- /dev/null +++ b/python/pykde/sip/kfile/kencodingfiledialog.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KEncodingFileDialog : KFileDialog +{ +%TypeHeaderCode +#include <kencodingfiledialog.h> +%End + + +public: + + class Result + { + + public: + QStringList fileNames; + KURL::List URLs; + QString encoding; + + }; // class Result + + +public: + KEncodingFileDialog (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , KFileDialog::OperationMode = KFileDialog ::Opening , QWidget* /TransferThis/ = 0, const char* = "", bool = 1); + QString selectedEncoding () const; + static KEncodingFileDialog::Result getOpenFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenFileNamesAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getOpenURLsAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveFileNameAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KEncodingFileDialog::Result getSaveURLAndEncoding (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KEncodingFileDialog + +%End + diff --git a/python/pykde/sip/kfile/kfile-kde310.diff b/python/pykde/sip/kfile/kfile-kde310.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde310.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde311.diff b/python/pykde/sip/kfile/kfile-kde311.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde311.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde312.diff b/python/pykde/sip/kfile/kfile-kde312.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde312.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde313.diff b/python/pykde/sip/kfile/kfile-kde313.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde313.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde314.diff b/python/pykde/sip/kfile/kfile-kde314.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde314.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde315.diff b/python/pykde/sip/kfile/kfile-kde315.diff new file mode 100644 index 00000000..ddad6d63 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde315.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip ++ %Include knotifywidgetbase.sip diff --git a/python/pykde/sip/kfile/kfile-kde320.diff b/python/pykde/sip/kfile/kfile-kde320.diff new file mode 100644 index 00000000..f5ab9bd7 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde320.diff @@ -0,0 +1,6 @@ ++ %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/python/pykde/sip/kfile/kfile-kde321.diff b/python/pykde/sip/kfile/kfile-kde321.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde321.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde322.diff b/python/pykde/sip/kfile/kfile-kde322.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde322.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde323.diff b/python/pykde/sip/kfile/kfile-kde323.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde323.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde330.diff b/python/pykde/sip/kfile/kfile-kde330.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde330.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde331.diff b/python/pykde/sip/kfile/kfile-kde331.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde331.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde332.diff b/python/pykde/sip/kfile/kfile-kde332.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde332.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde340.diff b/python/pykde/sip/kfile/kfile-kde340.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde340.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde341.diff b/python/pykde/sip/kfile/kfile-kde341.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde341.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde342.diff b/python/pykde/sip/kfile/kfile-kde342.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde342.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde343.diff b/python/pykde/sip/kfile/kfile-kde343.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde343.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde350.diff b/python/pykde/sip/kfile/kfile-kde350.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde350.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde351.diff b/python/pykde/sip/kfile/kfile-kde351.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde351.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde352.diff b/python/pykde/sip/kfile/kfile-kde352.diff new file mode 100644 index 00000000..81a06032 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde352.diff @@ -0,0 +1,6 @@ +- %Include krecentdirs.sip ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile-kde353.diff b/python/pykde/sip/kfile/kfile-kde353.diff new file mode 100644 index 00000000..2545aae5 --- /dev/null +++ b/python/pykde/sip/kfile/kfile-kde353.diff @@ -0,0 +1,5 @@ ++ %Include kcustommenueditor.sip ++ %Include kdiskfreesp.sip ++ %Include kencodingfiledialog.sip ++ %Include kfilesharedlg.sip ++ %Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfile.sip b/python/pykde/sip/kfile/kfile.sip new file mode 100644 index 00000000..7e23e132 --- /dev/null +++ b/python/pykde/sip/kfile/kfile.sip @@ -0,0 +1,115 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFile +{ +%TypeHeaderCode +#include <kfile.h> +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum Mode + { + File, + Directory, + Files, + ExistingOnly, + LocalOnly, + ModeMax + }; + + + enum FileView + { + Default, + Simple, + Detail, + SeparateDirs, + PreviewContents, + PreviewInfo, + FileViewMax + }; + +%End + + + enum SelectionMode + { + Single, + Multi, + Extended, + NoSelection + }; + + static bool isSortByName (const QDir::SortSpec&); + static bool isSortBySize (const QDir::SortSpec&); + static bool isSortByDate (const QDir::SortSpec&); + static bool isSortDirsFirst (const QDir::SortSpec&); + static bool isSortCaseInsensitive (const QDir::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/python/pykde/sip/kfile/kfilebookmark.sip b/python/pykde/sip/kfile/kfilebookmark.sip new file mode 100644 index 00000000..7730dc2c --- /dev/null +++ b/python/pykde/sip/kfile/kfilebookmark.sip @@ -0,0 +1,157 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileBookmark +{ +%TypeHeaderCode +#include <kfilebookmark.h> +%End + + +public: + + enum + { + URL, + Folder + }; + + KFileBookmark (); + KFileBookmark (const QString&, const QString&); + void clear (); + void setText (const QString&); + void setURL (const QString&); + void setType (int); + const QString getText (); + const QString getURL (); + int getType (); + QPtrList<KFileBookmark>& getChildren (); + +}; // class KFileBookmark + + +class KFileBookmarkManager : QObject +{ +%TypeHeaderCode +#include <kfilebookmark.h> +%End + + +public: + KFileBookmarkManager (); + void setTitle (const QString&); + void read (const QString&); + void write (const QString&); + void add (const QString&, const QString&); + bool remove (int); + bool moveUp (int); + bool moveDown (int); + void reread (); + void rename (int, const QString&); + void write (); + KFileBookmark* getBookmark (int); + KFileBookmark* getRoot (); + +signals: + void changed (); + +}; // class KFileBookmarkManager + + + +%MappedType QPtrList<KFileBookmark> +//converts a Python list of KFileBookmark +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileBookmark> *cpplist = (QPtrList<KFileBookmark> *)sipCpp; + KFileBookmark *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KFileBookmark, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileBookmark> *cpplist = new QPtrList<KFileBookmark>; + + PyObject *elem; + KFileBookmark *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + #if SIPVERSION >= 0x040400 + cpp = (KFileBookmark *)sipForceConvertToTransfer_KFileBookmark (elem, &iserr, sipTransferObj); + #else + cpp = (KFileBookmark *)sipForceConvertTo_KFileBookmark (elem, &iserr); + #endif + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kfile/kfiledetailview.sip b/python/pykde/sip/kfile/kfiledetailview.sip new file mode 100644 index 00000000..7fb19514 --- /dev/null +++ b/python/pykde/sip/kfile/kfiledetailview.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileListViewItem : KListViewItem +{ +%TypeHeaderCode +#include <kfiledetailview.h> +%End + + +public: + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileListViewItem (QListView* /TransferThis/, KFileItem*); +%End + + KFileListViewItem (QListView* /TransferThis/, const QString&, const QPixmap&, KFileItem*, QListViewItem*); + KFileItem* fileInfo () const; + virtual QString key (int, bool) const; + void setKey (const QString&); + QRect rect () const; + +%If ( KDE_3_0_1 - ) + void init (); +%End + + +}; // class KFileListViewItem + + +class KFileDetailView : KListView, KFileView +{ +%TypeHeaderCode +#include <kfiledetailview.h> +%End + + +public: + KFileDetailView (QWidget* /TransferThis/, const char*); + virtual QWidget* 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 (QDir::SortSpec); + void ensureItemVisible (const KFileItem*); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileListViewItem*); + QScrollView* scrollWidget () const; + +%If ( KDE_3_2_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual bool acceptDrag (QDropEvent*) const; +%End + + +protected slots: + void slotSelectionChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotSortingChanged (int); + void selected (QListViewItem*); + void slotDoubleClicked (QListViewItem*); + void highlighted (QListViewItem*); + void rightButtonPressed (QListViewItem*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, + {sipName_KApplicationPropsPlugin, &sipClass_KApplicationPropsPlugin}, +#if KDE_VERSION < 310 +// {sipName_KApplicationTree, &sipClass_KApplicationTree}, +#endif + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KBindingPropsPlugin, &sipClass_KBindingPropsPlugin}, + {sipName_KCombiView, &sipClass_KCombiView}, +#if KDE_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 KDE_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 KDE_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 KDE_VERSION >= 0x030100 + {sipName_KNotifyDialog, &sipClass_KNotifyDialog}, + {sipName_KNotifyWidget, &sipClass_KNotify_KNotifyWidget}, +#if KDE_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/python/pykde/sip/kfile/kfiledialog.sip b/python/pykde/sip/kfile/kfiledialog.sip new file mode 100644 index 00000000..21384bee --- /dev/null +++ b/python/pykde/sip/kfile/kfiledialog.sip @@ -0,0 +1,207 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileDialog : KDialogBase +{ +%TypeHeaderCode +#include <kfiledialog.h> +%End + + +public: + + enum OperationMode + { + Other, + Opening, + Saving + }; + + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool); + +%If ( KDE_3_1_0 - ) + KFileDialog (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool, QWidget*); +%End + + KURL selectedURL () const; + KURL::List selectedURLs () const; + KURL baseURL () const; + QString selectedFile () const; + QStringList selectedFiles () const; + void setURL (const KURL&, bool = 1); + void setSelection (const QString&); + void setOperationMode (KFileDialog::OperationMode); + KFileDialog::OperationMode operationMode () const; + void setKeepLocation (bool); + bool keepsLocation () const; + void setFilter (const QString&); + QString currentFilter () const; + void setFilterMimeType (const QString&, const KMimeType::List&, const KMimeType::Ptr&); + KMimeType::Ptr currentFilterMimeType (); + void setMimeFilter (const QStringList&, const QString& = QString ::null ); + QString currentMimeFilter () const; + void clearFilter (); + void setPreviewWidget (const QWidget*); + void setPreviewWidget (const KPreviewWidgetBase*); + static QString getOpenFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getOpenFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static QStringList getOpenFileNames (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL getOpenURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static KURL::List getOpenURLs (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getSaveFileName (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_4_0 - ) + static QString getSaveFileNameWId (const QString&, const QString&, WId, const QString&); +%End + + static KURL getSaveURL (const QString& = QString ::null , const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + static QString getExistingDirectory (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + static KURL getExistingURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); +%End + + static KURL getImageOpenURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + virtual void show (); + void setMode (KFile::Mode); + void setMode (uint); + KFile::Mode mode () const; + void setLocationLabel (const QString&); + 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 QString&, QString&); + +%If ( KDE_3_2_0 - ) + static void setStartDir (const KURL&); +%End + +%End + + +signals: + void fileSelected (const QString&); + void fileHighlighted (const QString&); + void selectionChanged (); + void filterChanged (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +%If ( KDE_3_1_0 - ) + void init (const QString&, const QString&, QWidget*); +%End + + virtual void initGUI (); + void multiSelectionChanged (); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + virtual void readRecentFiles (KConfig*); + virtual void saveRecentFiles (KConfig*); + KURL::List tokenize (const QString&) const; + +%If ( KDE_3_2_0 - ) + KURL getCompleteURL (const QString&); + QString currentFilterExtension (); + void updateAutoSelectExtension (); +%End + + +protected slots: + void urlEntered (const KURL&); + void enterURL (const KURL&); + void enterURL (const QString&); + void locationActivated (const QString&); + void toolbarCallback (int); + void pathComboChanged (const QString&); + void dirCompletion (const QString&); + void slotFilterChanged (); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void slotStatResult (KIO::Job*); + void slotLoadingFinished (); + void fileCompletion (const QString&); + +%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/python/pykde/sip/kfile/kfilefiltercombo.sip b/python/pykde/sip/kfile/kfilefiltercombo.sip new file mode 100644 index 00000000..f6b1e573 --- /dev/null +++ b/python/pykde/sip/kfile/kfilefiltercombo.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileFilterCombo : KComboBox +{ +%TypeHeaderCode +#include <kfilefiltercombo.h> +%End + + +public: + KFileFilterCombo (QWidget* /TransferThis/ = 0, const char* = 0); + void setFilter (const QString&); + QString currentFilter () const; + +%If ( KDE_3_4_0 - ) + void setCurrentFilter (const QString&); +%End + + void setMimeFilter (const QStringList&, const QString&); + bool showsAllTypes () const; + void setDefaultFilter (const QString&); + QString defaultFilter () const; + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +signals: + void filterChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileFilterCombo + diff --git a/python/pykde/sip/kfile/kfileiconview.sip b/python/pykde/sip/kfile/kfileiconview.sip new file mode 100644 index 00000000..92bfc587 --- /dev/null +++ b/python/pykde/sip/kfile/kfileiconview.sip @@ -0,0 +1,141 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileIconViewItem : KIconViewItem +{ +%TypeHeaderCode +#include <kfileiconview.h> +%End + + +public: + KFileIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&, KFileItem*); + +%If ( KDE_3_0_1 - ) + KFileIconViewItem (QIconView* /TransferThis/, KFileItem*); +%End + + KFileItem* fileInfo () const; + +}; // class KFileIconViewItem + + +class KFileIconView : KIconView, KFileView +{ +%TypeHeaderCode +#include <kfileiconview.h> +%End + + +public: + KFileIconView (QWidget* /TransferThis/, const char*); + virtual QWidget* 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 (QDir::SortSpec); + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + void mimeTypeDeterminationFinished (); + void determineIcon (KFileIconViewItem*); + QScrollView* 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 (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + +%If ( KDE_3_0_1 - ) + virtual bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_2_0 - ) + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + bool acceptDrag (QDropEvent*) const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void dropped (QDropEvent*, KFileItem*); + void dropped (QDropEvent*, const KURL::List&, const KURL&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFileIconView + diff --git a/python/pykde/sip/kfile/kfilemod.sip b/python/pykde/sip/kfile/kfilemod.sip new file mode 100644 index 00000000..c9ab4dc3 --- /dev/null +++ b/python/pykde/sip/kfile/kfilemod.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module kfile + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.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 +%Include kcustommenueditor.sip +%Include kdiskfreesp.sip +%Include kencodingfiledialog.sip +%Include kfilesharedlg.sip +%Include knotifydialog.sip diff --git a/python/pykde/sip/kfile/kfilemod.sip.in b/python/pykde/sip/kfile/kfilemod.sip.in new file mode 100644 index 00000000..c67b321d --- /dev/null +++ b/python/pykde/sip/kfile/kfilemod.sip.in @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module kfile + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip +%Import kdeuimod.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/python/pykde/sip/kfile/kfilepreview.sip b/python/pykde/sip/kfile/kfilepreview.sip new file mode 100644 index 00000000..67cc1f00 --- /dev/null +++ b/python/pykde/sip/kfile/kfilepreview.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFilePreview : QSplitter, KFileView +{ +%TypeHeaderCode +#include <kfilepreview.h> +%End + + +public: + KFilePreview (QWidget* /TransferThis/, const char*); + KFilePreview (KFileView*, QWidget* /TransferThis/, const char*); + virtual QWidget* 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 (QDir::SortSpec); + +%If ( KDE_3_1_0 - ) + virtual void readConfig (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); +%End + + virtual KActionCollection* actionCollection () const; + void ensureItemVisible (const KFileItem*); + void setPreviewWidget (const QWidget*, 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/python/pykde/sip/kfile/kfilereader.sip b/python/pykde/sip/kfile/kfilereader.sip new file mode 100644 index 00000000..ba7209b2 --- /dev/null +++ b/python/pykde/sip/kfile/kfilereader.sip @@ -0,0 +1,47 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileReader : KDirLister +{ +%TypeHeaderCode +#include <kfilereader.h> +%End + + +public: + KFileReader (); + KFileReader (const KURL&, const QString& = QString::null); + bool isRoot () const; + bool isReadable () const; + +protected: + virtual KFileItem* createFileItem (const KIO::UDSEntry&, const KURL&, bool); + +private: + KFileReader (const KFileReader&); + +}; // class KFileReader + diff --git a/python/pykde/sip/kfile/kfilesharedlg.sip b/python/pykde/sip/kfile/kfilesharedlg.sip new file mode 100644 index 00000000..a7b53f59 --- /dev/null +++ b/python/pykde/sip/kfile/kfilesharedlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KFileSharePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kfilesharedlg.h> +%End + + +public: + KFileSharePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (const KFileItemList&); + QWidget* page () const; + +protected slots: + void slotConfigureFileSharing (); + +%If ( KDE_3_4_0 - ) + void slotConfigureFileSharingDone (); +%End + + +}; // class KFileSharePropsPlugin + +%End + diff --git a/python/pykde/sip/kfile/kfiletreebranch.sip b/python/pykde/sip/kfile/kfiletreebranch.sip new file mode 100644 index 00000000..03f59af0 --- /dev/null +++ b/python/pykde/sip/kfile/kfiletreebranch.sip @@ -0,0 +1,235 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileTreeBranch : KDirLister +{ +%TypeHeaderCode +#include <kfiletreebranch.h> +%End + + +public: + KFileTreeBranch (KFileTreeView*, const KURL&, const QString&, const QPixmap&, bool = 0, KFileTreeViewItem* = 0); + KURL rootUrl () const; + virtual void setRoot (KFileTreeViewItem*); + KFileTreeViewItem* root (); + QString name () const; + virtual void setName (const QString); + const QPixmap& pixmap (); + const QPixmap& 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 QPixmap&); + +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 QPtrList<KFileTreeBranch> KFileTreeBranchList; +//ig typedef QPtrListIterator<KFileTreeBranch> KFileTreeBranchIterator; + + +%MappedType QPtrList<KFileTreeViewItem> +//converts a Python list of KFileTreeViewItem +{ +%TypeHeaderCode +#include <kfiletreeviewitem.h> +typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList; +#include <sipkfileKFileTreeViewItem.h> +%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. + + QPtrList<KFileTreeViewItem> *cList = (QPtrList<KFileTreeViewItem> *)sipCpp; + PyObject *item; + KFileTreeViewItem *ftvi; + + for( ftvi = cList->first(); ftvi; ftvi = cList->next ()) + { + item = sipConvertFromInstance (ftvi, sipClass_KFileTreeViewItem, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftvilist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftvilist); + return NULL; + } + } + + return ftvilist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeViewItemList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileTreeViewItem> *cList = new QPtrList<KFileTreeViewItem>; + + PyObject *elem; + int iserr = 0; + KFileTreeViewItem *ftvi; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftvi = (KFileTreeViewItem *)sipForceConvertTo_KFileTreeViewItem (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftvi); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + +%MappedType QPtrList<KFileTreeBranch> +//converts a Python list of KFileTreeBranch +{ +%TypeHeaderCode +#include <kfiletreebranch.h> +#include <sipkfileKFileTreeBranch.h> +//typedef QPtrList<KFileTreeBranch> KFileTreeBList; +%End + +%ConvertFromTypeCode + // Convert to a Python list of KFileTreeBranch + + if (!sipCpp) + return PyList_New(0); + + PyObject *ftblist; + + // Create the list + + if ((ftblist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KFileTreeBranch> *cList = (QPtrList<KFileTreeBranch> *)sipCpp; + PyObject *item; + KFileTreeBranch *ftb; + + for( ftb = cList->first(); ftb; ftb = cList->next ()) + { + item = sipConvertFromInstance (ftb, sipClass_KFileTreeBranch, sipTransferObj); + if ((item == NULL) || (PyList_Append (ftblist, item) < 0)) + { + Py_XDECREF (item); + Py_DECREF (ftblist); + return NULL; + } + } + + return ftblist; +%End + +%ConvertToTypeCode + // Convert a Python list to a KFileTreeBranchList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KFileTreeBranch> *cList = new QPtrList<KFileTreeBranch>; + + PyObject *elem; + int iserr = 0; + KFileTreeBranch *ftb; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + ftb = (KFileTreeBranch *)sipForceConvertTo_KFileTreeBranch (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cList; + return 0; + } + + cList->append (ftb); + } + + *sipCppPtr = cList; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kfile/kfiletreeview.sip b/python/pykde/sip/kfile/kfiletreeview.sip new file mode 100644 index 00000000..32b7ea3d --- /dev/null +++ b/python/pykde/sip/kfile/kfiletreeview.sip @@ -0,0 +1,109 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileTreeViewToolTip : QToolTip +{ +%TypeHeaderCode +#include <kfiletreeview.h> +%End + + +public: + KFileTreeViewToolTip (QListView*); + +protected: + virtual void maybeTip (const QPoint&); + +}; // class KFileTreeViewToolTip + + +class KFileTreeView : KListView +{ +%TypeHeaderCode +#include <kfiletreeview.h> +%End + + +public: + KFileTreeView (QWidget* /TransferThis/, const char* = 0); + KFileTreeViewItem* currentKFileTreeViewItem () const; + KURL currentURL () const; + KFileTreeBranch* addBranch (const KURL&, const QString&, bool = 0); + virtual KFileTreeBranch* addBranch (const KURL&, const QString&, const QPixmap&, bool = 0); + virtual KFileTreeBranch* addBranch (KFileTreeBranch*); + virtual bool removeBranch (KFileTreeBranch*); + KFileTreeBranch* branch (const QString&); + KFileTreeBranchList& branches (); + virtual void setDirOnlyMode (KFileTreeBranch*, bool); + KFileTreeViewItem* findItem (KFileTreeBranch*, const QString&); + KFileTreeViewItem* findItem (const QString&, const QString&); + bool showFolderOpenPixmap () const; + +public slots: + virtual void setShowFolderOpenPixmap (bool = 1); + +protected: + virtual bool acceptDrag (QDropEvent*) const; + virtual QDragObject* dragObject (); + virtual void startAnimation (KFileTreeViewItem*, const char* = "kde", uint = 6); + virtual void stopAnimation (KFileTreeViewItem*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsDropEvent (QDropEvent*); + +protected slots: + virtual void slotNewTreeViewItems (KFileTreeBranch*, KFileTreeViewItemList&); + virtual void slotSetNextUrlToSelect (const KURL&); + virtual QPixmap itemIcon (KFileTreeViewItem*, int = 0) const; + +signals: + void onItem (const QString&); + void dropped (QWidget*, QDropEvent*); + void dropped (QWidget*, QDropEvent*, KURL::List&); + void dropped (KURL::List&, KURL&); + +%If ( KDE_3_2_0 - ) + void dropped (QWidget*, QDropEvent*, KURL::List&, KURL&); +%End + + void dropped (QDropEvent*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*); + void dropped (QDropEvent*, QListViewItem*, QListViewItem*); + void dropped (KFileTreeView*, QDropEvent*, QListViewItem*, QListViewItem*); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + void slotOnItem (QListViewItem*); +//end + +}; // class KFileTreeView + diff --git a/python/pykde/sip/kfile/kfiletreeviewitem.sip b/python/pykde/sip/kfile/kfiletreeviewitem.sip new file mode 100644 index 00000000..440bcb4f --- /dev/null +++ b/python/pykde/sip/kfile/kfiletreeviewitem.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileTreeViewItem : KListViewItem +{ +%TypeHeaderCode +#include <kfiletreeviewitem.h> +%End + + +public: + KFileTreeViewItem (KFileTreeViewItem*, KFileItem*, KFileTreeBranch*); + KFileTreeViewItem (KFileTreeView*, KFileItem*, KFileTreeBranch*); + KFileTreeBranch* branch () const; + KFileItem* fileItem () const; + QString path () const; + KURL url () const; + bool isDir () const; + bool alreadyListed () const; + void setListed (bool); + +}; // class KFileTreeViewItem + +typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList; +//ig typedef QPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator; diff --git a/python/pykde/sip/kfile/kfileview.sip b/python/pykde/sip/kfile/kfileview.sip new file mode 100644 index 00000000..16db8d50 --- /dev/null +++ b/python/pykde/sip/kfile/kfileview.sip @@ -0,0 +1,153 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileViewSignaler : QObject +{ +%TypeHeaderCode +#include <kfileview.h> +%End + + +public: + void activate (const KFileItem*); + void highlightFile (const KFileItem*); + void activateMenu (const KFileItem*, const QPoint&); + void changeSorting (QDir::SortSpec); + +%If ( KDE_3_2_0 - ) + void dropURLs (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +signals: + void dirActivated (const KFileItem*); + void sortingChanged (QDir::SortSpec); + void fileHighlighted (const KFileItem*); + void fileSelected (const KFileItem*); + void activatedMenu (const KFileItem*, const QPoint&); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, QDropEvent*, const KURL::List&); +%End + + +}; // class KFileViewSignaler + + +class KFileView +{ +%TypeHeaderCode +#include <kfileview.h> +%End + + +public: + KFileView (); + void addItemList (const KFileItemList&); + virtual QWidget* widget () = 0; +//ig QWidget* widget () const; + void setCurrentItem (const QString&); + 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 (); + QDir::SortSpec sorting () const; + virtual void setSorting (QDir::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; + QString viewName (); + void setViewName (const QString&); + 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 (KConfig*, const QString& = QString ::null ); + virtual void writeConfig (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + + enum DropOptions + { + AutoOpenDirs + }; + + void setDropOptions (int); + int dropOptions (); +%End + + static QString sortingKey (const QString&, bool, int); + static QString sortingKey (KIO::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/python/pykde/sip/kfile/kfileviewitem.sip b/python/pykde/sip/kfile/kfileviewitem.sip new file mode 100644 index 00000000..bb5fa433 --- /dev/null +++ b/python/pykde/sip/kfile/kfileviewitem.sip @@ -0,0 +1,58 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFileViewItem : KFileItem +{ +%TypeHeaderCode +#include <kfileviewitem.h> +%End + + +public: + KFileViewItem (const KURL&, const KIO::UDSEntry&); + KFileViewItem (mode_t, mode_t, const KURL&, bool); + KFileViewItem (const KFileViewItem&); + bool isFile () const; + QString urlString () const; + QPixmap pixmap (int, int = 0) const; + QPixmap pixmap () const; + QString date () const; + QString access () const; + void setViewItem (const KFileView*, const void*); +//ig const void* viewItem (const KFileView*) const; + static QString dateTime (time_t); + KFileViewItem* next () const; + void setNext (KFileViewItem*); + +protected: + QString parsePermissions (mode_t) const; + +}; // class KFileViewItem + +//ig typedef QList<KFileViewItem> KFileViewItemList; +//ig typedef QListIterator<KFileViewItem> KFileViewItemListIterator; + + diff --git a/python/pykde/sip/kfile/kicondialog.sip b/python/pykde/sip/kfile/kicondialog.sip new file mode 100644 index 00000000..942ce1d5 --- /dev/null +++ b/python/pykde/sip/kfile/kicondialog.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KIconCanvas : KIconView +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconCanvas (QWidget* /TransferThis/ = 0, const char* = 0); + void loadFiles (const QStringList&); + QString getCurrent (); + +public slots: + void stopLoading (); + +signals: +//ig void nameChanged (QString); + void startLoading (int); + void progress (int); + void finished (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconCanvas + + +class KIconDialog : KDialogBase +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconDialog (QWidget* /TransferThis/ = 0, const char* = 0); + KIconDialog (KIconLoader*, QWidget* /TransferThis/ = 0, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + +%If ( KDE_3_1_0 - ) + void setCustomLocation (const QString&); +%End + + void setIconSize (int); + int iconSize () const; + QString 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 + + QString openDialog (); + +%If ( KDE_3_2_0 - ) + void showDialog (); +%End + + static QString getIcon (KIcon::Group = KIcon ::Desktop , KIcon::Context = KIcon ::Application , bool = 0, int = 0, bool = 0, QWidget* /Transfer/ = 0, const QString& = QString ::null ); + +signals: + +%If ( KDE_3_2_0 - ) + void newIconName (const QString&); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotOk (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconDialog + + +class KIconButton : QPushButton +{ +%TypeHeaderCode +#include <kicondialog.h> +%End + + +public: + KIconButton (QWidget* /TransferThis/ = 0, const char* = 0); + KIconButton (KIconLoader*, QWidget* /TransferThis/, const char* = 0); + void setStrictIconSize (bool); + bool strictIconSize () const; + void setIconType (KIcon::Group, KIcon::Context, bool = 0); + void setIcon (const QString&); + void resetIcon (); + const QString icon (); + void setIconSize (int); + int iconSize () const; + +signals: +//ig void iconChanged (QString); + +}; // class KIconButton + diff --git a/python/pykde/sip/kfile/kimagefilepreview.sip b/python/pykde/sip/kfile/kimagefilepreview.sip new file mode 100644 index 00000000..2d51d5c7 --- /dev/null +++ b/python/pykde/sip/kfile/kimagefilepreview.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KImageFilePreview : KPreviewWidgetBase +{ +%TypeHeaderCode +#include <jobclasses.h> +#include <kimagefilepreview.h> +%End + + +public: + KImageFilePreview (QWidget* /TransferThis/); + virtual QSize 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 QPixmap&); + +protected: + virtual void resizeEvent (QResizeEvent*); + virtual KIO::PreviewJob* createJob (const KURL&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KImageFilePreview + diff --git a/python/pykde/sip/kfile/knotifydialog.sip b/python/pykde/sip/kfile/knotifydialog.sip new file mode 100644 index 00000000..90da94d6 --- /dev/null +++ b/python/pykde/sip/kfile/knotifydialog.sip @@ -0,0 +1,315 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KNotifyDialog : KDialogBase +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + KNotifyDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const KAboutData* = 0); +%MethodCode +//takes parent | (QWidget = 0) | name | (char = 0) | modal | (bool = 1) | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::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 = (KAboutData *)KGlobal::instance ()->aboutData (); + + Py_BEGIN_ALLOW_THREADS + sipCpp = new sipKNotifyDialog (a0, a1, a2, a3); + Py_END_ALLOW_THREADS +%End + + static int configure (QWidget* /Transfer/ = 0, const char* = 0, const KAboutData* = 0); +%MethodCode +//returns (int) +//takes parent | (QWidget = 0) | name | (a Python string = "") | aboutData | (KAboutData = see note) +//doc +// The default value for aboutData in C++ is KGlobal::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 = (KAboutData *)KGlobal::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 QString&); + virtual void clearApplicationEvents (); + +}; // class KNotifyDialog + +%End + + +%If ( KDE_3_1_0 - ) +namespace KNotify +{ +typedef QPtrList<KNotify::Event> EventList; +//ig typedef QPtrListIterator<KNotify::Application> ApplicationListIterator; +//ig typedef QPtrListIterator<KNotify::Event> EventListIterator; + +class Application +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + Application (const QString&); + QString text () const; + QString icon () const; + const KNotify::EventList& eventList (); + void reloadEvents (bool = 0); + void save (); + QString appName () const; + +}; // class Application + + +%If ( KDE_3_2_0 - ) + +//ig class KNotifyWidget : KNotifyWidgetBase; + +%End + + +class Event +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +public: + QString text () const; + int presentation; + int dontShow; + QString logfile; + QString soundfile; + QString commandline; + const KNotify::Application* application () const; + +private: + Event (const KNotify::Application*); + +}; // class Event + + +//ig class ListViewItem : QListViewItem; + + +%If ( - KDE_3_2_0 ) + +class KNotifyWidget : KNotifyWidgetBase +{ +%TypeHeaderCode +#include <knotifywidgetbase.h> +#include <knotifydialog.h> +%End + + +public: + KNotifyWidget (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KListView* eventsView (); + void addVisibleApp (KNotify::Application*); + KNotify::Application* addApplicationEvents (const QString&); + 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 (QShowEvent*); + 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) + QPtrList<KNotify::Application> applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->visibleApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for (app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + SIP_PYLIST allApps (); +%MethodCode +//returns (a Python list of KNotify.Application) + QPtrList<KNotify::Application> applist; + + Py_BEGIN_ALLOW_THREADS + applist = sipCpp->allApps (); + Py_END_ALLOW_THREADS + + KNotify::Application *app; + PyObject *inst; + + for(app = applist.first (); app != 0; app = applist.next () ) + { + inst = sipConvertFromInstance (app, sipClass_KNotify_Application, NULL); + PyList_Append (sipRes, inst); + } +%End + + +}; // class KNotifyWidget + +%End + +//force + +class ApplicationList +{ +%TypeHeaderCode +#include <knotifydialog.h> +%End + + +}; // class ApplicationList + +//end +}; // namespace KNotify + +%End + + + +%If (KDE_3_1_0 - ) +%MappedType QPtrList<KNotify::Event> +//converts a Python list of KNotify.Event +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <knotifydialog.h> +#include <sipkfileKNotifyEvent.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KNotify::Event> *cpplist = (QPtrList<KNotify::Event> *)sipCpp; + KNotify::Event *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KNotify_Event, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KNotify::Event> *cpplist = new QPtrList<KNotify::Event>; + + PyObject *elem; + KNotify::Event *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KNotify::Event *)sipForceConvertTo_KNotify_Event (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/python/pykde/sip/kfile/knotifywidgetbase.sip b/python/pykde/sip/kfile/knotifywidgetbase.sip new file mode 100644 index 00000000..95f3d900 --- /dev/null +++ b/python/pykde/sip/kfile/knotifywidgetbase.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KNotifyWidgetBase : QWidget +{ +%TypeHeaderCode +#include <knotifywidgetbase.h> +%End + + +public: + KNotifyWidgetBase (QWidget*/TransferThis/ = 0, const char* = 0, WFlags = 0); + KListView* m_listview; + QGroupBox* m_actionsBox; + KURLRequester* m_logfilePath; + KURLRequester* m_soundPath; + QCheckBox* m_logToFile; + KURLRequester* m_executePath; + QCheckBox* m_playSound; + QPushButton* m_playButton; + QCheckBox* m_execute; + QCheckBox* m_messageBox; + QCheckBox* m_passivePopup; + QCheckBox* m_stderr; + QGroupBox* m_controlsBox; + QCheckBox* m_affectAllApps; + QPushButton* m_buttonDisable; + QPushButton* m_buttonEnable; + KComboBox* m_comboEnable; + KComboBox* m_comboDisable; + QPushButton* m_extension; + QPushButton* m_playerButton; + +protected: + +}; // class KNotifyWidgetBase + +%End + diff --git a/python/pykde/sip/kfile/kopenwith.sip b/python/pykde/sip/kfile/kopenwith.sip new file mode 100644 index 00000000..e1175bd0 --- /dev/null +++ b/python/pykde/sip/kfile/kopenwith.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KOpenWithDlg : QDialog +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KOpenWithDlg (const KURL::List&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const KURL::List&, const QString&, const QString&, QWidget* /TransferThis/ = 0); + KOpenWithDlg (const QString&, const QString&, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_1_0 - ) + KOpenWithDlg (QWidget* /TransferThis/ = 0); +%End + + QString 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 QString&, const QString&); + void slotHighlighted (const QString&, const QString&); + void slotTextChanged (); + void slotTerminalToggled (bool); + void slotDbClick (); + void slotOK (); + +protected slots: + virtual void accept (); + +protected: + void setServiceType (const KURL::List&); + void init (const QString&, const QString&); + +}; // class KOpenWithDlg + + +class KFileOpenWithHandler : KOpenWithHandler +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KFileOpenWithHandler (); + virtual bool displayOpenWithDialog (const KURL::List&); + +}; // class KFileOpenWithHandler + + +%If ( - KDE_3_1_0 ) + +class KAppTreeListItem : QListViewItem +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +protected: + QString key (int, bool) const; + void init (const QPixmap&, bool, bool, QString, QString); + +public: + KAppTreeListItem (KListView* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + KAppTreeListItem (QListViewItem* /TransferThis/, const QString&, const QPixmap&, bool, bool, QString, QString); + bool isDirectory (); + +protected: + virtual void activate (); + virtual void setOpen (bool); + +}; // class KAppTreeListItem + +%End + + +%If ( - KDE_3_1_0 ) + +class KApplicationTree : KListView +{ +%TypeHeaderCode +#include <kopenwith.h> +%End + + +public: + KApplicationTree (QWidget* /TransferThis/); + void addDesktopGroup (QString, KAppTreeListItem* = 0); + KAppTreeListItem* it; + bool isDirSel (); + +protected: + void resizeEvent (QResizeEvent*); + +public slots: + void slotItemHighlighted (QListViewItem*); + void slotSelectionChanged (QListViewItem*); + +signals: + void selected (const QString&, const QString&); + void highlighted (const QString&, const QString&); + +}; // class KApplicationTree + +%End + diff --git a/python/pykde/sip/kfile/kpreviewwidgetbase.sip b/python/pykde/sip/kfile/kpreviewwidgetbase.sip new file mode 100644 index 00000000..e7622273 --- /dev/null +++ b/python/pykde/sip/kfile/kpreviewwidgetbase.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPreviewWidgetBase : QWidget +{ +%TypeHeaderCode +#include <kpreviewwidgetbase.h> +%End + + +public: + KPreviewWidgetBase (QWidget* /TransferThis/, const char* = 0); + +public slots: + virtual void showPreview (const KURL&) = 0; + virtual void clearPreview () = 0; + +%If ( KDE_3_2_0 - ) + QStringList supportedMimeTypes () const; +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void setSupportedMimeTypes (const QStringList&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPreviewWidgetBase + diff --git a/python/pykde/sip/kfile/kpropertiesdialog.sip b/python/pykde/sip/kfile/kpropertiesdialog.sip new file mode 100644 index 00000000..bec90ab6 --- /dev/null +++ b/python/pykde/sip/kfile/kpropertiesdialog.sip @@ -0,0 +1,304 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + +%If ( KDE_3_4_0 - ) + static bool showDialog (KFileItem*, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KURL&, QWidget* /Transfer/ = 0, const char* = 0, bool = 0); + static bool showDialog (const KFileItemList&, QWidget* /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 QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +%If ( KDE_3_1_0 - ) + void showFileSharingPage (); + +%If ( KDE_3_3_0 - ) + void setFileSharingPage (QWidget*); +%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 : QObject +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +%If ( KDE_3_2_0 - ) + void setFileNameReadOnly (bool); +%End + + +protected slots: + +%If ( KDE_3_2_0 - ) + void slotEditFileType (); +%End + + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + +%If ( KDE_3_2_0 - ) + void slotDirSizeUpdate (); +%End + + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum PermissionsMode + { + PermissionsOnlyFiles, + PermissionsOnlyDirs, + PermissionsOnlyLinks, + PermissionsMixed + }; + + + enum PermissionsTarget + { + PermissionsOwner, + PermissionsGroup, + PermissionsOthers + }; + +%End + + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + + +%If ( KDE_3_2_0 - ) + +class KDesktopPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KDesktopPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotAddFiletype (); + void slotDelFiletype (); + void slotBrowseExec (); + void slotAdvanced (); + void slotSelectMimetype (); + +}; // class KDesktopPropsPlugin + +%End + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropertiesdialog.h> +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + diff --git a/python/pykde/sip/kfile/kpropsdlg.sip b/python/pykde/sip/kfile/kpropsdlg.sip new file mode 100644 index 00000000..2ec6275a --- /dev/null +++ b/python/pykde/sip/kfile/kpropsdlg.sip @@ -0,0 +1,208 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPropertiesDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + static bool canDisplay (KFileItemList); + KPropertiesDialog (KFileItem*, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (KFileItemList, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, mode_t = -1, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const KURL&, const KURL&, const QString&, QWidget*/TransferThis/ = 0, const char* = 0, bool = 0, bool = 1); + KPropertiesDialog (const QString&, QWidget*/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 QString& defaultName () const; + void updateUrl (const KURL&); + void rename (const QString&); + void abortApplying (); + +public slots: + virtual void slotOk (); + virtual void slotCancel (); + +signals: + void propertiesClosed (); + void applied (); + void canceled (); + +}; // class KPropertiesDialog + + +class KPropsDlgPlugin : QObject +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KPropsDlgPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool isDesktopFile (KFileItem*); + void setDirty (bool); + bool isDirty () const; + +public slots: + void setDirty (); + +signals: + void changed (); + +protected: + +}; // class KPropsDlgPlugin + + +class KFilePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KFilePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + void postApplyChanges (); + +protected slots: + void slotCopyFinished (KIO::Job*); + void slotFileRenamed (KIO::Job*, const KURL&, const KURL&); + void slotDirSizeFinished (KIO::Job*); + void slotFoundMountPoint (const QString&, ulong, ulong, ulong); + void slotSizeStop (); + void slotSizeDetermine (); + +}; // class KFilePropsPlugin + + +class KFilePermissionsPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KFilePermissionsPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KFilePermissionsPropsPlugin + + +class KExecPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KExecPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotBrowseExec (); + +}; // class KExecPropsPlugin + + +class KURLPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KURLPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KURLPropsPlugin + + +class KApplicationPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KApplicationPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +public slots: + void slotDelExtension (); + void slotAddExtension (); + +}; // class KApplicationPropsPlugin + + +class KBindingPropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KBindingPropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KBindingPropsPlugin + + +class KDevicePropsPlugin : KPropsDlgPlugin +{ +%TypeHeaderCode +#include <kpropsdlg.h> +%End + + +public: + KDevicePropsPlugin (KPropertiesDialog*); + virtual void applyChanges (); + static bool supports (KFileItemList); + +}; // class KDevicePropsPlugin + diff --git a/python/pykde/sip/kfile/krecentdirs.sip b/python/pykde/sip/kfile/krecentdirs.sip new file mode 100644 index 00000000..84784198 --- /dev/null +++ b/python/pykde/sip/kfile/krecentdirs.sip @@ -0,0 +1,40 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KRecentDirs +{ +%TypeHeaderCode +#include <krecentdirs.h> +%End + + +public: + static QStringList list (const QString&); + static QString dir (const QString&); + static void add (const QString&, const QString&); + +}; // class KRecentDirs + diff --git a/python/pykde/sip/kfile/krecentdocument.sip b/python/pykde/sip/kfile/krecentdocument.sip new file mode 100644 index 00000000..c22a01d6 --- /dev/null +++ b/python/pykde/sip/kfile/krecentdocument.sip @@ -0,0 +1,44 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KRecentDocument +{ +%TypeHeaderCode +#include <krecentdocument.h> +%End + + +public: + static QStringList recentDocuments (); + static void add (const KURL&); + static void add (const KURL&, const QString&); + static void add (const QString&, bool = 0); + static void clear (); + static int maximumItems (); + static QString recentDocumentDirectory (); + +}; // class KRecentDocument + diff --git a/python/pykde/sip/kfile/kurlbar.sip b/python/pykde/sip/kfile/kurlbar.sip new file mode 100644 index 00000000..7f80e18f --- /dev/null +++ b/python/pykde/sip/kfile/kurlbar.sip @@ -0,0 +1,213 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KURLBarItem : QListBoxPixmap +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + KURLBarItem (KURLBar* /TransferThis/, const KURL&, bool, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + KURLBarItem (KURLBar* /TransferThis/, const KURL&, const QString& = QString ::null , const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + void setURL (const KURL&); + void setIcon (const QString&, KIcon::Group = KIcon ::Panel ); + void setDescription (const QString&); + void setToolTip (const QString&); + +%If ( KDE_3_0_1 - ) + QSize sizeHint () const; +%End + + virtual int width (const QListBox*) const; + virtual int height (const QListBox*) const; + const KURL& url () const; + const QString& description () const; + const QString& icon () const; + QString toolTip () const; + KIcon::Group iconGroup () const; + virtual const QPixmap* pixmap () const; + void setApplicationLocal (bool); + bool applicationLocal () const; + +%If ( KDE_3_2_0 - ) + bool isPersistent () const; +%End + + +protected: + virtual void paint (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarItem + + +class KURLBar : QFrame +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + KURLBar (bool, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual KURLBarItem* insertItem (const KURL&, const QString&, bool = 1, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); + +%If ( KDE_3_2_0 - ) + virtual KURLBarItem* insertDynamicItem (const KURL&, const QString&, const QString& = QString ::null , KIcon::Group = KIcon ::Panel ); +%End + + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + virtual void setListBox (KURLBarListBox*); + KURLBarListBox* listBox () const; + virtual void setIconSize (int); + int iconSize () const; + virtual void clear (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + virtual void readConfig (KConfig*, const QString&); + virtual void writeConfig (KConfig*, const QString&); + virtual void readItem (int, KConfig*, bool); + virtual void writeItem (KURLBarItem*, int, KConfig*, 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 (QResizeEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paletteChange (const QPalette&); +%End + + +protected slots: + virtual void slotContextMenuRequested (QListBoxItem*, const QPoint&); + virtual void slotSelected (QListBoxItem*); + virtual void slotDropped (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + bool isVertical () const; +%End + + +}; // class KURLBar + + +class KURLBarListBox : KListBox +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + KURLBarListBox (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setOrientation (Qt::Orientation); + Qt::Orientation orientation () const; + +%If ( KDE_3_0_1 - ) + bool isVertical () const; +%End + + +signals: + void dropped (QDropEvent*); + +protected: + virtual QDragObject* dragObject (); + virtual void contentsDragEnterEvent (QDragEnterEvent*); + virtual void contentsDropEvent (QDropEvent*); + +%If ( KDE_3_2_0 - ) + virtual void contextMenuEvent (QContextMenuEvent*); + +%If ( KDE_3_4_0 - ) + virtual void paintEvent (QPaintEvent*); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLBarListBox + + +class KURLBarItemDialog : KDialogBase +{ +%TypeHeaderCode +#include <kurlbar.h> +%End + + +public: + static bool getInformation (bool, KURL&, QString&, QString&, bool&, int, QWidget* /Transfer/ = 0); + KURLBarItemDialog (bool, const KURL&, const QString&, QString, bool = 1, int = KIcon ::SizeMedium , QWidget* /TransferThis/ = 0, const char* = 0); + KURL url () const; + QString description () const; + QString icon () const; + bool applicationLocal () const; + +protected: + +public slots: + void urlChanged (const QString&); + +}; // class KURLBarItemDialog + diff --git a/python/pykde/sip/kfile/kurlcombobox.sip b/python/pykde/sip/kfile/kurlcombobox.sip new file mode 100644 index 00000000..f1dc5457 --- /dev/null +++ b/python/pykde/sip/kfile/kurlcombobox.sip @@ -0,0 +1,80 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KURLComboBox : KComboBox +{ +%TypeHeaderCode +#include <kurlcombobox.h> +%End + + +public: + + enum Mode + { + Files, + Directories, + Both + }; + + + enum OverLoadResolving + { + RemoveTop, + RemoveBottom + }; + + KURLComboBox (KURLComboBox::Mode, QWidget* /TransferThis/ = 0, const char* = 0); + KURLComboBox (KURLComboBox::Mode, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void setURLs (QStringList); + void setURLs (QStringList, KURLComboBox::OverLoadResolving); + QStringList urls () const; + void setMaxItems (int); + int maxItems () const; + void addDefaultURL (const KURL&, const QString& = QString ::null ); + void addDefaultURL (const KURL&, const QPixmap&, const QString& = QString ::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*); + QPixmap getPixmap (const KURL&) const; +//ig void updateItem (const KURLComboBox::KURLComboItem*, int, const QPixmap&); + +}; // class KURLComboBox + diff --git a/python/pykde/sip/kfile/kurlrequester.sip b/python/pykde/sip/kfile/kurlrequester.sip new file mode 100644 index 00000000..512acacf --- /dev/null +++ b/python/pykde/sip/kfile/kurlrequester.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KURLRequester : QHBox +{ +%TypeHeaderCode +#include <kurlrequester.h> +%End + + +public: + KURLRequester (QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + KURLRequester (QWidget*, QWidget* /TransferThis/, const char* = 0); + QString url () const; + void setShowLocalProtocol (bool); + void setMode (uint); + +%If ( KDE_3_3_0 - ) + uint mode () const; +%End + + void setFilter (const QString&); + +%If ( KDE_3_3_0 - ) + QString 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 QString&); + +%If ( KDE_3_4_0 - ) + void setKURL (const KURL&); +%End + + +%If ( KDE_3_1_0 - ) + virtual void setCaption (const QString&); +%End + + void clear (); + +signals: + void textChanged (const QString&); + void returnPressed (); + void returnPressed (const QString&); + void openFileDialog (KURLRequester*); + void urlSelected (const QString&); + +protected: + void init (); + +protected slots: + void slotOpenDialog (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLRequester + + +%If ( KDE_3_2_0 - ) + +class KURLComboRequester : KURLRequester +{ +%TypeHeaderCode +#include <kurlrequester.h> +%End + + +public: + KURLComboRequester (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KURLComboRequester + +%End + diff --git a/python/pykde/sip/kfile/kurlrequesterdlg.sip b/python/pykde/sip/kfile/kurlrequesterdlg.sip new file mode 100644 index 00000000..62a8d70a --- /dev/null +++ b/python/pykde/sip/kfile/kurlrequesterdlg.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// 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., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KURLRequesterDlg : KDialogBase +{ +%TypeHeaderCode +#include <kurlrequesterdlg.h> +%End + + +public: + KURLRequesterDlg (const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURLRequesterDlg (const QString&, const QString&, QWidget* /TransferThis/, const char*, bool = 1); + KURL selectedURL () const; + static KURL getURL (const QString& = QString ::null , QWidget* /Transfer/ = 0, const QString& = QString ::null ); + KFileDialog* fileDialog (); + KURLRequester* urlRequester (); + +}; // class KURLRequesterDlg + |