30 #ifndef _MIRA_TOOLBOXES_PYTHON_PYTHONEDITOR_H_ 31 #define _MIRA_TOOLBOXES_PYTHON_PYTHONEDITOR_H_ 40 namespace mira {
namespace python {
63 void highlightLine(
int line,
const QColor& background,
const QColor& underline);
78 (
"Name",
"Python editor view")
79 (
"Category",
"Script")
80 (
"Description",
"Python console"))
83 const static std::string sDefaultPythonProgram;
89 template<
typename Reflector>
92 r.member(
"EditorText",
95 "Editor's program", sDefaultPythonProgram);
98 "Show tabs and spaces",
false);
101 "Show line and paragraph separators",
false);
virtual QWidget * createPartControl()
Setter< T > setter(void(*f)(const T &))
void underlineHighlightLine(int line, const QColor &color)
QTextEdit * mLEExecuteScript
Definition: PythonEditor.h:67
void onShowSeparators(bool show)
PythonEditorUI * mUI
Definition: PythonEditor.h:119
#define MIRA_META_OBJECT(classIdentifier, MetaInfo)
Definition: PythonEditor.h:73
std::string mEditorText
Definition: PythonEditor.h:120
Getter< T > getter(T(*f)())
PythonEditorUI(QWidget *parent)
Definition: PythonEditor.h:51
bool mShowWhitespace
Definition: PythonEditor.h:122
QTextEdit * mLEMessage
Definition: PythonEditor.h:68
virtual ~PythonEditor()
Definition: PythonEditor.h:87
void backgroundHighlightLine(int line, const QColor &color)
void onShowWhitespace(bool show)
void highlightLine(int line, const QColor &background, const QColor &underline)
void reflect(Reflector &r)
Definition: PythonEditor.h:90
void setEditorText(const std::string &text)
bool mShowSeparators
Definition: PythonEditor.h:123
std::string getEditorText() const
Authority mAuthority
Definition: PythonEditor.h:117
Definition: PythonEditor.h:44