From d13d9b0733c7b6648185d739df99b74cb337756b Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 1 Apr 2014 15:27:07 -0400 Subject: [PATCH] Added -gui warning to Elicit --- openbr/plugins/gui.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index ee35340..2e614a2 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -413,13 +413,13 @@ private: }; -class DisplayGUI : public QMainWindow +class GUIWindow : public QMainWindow { Q_OBJECT public: - DisplayGUI(QWidget * parent = NULL) : QMainWindow(parent) + GUIWindow(QWidget * parent = NULL) : QMainWindow(parent) { centralWidget = new QWidget(); layout = new QHBoxLayout(); @@ -797,7 +797,7 @@ class ElicitTransform : public ShowTransform Q_OBJECT - DisplayGUI *gui; + GUIWindow *gui; public: ElicitTransform() : ShowTransform() @@ -837,14 +837,16 @@ public: void init() { - initActual(); + initActual(); } template void initActual() { - if (!Globals->useGui) + if (!Globals->useGui) { + qWarning("GUI transform %s created without enabling GUI support.\nRun \"br -gui ...\" to enable GUI support from the command line, or set\nGlobals->useGui to true.", this->metaObject()->className()); return; + } TimeVaryingTransform::init(); -- libgit2 0.21.4