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().

{ return isTree(t, UIFOLDER);                   }

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().

{ return isTree(t, UIFOLDER, label, elements);  }

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().

{ return isTree(t, UIWIDGET, label, varname, sig); }

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().

{
    if (isNil(path)) {
        //return putFolder(folder, item);
        return addToFolder(folder, item);
    } else {
        Tree subfolder = getFolder(folder, hd(path));
        if (isUiFolder(subfolder)) {
            return putFolder(folder, putSubFolder(subfolder, tl(path), item));
        } else {
            return putFolder(folder, makeSubFolderChain(path, item));
        }
    }
}

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().

{ return tree(UIFOLDER, label, elements);       }

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().

{ return t->branch(0); }

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().

{ return tree(UIWIDGET, label, varname, sig); }

Here is the call graph for this function:

Here is the caller graph for this function: