/usr/share/sip/PyQt4/QtGui/qtablewidget.sip is in python-qt4-dev 4.9.1-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | // qtablewidget.sip generated by MetaSIP on Fri Feb 10 10:35:12 2012
//
// This file is part of the QtGui Python extension module.
//
// Copyright (c) 2011 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt.
//
// This file may be used under the terms of the GNU General Public
// License versions 2.0 or 3.0 as published by the Free Software
// Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
// included in the packaging of this file. Alternatively you may (at
// your option) use any later version of the GNU General Public
// License if such license has been publicly approved by Riverbank
// Computing Limited (or its successors, if any) and the KDE Free Qt
// Foundation. In addition, as a special exception, Riverbank gives you
// certain additional rights. These rights are described in the Riverbank
// GPL Exception version 1.1, which can be found in the file
// GPL_EXCEPTION.txt in this package.
//
// If you are unsure which license is appropriate for your use, please
// contact the sales department at sales@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%ModuleCode
#include <qtablewidget.h>
%End
class QTableWidgetSelectionRange
{
%TypeHeaderCode
#include <qtablewidget.h>
%End
public:
QTableWidgetSelectionRange();
QTableWidgetSelectionRange(int top, int left, int bottom, int right);
QTableWidgetSelectionRange(const QTableWidgetSelectionRange &other);
~QTableWidgetSelectionRange();
int topRow() const;
int bottomRow() const;
int leftColumn() const;
int rightColumn() const;
int rowCount() const;
int columnCount() const;
};
class QTableWidgetItem /Supertype=sip.wrapper/
{
%TypeHeaderCode
#include <qtablewidget.h>
%End
public:
%If (Qt_4_2_0 -)
enum ItemType
{
Type,
UserType,
};
%End
%If (- Qt_4_2_0)
enum
{
Type,
UserType,
};
%End
QTableWidgetItem(int type = Type);
QTableWidgetItem(const QString &text, int type = Type);
%If (Qt_4_2_0 -)
QTableWidgetItem(const QIcon &icon, const QString &text, int type = Type);
%End
QTableWidgetItem(const QTableWidgetItem &other);
virtual ~QTableWidgetItem();
virtual QTableWidgetItem *clone() const /Factory/;
QTableWidget *tableWidget() const;
Qt::ItemFlags flags() const;
QString text() const;
QIcon icon() const;
QString statusTip() const;
%If (PyQt_ToolTip)
QString toolTip() const;
%End
%If (PyQt_WhatsThis)
QString whatsThis() const;
%End
QFont font() const;
int textAlignment() const;
void setTextAlignment(int alignment);
QColor backgroundColor() const;
void setBackgroundColor(const QColor &color);
QColor textColor() const;
void setTextColor(const QColor &color);
Qt::CheckState checkState() const;
void setCheckState(Qt::CheckState state);
virtual QVariant data(int role) const;
virtual void setData(int role, const QVariant &value);
virtual bool operator<(const QTableWidgetItem &other /NoCopy/) const;
virtual void read(QDataStream &in) /ReleaseGIL/;
virtual void write(QDataStream &out) const /ReleaseGIL/;
int type() const;
void setFlags(Qt::ItemFlags aflags);
void setText(const QString &atext);
void setIcon(const QIcon &aicon);
void setStatusTip(const QString &astatusTip);
%If (PyQt_ToolTip)
void setToolTip(const QString &atoolTip);
%End
%If (PyQt_WhatsThis)
void setWhatsThis(const QString &awhatsThis);
%End
void setFont(const QFont &afont);
QSize sizeHint() const;
void setSizeHint(const QSize &size);
%If (Qt_4_2_0 -)
QBrush background() const;
%End
%If (Qt_4_2_0 -)
void setBackground(const QBrush &brush);
%End
%If (Qt_4_2_0 -)
QBrush foreground() const;
%End
%If (Qt_4_2_0 -)
void setForeground(const QBrush &brush);
%End
%If (Qt_4_2_0 -)
int row() const;
%End
%If (Qt_4_2_0 -)
int column() const;
%End
%If (Qt_4_2_0 -)
void setSelected(bool aselect);
%End
%If (Qt_4_2_0 -)
bool isSelected() const;
%End
private:
QTableWidgetItem &operator=(const QTableWidgetItem &);
};
QDataStream &operator>>(QDataStream &in, QTableWidgetItem &item /Constrained/);
QDataStream &operator<<(QDataStream &out, const QTableWidgetItem &item /Constrained/);
class QTableWidget : QTableView
{
%TypeHeaderCode
#include <qtablewidget.h>
%End
public:
explicit QTableWidget(QWidget *parent /TransferThis/ = 0);
QTableWidget(int rows, int columns, QWidget *parent /TransferThis/ = 0);
virtual ~QTableWidget();
void setRowCount(int rows);
int rowCount() const;
void setColumnCount(int columns);
int columnCount() const;
int row(const QTableWidgetItem *item) const;
int column(const QTableWidgetItem *item) const;
QTableWidgetItem *item(int row, int column) const;
void setItem(int row, int column, QTableWidgetItem *item /Transfer/);
QTableWidgetItem *takeItem(int row, int column) /TransferBack/;
QTableWidgetItem *verticalHeaderItem(int row) const;
void setVerticalHeaderItem(int row, QTableWidgetItem *item /Transfer/);
QTableWidgetItem *takeVerticalHeaderItem(int row) /TransferBack/;
QTableWidgetItem *horizontalHeaderItem(int column) const;
void setHorizontalHeaderItem(int column, QTableWidgetItem *item /Transfer/);
QTableWidgetItem *takeHorizontalHeaderItem(int column) /TransferBack/;
void setVerticalHeaderLabels(const QStringList &labels);
void setHorizontalHeaderLabels(const QStringList &labels);
int currentRow() const;
int currentColumn() const;
QTableWidgetItem *currentItem() const;
void setCurrentItem(QTableWidgetItem *item);
%If (Qt_4_4_0 -)
void setCurrentItem(QTableWidgetItem *item, QFlags<QItemSelectionModel::SelectionFlag> command);
%End
void setCurrentCell(int row, int column);
%If (Qt_4_4_0 -)
void setCurrentCell(int row, int column, QFlags<QItemSelectionModel::SelectionFlag> command);
%End
void sortItems(int column, Qt::SortOrder order = Qt::AscendingOrder);
void setSortingEnabled(bool enable);
bool isSortingEnabled() const;
void editItem(QTableWidgetItem *item);
void openPersistentEditor(QTableWidgetItem *item);
void closePersistentEditor(QTableWidgetItem *item);
QWidget *cellWidget(int row, int column) const;
void setCellWidget(int row, int column, QWidget *widget /Transfer/);
%MethodCode
// We have to break the association with any existing widget.
QWidget *w = sipCpp->cellWidget(a0, a1);
if (w)
{
PyObject *wo = sipGetPyObject(w, sipType_QWidget);
if (wo)
sipTransferBreak(wo);
}
Py_BEGIN_ALLOW_THREADS
sipCpp->setCellWidget(a0, a1, a2);
Py_END_ALLOW_THREADS
%End
%If (Qt_4_3_0 -)
void removeCellWidget(int arow, int acolumn);
%MethodCode
// We have to break the association with any existing widget.
QWidget *w = sipCpp->cellWidget(a0, a1);
if (w)
{
PyObject *wo = sipGetPyObject(w, sipType_QWidget);
if (wo)
sipTransferBreak(wo);
}
Py_BEGIN_ALLOW_THREADS
sipCpp->removeCellWidget(a0, a1);
Py_END_ALLOW_THREADS
%End
%End
bool isItemSelected(const QTableWidgetItem *item) const;
void setItemSelected(const QTableWidgetItem *item, bool select);
void setRangeSelected(const QTableWidgetSelectionRange &range, bool select);
QList<QTableWidgetSelectionRange> selectedRanges() const;
QList<QTableWidgetItem*> selectedItems();
QList<QTableWidgetItem*> findItems(const QString &text, Qt::MatchFlags flags) const;
int visualRow(int logicalRow) const;
int visualColumn(int logicalColumn) const;
QTableWidgetItem *itemAt(const QPoint &p) const;
QTableWidgetItem *itemAt(int ax, int ay) const;
QRect visualItemRect(const QTableWidgetItem *item) const;
const QTableWidgetItem *itemPrototype() const;
void setItemPrototype(const QTableWidgetItem *item /Transfer/);
public slots:
void scrollToItem(const QTableWidgetItem *item, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible);
void insertRow(int row);
void insertColumn(int column);
void removeRow(int row);
void removeColumn(int column);
void clear();
%If (Qt_4_2_0 -)
void clearContents();
%End
signals:
void itemPressed(QTableWidgetItem *item);
void itemClicked(QTableWidgetItem *item);
void itemDoubleClicked(QTableWidgetItem *item);
void itemActivated(QTableWidgetItem *item);
void itemEntered(QTableWidgetItem *item);
void itemChanged(QTableWidgetItem *item);
void currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
void itemSelectionChanged();
void cellPressed(int row, int column);
void cellClicked(int row, int column);
void cellDoubleClicked(int row, int column);
void cellActivated(int row, int column);
void cellEntered(int row, int column);
void cellChanged(int row, int column);
void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
protected:
virtual QStringList mimeTypes() const;
virtual QMimeData *mimeData(const QList<QTableWidgetItem*> items) const /TransferBack/;
virtual bool dropMimeData(int row, int column, const QMimeData *data, Qt::DropAction action);
virtual Qt::DropActions supportedDropActions() const;
QList<QTableWidgetItem*> items(const QMimeData *data) const;
QModelIndex indexFromItem(QTableWidgetItem *item) const;
QTableWidgetItem *itemFromIndex(const QModelIndex &index) const;
virtual bool event(QEvent *e);
%If (Qt_4_2_0 -)
virtual void dropEvent(QDropEvent *event);
%End
private:
virtual void setModel(QAbstractItemModel *model /KeepReference/);
QTableWidget(const QTableWidget &);
};
|