]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InsertTableWidget.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / InsertTableWidget.cpp
index de8a31768f3eac996165ced484fd173de6fd2ed9..036cd1d390868d79b5bd229215608f9a2913b47a 100644 (file)
 
 #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 "LyXFunc.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();
@@ -107,7 +108,7 @@ void InsertTableWidget::mouseReleaseEvent(QMouseEvent * /*event*/)
 {
        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);
@@ -154,4 +155,4 @@ void InsertTableWidget::updateParent()
 } // namespace frontend
 } // namespace lyx
 
-#include "InsertTableWidget_moc.cpp"
+#include "moc_InsertTableWidget.cpp"