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
17 #include "qttableview.h"
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 QtTableView {
26 EmptyTable(QWidget * parent = 0, const char * name = 0);
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 /// number of current columns
48 /// number of current rows