summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kdeprint/kprintdialog.sip
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/sip/kdeprint/kprintdialog.sip')
-rw-r--r--python/pykde/sip/kdeprint/kprintdialog.sip170
1 files changed, 0 insertions, 170 deletions
diff --git a/python/pykde/sip/kdeprint/kprintdialog.sip b/python/pykde/sip/kdeprint/kprintdialog.sip
deleted file mode 100644
index 0be008f8..00000000
--- a/python/pykde/sip/kdeprint/kprintdialog.sip
+++ /dev/null
@@ -1,170 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kdeprint version KDE 3.5.3
-
-
-// This software is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License as
-// published by the Free Software Foundation; either version 2 of
-// the License, or (at your option) any later version.
-//
-// This software is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public
-// License along with this library; see the file COPYING.
-// If not, write to the Free Software Foundation, Inc.,
-// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
-class KPrintDialog : KDialog, KPReloadObject
-{
-%TypeHeaderCode
-#include <kprintdialog.h>
-%End
-
-
-public:
- KPrintDialog (QWidget* /TransferThis/ = 0, const char* = 0);
- void setFlags (int);
- void setDialogPages (QPtrList<KPrintDialogPage>*);
-
-%If ( KDE_3_1_0 - )
- void enableDialogPage (int, bool = 1);
-%End
-
- KPrinter* printer () const;
- static KPrintDialog* printerDialog (KPrinter*, QWidget*, const QString& = QString ::null , bool = 0);
-
-signals:
- void printRequested (KPrinter*);
-
-protected slots:
- void slotPrinterSelected (int);
- void slotProperties ();
- void slotSetDefault ();
- void slotOptions ();
- virtual void done (int);
- void slotWizard ();
- void slotExtensionClicked ();
- void slotToggleFilter (bool);
-
-%If ( KDE_3_1_0 - )
- void slotHelp ();
- void slotOutputFileSelected (const QString&);
- void slotUpdatePossible (bool);
- void slotOpenFileDialog ();
-%End
-
-
-protected:
- bool checkOutputFile ();
- void enableSpecial (bool);
- void enableOutputFile (bool);
- void setOutputFileExtension (const QString&);
- void reload ();
- void configChanged ();
- void expandDialog (bool = 1);
-
-%If ( KDE_3_1_0 - )
- void initialize (KPrinter*);
- void init ();
-%End
-
-
-protected:
-
-public:
-
-%If ( - KDE_3_1_0 )
- void initialize (KPrinter*);
-%End
-
-
-}; // class KPrintDialog
-
-
-
-%MappedType QPtrList<KPrintDialogPage>
-//converts a Python list of KPrintDialogPage
-{
-%TypeHeaderCode
-#include <qptrlist.h>
-#include <kprintdialogpage.h>
-#include <sipkdeprintKPrintDialogPage.h>
-%End
-
-%ConvertFromTypeCode
- // Convert to a Python list of KPrintDialogPage
-
- if (!sipCpp)
- return PyList_New (0);
-
- PyObject *plist;
-
- // Create the list
-
- if ((plist = PyList_New(0)) == NULL)
- return NULL;
-
- // Get it.
-
- QPtrList<KPrintDialogPage> *kpList = (QPtrList<KPrintDialogPage> *)sipCpp;
- PyObject *inst;
- KPrintDialogPage *p;
-
- for(p = kpList->first (); p; p = kpList->next ())
- {
- inst = sipConvertFromInstance (p, sipClass_KPrintDialogPage, sipTransferObj);
- if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
- {
- Py_XDECREF (inst);
- Py_DECREF (plist);
- return NULL;
- }
- }
-
- return plist;
-%End
-
-%ConvertToTypeCode
- // Convert a Python list to QPtrList<KPrintDialogPage> on the heap.
-
- if (sipIsErr == NULL)
- return PyList_Check(sipPy);
-
- QPtrList<KPrintDialogPage> *kpList = new QPtrList<KPrintDialogPage>;
-
- PyObject *elem;
- KPrintDialogPage *p;
- int iserr = 0;
-
- for (int i = 0; i < PyList_Size (sipPy); i++)
- {
- elem = PyList_GET_ITEM (sipPy, i);
- p = (KPrintDialogPage *)sipForceConvertTo_KPrintDialogPage(elem, &iserr);
-
- if (iserr)
- {
- *sipIsErr = 1;
- delete kpList;
- return 0;
- }
-
- kpList->append (p);
- }
-
- *sipCppPtr = kpList;
-
- return 1;
-%End
-};
-
-