Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
octave_window.h
Go to the documentation of this file.
1 /***************************************************************************
2  copyright : (C) 2010 by Michael Margraf
3  email : michael.margraf@alumni.tu-berlin.de
4  ***************************************************************************/
5 
6 #ifndef OCTAVE_WINDOW_H
7 #define OCTAVE_WINDOW_H
8 
9 #include <QWidget>
10 #include <QProcess>
11 #include <QStringList>
12 #include <QKeyEvent>
13 #include <QDockWidget>
14 #include <QTextEdit>
15 #include <QLineEdit>
16 
17 
18 class OctaveWindow : public QWidget {
19  Q_OBJECT
20 public:
21  OctaveWindow(QDockWidget*);
22  ~OctaveWindow();
23 
24  QSize sizeHint();
25  bool startOctave();
26  void runOctaveScript(const QString&);
27  void sendCommand(const QString&);
28  void adjustDirectory();
29 
30 private slots:
31  void slotDisplayMsg();
32  void slotDisplayErr();
33  void slotOctaveEnded(int status);
34  void slotSendCommand();
35 
36 protected:
37  bool eventFilter(QObject *obj, QEvent *event);
38 
39 private:
40  QTextEdit *output;
41  QProcess octProcess;
42  QLineEdit *input;
43  QStringList cmdHistory;
45 };
46 
47 #endif
void slotOctaveEnded(int status)
bool eventFilter(QObject *obj, QEvent *event)
bool startOctave()
void slotDisplayErr()
void slotSendCommand()
QSize sizeHint()
void slotDisplayMsg()
QProcess octProcess
Definition: octave_window.h:41
void runOctaveScript(const QString &)
QLineEdit * input
Definition: octave_window.h:42
void adjustDirectory()
OctaveWindow(QDockWidget *)
void sendCommand(const QString &)
QTextEdit * output
Definition: octave_window.h:40
QStringList cmdHistory
Definition: octave_window.h:43