File: borderrect.cpp

package info (click to toggle)
gilt 2.0-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,192 kB
  • ctags: 733
  • sloc: cpp: 8,867; sh: 8,763; makefile: 81
file content (77 lines) | stat: -rw-r--r-- 2,610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* ************************************************************* *
 *   The Amulet User Interface Development Environment           *
 * ************************************************************* *
 *   Created automatically by the Gilt program in Amulet.        *
 *   Do not edit this file directly.                             *
 *   For more information on Amulet, contact amulet@cs.cmu.edu   *
 * ************************************************************* *
 *   Generated on Tue Jan 21 21:20:36 1997

 *   Amulet version 3.0 alpha
 * ************************************************************* */

#include <amulet.h>
#include "externs.h"

Am_Object Border_Rect_Window;

Am_Slot_Key LOOKS_SELECTED_OBJ = Am_Register_Slot_Name ("LOOKS_SELECTED_OBJ");


Am_Object Border_Rect_Window_Initialize () {
  Border_Rect_Window = Am_Window.Create("MainWindow")
    .Set(Am_DESTROY_WINDOW_METHOD, Am_Default_Pop_Up_Window_Destroy_Method)
    .Set(Am_FILL_STYLE, Am_Motif_Light_Gray)
    .Set(Am_TITLE, "Some Application")
    .Set(Am_ICON_TITLE, "Some Application")
    .Set(Am_WIDTH, 336)
    .Set(Am_HEIGHT, 122)
    .Add_Part(Am_Border_Rectangle.Create()
      .Set(Am_LEFT, 0)
      .Set(Am_TOP, 0)
      .Set(Am_WIDTH, 336)
      .Set(Am_HEIGHT, 122)
      .Set(Am_SELECTED, 0)
      .Set(Am_FILL_STYLE, Am_Motif_Light_Gray)
    )
    .Add_Part(NAME_OBJ, Am_Text_Input_Widget.Create("NAME_OBJ")
      .Set(Am_LEFT, 14)
      .Set(Am_TOP, 13)
      .Set(Am_WIDTH, 319)
      .Set(Am_HEIGHT, 24)
      .Get_Object(Am_COMMAND)
        .Set(Am_LABEL, "Name for item:")
        .Get_Owner()
      .Set(Am_FILL_STYLE, Am_Motif_Light_Gray)
    )
    .Add_Part(Am_Button_Panel.Create()
      .Set(Am_LEFT, 90)
      .Set(Am_TOP, 73)
      .Set(Am_FILL_STYLE, Am_Motif_Light_Gray)
      .Set(Am_LAYOUT, Am_Horizontal_Layout)
      .Set(Am_H_SPACING, 40)
      .Set(Am_V_SPACING, 0)
      .Set(Am_MAX_RANK, 0)
      .Set(Am_ITEMS, Am_Value_List()
        .Add(Am_Standard_OK_Command.Create())
        .Add(Am_Standard_Cancel_Command.Create())
        )
    )
    .Add_Part(LOOKS_SELECTED_OBJ, Am_Checkbox_Panel.Create("LOOKS_SELECTED_OBJ")
      .Set(Am_LEFT, 19)
      .Set(Am_TOP, 42)
      .Set(Am_FILL_STYLE, Am_Motif_Light_Gray)
      .Set(Am_ITEMS, Am_Value_List()
        .Add(Am_Command.Create()
             .Set(Am_LABEL, "Looks Selected")
             .Set(Am_ID, 1))
        )
      .Set(Am_LAYOUT, Am_Vertical_Layout)
      .Set(Am_H_SPACING, 0)
      .Set(Am_V_SPACING, 0)
      .Set(Am_MAX_RANK, 0)
    )
    .Add_Part(Am_Tab_To_Next_Widget_Interactor.Create())
  ;
  return Border_Rect_Window;
}