padrao by HC11112913269

VIEWS: 10 PAGES: 9

									DEFINIÇÃO DO PADRÃO DE ENTRADA

________________________________________________________________________________
tipos dos atributos:

(string) = <sequencia de caracteres>
(text) = <sequencia de strings terminada por #!>
(int) = <numero inteiro>
(fontType) = MONOSPACE ou PROPORTIONAL ou SYSTEM
(fontStyle) = PLAIN ou BOLD ou ITALIC ou UNDERLINED
(fontSize) = LARGE ou MEDIUM ou SMALL
(color) = <numero em hexadecimal na forma RRGGBB>
(relative) = ABS ou XRELATIVE ou YRELATIVE
(scroller) = SCROLLER ou XSCROLLER ou YSCROLLER ou NOTSCROLLER
(inputType) = TEXT ou NUMERIC ou PASSWORD
(buttonType) = ITEM ou SUBMIT ou EXIT




_________________________________________________________________________________
valores default:

      int = 0
      string = ""
      text = "#!"
      color= 000000 - (preto)
      fontType = MONOSPACE
      fontStyle = PLAIN
      fontSize = MEDIUM
      inputType = TEXT
      buttonType = ITEM
      relative = ABS
      scroller = NOTSCROLLER
      focusColor = NOTFOCUS (ou 000000 - (preto), no caso da tag option)
      CHECKED = 0




__________________________________________________________________________________
Elementos:
APPLICATION = 0

(0 <start> (...) )

<application start="(string)">
       <presentation></presentation>
</application>

*** start é o nome da apresentação inicial da aplicação ***


PRESENTATION = 1

(1 <name> (...) )


<presentation name="(string)" >
                     <frame></frame>
                     <label></label>
                     <button></button>
                     <input></input>
                     <select></select>
                     <radio></radio>
                     <checkbox></checkbox>
                     <text></text>
                     <picture></picture>
                     <id></id>
</presentation>




FRAME = 2

(2 <top> <left> <width> <height> <color> <focusColor> <borderSize>
 <borderColor> <relative> <scroller> (...) )


<frame top="(int)"
      left="(int)"
      width="(int)"
      height="(int)"
      color="(color)"
      focusColor="(color)"|"NOTFOCUS"
      borderSize="(int)"
      borderColor="(color)"
       relative="(relative)"
       scroller="(scroller)"
       >
               <frame></frame>
               <label></label>
               <button></button>
               <input></input>
               <select></select>
               <radio></radio>
               <checkbox></checkbox>
               <text></text>
               <picture></picture>
               <id></id>
</frame>




LABEL = 3

(3 <name> <text> <fontSize> <fontType> <fontStyle> <top> <left> <width> <height>
 <color> <focusColor> <relative> <link> <type> <key>)


<label name="(string)"
        text="(string)"
        fontSize="(fontSize)"
        fontType="(fontType)"
        fontStyle="(fontStyle)"
        top="(int)"
        left="(int)"
        width="(int)"
        height="(int)"
        color="(color)"
        focusColor="(color)"|"NOTFOCUS"
        relative="(relative)"
        link="(string)"
        type="(buttonType)"
        key="(int)"
        >
</label>




BUTTON = 4
(4 <name> <text> <fontSize> <fontType> <fontStyle> <top> <left> <width> <height>
 <color> <focusColor> <labelColor> <labelFocus> <relative> <link> <type> )


<button name="(string)"
       text="(string)"
       fontSize="(fontSize)"
       fontType="(fontType)"
       fontStyle="(fontStyle)"
       top="(int)"
       left="(int)"
       width="(int)"
       height="(int)"
       color="(color)"
       focusColor="(color)"|"NOTFOCUS"
       labelColor="(color)"
       labelFocus="(color)"|"NOTFOCUS"
       relative="(relative)"
       link="(string)"
       type="(buttonType)"
       >
</button>




INPUT = 5

(5 <name> <value> <top> <left> <width> <height> <label> <labelWidth>
 <fontSize> <fontType> <fontStyle> <color> <focusColor> <labelColor>
 <labelFocus> <relative> <type> )


