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;
35 /// set the number of columns in the table and emit colsChanged() signal
36 void setNumberColumns(int nr_cols);
37 /// set the number of rows in the table and emit rowsChanged() signal
38 void setNumberRows(int nr_rows);
40 /// the number of columns changed
41 void colsChanged(int);
42 /// the number of rows changed
43 void rowsChanged(int);
46 virtual void paintCell(class QPainter *, int, int);
47 virtual void mouseMoveEvent(QMouseEvent *);
49 /// number of current columns
51 /// number of current rows