3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
13 #include "qttableview.h"
16 * A simple widget for a quick "preview" in TabularCreateDialog.
17 * The user can drag on the widget to change the table dimensions.
19 class EmptyTable : public QtTableView {
22 EmptyTable(QWidget * parent = 0, const char * name = 0);
26 virtual QSize sizeHint() const;
29 /// set the number of columns in the table and emit colsChanged() signal
30 void setNumberColumns(int nr_cols);
31 /// set the number of rows in the table and emit rowsChanged() signal
32 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);
42 virtual void paintCell(class QPainter *, int, int);
43 virtual void mouseMoveEvent(QMouseEvent *);
46 /// number of current columns
48 /// number of current rows