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>
20 * A simple widget for a quick "preview" in TabularCreateDialog.
21 * The user can drag on the widget to change the table dimensions.
23 class EmptyTable : public QTableWidget {
26 EmptyTable(QWidget * parent = 0, int rows = 5, int columns = 5);
30 virtual QSize sizeHint() const;
32 /// set the number of columns in the table and emit colsChanged() signal
33 void setNumberColumns(int nr_cols);
34 /// set the number of rows in the table and emit rowsChanged() signal
35 void setNumberRows(int nr_rows);
37 /// the number of columns changed
38 void colsChanged(int);
39 /// the number of rows changed
40 void rowsChanged(int);
43 virtual void paintCell(class QPainter *, int, int);
44 // virtual void mouseMoveEvent(QMouseEvent *);
46 /// Reset all the cell size to default
47 virtual void resetCellSize();
50 /// number of current columns
52 /// number of current rows