diff options
author | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qprinter.sip | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'sip/qt/qprinter.sip')
-rw-r--r-- | sip/qt/qprinter.sip | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/sip/qt/qprinter.sip b/sip/qt/qprinter.sip index b8bf4f9..cc71284 100644 --- a/sip/qt/qprinter.sip +++ b/sip/qt/qprinter.sip @@ -1,44 +1,44 @@ -// This is the SIP interface definition for QPrinter. +// This is the SIP interface definition for TQPrinter. // // Copyright (c) 2007 // Riverbank Computing Limited <[email protected]> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt 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 +// PyTQt 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, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QPrinter</Title> +<Sect2><Title>TQPrinter</Title> <Para> -<Literal>QPrinter</Literal> is fully implemented. +<Literal>TQPrinter</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_PRINTER) +%If (TQt_PRINTER) -class QPrinter : QPaintDevice +class TQPrinter : TQPaintDevice { %TypeHeaderCode #include <qprinter.h> %End public: -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum PrinterMode { ScreenResolution, PrinterResolution, @@ -47,11 +47,11 @@ public: }; %End -%If (- Qt_3_0_0) - QPrinter(); +%If (- TQt_3_0_0) + TQPrinter(); %End -%If (Qt_3_0_0 -) - QPrinter(PrinterMode = ScreenResolution); +%If (TQt_3_0_0 -) + TQPrinter(PrinterMode = ScreenResolution); %End enum Orientation { @@ -63,10 +63,10 @@ public: A4, B5, Letter, Legal, Executive, A0, A1, A2, A3, A5, A6, A7, A8, A9, B0, B1, B10, B2, B3, B4, B6, B7, B8, B9, C5E, Comm10E, DLE, Folio, Ledger, Tabloid, -%If (Qt_2_3_1 -) +%If (TQt_2_3_1 -) Custom, %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) NPageSize %End }; @@ -81,7 +81,7 @@ public: Color }; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum PaperSource { OnlyOne, Lower, @@ -99,7 +99,7 @@ public: }; %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) enum PrintRange { AllPages, Selection, @@ -113,16 +113,16 @@ public: }; %End -%If (- Qt_2_00) +%If (- TQt_2_00) const char *printerName() const; void setPrinterName(const char *); %End -%If (Qt_2_00 -) - QString printerName() const; - virtual void setPrinterName(const QString &); +%If (TQt_2_00 -) + TQString printerName() const; + virtual void setPrinterName(const TQString &); %End bool outputToFile() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setOutputToFile(bool); const char *outputFileName() const; void setOutputFileName(const char *); @@ -135,92 +135,92 @@ public: const char *creator() const; void setCreator(const char *); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setOutputToFile(bool); - QString outputFileName() const; - virtual void setOutputFileName(const QString &); + TQString outputFileName() const; + virtual void setOutputFileName(const TQString &); - QString printProgram() const; - virtual void setPrintProgram(const QString &); + TQString printProgram() const; + virtual void setPrintProgram(const TQString &); - QString printerSelectionOption() const; - virtual void setPrinterSelectionOption(const QString &); + TQString printerSelectionOption() const; + virtual void setPrinterSelectionOption(const TQString &); - QString docName() const; - virtual void setDocName(const QString &); - QString creator() const; - virtual void setCreator(const QString &); + TQString docName() const; + virtual void setDocName(const TQString &); + TQString creator() const; + virtual void setCreator(const TQString &); %End Orientation orientation() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setOrientation(Orientation); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setOrientation(Orientation); %End PageSize pageSize() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setPageSize(PageSize); void setPageOrder(PageOrder); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setPageSize(PageSize); virtual void setPageOrder(PageOrder); %End PageOrder pageOrder() const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) void setResolution(int); int resolution() const; %End -%If (- Qt_2_00) +%If (- TQt_2_00) void setColorMode(ColorMode); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setColorMode(ColorMode); %End ColorMode colorMode() const; -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setFullPage(bool); bool fullPage() const; - QSize margins() const; + TQSize margins() const; %End -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void setMargins(uint,uint,uint,uint); // void margins(uint *,uint *,uint *,uint *) const; %End int fromPage() const; int toPage() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setFromTo(int,int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setFromTo(int,int); %End int minPage() const; int maxPage() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setMinMax(int,int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setMinMax(int,int); %End int numCopies() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setNumCopies(int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setNumCopies(int); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool collateCopiesEnabled() const; void setCollateCopiesEnabled(bool); @@ -228,7 +228,7 @@ public: void setCollateCopies(bool); %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) PrintRange printRange() const; void setPrintRange(PrintRange); %End @@ -237,20 +237,20 @@ public: bool abort(); bool aborted() const; - bool setup(QWidget * = 0); + bool setup(TQWidget * = 0); -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) PaperSource paperSource() const; virtual void setPaperSource(PaperSource); %End -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) void setOptionEnabled(PrinterOption,bool); bool isOptionEnabled(PrinterOption); %End private: - QPrinter(const QPrinter &); + TQPrinter(const TQPrinter &); }; %End |