3 * \file InsertTableWidget.h
\r
4 * This file is part of LyX, the document processor.
\r
5 * Licence details can be found in the file COPYING.
\r
7 * \author Edwin Leuven
\r
9 * Full author contact details are available in file CREDITS.
\r
13 #ifndef INSERTTABLEWIDGET_H
\r
14 #define INSERTTABLEWIDGET_H
\r
16 #include "frontends/LyXView.h"
\r
22 namespace frontend {
\r
25 class InsertTableWidget : public QWidget {
\r
29 InsertTableWidget(LyXView &, QWidget *);
\r
32 //! widget is visible
\r
38 //! enable/disable parent
\r
39 void updateParent();
\r
42 bool event(QEvent *);
\r
43 void mouseMoveEvent(QMouseEvent *);
\r
44 void mouseReleaseEvent(QMouseEvent *);
\r
45 void paintEvent(QPaintEvent *);
\r
48 //! update the geometry
\r
49 void resetGeometry();
\r
50 //! initialize parameters to default values
\r
53 void drawGrid(int rows, int cols, Qt::GlobalColor color);
\r
55 //! colwidth in pixels
\r
57 //! rowheight in pixels
\r
65 //! column of pointer
\r
67 //! the lyxview we need to dispatch the funcrequest
\r
69 //! widget under mouse
\r
73 } // namespace frontend
\r
76 #endif // INSERTTABLEWIDGET_H
\r