<input name="(string)"
       value="(string)"
       top="(int)"
       left="(int)"
       width="(int)"
       height="(int)"
       label="(string)"
       labelWidth="(int)"
       fontSize="(fontSize)"
       fontType="(fontType)"
       fontStyle="(fontStyle)"
       color="(color)"
       focusColor="(color)"|"NOTFOCUS"
       labelColor="(color)"
       labelFocus="(color)"|"NOTFOCUS"
       relative="(relative)"
       type="(inputType)"
       >
</input>




OPTION = 6

(6 <name> <label> <width> <height> <fontSize> <fontType> <fontStyle>
 <color> <focusColor> <value> <markSize> <CHECKED> )


<option name="(string)"
       label="(string)"
       width="(int)"
       height="(int)"
       fontSize="(fontSize)"
       fontType="(fontType)"
       fontStyle="(fontStyle)"
       color="(color)"
       focusColor="(color)"
       value="(int)"
       markSize="(int)"
       CHECKED
       >
</option>




SELECT = 7

(7 <name> <top> <left> <width> <height> <color> <focuscColor> <borderColor> <relative> (...) )


<select name="(string)"
        top="(int)"
        left="(int)"
        width="(int)"
        height="(int)"
        color="(color)"
        focusColor="(color)"
        borderColor="(color)"
        relative="(relative)"
        >
                <option></option>
</select>




RADIO = 8

(8 <name> <top> <left> <relative> (...) )


<radio name="(string)"
       top="(int)"
       left="(int)"
       relative="(relative)"
       >
               <option></option>
</radio>




CHECKBOX = 9

(9 <name> <top> <left> <relative> (...) )


<checkbox name="(string)"
       top="(int)"
       left="(int)"
       relative="(relative)"
       >
               <option></option>
</checkbox>




TEXT = 10

(10 <name> <top> <left> <width> <height> <color> <relative> <text> )
<text name="(string)"
       top="(int)"
       left="(int)"
       width="(int)"
       height="(int)"
       color="(color)"
       relative="(relative)"
       text="(text)"
       >

</text>




PICTURE = 11

(11 <top> <left> <width> <height> <imageName> <relative> )


<picture top="(int)"
       left="(int)"
       width="(int)"
       height="(int)"
       imageName="(string)"
       relative="(relative)"
       >
</picture>



ID = 12

(12 <name> <id> )


<id name="(string)"
       id="(string)"
       >
</id>

__________________________________________________________________________________
RESPONSE

<nome da apresentacao> (
       <nome do campo> <novo valor>
       <nome do campo> <novo valor>
       .
       .
)




__________________________________________________________________________________
SUBMIT

( <nome de quem chamou o submit>
      ( <campo> <valor> )
      ( <campo> <valor> )
      .
      .
)




__________________________________________________________________________________
TRADUTOR

NOTFOCUS = -1;

Element.relative
ABS = 0;
XRELATIVE = 1;
YRELATIVE = 2;

Frame.scroller
NOTSCROLLER = 0;
SCROLLER = 1;
XSCROLLER = 2;
YSCROLLER = 3;

Input.type
TEXT = 0;
NUMERIC = 1;
PASSWORD = 2;

Button.type
ITEM = 0;
SUBMIT = 1;
ADD = 2;
EXIT = 3;

Font.fontType
MONOSPACE = 32;
PROPORTIONAL = 64;
SYSTEM = 0;

Font.fontStyle
PLAIN = 0;
BOLD = 1;
ITALIC = 2;
UNDERLINED = 4;

Font.fontSize
LARGE = 16;
MEDIUM = 0;
SMALL = 8;

Keyboard
K_1 = 49;
K_2 = 50;
K_3 = 51;
K_4 = 52;
K_5 = 53;
K_6 = 54;
K_7 = 55;
K_8 = 56;
K_9 = 57;
K_0 = 48;
STAR = 42;
SHARP = 35;
FIRELEFT = -20;
FIRERIGHT = -21;
MENU = -22;
SEND =-14;
UP = -10;
DOWN = -11;
LEFT = -13;
RIGHT = -12;
UPVOL = -51;
DOWNVOL = -52;
SPEAKER = -53;
PPT = -50;

								
To top