![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Homemade REPL (Read Print Eval Loop) More...
#include <PythonRepl.h>


Public Member Functions | |
| PythonRepl (PythonInterpreter *interpreter, QMainWindow *parent=nullptr) | |
| void | executeCode (const QString &pythonCode) |
| PythonRepl (const PythonRepl &)=delete | |
| PythonRepl (PythonRepl &&)=delete | |
| PythonRepl & | operator= (const PythonRepl &)=delete |
| PythonRepl & | operator= (PythonRepl &&)=delete |
| ~PythonRepl () noexcept override | |
Protected Member Functions | |
| QPlainTextEdit * | codeEdit () |
| QListWidget * | outputDisplay () |
| void | reset () |
| void | importNeededPackages () |
| void | setupUI () |
Homemade REPL (Read Print Eval Loop)
Definition at line 58 of file PythonRepl.h.
|
explicit |
Definition at line 137 of file PythonRepl.cpp.
References importNeededPackages(), and setupUI().
|
delete |
|
delete |
|
overridenoexcept |
Definition at line 146 of file PythonRepl.cpp.
|
protected |
Definition at line 151 of file PythonRepl.cpp.
Referenced by KeyPressEater::eventFilter(), executeCode(), and setupUI().
| void PythonRepl::executeCode | ( | const QString & | pythonCode | ) |
Our raw input contains the ">>> " and "... " and is a QString convert it to std::string while filtering out non needed chars
Definition at line 197 of file PythonRepl.cpp.
References codeEdit(), continuationDots(), PythonInterpreter::executeStatementWithState(), outputDisplay(), and replArrows().
Referenced by KeyPressEater::eventFilter(), and importNeededPackages().
|
protected |
Definition at line 190 of file PythonRepl.cpp.
References executeCode(), and replArrows().
Referenced by PythonRepl(), and reset().
|
delete |
|
delete |
|
protected |
Definition at line 156 of file PythonRepl.cpp.
Referenced by executeCode().
|
protected |
Definition at line 183 of file PythonRepl.cpp.
References importNeededPackages().
Referenced by setupUI().
|
protected |
Definition at line 161 of file PythonRepl.cpp.
References codeEdit(), height, QTCOMPAT_FONTMETRICS_WIDTH, qtCompatSetTabStopWidth(), reset(), and width.
Referenced by PythonRepl().