diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-14 19:47:20 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-14 19:47:20 +0000 |
commit | 875ae8e38bc3663e5057ca910e7ebe4b2994edb9 (patch) | |
tree | ddd3b3bc4d6f0343bae986aebbf9555c20f8e558 /python/pyqt/sip/qtpe | |
parent | cb61a0436524f8ceba31db51ce3f1c5d4afbbb0e (diff) | |
download | tdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.tar.gz tdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.zip |
Updated python directory
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1175349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pyqt/sip/qtpe')
-rw-r--r-- | python/pyqt/sip/qtpe/copying.sip | 51 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeapplication.sip | 223 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeapplnk.sip | 157 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeconfig.sip | 78 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpefilemanager.sip | 53 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpefileselector.sip | 69 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpefontdatabase.sip | 67 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeglobal.sip | 83 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpemenubar.sip | 42 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpemenubutton.sip | 61 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeqcopenvelope.sip | 39 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpeqdawg.sip | 65 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qperesource.sip | 50 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpetimestring.sip | 71 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qpetoolbar.sip | 42 | ||||
-rw-r--r-- | python/pyqt/sip/qtpe/qtpemod.sip | 94 |
16 files changed, 0 insertions, 1245 deletions
diff --git a/python/pyqt/sip/qtpe/copying.sip b/python/pyqt/sip/qtpe/copying.sip deleted file mode 100644 index 21c27d4e..00000000 --- a/python/pyqt/sip/qtpe/copying.sip +++ /dev/null @@ -1,51 +0,0 @@ -// This is the SIP file defining the PyQt license. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Copying -Copyright (c) 2007 - Riverbank Computing Limited <info@riverbankcomputing.co.uk> - -This file is part of PyQt. - -This copy of PyQt 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, or (at your option) any later -version. - -PyQt is supplied 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 -PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -%End - - -%OptionalInclude pyqt-internal.sip -%OptionalInclude pyqt-gpl.sip -%OptionalInclude pyqt-commercial.sip -%OptionalInclude pyqt-edu.sip -%OptionalInclude pyqt-eval.sip -%OptionalInclude pyqt-nc.sip -%OptionalInclude pyqt-tkc.sip diff --git a/python/pyqt/sip/qtpe/qpeapplication.sip b/python/pyqt/sip/qtpe/qpeapplication.sip deleted file mode 100644 index 32688097..00000000 --- a/python/pyqt/sip/qtpe/qpeapplication.sip +++ /dev/null @@ -1,223 +0,0 @@ -// This is the SIP interface definition for QPEApplication. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEApplication : QApplication -{ -%TypeHeaderCode -#include <qpe/qpeapplication.h> -#include <qwidgetlist.h> -%End - -public: - QPEApplication(SIP_PYLIST,Type=GuiClient) [(int &,char **,Type=GuiClient)]; -%MethodCode - // The Python interface is a list of argument strings that is - // modified. - - int argc; - char **argv; - - // Convert the list. - if ((argv = pyArgvToC(a0,&argc)) == NULL) - sipIsErr = 1; - else - { - // Create it now the arguments are right. - int nargc = argc; - - Py_BEGIN_ALLOW_THREADS - sipCpp = new sipQPEApplication(nargc,argv,(QApplication::Type)a1); - Py_END_ALLOW_THREADS - - // Now modify the original list. - updatePyArgv(a0,argc,argv); - } -%End - - ~QPEApplication(); -%MethodCode - // See the comments in ~QApplication() to understand what's - // being done here. - - QWidgetList *tlw = QApplication::topLevelWidgets(); - QWidgetListIt it(*tlw); - QWidget *w; - - while ((w = it.current()) != 0) - { - PyObject *sw; - - if ((sw = sipGetWrapper(w,sipClass_QWidget)) != NULL) - sipTransferTo(sw,NULL); - - ++it; - } - - delete tlw; -%End - -%ConvertToSubClassCode - // The table of Python class objects indexed by their names. The table - // must be sorted by name. - - static sipStringTypeClassMap map[] = { - {sipName_FileSelector, &sipClass_FileSelector}, - {sipName_MenuButton, &sipClass_MenuButton}, - {sipName_QPEApplication, &sipClass_QPEApplication}, - {sipName_QPEMenuBar, &sipClass_QPEMenuBar}, - {sipName_QPEToolBar, &sipClass_QPEToolBar}, - }; - - sipClass = sipMapStringToClass(sipCpp -> className(),map, - sizeof (map)/sizeof (map[0])); -%End - - static QString qpeDir(); - static QString documentDir(); - void applyStyle(); - static int defaultRotation(); - static void setDefaultRotation(int); - static void grabKeyboard(); - static void ungrabKeyboard(); - - enum StylusMode { - LeftOnly, - RightOnHold - }; - - static void setStylusOperation(QWidget *,StylusMode); - static StylusMode stylusOperation(QWidget *); - - enum InputMethodHint { - Normal, - AlwaysOff, - AlwaysOn - }; - - enum screenSaverHint { - Disable, - DisableLightOff, - DisableSuspend, - Enable - }; - - static void setInputMethodHint(QWidget *,InputMethodHint); - static InputMethodHint inputMethodHint(QWidget *); - - void showMainWidget(QWidget *,bool = 0); - void showMainDocumentWidget(QWidget *,bool = 0); - - static void setKeepRunning(); - bool keepRunning() const; - - int exec() /PyName=exec_loop, ReleaseGIL, - PreHook=__pyQtPreEventLoopHook__, - PostHook=__pyQtPostEventLoopHook__/; - -signals: - void clientMoused(); - void timeChanged(); - void clockChanged(bool); - void volumeChanged(bool); - void appMessage(const QCString &,const QByteArray &); - void weekChanged(bool); - void dateFormatChanged(DateFormat); - void flush(); - void reload(); - -protected: -// bool qwsEventFilter(QWSEvent *); -// void internalSetStyle(const QString &); - void prepareForTermination(bool); - virtual void restart(); - virtual void shutdown(); - bool eventFilter(QObject *,QEvent *); - void timerEvent(QTimerEvent *); - bool keyboardGrabbed() const; - bool raiseAppropriateWindow(); - virtual void tryQuit(); - - -%TypeCode -#include <string.h> - - -// Convert a Python argv list to a conventional C argc count and argv array. -static char **pyArgvToC(PyObject *argvlist,int *argcp) -{ - int argc; - char **argv; - - argc = PyList_Size(argvlist); - - // Allocate space for two copies of the argument pointers, plus the - // terminating NULL. - if ((argv = (char **)sipMalloc(2 * (argc + 1) * sizeof (char *))) == NULL) - return NULL; - - // Convert the list. - for (int a = 0; a < argc; ++a) - { - char *arg; - - // Get the argument and allocate memory for it. - if ((arg = PyString_AsString(PyList_GetItem(argvlist,a))) == NULL || - (argv[a] = (char *)sipMalloc(strlen(arg) + 1)) == NULL) - return NULL; - - // Copy the argument and save a pointer to it. - strcpy(argv[a],arg); - argv[a + argc + 1] = argv[a]; - } - - argv[argc + argc + 1] = argv[argc] = NULL; - - *argcp = argc; - - return argv; -} - - -// Remove arguments from the Python argv list that have been removed from the -// C argv array. -static void updatePyArgv(PyObject *argvlist,int argc,char **argv) -{ - for (int a = 0, na = 0; a < argc; ++a) - { - // See if it was removed. - if (argv[na] == argv[a + argc + 1]) - ++na; - else - PyList_SetSlice(argvlist,na,na + 1,NULL); - } -} -%End - -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeapplnk.sip b/python/pyqt/sip/qtpe/qpeapplnk.sip deleted file mode 100644 index 985ff3c5..00000000 --- a/python/pyqt/sip/qtpe/qpeapplnk.sip +++ /dev/null @@ -1,157 +0,0 @@ -// This is the SIP interface definition for AppLnk, AppLnkSet, DocLnk and -// DocLnkSet. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class AppLnk -{ -%TypeHeaderCode -#include <qpe/applnk.h> -%End - -public: - AppLnk(); - AppLnk(const QString &); - AppLnk(const AppLnk &); - - bool isValid() const; - - static void setSmallIconSize(int); - static void setBigIconSize(int); - static int smallIconSize(); - static int bigIconSize(); - - QString name() const; - const QPixmap& pixmap() const; - const QPixmap& bigPixmap() const; - virtual QString exec() const /PyName=exec_property/; - QString type() const; - QString rotation() const; - QString comment() const; - QString file() const; - QString linkFile() const; - QStringList mimeTypes() const; - QStringList mimeTypeIcons() const; - const QArray<int> &categories() const; - int id() const; - - bool fileKnown() const; - bool linkFileKnown() const; - - void execute() const /ReleaseGIL/; - void execute(const QStringList &) const /ReleaseGIL/; - void removeFiles(); - void removeLinkFile(); - - void setName(const QString &); - void setExec(const QString &); - void setFile(const QString &); - void setLinkFile(const QString &); - void setComment(const QString &); - void setType(const QString &); - void setIcon(const QString &); - void setCategories(const QArray<int> &); - bool writeLink() const; - - void setProperty(const QString &,const QString &); - QString property(const QString &) const; - -protected: - virtual void invoke(const QStringList &) const; - bool ensureLinkExists() const; -// Undocumented and missing on the Zaurus. -// void storeLink() const; -}; - - -class DocLnk : AppLnk -{ -%TypeHeaderCode -#include <qpe/applnk.h> -%End - -public: - DocLnk(); - DocLnk(const DocLnk &); - DocLnk(const QString &); - DocLnk(const QString &,bool); - - QString exec() const /PyName=exec_property/; - -protected: - void invoke(const QStringList &) const; -}; - - -class AppLnkSet -{ -%TypeHeaderCode -#include <qpe/applnk.h> -%End - -public: - AppLnkSet(); - AppLnkSet(const QString &); - - const AppLnk *find(int) const; - const AppLnk *findExec(const QString &) const; - - QStringList types() const; - QString typeName(const QString &) const; - QPixmap typePixmap(const QString &) const; - QPixmap typeBigPixmap(const QString &) const; - - void add(AppLnk *); - bool remove(AppLnk *); - - const QList<AppLnk> &children() const; - void detachChildren(); - -private: - AppLnkSet(const AppLnkSet &); -}; - - -class DocLnkSet : AppLnkSet -{ -%TypeHeaderCode -#include <qpe/applnk.h> -%End - -public: - DocLnkSet(); - DocLnkSet(const QString &,const QString & = QString::null); - - const QList<DocLnk> &children() const; - - void appendFrom(DocLnkSet &); - -private: - DocLnkSet(const DocLnkSet &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeconfig.sip b/python/pyqt/sip/qtpe/qpeconfig.sip deleted file mode 100644 index 139ec5c8..00000000 --- a/python/pyqt/sip/qtpe/qpeconfig.sip +++ /dev/null @@ -1,78 +0,0 @@ -// This is the SIP interface definition for Config. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Config -{ -%TypeHeaderCode -#include <qpe/config.h> -%End - -public: - typedef QMap<QString,QString> ConfigGroup; - - enum Domain { - File, - User - }; - - Config(const QString &,Domain = User); - - bool isValid() const; - bool hasKey(const QString &) const; - - void setGroup(const QString &); -// void writeEntry(const QString &,const char *); - void writeEntry(const QString &,const QString &); - void writeEntryCrypt(const QString &,const QString &); - void writeEntry(const QString &,int); -// void writeEntry(const QString &,bool); - void writeEntry(const QString &,const QStringList &,const QChar &); - void removeEntry(const QString &); - - QString readEntry(const QString &, - const QString & = QString::null) const; - QString readEntryCrypt(const QString &, - const QString & = QString::null) const; - QString readEntryDirect(const QString &, - const QString & = QString::null) const; - int readNumEntry(const QString &,int = -1) const; - bool readBoolEntry(const QString &,bool = 0) const; - QStringList readListEntry(const QString &,const QChar &) const; - - void clearGroup(); - - void write(const QString & = QString::null); - -protected: -// void read(); -// bool parse(const QString &); - -// static QString configFilename(const QString &,Domain); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefilemanager.sip b/python/pyqt/sip/qtpe/qpefilemanager.sip deleted file mode 100644 index bf351e1e..00000000 --- a/python/pyqt/sip/qtpe/qpefilemanager.sip +++ /dev/null @@ -1,53 +0,0 @@ -// This is the SIP interface definition for FileManager. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class FileManager -{ -%TypeHeaderCode -#include <qpe/filemanager.h> -%End - -public: - FileManager(); - - bool saveFile(const DocLnk &,const QByteArray &); - bool saveFile(const DocLnk &,const QString &); - bool loadFile(const DocLnk &,QByteArray &); - bool loadFile(const DocLnk &,QString &); - bool copyFile(const AppLnk &,const AppLnk &); - - QIODevice *openFile(const DocLnk &) /ReleaseGIL/; - QIODevice *saveFile(const DocLnk &) /ReleaseGIL/; - - bool exists(const DocLnk &); - -protected: - bool ensurePathExists(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefileselector.sip b/python/pyqt/sip/qtpe/qpefileselector.sip deleted file mode 100644 index f0e38535..00000000 --- a/python/pyqt/sip/qtpe/qpefileselector.sip +++ /dev/null @@ -1,69 +0,0 @@ -// This is the SIP interface definition for FileSelector and FileSelectorItem. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class FileSelectorItem : QListViewItem -{ -%TypeHeaderCode -#include <qpe/fileselector.h> -%End - -public: - FileSelectorItem(QListView * /TransferThis/,const DocLnk &); - - DocLnk file() const; -}; - - -class FileSelector : QVBox -{ -%TypeHeaderCode -#include <qpe/fileselector.h> -%End - -public: - FileSelector(const QString &,QWidget * /TransferThis/,const char *, - bool = 1,bool = 1); - - void setNewVisible(bool); - void setCloseVisible(bool); - void reread(); - int fileCount(); -%If (- QtPE_1_6_0) - const DocLnk *selected(); -%End -%If (QtPE_1_6_0 -) - DocLnk selectedDocument(); -%End - -signals: - void fileSelected(const DocLnk &); - void newSelected(const DocLnk &); - void closeMe(); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpefontdatabase.sip b/python/pyqt/sip/qtpe/qpefontdatabase.sip deleted file mode 100644 index 986e39e9..00000000 --- a/python/pyqt/sip/qtpe/qpefontdatabase.sip +++ /dev/null @@ -1,67 +0,0 @@ -// This is the SIP interface definition for FontDatabase. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -%If (Qt_FONTDATABASE) - -class FontDatabase : QFontDatabase -{ -%TypeHeaderCode -#include <qpe/fontdatabase.h> -%End - -public: - FontDatabase(); - - QStringList families() const; - - static void loadRenderers(); -}; - -%End - - -%If (!Qt_FONTDATABASE) - -class FontDatabase -{ -%TypeHeaderCode -#include <qpe/fontdatabase.h> -%End - -public: - FontDatabase(); - - QStringList families() const; - static QValueList<int> standardSizes(); - - static void loadRenderers(); -}; - -%End - -%End diff --git a/python/pyqt/sip/qtpe/qpeglobal.sip b/python/pyqt/sip/qtpe/qpeglobal.sip deleted file mode 100644 index 4e9e9207..00000000 --- a/python/pyqt/sip/qtpe/qpeglobal.sip +++ /dev/null @@ -1,83 +0,0 @@ -// This is the SIP interface definition for Global. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Global -{ -%TypeHeaderCode -#include <qpe/global.h> -%End - -public: - Global(); - - static const QDawg &fixedDawg(); - static const QDawg &addedDawg(); - static const QDawg &dawg(const QString &); - - static void addWords(const QStringList &); - static void addWords(const QString &,const QStringList &); - - static void createDocDir(); - - static void findDocuments(DocLnkSet *,const QString & = QString::null); - - static QString applicationFileName(const QString &,const QString &); - -// struct Command { -// const char *file; -// QWidget *(*func)(bool); -// bool maximized; -// bool documentary; -// }; - -// static void setBuiltinCommands(Command *); - -%If (- QtPE_1_6_0) - static void invoke(const QString &); -%End - static void execute(const QString &,const QString & = QString::null) /ReleaseGIL/; - static void setDocument(QWidget *,const QString &); - static bool terminateBuiltin(const QString &); - static void terminate(const AppLnk *); - - static bool isBuiltinCommand(const QString &); - - static void applyStyle(); - static void statusMessage(const QString &); - static QWidget *shutdown(bool = 0); - static QWidget *restart(bool = 0); - static void hideInputMethod(); - static void showInputMethod(); - - static void writeHWClock(); - - static QString shellQuote(const QString &); - static QString stringQuote(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpemenubar.sip b/python/pyqt/sip/qtpe/qpemenubar.sip deleted file mode 100644 index 1876c6cd..00000000 --- a/python/pyqt/sip/qtpe/qpemenubar.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QPEMenuBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEMenuBar : QMenuBar -{ -%TypeHeaderCode -#include <qpe/qpemenubar.h> -%End - -public: - QPEMenuBar(QWidget * /TransferThis/ = 0,const char * = 0); - -protected: - virtual void keyPressEvent(QKeyEvent *); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpemenubutton.sip b/python/pyqt/sip/qtpe/qpemenubutton.sip deleted file mode 100644 index 68dcca96..00000000 --- a/python/pyqt/sip/qtpe/qpemenubutton.sip +++ /dev/null @@ -1,61 +0,0 @@ -// This is the SIP interface definition for MenuButton. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class MenuButton : QPushButton -{ -%TypeHeaderCode -#include <qpe/menubutton.h> -%End - -public: - MenuButton(QWidget * /TransferThis/,const char * = 0); - MenuButton(const QStringList &,QWidget * /TransferThis/, - const char * = 0); - - void clear(); - - int currentItem() const; - QString currentText() const; - - void insertItems(const QStringList &); - void insertItem(const QIconSet &,const QString & = QString::null); - void insertItem(const QString &); - void insertSeparator(); - - void setLabel(const QString &); - -signals: - void selected(int); - void selected(const QString &); - -public slots: - void select(int); - void select(const QString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeqcopenvelope.sip b/python/pyqt/sip/qtpe/qpeqcopenvelope.sip deleted file mode 100644 index e12da90c..00000000 --- a/python/pyqt/sip/qtpe/qpeqcopenvelope.sip +++ /dev/null @@ -1,39 +0,0 @@ -// This is the SIP interface definition for QCopEnvelope. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QCopEnvelope : QDataStream -{ -%TypeHeaderCode -#include <qpe/qcopenvelope_qws.h> -%End - -public: - QCopEnvelope(const QCString &,const QCString &); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpeqdawg.sip b/python/pyqt/sip/qtpe/qpeqdawg.sip deleted file mode 100644 index c98f7478..00000000 --- a/python/pyqt/sip/qtpe/qpeqdawg.sip +++ /dev/null @@ -1,65 +0,0 @@ -// This is the SIP interface definition for QDawg. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QDawg -{ -%TypeHeaderCode -#include <qpe/qdawg.h> -%End - -public: - QDawg(); - - bool readFile(const QString &) /ReleaseGIL/; - bool read(QIODevice *) /ReleaseGIL/; - bool write(QIODevice *) const /ReleaseGIL/; - bool createFromWords(QIODevice *); - void createFromWords(const QStringList &); - QStringList allWords() const; - - bool contains(const QString &) const; - int countWords() const; - - class Node { - public: - QChar letter() const; - bool isWord() const; - bool isLast() const; - const QDawg::Node *next() const; - const QDawg::Node *jump() const; - - private: - Node(); - }; - - const QDawg::Node *root() const; - - void dump() const; -}; - -%End diff --git a/python/pyqt/sip/qtpe/qperesource.sip b/python/pyqt/sip/qtpe/qperesource.sip deleted file mode 100644 index b61d5052..00000000 --- a/python/pyqt/sip/qtpe/qperesource.sip +++ /dev/null @@ -1,50 +0,0 @@ -// This is the SIP interface definition for Resource. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class Resource -{ -%TypeHeaderCode -#include <qpe/resource.h> -%End - -public: - Resource(); - - static QImage loadImage(const QString &); - - static QPixmap loadPixmap(const QString &); - static QBitmap loadBitmap(const QString &); - static QString findPixmap(const QString &); - - static QIconSet loadIconSet(const QString &); - - static QString findSound(const QString &); - static QStringList allSounds(); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpetimestring.sip b/python/pyqt/sip/qtpe/qpetimestring.sip deleted file mode 100644 index 7d087a13..00000000 --- a/python/pyqt/sip/qtpe/qpetimestring.sip +++ /dev/null @@ -1,71 +0,0 @@ -// This is the SIP interface definition for DateFormat. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class DateFormat -{ -%TypeHeaderCode -#include <qpe/timestring.h> -%End - -public: - enum Order { - DayMonthYear, - MonthDayYear, - YearMonthDay - }; - - DateFormat(QChar = '/',Order = MonthDayYear); - DateFormat(QChar,Order,Order); - DateFormat(const DateFormat &); - - enum Verbosity { - shortNumber, - longNumber, - padNumber, - shortWord, - longWord, - showWeekDay - }; - - QString toNumberString() const; - QString toWordString() const; - - QString numberDate(const QDate &,int = 0) const; - QString wordDate(const QDate &,int = 0) const; - -%If (Qt_DATASTREAM) - void load(QDataStream &); - void save(QDataStream &) const; -%End - - QChar separator() const; - Order shortOrder() const; - Order longOrder() const; -}; - -%End diff --git a/python/pyqt/sip/qtpe/qpetoolbar.sip b/python/pyqt/sip/qtpe/qpetoolbar.sip deleted file mode 100644 index b114e97b..00000000 --- a/python/pyqt/sip/qtpe/qpetoolbar.sip +++ /dev/null @@ -1,42 +0,0 @@ -// This is the SIP interface definition for QPEToolBar. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -// The documentation is in the main documentation file because SIP isn't clever -// enough to handle the resulting %Timeline complexity. - - -%If (WS_QWS) - -class QPEToolBar : QToolBar -{ -%TypeHeaderCode -#include <qpe/qpetoolbar.h> -%End - -public: - QPEToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0); - -protected: - virtual void childEvent(QChildEvent *); -}; - -%End diff --git a/python/pyqt/sip/qtpe/qtpemod.sip b/python/pyqt/sip/qtpe/qtpemod.sip deleted file mode 100644 index 877a744e..00000000 --- a/python/pyqt/sip/qtpe/qtpemod.sip +++ /dev/null @@ -1,94 +0,0 @@ -// This is the SIP interface definition for the qtpe module of PyQt. -// -// Copyright (c) 2007 -// Riverbank Computing Limited <info@riverbankcomputing.co.uk> -// -// This file is part of PyQt. -// -// This copy of PyQt 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, or (at your option) any later -// version. -// -// PyQt is supplied 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 -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -%Module qtpe 1 - -%Import qt/qtmod.sip - -%Include copying.sip - - -// QPE has it's own version numbering. -%Timeline {QtPE_1_5_0 QtPE_1_6_0} - - -%ModuleHeaderCode -#include <qpe/version.h> -%End - -const char *QPE_VERSION; - - -%Include qpeapplication.sip -%Include qpeapplnk.sip -%Include qpeconfig.sip -%Include qpefilemanager.sip -%Include qpefileselector.sip -%Include qpefontdatabase.sip -%Include qpeglobal.sip -%Include qpemenubar.sip -%Include qpemenubutton.sip -%Include qpeqcopenvelope.sip -%Include qpeqdawg.sip -%Include qperesource.sip -%Include qpetimestring.sip -%Include qpetoolbar.sip - - -// The build file template. - -%Makefile qtpe.pro.in -# The project file for the qtpe module. -# -# Copyright (c) 2007 -# Riverbank Computing Limited <info@riverbankcomputing.co.uk> -# -# This file is part of PyQt. -# -# This copy of PyQt 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, or (at your option) any later -# version. -# -# PyQt is supplied 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 -# PyQt; see the file LICENSE. If not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - -TEMPLATE = lib -TARGET = @BLX_TARGET_LIB@ -DESTDIR = @PYQT_MODDIR@ -CONFIG += @BLX_CONFIG_LIB@ @PYQT_WARN@ -INCLUDEPATH = @BLX_INCLUDEPATH@ -DEFINES = @BLX_DEFINES@ -LIBS += @PYQT_QT_MODULE@ @BLX_LIBS@ -lqpe -macx:QMAKE_LFLAGS += -framework Python - -SOURCES = $B - -HEADERS = $H -%End |