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
20 #include "qttableview.h"
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 QtTableView {
29 EmptyTable(QWidget * parent = 0, const char * name = 0);
33 virtual QSize sizeHint() const;
36 /// set the number of columns in the table and emit colsChanged() signal
37 void setNumberColumns(int nr_cols);
38 /// set the number of rows in the table and emit rowsChanged() signal
39 void setNumberRows(int nr_rows);
42 /// the number of columns changed
43 void colsChanged(int);
44 /// the number of rows changed
45 void rowsChanged(int);
49 virtual void paintCell(class QPainter *, int, int);
50 virtual void mouseMoveEvent(QMouseEvent *);
53 /// number of current columns
55 /// number of current rows