Skip to content

Commit

Permalink
- VC7 Setup fixes for new stuff in OMNotebook
Browse files Browse the repository at this point in the history
- Parser fixes to handle multiple for iterators, both in array iterators and in for loops,
  Have a look at Absyn.ForIterators
- Small changes in makefiles
- Fixed stringEqual in external-rml.c
- ptplot.jar dumps the plot image in $OPENMODELICAHOME/tmp/
- OMNotebook and OMShell in windows now starts in $OPENMODELICAHOME/tmp/


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2854 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jul 10, 2007
1 parent ec3510f commit d7274dd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions OMNotebook/OMNotebookQT4/graphcell.cpp
Expand Up @@ -1248,9 +1248,9 @@ namespace IAEX
QMessageBox::critical( 0, "OpenModelica Error", "Could not find environment variable OPENMODELICAHOME; OMNotebook will therefore not work correctly" );

if( openmodelica.endsWith("/") || openmodelica.endsWith( "\\") )
openmodelica += "bin/";
openmodelica += "tmp/";
else
openmodelica += "/bin/";
openmodelica += "/tmp/";

//QDir dir( openmodelica );
QDir dir;
Expand Down
6 changes: 3 additions & 3 deletions OMNotebook/OMNotebookQT4/inputcell.cpp
Expand Up @@ -1179,13 +1179,13 @@ namespace IAEX
QMessageBox::critical( 0, "OpenModelica Error", "Could not find environment variable OPENMODELICAHOME; OMNotebook will therefore not work correctly" );

if( openmodelica.endsWith("/") || openmodelica.endsWith( "\\") )
openmodelica += "bin/";
openmodelica += "tmp/";
else
openmodelica += "/bin/";
openmodelica += "/tmp/";

//QDir dir( openmodelica );
QDir dir = QDir::current();
//dir.setPath( openmodelica );
dir.setPath( openmodelica );
QString imagename = "omc_tmp_plot.png";

QString filename = dir.absolutePath();
Expand Down
15 changes: 13 additions & 2 deletions OMNotebook/OMNotebookQT4/notebook.cpp
Expand Up @@ -2517,10 +2517,21 @@ namespace IAEX
try
{
QDir dir;
if( dir.exists( "OMNotebookHelp.onb" ) )
QString help( getenv( "OPENMODELICAHOME" ) );
if( help.isEmpty() )
QMessageBox::critical( 0, "OpenModelica Error", "Could not find environment variable OPENMODELICAHOME; OMNotebook will therefore not work correctly" );

if( help.endsWith("/") || help.endsWith( "\\") )
help += "bin/";
else
help += "/bin/";

QString helpFile = "OMNotebookHelp.onb";
dir.setPath( help );
if( dir.exists( helpFile ) )
{
application()->commandCenter()->executeCommand(
new OpenFileCommand( "OMNotebookHelp.onb" ));
new OpenFileCommand( help + helpFile ));
}
else
{
Expand Down
Binary file modified OMNotebook/OMNotebookQT4/res.aps
Binary file not shown.

0 comments on commit d7274dd

Please sign in to comment.