forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Control the amount of console output of the python web proxy
When using ScriptEditor, long messages are often logged in the terminal. These are helpful during development and troubleshooting, but not when using the application. These messages are disabled by default now and can be enabled when needed. SlicerMorph/SlicerScriptEditor#43 Co-authored-by: Andras Lasso <[email protected]>
- Loading branch information
Showing
3 changed files
with
80 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*=auto========================================================================= | ||
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. | ||
See COPYRIGHT.txt | ||
or http://www.slicer.org/copyright/copyright.txt for details. | ||
=========================================================================auto=*/ | ||
|
||
#ifndef __qSlicerWebPythonProxy_p_h | ||
#define __qSlicerWebPythonProxy_p_h | ||
|
||
#include "qSlicerBaseQTGUIExport.h" | ||
|
||
//------------------------------------------------------------------------------ | ||
class Q_SLICER_BASE_QTGUI_EXPORT qSlicerWebPythonProxyPrivate | ||
{ | ||
public: | ||
virtual ~qSlicerWebPythonProxyPrivate(); | ||
|
||
/// Keep track of user response to avoid going through ctk dialog to check | ||
bool isPythonEvaluationAllowed(); | ||
|
||
bool PythonEvaluationAllowed{ false }; | ||
bool Verbose{ false }; | ||
}; | ||
|
||
#endif |