Conditional code in the .sip files linked to specific older versions has
been removed. Since the versions of TQt and python-tqt are running in
parallel, the support for older versions was clutter that would never
actually be used now.
Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 33a0297b35
)
r14.0.x
parent
4978511ebb
commit
30381ed7e5
@ -1,94 +0,0 @@
|
||||
// This is the SIP interface definition for all types based on the TQArray
|
||||
// template.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQArray<type> (TQt 1.x, 2.x)</Title>
|
||||
<Para>
|
||||
Types based on the <Literal>TQArray</Literal> template are automatically
|
||||
converted to and from Python lists of the type.
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (- TQt_3_0_0)
|
||||
|
||||
%MappedType TQArray<int>
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqarray.h>
|
||||
%End
|
||||
|
||||
%ConvertFromTypeCode
|
||||
// Convert to a Python list of integers.
|
||||
|
||||
PyObject *l;
|
||||
|
||||
// Create the list.
|
||||
|
||||
if ((l = PyList_New(sipCpp -> count())) == NULL)
|
||||
return NULL;
|
||||
|
||||
// Get it.
|
||||
|
||||
for (uint i = 0; i < sipCpp -> count(); ++i)
|
||||
if (PyList_SetItem(l,i,PyLong_FromLong((long)(sipCpp -> at(i)))) < 0)
|
||||
{
|
||||
Py_DECREF(l);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return l;
|
||||
%End
|
||||
|
||||
%ConvertToTypeCode
|
||||
// Convert a Python list of integers to a TQArray<int> on the heap.
|
||||
|
||||
if (sipIsErr == NULL)
|
||||
return PyList_Check(sipPy);
|
||||
|
||||
TQArray<int> *qa = new TQArray<int>(PyList_GET_SIZE(sipPy));
|
||||
|
||||
PyErr_Clear();
|
||||
|
||||
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
|
||||
{
|
||||
qa[i] = PyLong_AsLong(PyList_GET_ITEM(sipPy,i));
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
{
|
||||
delete qa;
|
||||
*sipIsErr = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
*sipCppPtr = qa;
|
||||
|
||||
return sipGetState(sipTransferObj);
|
||||
%End
|
||||
};
|
||||
|
||||
%End
|
@ -1,88 +0,0 @@
|
||||
// This is the SIP interface definition for TQGManager.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQGManager (TQt v1.x)</Title>
|
||||
<Para>
|
||||
<Literal>TQGManager</Literal> is fully implemented.
|
||||
</Para>
|
||||
</Sect2>
|
||||
|
||||
<Sect2><Title>TQChain (TQt v1.x)</Title>
|
||||
<Para>
|
||||
<Literal>TQChain</Literal> is implemented as an opaque class.
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (- TQt_2_00)
|
||||
|
||||
class TQChain;
|
||||
|
||||
|
||||
class TQGManager : TQObject
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqgmanager.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
TQGManager(TQWidget *,const char * = 0);
|
||||
|
||||
enum Direction {
|
||||
LeftToRight,
|
||||
RightToLeft,
|
||||
Down,
|
||||
Up
|
||||
};
|
||||
|
||||
enum {
|
||||
unlimited = TQCOORD_MAX
|
||||
};
|
||||
|
||||
void setBorder(int);
|
||||
TQChain *newSerChain(Direction);
|
||||
TQChain *newParChain(Direction);
|
||||
bool add(TQChain *,TQChain *,int = 0);
|
||||
bool addWidget(TQChain *,TQWidget *,int = 0);
|
||||
bool addSpacing(TQChain *,int,int = 0,int = unlimited);
|
||||
bool addBranch(TQChain *,TQChain *,int,int);
|
||||
void setStretch(TQChain *,int);
|
||||
bool activate();
|
||||
void freeze(int = 0,int = 0);
|
||||
void unFreeze();
|
||||
TQChain *xChain();
|
||||
TQChain *yChain();
|
||||
void setMenuBar(TQWidget *);
|
||||
TQWidget *mainWidget();
|
||||
void remove(TQWidget *);
|
||||
void setName(TQChain *,const char *);
|
||||
|
||||
protected:
|
||||
bool eventFilter(TQObject *,TQEvent *);
|
||||
|
||||
private:
|
||||
TQGManager(const TQGManager &);
|
||||
};
|
||||
|
||||
%End
|
@ -1,286 +0,0 @@
|
||||
// This is the SIP interface definition for the key code definitions.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
%If (- TQt_2_00)
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include <tqkeycode.h>
|
||||
%End
|
||||
|
||||
// Accelerator modifiers.
|
||||
const uint SHIFT;
|
||||
const uint CTRL;
|
||||
const uint ALT;
|
||||
const uint ASCII_ACCEL;
|
||||
|
||||
// Miscellaneous keys.
|
||||
const int Key_Escape;
|
||||
const int Key_Tab;
|
||||
const int Key_Backtab;
|
||||
const int Key_Backspace;
|
||||
const int Key_Return;
|
||||
const int Key_Enter;
|
||||
const int Key_Insert;
|
||||
const int Key_Delete;
|
||||
const int Key_Pause;
|
||||
const int Key_Print;
|
||||
const int Key_SysReq;
|
||||
|
||||
// Cursor keys.
|
||||
const int Key_Home;
|
||||
const int Key_End;
|
||||
const int Key_Left;
|
||||
const int Key_Up;
|
||||
const int Key_Right;
|
||||
const int Key_Down;
|
||||
const int Key_Prior;
|
||||
const int Key_PageUp;
|
||||
const int Key_Next;
|
||||
const int Key_PageDown;
|
||||
|
||||
// Modifiers.
|
||||
const int Key_Shift;
|
||||
const int Key_Control;
|
||||
const int Key_Meta;
|
||||
const int Key_Alt;
|
||||
const int Key_CapsLock;
|
||||
const int Key_NumLock;
|
||||
const int Key_ScrollLock;
|
||||
|
||||
// Function keys.
|
||||
const int Key_F1;
|
||||
const int Key_F2;
|
||||
const int Key_F3;
|
||||
const int Key_F4;
|
||||
const int Key_F5;
|
||||
const int Key_F6;
|
||||
const int Key_F7;
|
||||
const int Key_F8;
|
||||
const int Key_F9;
|
||||
const int Key_F10;
|
||||
const int Key_F11;
|
||||
const int Key_F12;
|
||||
const int Key_F13;
|
||||
const int Key_F14;
|
||||
const int Key_F15;
|
||||
const int Key_F16;
|
||||
const int Key_F17;
|
||||
const int Key_F18;
|
||||
const int Key_F19;
|
||||
const int Key_F20;
|
||||
const int Key_F21;
|
||||
const int Key_F22;
|
||||
const int Key_F23;
|
||||
const int Key_F24;
|
||||
const int Key_F25;
|
||||
const int Key_F26;
|
||||
const int Key_F27;
|
||||
const int Key_F28;
|
||||
const int Key_F29;
|
||||
const int Key_F30;
|
||||
const int Key_F31;
|
||||
const int Key_F32;
|
||||
const int Key_F33;
|
||||
const int Key_F34;
|
||||
const int Key_F35;
|
||||
|
||||
// Extra keys.
|
||||
const int Key_Super_L;
|
||||
const int Key_Super_R;
|
||||
const int Key_Menu;
|
||||
%If (TQt_1_43 -)
|
||||
const int Key_Hyper_L;
|
||||
const int Key_Hyper_R;
|
||||
%End
|
||||
|
||||
// The 7 bit printable ASCII keys.
|
||||
const int Key_Space;
|
||||
const int Key_Exclam;
|
||||
const int Key_QuoteDbl;
|
||||
const int Key_NumberSign;
|
||||
const int Key_Dollar;
|
||||
const int Key_Percent;
|
||||
const int Key_Ampersand;
|
||||
const int Key_Apostrophe;
|
||||
const int Key_ParenLeft;
|
||||
const int Key_ParenRight;
|
||||
const int Key_Asterisk;
|
||||
const int Key_Plus;
|
||||
const int Key_Comma;
|
||||
const int Key_Minus;
|
||||
const int Key_Period;
|
||||
const int Key_Slash;
|
||||
const int Key_0;
|
||||
const int Key_1;
|
||||
const int Key_2;
|
||||
const int Key_3;
|
||||
const int Key_4;
|
||||
const int Key_5;
|
||||
const int Key_6;
|
||||
const int Key_7;
|
||||
const int Key_8;
|
||||
const int Key_9;
|
||||
const int Key_Colon;
|
||||
const int Key_Semicolon;
|
||||
const int Key_Less;
|
||||
const int Key_Equal;
|
||||
const int Key_Greater;
|
||||
const int Key_Question;
|
||||
const int Key_At;
|
||||
const int Key_A;
|
||||
const int Key_B;
|
||||
const int Key_C;
|
||||
const int Key_D;
|
||||
const int Key_E;
|
||||
const int Key_F;
|
||||
const int Key_G;
|
||||
const int Key_H;
|
||||
const int Key_I;
|
||||
const int Key_J;
|
||||
const int Key_K;
|
||||
const int Key_L;
|
||||
const int Key_M;
|
||||
const int Key_N;
|
||||
const int Key_O;
|
||||
const int Key_P;
|
||||
const int Key_Q;
|
||||
const int Key_R;
|
||||
const int Key_S;
|
||||
const int Key_T;
|
||||
const int Key_U;
|
||||
const int Key_V;
|
||||
const int Key_W;
|
||||
const int Key_X;
|
||||
const int Key_Y;
|
||||
const int Key_Z;
|
||||
const int Key_BracketLeft;
|
||||
const int Key_Backslash;
|
||||
const int Key_BracketRight;
|
||||
const int Key_AsciiCircum;
|
||||
const int Key_Underscore;
|
||||
const int Key_QuoteLeft;
|
||||
const int Key_BraceLeft;
|
||||
const int Key_Bar;
|
||||
const int Key_BraceRight;
|
||||
const int Key_AsciiTilde;
|
||||
|
||||
// Latin 1 codes.
|
||||
const int Key_nobreakspace;
|
||||
const int Key_exclamdown;
|
||||
const int Key_cent;
|
||||
const int Key_sterling;
|
||||
const int Key_currency;
|
||||
const int Key_yen;
|
||||
const int Key_brokenbar;
|
||||
const int Key_section;
|
||||
const int Key_diaeresis;
|
||||
const int Key_copyright;
|
||||
const int Key_ordfeminine;
|
||||
const int Key_guillemotleft;
|
||||
const int Key_notsign;
|
||||
const int Key_hyphen;
|
||||
const int Key_registered;
|
||||
const int Key_macron;
|
||||
const int Key_degree;
|
||||
const int Key_plusminus;
|
||||
const int Key_twosuperior;
|
||||
const int Key_threesuperior;
|
||||
const int Key_acute;
|
||||
const int Key_mu;
|
||||
const int Key_paragraph;
|
||||
const int Key_periodcentered;
|
||||
const int Key_cedilla;
|
||||
const int Key_onesuperior;
|
||||
const int Key_masculine;
|
||||
const int Key_guillemotright;
|
||||
const int Key_onequarter;
|
||||
const int Key_onehalf;
|
||||
const int Key_threequarters;
|
||||
const int Key_questiondown;
|
||||
const int Key_Agrave;
|
||||
const int Key_Aacute;
|
||||
const int Key_Acircumflex;
|
||||
const int Key_Atilde;
|
||||
const int Key_Adiaeresis;
|
||||
const int Key_Aring;
|
||||
const int Key_AE;
|
||||
const int Key_Ccedilla;
|
||||
const int Key_Egrave;
|
||||
const int Key_Eacute;
|
||||
const int Key_Ecircumflex;
|
||||
const int Key_Ediaeresis;
|
||||
const int Key_Igrave;
|
||||
const int Key_Iacute;
|
||||
const int Key_Icircumflex;
|
||||
const int Key_Idiaeresis;
|
||||
const int Key_ETH;
|
||||
const int Key_Ntilde;
|
||||
const int Key_Ograve;
|
||||
const int Key_Oacute;
|
||||
const int Key_Ocircumflex;
|
||||
const int Key_Otilde;
|
||||
const int Key_Odiaeresis;
|
||||
const int Key_multiply;
|
||||
const int Key_Ooblique;
|
||||
const int Key_Ugrave;
|
||||
const int Key_Uacute;
|
||||
const int Key_Ucircumflex;
|
||||
const int Key_Udiaeresis;
|
||||
const int Key_Yacute;
|
||||
const int Key_THORN;
|
||||
const int Key_ssharp;
|
||||
const int Key_agrave;
|
||||
const int Key_aacute;
|
||||
const int Key_acircumflex;
|
||||
const int Key_atilde;
|
||||
const int Key_adiaeresis;
|
||||
const int Key_aring;
|
||||
const int Key_ae;
|
||||
const int Key_ccedilla;
|
||||
const int Key_egrave;
|
||||
const int Key_eacute;
|
||||
const int Key_ecircumflex;
|
||||
const int Key_ediaeresis;
|
||||
const int Key_igrave;
|
||||
const int Key_iacute;
|
||||
const int Key_icircumflex;
|
||||
const int Key_idiaeresis;
|
||||
const int Key_eth;
|
||||
const int Key_ntilde;
|
||||
const int Key_ograve;
|
||||
const int Key_oacute;
|
||||
const int Key_ocircumflex;
|
||||
const int Key_otilde;
|
||||
const int Key_odiaeresis;
|
||||
const int Key_division;
|
||||
const int Key_oslash;
|
||||
const int Key_ugrave;
|
||||
const int Key_uacute;
|
||||
const int Key_ucircumflex;
|
||||
const int Key_udiaeresis;
|
||||
const int Key_yacute;
|
||||
const int Key_thorn;
|
||||
const int Key_ydiaeresis;
|
||||
|
||||
const int Key_unknown;
|
||||
|
||||
%End
|
@ -1,111 +0,0 @@
|
||||
// This is the SIP interface definition for all types based on the TQList
|
||||
// template.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQList<type> (TQt v2)</Title>
|
||||
<Para>
|
||||
Types based on the <Literal>TQList</Literal> template are automatically
|
||||
converted to and from Python lists of the type.
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (TQt_2_1_0 - TQt_3_0_0)
|
||||
|
||||
template<Type>
|
||||
%MappedType TQList<Type>
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqlist.h>
|
||||
%End
|
||||
|
||||
%ConvertFromTypeCode
|
||||
Type *tb;
|
||||
int i;
|
||||
PyObject *l;
|
||||
|
||||
// Create the list.
|
||||
|
||||
if ((l = PyList_New(sipCpp -> count())) == NULL)
|
||||
return NULL;
|
||||
|
||||
// Get it.
|
||||
|
||||
i = 0;
|
||||
|
||||
for (tb = sipCpp -> first(); tb != NULL; tb = sipCpp -> next())
|
||||
{
|
||||
PyObject *tbobj;
|
||||
|
||||
if ((tbobj = sipConvertFromInstance(tb,sipClass_Type,sipTransferObj)) == NULL || PyList_SetItem(l,i,tbobj) < 0)
|
||||
{
|
||||
Py_XDECREF(tbobj);
|
||||
Py_DECREF(l);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
++i;
|
||||
}
|
||||
|
||||
return l;
|
||||
%End
|
||||
|
||||
%ConvertToTypeCode
|
||||
if (sipIsErr == NULL)
|
||||
{
|
||||
if (!PyList_Check(sipPy))
|
||||
return 0;
|
||||
|
||||
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
|
||||
if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0))
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
TQList<Type> *ql = new TQList<Type>;
|
||||
|
||||
for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
|
||||
{
|
||||
// We apply the transfer to the list itself, not the elements.
|
||||
// Note that any temporary element will never be destroyed.
|
||||
// There is nothing that can be done about this.
|
||||
ql -> append(reinterpret_cast<Type *>(sipConvertToInstance(PyList_GET_ITEM(sipPy,i),sipClass_Type,0,0,0,sipIsErr)));
|
||||
|
||||
if (*sipIsErr)
|
||||
{
|
||||
delete ql;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
*sipCppPtr = ql;
|
||||
|
||||
return sipGetState(sipTransferObj);
|
||||
%End
|
||||
};
|
||||
|
||||
%End
|
@ -1,63 +0,0 @@
|
||||
// This is the SIP interface definition for TQSemiModal.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQSemiModal (TQt v1, v2)</Title>
|
||||
<Para>
|
||||
<Literal>TQSemiModal</Literal> is fully implemented.
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (TQt_SEMIMODAL)
|
||||
%If (- TQt_3_0_0)
|
||||
|
||||
class TQSemiModal : TQWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqsemimodal.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
TQSemiModal(TQWidget * /TransferThis/ = 0,const char * = 0,bool = 0,WFlags = 0);
|
||||
|
||||
void show();
|
||||
void move(int,int);
|
||||
void move(const TQPoint &);
|
||||
void resize(int,int);
|
||||
void resize(const TQSize &);
|
||||
%If (- TQt_2_00)
|
||||
void setGeometry(int,int,int,int);
|
||||
void setGeometry(const TQRect &);
|
||||
%End
|
||||
%If (TQt_2_00 -)
|
||||
virtual void setGeometry(int,int,int,int);
|
||||
virtual void setGeometry(const TQRect &);
|
||||
%End
|
||||
|
||||
private:
|
||||
TQSemiModal(const TQSemiModal &);
|
||||
};
|
||||
|
||||
%End
|
||||
%End
|
@ -1,185 +0,0 @@
|
||||
// This is the SIP interface definition for TQTableView.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQTableView (TQt 1.x, TQt 2.x)</Title>
|
||||
<FuncSynopsis>
|
||||
<FuncDef>bool <Function>colXPos</Function></FuncDef>
|
||||
<ParamDef>int <Parameter>col</Parameter></ParamDef>
|
||||
<ParamDef>int *<Parameter>xPos</Parameter></ParamDef>
|
||||
</FuncSynopsis>
|
||||
<Para>
|
||||
This takes the <Literal>col</Literal> parameter and returns a tuple containing
|
||||
the <Literal>bool</Literal> result and <Literal>xPos</Literal>.
|
||||
</Para>
|
||||
|
||||
<FuncSynopsis>
|
||||
<FuncDef>bool <Function>rowYPos</Function></FuncDef>
|
||||
<ParamDef>int <Parameter>row</Parameter></ParamDef>
|
||||
<ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
|
||||
</FuncSynopsis>
|
||||
<Para>
|
||||
This takes the <Literal>row</Literal> parameter and returns a tuple containing
|
||||
the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (TQt_TABLEVIEW)
|
||||
%If (- TQt_3_0_0)
|
||||
|
||||
%ModuleHeaderCode
|
||||
#include <tqtableview.h>
|
||||
%End
|
||||
|
||||
const uint Tbl_vScrollBar;
|
||||
const uint Tbl_hScrollBar;
|
||||
const uint Tbl_autoVScrollBar;
|
||||
const uint Tbl_autoHScrollBar;
|
||||
const uint Tbl_autoScrollBars;
|
||||
|
||||
const uint Tbl_clipCellPainting;
|
||||
const uint Tbl_cutCellsV;
|
||||
const uint Tbl_cutCellsH;
|
||||
const uint Tbl_cutCells;
|
||||
|
||||
const uint Tbl_scrollLastHCell;
|
||||
const uint Tbl_scrollLastVCell;
|
||||
const uint Tbl_scrollLastCell;
|
||||
|
||||
const uint Tbl_smoothHScrolling;
|
||||
const uint Tbl_smoothVScrolling;
|
||||
const uint Tbl_smoothScrolling;
|
||||
|
||||
const uint Tbl_snapToHGrid;
|
||||
const uint Tbl_snapToVGrid;
|
||||
const uint Tbl_snapToGrid;
|
||||
|
||||
|
||||
class TQTableView : TQFrame
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqtableview.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
%If (- TQt_2_00)
|
||||
void setBackgroundColor(const TQColor &);
|
||||
void setPalette(const TQPalette &);
|
||||
%End
|
||||
%If (TQt_2_00 -)
|
||||
virtual void setBackgroundColor(const TQColor &);
|
||||
virtual void setPalette(const TQPalette &);
|
||||
%End
|
||||
void show();
|
||||
void repaint(bool = 1);
|
||||
void repaint(int,int,int,int,bool = 1);
|
||||
void repaint(const TQRect &,bool = 1);
|
||||
|
||||
protected:
|
||||
TQTableView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
|
||||
~TQTableView();
|
||||
|
||||
int numRows() const;
|
||||
int numCols() const;
|
||||
int topCell() const;
|
||||
int leftCell() const;
|
||||
int xOffset() const;
|
||||
int yOffset() const;
|
||||
virtual int cellWidth(int);
|
||||
virtual int cellHeight(int);
|
||||
int cellWidth() const;
|
||||
int cellHeight() const;
|
||||
virtual int totalWidth();
|
||||
virtual int totalHeight();
|
||||
uint tableFlags() const;
|
||||
bool testTableFlags(uint) const;
|
||||
void clearTableFlags(uint = ~0);
|
||||
bool autoUpdate() const;
|
||||
void updateCell(int,int,bool = 1);
|
||||
TQRect cellUpdateRect() const;
|
||||
TQRect viewRect() const;
|
||||
int lastRowVisible() const;
|
||||
int lastColVisible() const;
|
||||
bool rowIsVisible(int) const;
|
||||
bool colIsVisible(int) const;
|
||||
const TQScrollBar *verticalScrollBar() const;
|
||||
const TQScrollBar *horizontalScrollBar() const;
|
||||
virtual void paintCell(TQPainter *,int,int) = 0;
|
||||
virtual void setupPainter(TQPainter *);
|
||||
void paintEvent(TQPaintEvent *);
|
||||
void resizeEvent(TQResizeEvent *);
|
||||
int findRow(int) const;
|
||||
int findCol(int) const;
|
||||
bool rowYPos(int,int *) const;
|
||||
bool colXPos(int,int *) const;
|
||||
int maxXOffset();
|
||||
int maxYOffset();
|
||||
int maxColOffset();
|
||||
int maxRowOffset();
|
||||
int minViewX() const;
|
||||
int minViewY() const;
|
||||
int maxViewX() const;
|
||||
int maxViewY() const;
|
||||
int viewWidth() const;
|
||||
int viewHeight() const;
|
||||
void scroll(int,int);
|
||||
void updateScrollBars();
|
||||
void updateTableSize();
|
||||
|
||||
%If (- TQt_2_00)
|
||||
void setNumRows(int);
|
||||
void setNumCols(int);
|
||||
void setTopCell(int);
|
||||
void setLeftCell(int);
|
||||
void setTopLeftCell(int,int);
|
||||
void setXOffset(int);
|
||||
void setYOffset(int);
|
||||
void setOffset(int,int,bool = 1);
|
||||
void setCellWidth(int);
|
||||
void setCellHeight(int);
|
||||
void setTableFlags(uint);
|
||||
void setAutoUpdate(bool);
|
||||
%End
|
||||
|
||||
%If (TQt_2_00 -)
|
||||
virtual void setNumRows(int);
|
||||
virtual void setNumCols(int);
|
||||
virtual void setTopCell(int);
|
||||
virtual void setLeftCell(int);
|
||||
virtual void setTopLeftCell(int,int);
|
||||
virtual void setXOffset(int);
|
||||
virtual void setYOffset(int);
|
||||
virtual void setOffset(int,int,bool = 1);
|
||||
virtual void setCellWidth(int);
|
||||
virtual void setCellHeight(int);
|
||||
virtual void setTableFlags(uint);
|
||||
virtual void setAutoUpdate(bool);
|
||||
%End
|
||||
|
||||
private:
|
||||
TQTableView(const TQTableView &);
|
||||
};
|
||||
|
||||
%End
|
||||
%End
|
@ -1,47 +0,0 @@
|
||||
// This is the SIP interface definition for TQWindow.
|
||||
//
|
||||
// Copyright (c) 2007
|
||||
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||||
//
|
||||
// This file is part of PyTQt.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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
|
||||
// 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>TQWindow</Title>
|
||||
<Para>
|
||||
<Literal>TQWindow</Literal> is fully implemented (TQt v1.x).
|
||||
</Para>
|
||||
</Sect2>
|
||||
%End
|
||||
|
||||
|
||||
%If (- TQt_2_00)
|
||||
|
||||
class TQWindow : TQWidget
|
||||
{
|
||||
%TypeHeaderCode
|
||||
#include <tqwindow.h>
|
||||
%End
|
||||
|
||||
public:
|
||||
TQWindow(TQWidget * = 0,const char * = 0,WFlags = 0);
|
||||
|
||||
private:
|
||||
TQWindow(const TQWindow &);
|
||||
};
|
||||
|
||||
%End
|
Loading…
Reference in new issue