PageRenderTime 1085ms CodeModel.GetById 696ms app.highlight 175ms RepoModel.GetById 208ms app.codeStats 0ms

/indra/newview/macview.r

https://bitbucket.org/lindenlab/viewer-beta/
R | 123 lines | 113 code | 8 blank | 2 comment | 0 complexity | 7dd3add6333316c9ee9efa2a88e4f38e MD5 | raw file
  1/* main.r */
  2
  3#include <Carbon/Carbon.r>
  4#include "macmain.h"
  5
  6resource 'MBAR' (rMenuBar, preload) {
  7        {       /* array MenuArray: 3 elements */
  8                /* [1] */
  9                128,
 10                /* [2] */
 11                129,
 12                /* [3] */
 13                130
 14        }
 15};
 16
 17resource 'MENU' (mApple, preload) {
 18        128,
 19        textMenuProc,
 20        0x7FFFFFFD,
 21        enabled,
 22        apple,
 23        {       /* array: 2 elements */
 24                /* [1] */
 25                "About Second Life", noIcon, noKey, noMark, plain,
 26                /* [2] */
 27                "-", noIcon, noKey, noMark, plain
 28        }
 29};
 30
 31resource 'MENU' (mFile, preload) {
 32        129,
 33        textMenuProc,
 34        0x1400,
 35        enabled,
 36        "File",
 37        {       /* array: 11 elements */
 38                /* [1] */
 39                "New", noIcon, "N", noMark, plain,
 40                /* [2] */
 41                "Open", noIcon, "O", noMark, plain,
 42                /* [3] */
 43                "-", noIcon, noKey, noMark, plain,
 44                /* [4] */
 45                "Close", noIcon, "W", noMark, plain,
 46                /* [5] */
 47                "Save", noIcon, "S", noMark, plain,
 48                /* [6] */
 49                "Save AsÉ", noIcon, noKey, noMark, plain,
 50                /* [7] */
 51                "-", noIcon, noKey, noMark, plain,
 52                /* [8] */
 53                "Page SetupÉ", noIcon, noKey, noMark, plain,
 54                /* [9] */
 55                "PrintÉ", noIcon, noKey, noMark, plain,
 56                /* [10] */
 57                "-", noIcon, noKey, noMark, plain,
 58                /* [11] */
 59                "Quit", noIcon, "Q", noMark, plain
 60        }
 61};
 62
 63resource 'MENU' (mEdit, preload) {
 64        130,
 65        textMenuProc,
 66        0x0,
 67        enabled,
 68        "Edit",
 69        {       /* array: 6 elements */
 70                /* [1] */
 71                "Undo", noIcon, "Z", noMark, plain,
 72                /* [2] */
 73                "-", noIcon, noKey, noMark, plain,
 74                /* [3] */
 75                "Cut", noIcon, "X", noMark, plain,
 76                /* [4] */
 77                "Copy", noIcon, "C", noMark, plain,
 78                /* [5] */
 79                "Paste", noIcon, "V", noMark, plain,
 80                /* [6] */
 81                "Clear", noIcon, noKey, noMark, plain
 82        }
 83};
 84
 85resource 'DITL' (kAboutBox) {
 86        {       /* array DITLarray: 3 elements */
 87                /* [1] */
 88                {16, 21, 38, 208},
 89                StaticText {
 90                        disabled,
 91                        "Hello hello hello..."
 92                },
 93                /* [2] */
 94                {116, 287, 136, 345},
 95                Button {
 96                        enabled,
 97                        "OK"
 98                },
 99                /* [3] */
100                {54, 139, 74, 197},
101                Button {
102                        enabled,
103                        "OK"
104                }
105        }
106};
107
108resource 'ALRT' (kAboutBox) {
109        {40, 40, 139, 280},
110        200,
111        {       /* array: 4 elements */
112                /* [1] */
113                OK, visible, sound1,
114                /* [2] */
115                OK, visible, sound1,
116                /* [3] */
117                OK, visible, sound1,
118                /* [4] */
119                OK, visible, sound1
120        },
121	noAutoCenter
122};
123