##// END OF EJS Templates
New Plugin Manager and interface to remove all the previous crap!...
New Plugin Manager and interface to remove all the previous crap! Let's use Qt plugin API and make it much simpler.

File last commit:

r0:1aa783210b8e default
r118:de85e8465e67 tip 1.0
Show More
NicePyConsole.h
44 lines | 1.3 KiB | text/x-c | CLexer
/*! \file NicePyConsole.h
* \brief defines NicePyConsole
* \author "Melven Zoellner" <melven@topen.org>
*
*/
// include guard
#ifndef NICEPYCONSOLE_H
#define NICEPYCONSOLE_H
// PythonQt-includes
#include <PythonQt.h>
// local includes
#include "SimpleConsole.h"
// forward declarations
class PygmentsHighlighter;
class PythonCompleter;
//! a nice console (e.g. terminal) for python, with history, autocompletion and syntax-highlightning
class NicePyConsole : public SimpleConsole
{
Q_OBJECT
public:
explicit NicePyConsole(QWidget *parent,
const PythonQtObjectPtr& context); //!< constructor
~NicePyConsole(); //!< destructor
PythonQtObjectPtr context() const {return _context;} //!< get the python context of this console
public slots:
int executePythonCommand(QString cmd); //!< slot to run python code
protected:
PythonQtObjectPtr _context; //!< the python context of this console
PygmentsHighlighter *_highlighter; //!< for syntax highlightning
PythonCompleter *_completer; //!< for autocompletion
};
#endif /* NICEPYCONSOLE_H */