summaryrefslogtreecommitdiffstats
path: root/python/pyqt/sip/qtpe
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyqt/sip/qtpe')
-rw-r--r--python/pyqt/sip/qtpe/copying.sip51
-rw-r--r--python/pyqt/sip/qtpe/qpeapplication.sip223
-rw-r--r--python/pyqt/sip/qtpe/qpeapplnk.sip157
-rw-r--r--python/pyqt/sip/qtpe/qpeconfig.sip78
-rw-r--r--python/pyqt/sip/qtpe/qpefilemanager.sip53
-rw-r--r--python/pyqt/sip/qtpe/qpefileselector.sip69
-rw-r--r--python/pyqt/sip/qtpe/qpefontdatabase.sip67
-rw-r--r--python/pyqt/sip/qtpe/qpeglobal.sip83
-rw-r--r--python/pyqt/sip/qtpe/qpemenubar.sip42
-rw-r--r--python/pyqt/sip/qtpe/qpemenubutton.sip61
-rw-r--r--python/pyqt/sip/qtpe/qpeqcopenvelope.sip39
-rw-r--r--python/pyqt/sip/qtpe/qpeqdawg.sip65
-rw-r--r--python/pyqt/sip/qtpe/qperesource.sip50
-rw-r--r--python/pyqt/sip/qtpe/qpetimestring.sip71
-rw-r--r--python/pyqt/sip/qtpe/qpetoolbar.sip42
-rw-r--r--python/pyqt/sip/qtpe/qtpemod.sip94
16 files changed, 1245 insertions, 0 deletions
diff --git a/python/pyqt/sip/qtpe/copying.sip b/python/pyqt/sip/qtpe/copying.sip
new file mode 100644
index 00000000..463904b2
--- /dev/null
+++ b/python/pyqt/sip/qtpe/copying.sip
@@ -0,0 +1,51 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..f71240e8
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeapplication.sip
@@ -0,0 +1,223 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..f817ae50
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeapplnk.sip
@@ -0,0 +1,157 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..a8f78d77
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeconfig.sip
@@ -0,0 +1,78 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..d917980f
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpefilemanager.sip
@@ -0,0 +1,53 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..cfea0630
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpefileselector.sip
@@ -0,0 +1,69 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..2276b5b2
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpefontdatabase.sip
@@ -0,0 +1,67 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..f5b44828
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeglobal.sip
@@ -0,0 +1,83 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..41648435
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpemenubar.sip
@@ -0,0 +1,42 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..ff3a729f
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpemenubutton.sip
@@ -0,0 +1,61 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..9bbff30f
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeqcopenvelope.sip
@@ -0,0 +1,39 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..f04d6425
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpeqdawg.sip
@@ -0,0 +1,65 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..de094b0f
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qperesource.sip
@@ -0,0 +1,50 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..4df6a4f7
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpetimestring.sip
@@ -0,0 +1,71 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..1d503ea9
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qpetoolbar.sip
@@ -0,0 +1,42 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
new file mode 100644
index 00000000..3194a03d
--- /dev/null
+++ b/python/pyqt/sip/qtpe/qtpemod.sip
@@ -0,0 +1,94 @@
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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