4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include <QTableWidget>
23 * A simple widget for a quick "preview" in TabularCreateDialog.
24 * The user can drag on the widget to change the table dimensions.
26 class EmptyTable : public QTableWidget {
29 EmptyTable(QWidget * parent = 0, int rows = 5, int columns = 5);
31 virtual QSize sizeHint() const;
33 /// set the number of columns in the table and emit colsChanged() signal
34 void setNumberColumns(int nr_cols);
35 /// set the number of rows in the table and emit rowsChanged() signal
36 void setNumberRows(int nr_rows);
38 /// the number of columns changed
39 void colsChanged(int);
40 /// the number of rows changed
41 void rowsChanged(int);
44 virtual void paintCell(class QPainter *, int, int);
45 // virtual void mouseMoveEvent(QMouseEvent *);
47 /// Reset all the cell size to default
48 virtual void resetCellSize();