#include "GuiView.h"
#include "qt_helpers.h"
+// DispatchResult.h is needed by the windows compiler because lyx::dispatch
+// returns a DispatchResult const reference. Gcc does not complain. Weird...
+#include "DispatchResult.h"
#include "FuncStatus.h"
#include "FuncRequest.h"
-#include "LyXFunc.h"
+#include "LyX.h"
#include <QMouseEvent>
#include <QPainter>
namespace lyx {
namespace frontend {
-InsertTableWidget::InsertTableWidget(GuiView & lyxView, QWidget * parent)
- : QWidget(parent, Qt::Popup), colwidth_(20), rowheight_(12), lyxView_(lyxView)
+InsertTableWidget::InsertTableWidget(QWidget * parent)
+ : QWidget(parent, Qt::Popup), colwidth_(20), rowheight_(12)
{
init();
setMouseTracking(true);
{
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"