mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 19:28:37 +02:00
WIP: edt enabled for Qt-less
This commit is contained in:
@@ -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 ();
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user