Salome HOME
588ceeedeec6b4b0df0dc4206b03fb58a7020330
[modules/gui.git] / src / PythonConsole / PythonConsole_PyConsole.h
1 #ifndef PythonConsole_PyConsole_H
2 #define PythonConsole_PyConsole_H
3
4 #include "PythonConsole.h"
5
6 #include <qwidget.h>
7
8 class PythonConsole_PyEditor;
9 class PyInterp_base;
10
11 class PYCONSOLE_EXPORT PythonConsole: public QWidget
12 {
13   Q_OBJECT;
14
15 public:
16   PythonConsole(QWidget* parent, PyInterp_base* interp = 0 );
17   virtual ~PythonConsole();
18
19   PyInterp_base* getInterp() { return myInterp; } 
20   QFont          font() const;
21   virtual void   setFont( const QFont& );
22
23   void           exec( const QString& command );
24
25 protected:
26   PyInterp_base*          myInterp;
27   PythonConsole_PyEditor* myEditor;
28 };
29
30
31 #endif