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 "qttableview.h"
18 * A simple widget for a quick "preview" in TabularCreateDialog.
19 * The user can drag on the widget to change the table dimensions.
21 class EmptyTable : public QtTableView {
24 EmptyTable(QWidget * parent = 0, const char * name = 0);
28 virtual QSize sizeHint() const;
30 /// set the number of columns in the table and emit colsChanged() signal
31 void setNumberColumns(int nr_cols);
32 /// set the number of rows in the table and emit rowsChanged() signal
33 void setNumberRows(int nr_rows);
35 /// the number of columns changed
36 void colsChanged(int);
37 /// the number of rows changed
38 void rowsChanged(int);
41 virtual void paintCell(class QPainter *, int, int);
42 virtual void mouseMoveEvent(QMouseEvent *);
44 /// number of current columns
46 /// number of current rows