// This is the SIP interface definition for QTableView. // // Copyright (c) 2007 // Riverbank Computing Limited // // 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. %ExportedDoc QTableView (Qt 1.x, Qt 2.x) bool colXPos int col int *xPos This takes the col parameter and returns a tuple containing the bool result and xPos. bool rowYPos int row int *yPos This takes the row parameter and returns a tuple containing the bool result and yPos. %End %If (Qt_TABLEVIEW) %If (- Qt_3_0_0) %ModuleHeaderCode #include %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 QTableView : QFrame { %TypeHeaderCode #include %End public: %If (- Qt_2_00) void setBackgroundColor(const QColor &); void setPalette(const QPalette &); %End %If (Qt_2_00 -) virtual void setBackgroundColor(const QColor &); virtual void setPalette(const QPalette &); %End void show(); void repaint(bool = 1); void repaint(int,int,int,int,bool = 1); void repaint(const QRect &,bool = 1); protected: QTableView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); ~QTableView(); 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); QRect cellUpdateRect() const; QRect viewRect() const; int lastRowVisible() const; int lastColVisible() const; bool rowIsVisible(int) const; bool colIsVisible(int) const; const QScrollBar *verticalScrollBar() const; const QScrollBar *horizontalScrollBar() const; virtual void paintCell(QPainter *,int,int) = 0; virtual void setupPainter(QPainter *); void paintEvent(QPaintEvent *); void resizeEvent(QResizeEvent *); 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 (- Qt_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 (Qt_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: QTableView(const QTableView &); }; %End %End