3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
13 #include <qtableview.h>
16 * A simple widget for a quick "preview" in TabularCreateDialog.
17 * The user can drag on the widget to change the table dimensions.
19 class EmptyTable : public QTableView {
22 EmptyTable(QWidget * parent = 0, const char * name = 0);
27 /// set the number of columns in the table and emit colsChanged() signal
28 void setNumberColumns(int nr_cols);
29 /// set the number of rows in the table and emit rowsChanged() signal
30 void setNumberRows(int nr_rows);
33 /// the number of columns changed
34 void colsChanged(int);
35 /// the number of rows changed
36 void rowsChanged(int);
40 virtual void paintCell(class QPainter *, int, int);
41 virtual void mouseMoveEvent(QMouseEvent *);
44 /// number of current columns
46 /// number of current rows