Skip to content

Commit

Permalink
Updated imageEditor UI tutorial docs for example expressions path
Browse files Browse the repository at this point in the history
  • Loading branch information
jberlin authored and Andrew Selle committed Nov 24, 2013
1 parent 225a966 commit f690ed2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/doc/uitutorial.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,15 @@ The browser reads from a config.txt file to locate expression files. An example
// Expression browser
SeExprEdBrowser *browser = new SeExprEdBrowser(0, _editor);

// Set path of config.txt file containing example expressions
browser->setSearchPath("imageEditor", "./src/demos/imageEditor");
browser->getExpressionDirs();
// Add user expressions, example expressions to browser list.
browser->addUserExpressionPath("imageEditor");
#ifdef IMAGE_EDITOR_ROOT
std::string exPathStr = IMAGE_EDITOR_ROOT;
exPathStr += "/expressions";
browser->addPath("Examples", exPathStr);
#else
browser->addPath("Examples", "./src/demos/imageEditor");
#endif
browser->update();
</pre>

Expand Down

0 comments on commit f690ed2

Please sign in to comment.