4 * John Levon, moz@compsoc.man.ac.uk
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
20 #include <qtableview.h>
22 #include "boost/utility.hpp"
25 * A simple widget for a quick "preview" in TabularCreateDialog.
26 * The user can drag on the widget to change the table dimensions.
28 class EmptyTable : public QTableView, public noncopyable {
31 EmptyTable(QWidget * parent = 0, const char * name = 0);
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