#include #include #include #include #include #include #include #include #include /* * Very quick and dirty 3x4 version. */ main() { World* world = new World(); ButtonState *st = new ButtonState(1); StringEditor* Homework_1; world->InsertApplication( /*Init3X4Sheet() { */ new Tray( /* * Outermost vbox contains 3 rows: top-row labels, spread sheet proper, * bottom rows of stats. */ new VBox( /* new VGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ /* * Here's the hbox for the top-row labels. */ new HBox( /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ Homework_1 = new Frame(new StringEditor(st, " ")), /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ Homework_2 = new Frame(new StringEditor(st, " ")), /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ Final = new Frame(new StringEditor(st, " ")) ), /* new VGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ /* * Here's the hbox for the spread sheet proper. */ new HBox( new VBox( Jones = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ Smith = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ Zeno = new Frame(new StringEditor(st, " ")) ), /* new HGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ new VBox( ja100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ sa100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ za95 = new Frame(new StringEditor(st, " ")) ), /* new HGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ new VBox( jb100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ sb100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ zb95 = new Frame(new StringEditor(st, " ")) ), /* new HGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ new VBox( jc100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ sc100 = new Frame(new StringEditor(st, " ")), /* new VGlue(round(0.2*inch),round(1.0*inch),round(1.0*inch)),*/ zc95 = new Frame(new StringEditor(st, " ")) ) ), /* new VGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ /* * Here's the hbox for the bottom-row stats. */ new HBox( STATS: = new Frame(new StringEditor(st, " ")), /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ a295 = new Frame(new StringEditor(st, " ")), /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ b295 = new Frame(new StringEditor(st, " ")), /* new HGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch)),*/ c295 = new Frame(new StringEditor(st, " ")) ) /* new VGlue(round(0.2*inch), round(1.0*inch), round(1.0*inch))*/ ) )); Smith->Message("Smith"); Homework_1->Message("Homework 1"); world->Run(); delete world; return 0; } /* * Put m x n Cells in the display sheet. */ /*InitSheet*/