 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
10 #include <QMainWindow>
28 void add(QString &&cmd);
34 const QString &
older();
36 const QString &
newer();
39 QVector<QString> m_commands;
40 QVector<QString>::const_reverse_iterator m_current;
85 Ui_PythonREPL *m_ui{
nullptr};
KeyPressEater(PythonRepl *repl, QObject *parent=nullptr)
Definition: PythonRepl.cpp:135
~PythonRepl() noexcept override
Definition: PythonRepl.cpp:146
void executeStatementWithState(const std::string &code, QListWidget *output, PythonInterpreter::State &state)
Definition: PythonInterpreter.cpp:137
#define QTCOMPAT_FONTMETRICS_WIDTH(fm, text)
Definition: QtCompat.h:339
void setupUI()
Definition: PythonRepl.cpp:161
size_t size() const
Definition: PythonRepl.cpp:268
void qtCompatSetTabStopWidth(QPlainTextEdit *edit, int width)
Definition: QtCompat.h:1010
QPlainTextEdit * codeEdit()
Definition: PythonRepl.cpp:151
QListWidget * outputDisplay()
Definition: PythonRepl.cpp:156
int width
Definition: FileIOFactory.cpp:142
Class used by the REPL to handle key presses.
Definition: PythonRepl.h:44
int height
Definition: FileIOFactory.cpp:143
Definition: PythonInterpreter.h:32
Definition: PythonHighlighter.h:19
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
const static QString continuationDots(QStringLiteral("... "))
PythonRepl & operator=(const PythonRepl &)=delete
void importNeededPackages()
Definition: PythonRepl.cpp:190
void add(QString &&cmd)
Definition: PythonRepl.cpp:227
Simple history system for the REPL.
Definition: PythonRepl.h:23
Homemade REPL (Read Print Eval Loop)
Definition: PythonRepl.h:58
void reset()
Definition: PythonRepl.cpp:183
Definition: ccGuiPythonInstance.h:15
bool empty() const
Definition: PythonRepl.cpp:263
Variable state.
Definition: PythonInterpreter.h:38
bool eventFilter(QObject *obj, QEvent *event) override
Definition: PythonRepl.cpp:33
PythonRepl(PythonInterpreter *interpreter, QMainWindow *parent=nullptr)
Definition: PythonRepl.cpp:137
void executeCode(const QString &pythonCode)
Definition: PythonRepl.cpp:197
const static QString replArrows(QStringLiteral(">>> "))
const QString & newer()
Definition: PythonRepl.cpp:244
const QString & older()
Definition: PythonRepl.cpp:233
bool isExecuting() const
Definition: PythonInterpreter.cpp:315