home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / ODF / AMSample / Sources / Views.fr < prev   
Encoding:
Text File  |  1996-06-03  |  6.7 KB  |  246 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    File:                Views.fr
  3. //    Release Version:    $ ODF 1 $
  4. //
  5. //    Contains:            Resources defining the Form part's views
  6. //
  7. //  WARNING: THIS FILE WAS GENERATED BY APPMAKER, DO NOT EDIT IT DIRECTLY, UNLESS YOU 
  8. //           WON'T MAKE ANYMORE CHANGES WITH APPMAKER.
  9. //
  10. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  11. //========================================================================================
  12.  
  13. #ifndef FWRESFIL_K
  14. #include "FWResFil.k"
  15. #endif
  16.  
  17. #ifndef FWVIEWS_FR
  18. #include "FWViews.fr"
  19. #endif
  20.  
  21. #ifndef AMVIEWS_FR
  22. #include "AMViews.fr"
  23. #endif
  24.  
  25. #ifndef FWNOTDEF_H
  26. #include "FWNotDef.h"     
  27. #endif
  28.  
  29. #ifndef DEFINES_K
  30. #include "Defines.k"
  31. #endif
  32.  
  33. //========================================================================================
  34. // resource FW_RFrameLayout(kMainWindowID)
  35. //========================================================================================
  36. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  37.  
  38. #define H    FW_FIX(462)
  39. #define V    FW_FIX(333)
  40.  
  41. #define H1    H + FW_FIX(1)
  42. #define V1    V + FW_FIX(1)
  43.  
  44. resource FW_RFrameLayout(kMainWindowResID)
  45. {
  46.     {H,V},                    // LayoutSize
  47.     {                        // Start list of frame's subviews
  48.         FW_RStaticText        // Headline
  49.         (
  50.             kHeadlineTextID,            // view id
  51.             { FW_FIX(12),FW_FIX(12),FW_FIX((12+432)),FW_FIX((12+28))},
  52.             FW_kFixedBounds,        // binding
  53.             { FW_FIX(24), FW_kPlain, "Helvetica" },
  54.             "AppMaker, Your Assistant Programmer"
  55.         ),
  56.         FW_RStaticText        // Tagline
  57.         (
  58.             kTaglineTextID,            // view id
  59.             { FW_FIX(12),FW_FIX(44),FW_FIX((12+416)),FW_FIX((44+17))},
  60.             FW_kFixedBounds,        // binding
  61.             { FW_FIX(12), FW_kBold, "Helvetica" },
  62.             "Helps you program the user interface for an OpenDoc editor."
  63.         ),
  64.         FW_RButton        // CreatesViews
  65.         (
  66.             kCreatesViewsCheckID,                // view id
  67.             { FW_FIX(224),FW_FIX(68),FW_FIX((224+223)),FW_FIX((68+16))},
  68.             FW_kFixedBounds,                // binding
  69.             0,                                // control message
  70.             0,                                // receiver
  71.             1,                                // control value
  72.             FW_kCheckButton,                // button kind
  73.             { FW_FIX(12), FW_kPlain, "systemFont" },
  74.             "Creates ODF View Resources"            
  75.         ),
  76.         FW_RButton        // GeneratesCode
  77.         (
  78.             kGeneratesCodeCheckID,                // view id
  79.             { FW_FIX(224),FW_FIX(88),FW_FIX((224+217)),FW_FIX((88+16))},
  80.             FW_kFixedBounds,                // binding
  81.             0,                                // control message
  82.             0,                                // receiver
  83.             1,                                // control value
  84.             FW_kCheckButton,                // button kind
  85.             { FW_FIX(12), FW_kPlain, "systemFont" },
  86.             "Generates C++ Source Code"            
  87.         ),
  88.         RRectView        // Pict
  89.         (
  90.             kPictID,                // view id
  91.             { FW_FIX(12),FW_FIX(68),FW_FIX((12+200)),FW_FIX((68+200))},
  92.             FW_kFixedBounds,                // binding
  93.             { 200, 200 /*kPictExtentX, kPictExtentY*/ },    // extent
  94.             0,                            // not the ContentView
  95.             FW_kNoScrolling,            // scrolling direction
  96.             {                            // Start list of SubViews
  97.                 RPictView        // Bowers
  98.                 (
  99.                     kBowersPictID,        // view id
  100.                     { FW_FIX(1),FW_FIX(1),FW_FIX((1+198)),FW_FIX((1+198))},
  101.                     FW_kFixedBounds,        // binding
  102.                     1000                // PICT rsrc id
  103.                 )
  104.             }        // end SubViews
  105.         ),
  106.         FW_RListBox        // Gadgets
  107.         (
  108.             kGadgetsListBoxID,            // view id
  109.             { FW_FIX(224),FW_FIX(112),FW_FIX((224+107)),FW_FIX((112+121))},
  110.             FW_kFixedBounds,                // binding
  111.             10,                                // number of rows
  112.             1,                                // vertical SB
  113.             0,                                // single selection
  114.             1,                                // use focus frame
  115.             0,                                // use clientdata
  116.             0,                                // DblClick message
  117.             { FW_FIX(12), FW_kPlain, "systemFont" },
  118.             {                                // List of strings
  119.                 "Button",
  120.                 "Check box",
  121.                 "Radio Group",
  122.                 "Static Text",
  123.                 "Edit Text",
  124.                 "Picture",
  125.                 "Rectangle",
  126.                 "Popup",
  127.                 "List"
  128.             }
  129.         ),
  130.         RRadioGroup    // Generate
  131.         (
  132.             kGenerateGroupID,            // view id
  133.             { FW_FIX(348),FW_FIX(112),FW_FIX((348+92)),FW_FIX((112+96))},
  134.             FW_kFixedBounds,                // binding
  135.             {FW_FIX(92),FW_FIX(96)},    // extent
  136.             0,                            // not the ContentView
  137.             FW_kNoScrolling,            // scrolling direction
  138.             {                            // Start list of SubViews
  139.             FW_RGroupBox    // Generate
  140.             (
  141.                 0,                // view id
  142.                 { FW_FIX(0),FW_FIX(0),FW_FIX(92),FW_FIX(96)},
  143.                 FW_kFixedBounds,                // binding
  144.                 { FW_FIX(12), FW_kPlain, "systemFont" },
  145.                 "Generate"
  146.             ),
  147.                 FW_RButton    // Menus
  148.                 (
  149.                     1,        // view id
  150.                     { FW_FIX(5),FW_FIX(20),FW_FIX(91),FW_FIX(36)},
  151.                     FW_kFixedBounds,                // binding
  152.                     0,                                // control message
  153.                     0,                                // receiver
  154.                     0,                                // control value
  155.                     FW_kRadioButton,                // button kind
  156.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  157.                     "Menus"            
  158.                 ),
  159.                 FW_RButton    // Frames
  160.                 (
  161.                     2,        // view id
  162.                     { FW_FIX(5),FW_FIX(38),FW_FIX(91),FW_FIX(54)},
  163.                     FW_kFixedBounds,                // binding
  164.                     0,                                // control message
  165.                     0,                                // receiver
  166.                     0,                                // control value
  167.                     FW_kRadioButton,                // button kind
  168.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  169.                     "Frames"            
  170.                 ),
  171.                 FW_RButton    // Dialogs
  172.                 (
  173.                     3,        // view id
  174.                     { FW_FIX(5),FW_FIX(56),FW_FIX(91),FW_FIX(72)},
  175.                     FW_kFixedBounds,                // binding
  176.                     0,                                // control message
  177.                     0,                                // receiver
  178.                     0,                                // control value
  179.                     FW_kRadioButton,                // button kind
  180.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  181.                     "Dialogs"            
  182.                 ),
  183.                 FW_RButton    // Windoids
  184.                 (
  185.                     4,        // view id
  186.                     { FW_FIX(5),FW_FIX(74),FW_FIX(91),FW_FIX(90)},
  187.                     FW_kFixedBounds,                // binding
  188.                     0,                                // control message
  189.                     0,                                // receiver
  190.                     0,                                // control value
  191.                     FW_kRadioButton,                // button kind
  192.                     { FW_FIX(12), FW_kPlain, "systemFont" },
  193.                     "Windoids"            
  194.                 )
  195.             },                            // end list of SubViews
  196.             FW_RRadioCluster    
  197.             (
  198.                 1,                // Dummy field
  199.                 {1, 2, 3, 4}        // list of radio ids
  200.             )
  201.         )            // end of RRadioGroup,
  202.         FW_REditView    // WwwAddress
  203.         (
  204.             kWwwAddressEditID,                // view id
  205.             { FW_FIX(228),FW_FIX(252),FW_FIX((228+212)),FW_FIX((252+14))},
  206.             FW_kFixedBounds,            // binding
  207.             -1,                            // max chars
  208.             9,                            // attributes
  209.             { FW_FIX(9), FW_kPlain, "Geneva" },
  210.             "http://members.aol.com/bowersdev"                    // initial text
  211.         ),
  212.         FW_RStaticText        // Footnote1
  213.         (
  214.             kFootnote1TextID,            // view id
  215.             { FW_FIX(12),FW_FIX(284),FW_FIX((12+415)),FW_FIX((284+15))},
  216.             FW_kFixedBounds,        // binding
  217.             { FW_FIX(12), FW_kPlain, "Times" },
  218.             "This shows some of the gadgets you can create without typing a line of code. "
  219.         ),
  220.         FW_RStaticText        // Footnote2
  221.         (
  222.             kFootnote2TextID,            // view id
  223.             { FW_FIX(12),FW_FIX(300),FW_FIX((12+380)),FW_FIX((300+15))},
  224.             FW_kFixedBounds,        // binding
  225.             { FW_FIX(12), FW_kPlain, "Times" },
  226.             "Just point and click, then let AppMaker generate code for you."
  227.         ),
  228.         FW_RGrowBox
  229.         (
  230.             'grow',                            // view Id
  231.             {H - FW_SBSIZE, V - FW_SBSIZE, H1, V1},        // bounds
  232.             FW_kGrowBoxBinding                // standard grow box binding
  233.         )
  234.  
  235.     },                        // End list of frame's subviews
  236.     {                        // Scroller
  237.     }
  238. };
  239.  
  240. #undef H
  241. #undef V
  242.  
  243. #undef H1
  244. #undef V1
  245.  
  246.