diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-23 20:47:54 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-23 20:47:54 (GMT) |
commit | f3d16e23b959be4eb05c50e09a880b1e642f3432 (patch) | |
tree | 9e27ce8f230fa3c8645c363a3823d82649839261 /src/context.h | |
parent | 64c3be3fd7734f94f1057825ad66ba4ac2393134 (diff) |
Multiple non-MDI assumptions were made, setting CWD and assuming it didn't change. Fix required to pass more context to nodes (functions). It's not totally clean, but it's a start. Fixes bugs: opening multiple files simultaneously only loaded the first file, refreshing an scad file referencing an external file failed if another scad file was opened in the meantime.
git-svn-id: http://svn.clifford.at/openscad/trunk@451 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h index e78c883..fa67992 100644 --- a/src/context.h +++ b/src/context.h @@ -14,6 +14,7 @@ public: const QHash<QString, class AbstractFunction*> *functions_p; const QHash<QString, class AbstractModule*> *modules_p; const class ModuleInstantiation *inst_p; + QString document_path; static QVector<const Context*> ctx_stack; @@ -25,6 +26,8 @@ public: void set_variable(QString name, Value value); Value lookup_variable(QString name, bool silent = false) const; + QString get_absolute_path(const QString &filename) const; + Value evaluate_function(QString name, const QVector<QString> &argnames, const QVector<Value> &argvalues) const; class AbstractNode *evaluate_module(const ModuleInstantiation *inst) const; }; |