qucs_s/qucs/octave_window.h
yodalee 6e784d847f clean redundant include in main directory
messagedock.h messagedock.cpp

element.cpp
main.h
mnemo.h mnemo.cpp
module.cpp module.h

mouseaction.h mouseaction.cpp

node.h
octave_window.h

qucs.cpp qucs.h

syntax.h
viewpainter.h
wire.h
wirelabel.cpp wirelabel.h
2014-10-30 21:41:05 +08:00

49 lines
1.0 KiB
C++

/***************************************************************************
copyright : (C) 2010 by Michael Margraf
email : michael.margraf@alumni.tu-berlin.de
***************************************************************************/
#ifndef OCTAVE_WINDOW_H
#define OCTAVE_WINDOW_H
#include <QWidget>
#include <QProcess>
#include <QStringList>
class QEvent;
class QDockWidget;
class QTextEdit;
class QLineEdit;
class OctaveWindow : public QWidget {
Q_OBJECT
public:
OctaveWindow(QDockWidget*);
~OctaveWindow();
QSize sizeHint() const;
bool startOctave();
void runOctaveScript(const QString&);
void sendCommand(const QString&);
void adjustDirectory();
private slots:
void slotDisplayMsg();
void slotDisplayErr();
void slotOctaveEnded(int status);
void slotSendCommand();
protected:
bool eventFilter(QObject *obj, QEvent *event);
private:
QTextEdit *output;
QProcess octProcess;
QLineEdit *input;
QStringList cmdHistory;
int histPosition;
};
#endif