Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2784 f25d…
…12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Henrik Eriksson
committed
Apr 27, 2007
1 parent
1bebf35
commit 5b5e46e
Showing
14 changed files
with
776 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "evalthread.h" | ||
#include <QPushButton> | ||
#include <fstream> | ||
#include <QApplication> | ||
using namespace std; | ||
|
||
|
||
|
||
|
||
EvalThread::EvalThread(InputCellDelegate* delegate_, QString expr_, QObject* parent): QThread(parent), delegate(delegate_), expr(expr_) | ||
{ | ||
|
||
|
||
|
||
} | ||
|
||
EvalThread::~EvalThread() | ||
{ | ||
|
||
} | ||
|
||
void EvalThread::run() | ||
{ | ||
|
||
delegate->evalExpression(expr); | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef EVALTHREAD_H | ||
#define EVALTHREAD_H | ||
#include <QThread> | ||
#include "inputcelldelegate.h" | ||
#include <QString> | ||
using namespace std; | ||
using namespace IAEX; | ||
|
||
class EvalThread: public QThread | ||
{ | ||
public: | ||
EvalThread(InputCellDelegate* delegate_, QString expr, QObject * parent = 0); | ||
~EvalThread(); | ||
|
||
void run(); | ||
|
||
|
||
private: | ||
InputCellDelegate* delegate; | ||
QString expr; | ||
|
||
|
||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.