FAUST compiler  0.9.9.6b8
Functions
uitree.hh File Reference
#include "tlib.hh"
Include dependency graph for uitree.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Tree uiFolder (Tree label, Tree elements=nil)
 
Tree uiWidget (Tree label, Tree varname, Tree sig)
 
bool isUiFolder (Tree t)
 
bool isUiFolder (Tree t, Tree &label, Tree &elements)
 
bool isUiWidget (Tree t, Tree &label, Tree &varname, Tree &sig)
 
Tree uiLabel (Tree t)
 
Tree putSubFolder (Tree folder, Tree path, Tree item)
 

Function Documentation

bool isUiFolder ( Tree  t)

Definition at line 136 of file uitree.cpp.

References isTree().

Referenced by Description::addGroup(), addToFolder(), Compiler::generateMacroInterfaceTree(), Compiler::generateUserInterfaceTree(), getFolder(), Compiler::prepareUserInterfaceTree(), putFolder(), and putSubFolder().

136 { return isTree(t, UIFOLDER); }
Sym UIFOLDER
Definition: uitree.cpp:134
bool isTree(const Tree &t, const Node &n)
Definition: tree.cpp:305

Here is the call graph for this function:

Here is the caller graph for this function:

bool isUiFolder ( Tree  t,
Tree label,
Tree elements 
)

Definition at line 137 of file uitree.cpp.

References isTree().

137 { return isTree(t, UIFOLDER, label, elements); }
Sym UIFOLDER
Definition: uitree.cpp:134
bool isTree(const Tree &t, const Node &n)
Definition: tree.cpp:305

Here is the call graph for this function:

bool isUiWidget ( Tree  t,
Tree label,
Tree varname,
Tree sig 
)

Definition at line 141 of file uitree.cpp.

References isTree().

Referenced by Description::addGroup(), Compiler::generateMacroInterfaceTree(), and Compiler::generateUserInterfaceTree().

141 { return isTree(t, UIWIDGET, label, varname, sig); }
Sym UIWIDGET
Definition: uitree.cpp:139
bool isTree(const Tree &t, const Node &n)
Definition: tree.cpp:305

Here is the call graph for this function:

Here is the caller graph for this function:

Tree putSubFolder ( Tree  folder,
Tree  path,
Tree  item 
)

Definition at line 186 of file uitree.cpp.

References addToFolder(), getFolder(), hd(), isNil(), isUiFolder(), makeSubFolderChain(), putFolder(), putSubFolder(), and tl().

Referenced by Compiler::addUIWidget(), and putSubFolder().

187 {
188  if (isNil(path)) {
189  //return putFolder(folder, item);
190  return addToFolder(folder, item);
191  } else {
192  Tree subfolder = getFolder(folder, hd(path));
193  if (isUiFolder(subfolder)) {
194  return putFolder(folder, putSubFolder(subfolder, tl(path), item));
195  } else {
196  return putFolder(folder, makeSubFolderChain(path, item));
197  }
198  }
199 }
static Tree getFolder(Tree folder, Tree ilabel)
Definition: uitree.cpp:164
static Tree putFolder(Tree folder, Tree item)
Definition: uitree.cpp:146
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Definition: tree.hh:109
Tree hd(Tree l)
Definition: list.hh:133
bool isNil(Tree l)
Definition: list.hh:137
static Tree makeSubFolderChain(Tree path, Tree elem)
Definition: uitree.cpp:176
Tree putSubFolder(Tree folder, Tree path, Tree item)
Definition: uitree.cpp:186
bool isUiFolder(Tree t)
Definition: uitree.cpp:136
Tree tl(Tree l)
Definition: list.hh:134
Tree addToFolder(Tree folder, Tree item)
Definition: uitree.cpp:155

Here is the call graph for this function:

Here is the caller graph for this function:

Tree uiFolder ( Tree  label,
Tree  elements = nil 
)

Definition at line 135 of file uitree.cpp.

References tree().

Referenced by addToFolder(), makeSubFolderChain(), and putFolder().

135 { return tree(UIFOLDER, label, elements); }
Sym UIFOLDER
Definition: uitree.cpp:134
Tree tree(const Node &n)
Definition: tree.hh:186

Here is the call graph for this function:

Here is the caller graph for this function:

Tree uiLabel ( Tree  t)
inline

Definition at line 38 of file uitree.hh.

References CTree::branch().

Referenced by addToFolder(), and putFolder().

38 { return t->branch(0); }
Tree branch(int i) const
return the ith branch (subtree) of a tree
Definition: tree.hh:145

Here is the call graph for this function:

Here is the caller graph for this function:

Tree uiWidget ( Tree  label,
Tree  varname,
Tree  sig 
)

Definition at line 140 of file uitree.cpp.

References tree().

Referenced by ScalarCompiler::generateButton(), ScalarCompiler::generateCheckbox(), ScalarCompiler::generateHBargraph(), ScalarCompiler::generateHSlider(), ScalarCompiler::generateNumEntry(), ScalarCompiler::generateVBargraph(), and ScalarCompiler::generateVSlider().

140 { return tree(UIWIDGET, label, varname, sig); }
Sym UIWIDGET
Definition: uitree.cpp:139
Tree tree(const Node &n)
Definition: tree.hh:186

Here is the call graph for this function:

Here is the caller graph for this function: