Commit d13d9b0733c7b6648185d739df99b74cb337756b
1 parent
05a21101
Added -gui warning to Elicit
Showing
1 changed file
with
7 additions
and
5 deletions
openbr/plugins/gui.cpp
| ... | ... | @@ -413,13 +413,13 @@ private: |
| 413 | 413 | |
| 414 | 414 | }; |
| 415 | 415 | |
| 416 | -class DisplayGUI : public QMainWindow | |
| 416 | +class GUIWindow : public QMainWindow | |
| 417 | 417 | { |
| 418 | 418 | Q_OBJECT |
| 419 | 419 | |
| 420 | 420 | public: |
| 421 | 421 | |
| 422 | - DisplayGUI(QWidget * parent = NULL) : QMainWindow(parent) | |
| 422 | + GUIWindow(QWidget * parent = NULL) : QMainWindow(parent) | |
| 423 | 423 | { |
| 424 | 424 | centralWidget = new QWidget(); |
| 425 | 425 | layout = new QHBoxLayout(); |
| ... | ... | @@ -797,7 +797,7 @@ class ElicitTransform : public ShowTransform |
| 797 | 797 | |
| 798 | 798 | Q_OBJECT |
| 799 | 799 | |
| 800 | - DisplayGUI *gui; | |
| 800 | + GUIWindow *gui; | |
| 801 | 801 | |
| 802 | 802 | public: |
| 803 | 803 | ElicitTransform() : ShowTransform() |
| ... | ... | @@ -837,14 +837,16 @@ public: |
| 837 | 837 | |
| 838 | 838 | void init() |
| 839 | 839 | { |
| 840 | - initActual<DisplayGUI>(); | |
| 840 | + initActual<GUIWindow>(); | |
| 841 | 841 | } |
| 842 | 842 | |
| 843 | 843 | template<typename GUIType> |
| 844 | 844 | void initActual() |
| 845 | 845 | { |
| 846 | - if (!Globals->useGui) | |
| 846 | + if (!Globals->useGui) { | |
| 847 | + 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()); | |
| 847 | 848 | return; |
| 849 | + } | |
| 848 | 850 | |
| 849 | 851 | TimeVaryingTransform::init(); |
| 850 | 852 | ... | ... |