create xtext text

    // Here we could add generic widget fields and stuff if necessary
    addfield text file -indirect . filename
    addclass text output

addobject x1text text