#include <config.h>
-#include "lyxfunc.h"
-#include "FuncStatus.h"
-#include "funcrequest.h"
-#include "LyXView.h"
+#include "InsertTableWidget.h"
+#include "GuiView.h"
#include "qt_helpers.h"
-#include "InsertTableWidget.h"
+#include "FuncStatus.h"
+#include "FuncRequest.h"
+#include "LyX.h"
+
#include <QMouseEvent>
+#include <QPainter>
#include <QString>
#include <QToolTip>
-#include <QPainter>
namespace lyx {
namespace frontend {
-InsertTableWidget::InsertTableWidget(LyXView & lyxView, QWidget * parent)
+InsertTableWidget::InsertTableWidget(GuiView & lyxView, QWidget * parent)
: QWidget(parent, Qt::Popup), colwidth_(20), rowheight_(12), lyxView_(lyxView)
{
init();
{
if (underMouse_) {
QString const data = QString("%1 %2").arg(bottom_).arg(right_);
- lyxView_.dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data)));
+ lyx::dispatch(FuncRequest(LFUN_TABULAR_INSERT, fromqstr(data)));
}
// emit signal
visible(false);
} // namespace frontend
} // namespace lyx
-#include "InsertTableWidget_moc.cpp"
+#include "moc_InsertTableWidget.cpp"