| 1 |
! UIMX ascii 2.0 key: 8365 |
| 2 |
|
| 3 |
*translation.table: CursorTab |
| 4 |
*translation.parent: LabelCursor |
| 5 |
*translation.policy: override |
| 6 |
*translation.<Key>Delete: delete-previous-character() |
| 7 |
*translation.<Key>BackSpace: delete-previous-character() |
| 8 |
*translation.<Key>osfBackSpace: delete-previous-character() |
| 9 |
*translation.<Key>osfDelete: delete-previous-character() |
| 10 |
|
| 11 |
*LabelCursor.class: topLevelShell |
| 12 |
*LabelCursor.parent: NO_PARENT |
| 13 |
*LabelCursor.static: true |
| 14 |
*LabelCursor.gbldecl: #include <stdio.h>\ |
| 15 |
#include <ExternResources.h>\ |
| 16 |
#include <alice_global.h> |
| 17 |
*LabelCursor.ispecdecl: |
| 18 |
*LabelCursor.funcdecl: swidget create_LabelCursor()\ |
| 19 |
|
| 20 |
*LabelCursor.funcname: create_LabelCursor |
| 21 |
*LabelCursor.funcdef: "swidget", "<create_LabelCursor>(%)" |
| 22 |
*LabelCursor.icode: |
| 23 |
*LabelCursor.fcode: return(rtrn);\ |
| 24 |
|
| 25 |
*LabelCursor.auxdecl: |
| 26 |
*LabelCursor.name: LabelCursor |
| 27 |
*LabelCursor.x: 533 |
| 28 |
*LabelCursor.y: 448 |
| 29 |
*LabelCursor.width: 384 |
| 30 |
*LabelCursor.height: 148 |
| 31 |
*LabelCursor.keyboardFocusPolicy: "pointer" |
| 32 |
*LabelCursor.iconName: "Label Cursor" |
| 33 |
|
| 34 |
*form10.class: form |
| 35 |
*form10.parent: LabelCursor |
| 36 |
*form10.static: true |
| 37 |
*form10.name: form10 |
| 38 |
*form10.resizePolicy: "resize_none" |
| 39 |
*form10.unitType: "pixels" |
| 40 |
*form10.x: 52 |
| 41 |
*form10.y: 16 |
| 42 |
*form10.width: 182 |
| 43 |
*form10.height: 98 |
| 44 |
*form10.background: WindowBackground |
| 45 |
|
| 46 |
*form11.class: form |
| 47 |
*form11.parent: form10 |
| 48 |
*form11.static: true |
| 49 |
*form11.name: form11 |
| 50 |
*form11.resizePolicy: "resize_none" |
| 51 |
*form11.x: 0 |
| 52 |
*form11.y: 96 |
| 53 |
*form11.width: 386 |
| 54 |
*form11.height: 52 |
| 55 |
*form11.background: ButtonBackground |
| 56 |
|
| 57 |
*OkLabelCursor.class: pushButton |
| 58 |
*OkLabelCursor.parent: form11 |
| 59 |
*OkLabelCursor.static: true |
| 60 |
*OkLabelCursor.name: OkLabelCursor |
| 61 |
*OkLabelCursor.x: 132 |
| 62 |
*OkLabelCursor.y: 12 |
| 63 |
*OkLabelCursor.width: 90 |
| 64 |
*OkLabelCursor.height: 30 |
| 65 |
*OkLabelCursor.background: ButtonBackground |
| 66 |
*OkLabelCursor.fontList: BoldTextFont |
| 67 |
*OkLabelCursor.foreground: ButtonForeground |
| 68 |
*OkLabelCursor.labelString: "Ok" |
| 69 |
*OkLabelCursor.activateCallback: {\ |
| 70 |
char label[240];\ |
| 71 |
strcpy(label, UxGetText(UxFindSwidget("LabelText")));\ |
| 72 |
labelCursor(label,plotAngle,plotSize,plotFont);\ |
| 73 |
\ |
| 74 |
\ |
| 75 |
\ |
| 76 |
\ |
| 77 |
} |
| 78 |
*OkLabelCursor.highlightOnEnter: "true" |
| 79 |
*OkLabelCursor.highlightColor: "Black" |
| 80 |
|
| 81 |
*CancelLabel.class: pushButton |
| 82 |
*CancelLabel.parent: form11 |
| 83 |
*CancelLabel.static: true |
| 84 |
*CancelLabel.name: CancelLabel |
| 85 |
*CancelLabel.x: 240 |
| 86 |
*CancelLabel.y: 12 |
| 87 |
*CancelLabel.width: 90 |
| 88 |
*CancelLabel.height: 30 |
| 89 |
*CancelLabel.background: ButtonBackground |
| 90 |
*CancelLabel.fontList: BoldTextFont |
| 91 |
*CancelLabel.foreground: CancelForeground |
| 92 |
*CancelLabel.labelString: "Cancel" |
| 93 |
*CancelLabel.activateCallback: {\ |
| 94 |
UxPopdownInterface(LabelCursor);\ |
| 95 |
} |
| 96 |
*CancelLabel.highlightOnEnter: "true" |
| 97 |
*CancelLabel.highlightColor: "Black" |
| 98 |
|
| 99 |
*DefaultLabel.class: pushButton |
| 100 |
*DefaultLabel.parent: form11 |
| 101 |
*DefaultLabel.static: true |
| 102 |
*DefaultLabel.name: DefaultLabel |
| 103 |
*DefaultLabel.x: 24 |
| 104 |
*DefaultLabel.y: 12 |
| 105 |
*DefaultLabel.width: 90 |
| 106 |
*DefaultLabel.height: 30 |
| 107 |
*DefaultLabel.background: ButtonBackground |
| 108 |
*DefaultLabel.fontList: BoldTextFont |
| 109 |
*DefaultLabel.foreground: ButtonForeground |
| 110 |
*DefaultLabel.labelString: "Default" |
| 111 |
*DefaultLabel.activateCallback: {\ |
| 112 |
plotFont = 0;\ |
| 113 |
plotAngle = 0.0;\ |
| 114 |
plotSize = 1.5;\ |
| 115 |
UxPutText(UxFindSwidget("AngleText"),"0");\ |
| 116 |
UxPutText(UxFindSwidget("SizeText"),"1.5");\ |
| 117 |
UxPutText(UxFindSwidget("FontText"),"Standard");\ |
| 118 |
UxPutText(UxFindSwidget("LabelText"),"");\ |
| 119 |
} |
| 120 |
*DefaultLabel.highlightOnEnter: "true" |
| 121 |
*DefaultLabel.highlightColor: "Black" |
| 122 |
|
| 123 |
*separator2.class: separator |
| 124 |
*separator2.parent: form10 |
| 125 |
*separator2.static: true |
| 126 |
*separator2.name: separator2 |
| 127 |
*separator2.x: -2 |
| 128 |
*separator2.y: 90 |
| 129 |
*separator2.width: 386 |
| 130 |
*separator2.height: 6 |
| 131 |
*separator2.background: ButtonBackground |
| 132 |
|
| 133 |
*LabelText.class: text |
| 134 |
*LabelText.parent: form10 |
| 135 |
*LabelText.static: true |
| 136 |
*LabelText.name: LabelText |
| 137 |
*LabelText.x: 60 |
| 138 |
*LabelText.y: 6 |
| 139 |
*LabelText.width: 316 |
| 140 |
*LabelText.height: 32 |
| 141 |
*LabelText.background: TextBackground |
| 142 |
*LabelText.maxLength: 240 |
| 143 |
*LabelText.highlightOnEnter: "true" |
| 144 |
*LabelText.fontList: TextFont |
| 145 |
*LabelText.translations: CursorTab |
| 146 |
*LabelText.foreground: TextForeground |
| 147 |
*LabelText.highlightColor: "Black" |
| 148 |
*LabelText.marginHeight: 3 |
| 149 |
|
| 150 |
*label13.class: label |
| 151 |
*label13.parent: form10 |
| 152 |
*label13.static: true |
| 153 |
*label13.name: label13 |
| 154 |
*label13.x: 6 |
| 155 |
*label13.y: 8 |
| 156 |
*label13.width: 52 |
| 157 |
*label13.height: 30 |
| 158 |
*label13.background: LabelBackground |
| 159 |
*label13.labelString: "Text :" |
| 160 |
*label13.fontList: TextFont |
| 161 |
*label13.foreground: TextForeground |
| 162 |
*label13.highlightColor: "Black" |
| 163 |
|
| 164 |
*AngleText.class: text |
| 165 |
*AngleText.parent: form10 |
| 166 |
*AngleText.static: true |
| 167 |
*AngleText.name: AngleText |
| 168 |
*AngleText.x: 68 |
| 169 |
*AngleText.y: 50 |
| 170 |
*AngleText.width: 42 |
| 171 |
*AngleText.height: 32 |
| 172 |
*AngleText.background: TextBackground |
| 173 |
*AngleText.losingFocusCallback: {\ |
| 174 |
float aux_angle;\ |
| 175 |
char out[20];\ |
| 176 |
if( plotModAngle)\ |
| 177 |
{ plotModAngle = FALSE;\ |
| 178 |
if(sscanf(UxGetText( UxFindSwidget("AngleText") ) ,"%f",&aux_angle)==1)\ |
| 179 |
plotAngle = aux_angle;\ |
| 180 |
else\ |
| 181 |
{\ |
| 182 |
sprintf(out,"%g",plotAngle);\ |
| 183 |
UxPutText( UxFindSwidget("AngleText") ,out); \ |
| 184 |
out_error("Invalid angle input");\ |
| 185 |
} \ |
| 186 |
}\ |
| 187 |
} |
| 188 |
*AngleText.modifyVerifyCallback: {\ |
| 189 |
plotModAngle = TRUE;\ |
| 190 |
} |
| 191 |
*AngleText.maxLength: 40 |
| 192 |
*AngleText.highlightOnEnter: "true" |
| 193 |
*AngleText.fontList: TextFont |
| 194 |
*AngleText.translations: CursorTab |
| 195 |
*AngleText.foreground: TextForeground |
| 196 |
*AngleText.highlightColor: "Black" |
| 197 |
*AngleText.marginHeight: 3 |
| 198 |
|
| 199 |
*SizeText.class: text |
| 200 |
*SizeText.parent: form10 |
| 201 |
*SizeText.static: true |
| 202 |
*SizeText.name: SizeText |
| 203 |
*SizeText.x: 170 |
| 204 |
*SizeText.y: 50 |
| 205 |
*SizeText.width: 42 |
| 206 |
*SizeText.height: 32 |
| 207 |
*SizeText.background: TextBackground |
| 208 |
*SizeText.losingFocusCallback: {\ |
| 209 |
float aux_size;\ |
| 210 |
char out[20];\ |
| 211 |
if( plotModSize)\ |
| 212 |
{ plotModSize = FALSE;\ |
| 213 |
if(sscanf(UxGetText( UxFindSwidget("SizeText" )) ,"%f",&aux_size)==1)\ |
| 214 |
plotSize = aux_size;\ |
| 215 |
else\ |
| 216 |
{\ |
| 217 |
sprintf(out,"%g",plotSize);\ |
| 218 |
UxPutText(UxFindSwidget("SizeText") ,out); \ |
| 219 |
out_error("Invalid size input");\ |
| 220 |
} \ |
| 221 |
}\ |
| 222 |
} |
| 223 |
*SizeText.modifyVerifyCallback: {\ |
| 224 |
plotModSize = TRUE;\ |
| 225 |
} |
| 226 |
*SizeText.maxLength: 40 |
| 227 |
*SizeText.highlightOnEnter: "true" |
| 228 |
*SizeText.fontList: TextFont |
| 229 |
*SizeText.translations: CursorTab |
| 230 |
*SizeText.foreground: TextForeground |
| 231 |
*SizeText.highlightColor: "Black" |
| 232 |
*SizeText.marginHeight: 3 |
| 233 |
|
| 234 |
*FontText.class: text |
| 235 |
*FontText.parent: form10 |
| 236 |
*FontText.static: true |
| 237 |
*FontText.name: FontText |
| 238 |
*FontText.x: 254 |
| 239 |
*FontText.y: 50 |
| 240 |
*FontText.width: 94 |
| 241 |
*FontText.height: 32 |
| 242 |
*FontText.background: TextBackground |
| 243 |
*FontText.editable: "false" |
| 244 |
*FontText.maxLength: 20 |
| 245 |
*FontText.columns: 12 |
| 246 |
*FontText.highlightOnEnter: "true" |
| 247 |
*FontText.fontList: TextFont |
| 248 |
*FontText.cursorPositionVisible: "false" |
| 249 |
*FontText.foreground: TextForeground |
| 250 |
*FontText.highlightColor: "Black" |
| 251 |
*FontText.marginHeight: 3 |
| 252 |
*FontText.marginWidth: 3 |
| 253 |
|
| 254 |
*label14.class: label |
| 255 |
*label14.parent: form10 |
| 256 |
*label14.static: true |
| 257 |
*label14.name: label14 |
| 258 |
*label14.x: 10 |
| 259 |
*label14.y: 50 |
| 260 |
*label14.width: 58 |
| 261 |
*label14.height: 30 |
| 262 |
*label14.background: LabelBackground |
| 263 |
*label14.labelString: "Angle :" |
| 264 |
*label14.fontList: TextFont |
| 265 |
*label14.foreground: TextForeground |
| 266 |
*label14.highlightColor: "Black" |
| 267 |
|
| 268 |
*label15.class: label |
| 269 |
*label15.parent: form10 |
| 270 |
*label15.static: true |
| 271 |
*label15.name: label15 |
| 272 |
*label15.x: 110 |
| 273 |
*label15.y: 50 |
| 274 |
*label15.width: 58 |
| 275 |
*label15.height: 30 |
| 276 |
*label15.background: LabelBackground |
| 277 |
*label15.labelString: "Size :" |
| 278 |
*label15.fontList: TextFont |
| 279 |
*label15.foreground: TextForeground |
| 280 |
*label15.highlightColor: "Black" |
| 281 |
|
| 282 |
*label16.class: label |
| 283 |
*label16.parent: form10 |
| 284 |
*label16.static: true |
| 285 |
*label16.name: label16 |
| 286 |
*label16.x: 214 |
| 287 |
*label16.y: 50 |
| 288 |
*label16.width: 40 |
| 289 |
*label16.height: 30 |
| 290 |
*label16.background: LabelBackground |
| 291 |
*label16.labelString: "Font :" |
| 292 |
*label16.fontList: TextFont |
| 293 |
*label16.foreground: TextForeground |
| 294 |
*label16.highlightColor: "Black" |
| 295 |
|
| 296 |
*arrowButton13.class: arrowButton |
| 297 |
*arrowButton13.parent: form10 |
| 298 |
*arrowButton13.static: true |
| 299 |
*arrowButton13.name: arrowButton13 |
| 300 |
*arrowButton13.x: 346 |
| 301 |
*arrowButton13.y: 48 |
| 302 |
*arrowButton13.width: 30 |
| 303 |
*arrowButton13.height: 20 |
| 304 |
*arrowButton13.foreground: MenuBackground |
| 305 |
*arrowButton13.activateCallback: {\ |
| 306 |
if(plotFont < 5)\ |
| 307 |
plotFont++;\ |
| 308 |
else \ |
| 309 |
plotFont = 0;\ |
| 310 |
putFontText(plotFont);\ |
| 311 |
} |
| 312 |
*arrowButton13.highlightOnEnter: "true" |
| 313 |
*arrowButton13.background: TextBackground |
| 314 |
|
| 315 |
*arrowButton14.class: arrowButton |
| 316 |
*arrowButton14.parent: form10 |
| 317 |
*arrowButton14.static: true |
| 318 |
*arrowButton14.name: arrowButton14 |
| 319 |
*arrowButton14.x: 346 |
| 320 |
*arrowButton14.y: 66 |
| 321 |
*arrowButton14.width: 30 |
| 322 |
*arrowButton14.height: 20 |
| 323 |
*arrowButton14.arrowDirection: "arrow_down" |
| 324 |
*arrowButton14.foreground: MenuBackground |
| 325 |
*arrowButton14.activateCallback: {\ |
| 326 |
if(plotFont > 1)\ |
| 327 |
plotFont--;\ |
| 328 |
else \ |
| 329 |
plotFont = 5;\ |
| 330 |
putFontText(plotFont);\ |
| 331 |
} |
| 332 |
*arrowButton14.highlightOnEnter: "true" |
| 333 |
*arrowButton14.background: TextBackground |
| 334 |
|