WIP: edt enabled for Qt-less

This commit is contained in:
Matthias Koefferlein
2022-05-08 19:44:14 +02:00
parent aea861f9b4
commit 37a42b70db
16 changed files with 594 additions and 403 deletions
@@ -26,6 +26,10 @@
#include "laybasicConfig.h"
#include "layConverters.h"
#if defined(HAVE_QT)
# include <QMessageBox>
#endif
namespace lay
{
@@ -298,4 +302,13 @@ EditorServiceBase::deactivated ()
clear_mouse_cursors ();
}
void
EditorServiceBase::show_error (tl::Exception &ex)
{
tl::error << ex.msg ();
#if defined(HAVE_QT)
QMessageBox::critical (0, tr ("Error"), tl::to_qstring (ex.msg ()));
#endif
}
}
@@ -121,6 +121,11 @@ public:
return m_tracking_position;
}
/**
* @brief Shows an error where an exception is not applicable
*/
void show_error (tl::Exception &ex);
protected:
virtual bool configure (const std::string &name, const std::string &value);
virtual void deactivated ();
+2 -2
View File
@@ -112,7 +112,6 @@ DEFINES += MAKE_LAYBASIC_LIBRARY
layEditorOptionsFrame.cc \
layEditorOptionsPage.cc \
layEditorOptionsPages.cc \
layEditorServiceBase.cc \
layFileDialog.cc \
layGenericSyntaxHighlighter.cc \
layGridNetConfigPage.cc \
@@ -182,7 +181,6 @@ DEFINES += MAKE_LAYBASIC_LIBRARY
layEditorOptionsFrame.h \
layEditorOptionsPage.h \
layEditorOptionsPages.h \
layEditorServiceBase.h \
layFileDialog.h \
layGenericSyntaxHighlighter.h \
layGridNetConfigPage.h \
@@ -246,6 +244,7 @@ SOURCES += \
layDitherPattern.cc \
layDrawing.cc \
layEditable.cc \
layEditorServiceBase.cc \
layFinder.cc \
layGridNet.cc \
layFixedFont.cc \
@@ -292,6 +291,7 @@ HEADERS += \
layDitherPattern.h \
layDrawing.h \
layEditable.h \
layEditorServiceBase.h \
layLayoutCanvas.h \
layLayoutView.h \
layFinder.h \