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
20 namespace frontend {
\r
23 class InsertTableWidget : public QWidget {
\r
27 InsertTableWidget(LyXView &, QWidget *);
\r
30 //! widget is visible
\r
36 //! enable/disable parent
\r
37 void updateParent();
\r
40 void mouseMoveEvent(QMouseEvent *);
\r
41 void mouseReleaseEvent(QMouseEvent *);
\r
42 void mousePressEvent(QMouseEvent *);
\r
43 void paintEvent(QPaintEvent *);
\r
46 //! update the geometry
\r
47 void resetGeometry();
\r
48 //! initialize parameters to default values
\r
51 void drawGrid(int rows, int cols, Qt::GlobalColor color);
\r
53 //! colwidth in pixels
\r
55 //! rowheight in pixels
\r
63 //! column of pointer
\r
65 //! the lyxview we need to dispatch the funcrequest
\r
67 //! widget under mouse
\r
71 } // namespace frontend
\r
74 #endif // INSERTTABLEWIDGET_H
\r