Rev 245 | Rev 255 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 245 | Rev 252 | ||
---|---|---|---|
1 | public interface DUBwiseUIDefinitions |
1 | public interface DUBwiseUIDefinitions |
2 | { |
2 | { |
- | 3 | ||
- | 4 | // colors |
|
- | 5 | public final static int BG_COLOR_SKIN_DARK = 0x000000; |
|
- | 6 | public final static int BG_COLOR_SKIN_LIGHT = 0xFFFFFF; |
|
- | 7 | public final static int FG_COLOR_SKIN_DARK = 0xFFFFFF; |
|
- | 8 | public final static int FG_COLOR_SKIN_LIGHT = 0x000000; |
|
- | 9 | ||
- | 10 | ||
- | 11 | ||
3 | // id for each state - must just be uniq - order isnt important |
12 | // id for each state - must just be uniq - order isnt important |
4 | public final static byte STATEID_INITIAL =0; |
13 | public final static byte STATEID_INITIAL =0; |
5 | public final static byte STATEID_DEVICESELECT =1; |
14 | public final static byte STATEID_DEVICESELECT =1; |
6 | public final static byte STATEID_MAINMENU =2; |
15 | public final static byte STATEID_MAINMENU =2; |
7 | public final static byte STATEID_MOTORTEST =3; |
16 | public final static byte STATEID_MOTORTEST =3; |
8 | public final static byte STATEID_SELECT_PARAMSET =4; |
17 | public final static byte STATEID_SELECT_PARAMSET =4; |
9 | public final static byte STATEID_EDIT_PARAMS =5; |
18 | public final static byte STATEID_EDIT_PARAMS =5; |
10 | public final static byte STATEID_HANDLE_PARAMS =6; |
19 | public final static byte STATEID_HANDLE_PARAMS =6; |
11 | public final static byte STATEID_LCD =7; |
20 | public final static byte STATEID_LCD =7; |
12 | public final static byte STATEID_RAWDEBUG =8; |
21 | public final static byte STATEID_RAWDEBUG =8; |
13 | public final static byte STATEID_KEYCONTROL =9; |
22 | public final static byte STATEID_KEYCONTROL =9; |
14 | public final static byte STATEID_SETTINGSMENU =10; |
23 | public final static byte STATEID_SETTINGSMENU =10; |
15 | public final static byte STATEID_STICKVIEW =11; |
24 | public final static byte STATEID_STICKVIEW =11; |
16 | public final static byte STATEID_CAMMODE =12; |
25 | public final static byte STATEID_CAMMODE =12; |
17 | public final static byte STATEID_READ_PARAMS =13; |
26 | public final static byte STATEID_READ_PARAMS =13; |
18 | public final static byte STATEID_GPSVIEW =14; |
27 | public final static byte STATEID_GPSVIEW =14; |
19 | public final static byte STATEID_FILEOPEN =15; |
28 | public final static byte STATEID_FILEOPEN =15; |
20 | public final static byte STATEID_GRAPH =16; |
29 | public final static byte STATEID_GRAPH =16; |
21 | public final static byte STATEID_CONN_DETAILS =17; |
30 | public final static byte STATEID_CONN_DETAILS =17; |
22 | public final static byte STATEID_IPINPUT =18; |
31 | public final static byte STATEID_IPINPUT =18; |
23 | public final static byte STATEID_PROXY =19; |
32 | public final static byte STATEID_PROXY =19; |
24 | public final static byte STATEID_TRAFFIC =20; |
33 | public final static byte STATEID_TRAFFIC =20; |
25 | public final static byte STATEID_SELECT_COMPORT =21; |
34 | public final static byte STATEID_SELECT_COMPORT =21; |
26 | public final static byte STATEID_ABOUT =22; |
35 | public final static byte STATEID_ABOUT =22; |
27 | public final static byte STATEID_ERROR_MSG =23; |
36 | public final static byte STATEID_ERROR_MSG =23; |
28 | public final static byte STATEID_FLASHING =24; |
37 | public final static byte STATEID_FLASHING =24; |
29 | public final static byte STATEID_NAMEINPUT =25; |
38 | public final static byte STATEID_NAMEINPUT =25; |
30 | public final static byte STATEID_DATABUFF =26; |
39 | public final static byte STATEID_DATABUFF =26; |
31 | public final static byte STATEID_HORIZON =27; |
40 | public final static byte STATEID_HORIZON =27; |
32 | public final static byte STATEID_SUCCESS_MSG =28; |
41 | public final static byte STATEID_SUCCESS_MSG =28; |
33 | public final static byte STATEID_STRINGINPUT =29; |
42 | public final static byte STATEID_STRINGINPUT =29; |
34 | public final static byte STATEID_SCANNING =30; |
43 | public final static byte STATEID_SCANNING =30; |
35 | public final static byte STATEID_RESET_PARAMS =31; |
44 | public final static byte STATEID_RESET_PARAMS =31; |
36 | public final static byte STATEID_PARAM_MENU =32; |
45 | public final static byte STATEID_PARAM_MENU =32; |
- | 46 | public final static byte STATEID_PARAM_MASSWRITE =33; |
|
37 | public final static byte STATEID_COUNT =33; |
47 | public final static byte STATEID_COUNT =34; |
38 | 48 | ||
39 | 49 | ||
40 | 50 | ||
41 | public final static byte ACTIONID_SETTINGS = 0; |
51 | public final static byte ACTIONID_SETTINGS = 0; |
42 | public final static byte ACTIONID_DEVICESELECT = 1; |
52 | public final static byte ACTIONID_DEVICESELECT = 1; |
43 | public final static byte ACTIONID_DEBUG = 2; |
53 | public final static byte ACTIONID_DEBUG = 2; |
44 | public final static byte ACTIONID_CONN_DETAILS = 3; |
54 | public final static byte ACTIONID_CONN_DETAILS = 3; |
45 | public final static byte ACTIONID_SWITCH_NC = 4; |
55 | public final static byte ACTIONID_SWITCH_NC = 4; |
46 | public final static byte ACTIONID_SWITCH_FC = 5; |
56 | public final static byte ACTIONID_SWITCH_FC = 5; |
47 | public final static byte ACTIONID_GRAPH = 6; |
57 | public final static byte ACTIONID_GRAPH = 6; |
48 | public final static byte ACTIONID_LCD = 7; |
58 | public final static byte ACTIONID_LCD = 7; |
49 | public final static byte ACTIONID_RAWDEBUG = 8; |
59 | public final static byte ACTIONID_RAWDEBUG = 8; |
50 | public final static byte ACTIONID_RCDATA = 9; |
60 | public final static byte ACTIONID_RCDATA = 9; |
51 | public final static byte ACTIONID_KEYCONTROL = 10; |
61 | public final static byte ACTIONID_KEYCONTROL = 10; |
52 | public final static byte ACTIONID_MOTORTEST = 11; |
62 | public final static byte ACTIONID_MOTORTEST = 11; |
53 | public final static byte ACTIONID_EDIT_PARAMS = 12; |
63 | public final static byte ACTIONID_EDIT_PARAMS = 12; |
54 | public final static byte ACTIONID_CAM = 13; |
64 | public final static byte ACTIONID_CAM = 13; |
55 | public final static byte ACTIONID_PROXY = 14; |
65 | public final static byte ACTIONID_PROXY = 14; |
56 | public final static byte ACTIONID_GPSDATA = 15; |
66 | public final static byte ACTIONID_GPSDATA = 15; |
57 | public final static byte ACTIONID_TRAFFIC = 16; |
67 | public final static byte ACTIONID_TRAFFIC = 16; |
58 | public final static byte ACTIONID_ABOUT = 17; |
68 | public final static byte ACTIONID_ABOUT = 17; |
59 | public final static byte ACTIONID_NC_ERRORS = 18; |
69 | public final static byte ACTIONID_NC_ERRORS = 18; |
60 | public final static byte ACTIONID_WRITE_PARAMS = 19; |
70 | public final static byte ACTIONID_WRITE_PARAMS = 19; |
61 | public final static byte ACTIONID_UNDO_PARAMS = 20; |
71 | public final static byte ACTIONID_UNDO_PARAMS = 20; |
62 | public final static byte ACTIONID_MAINMENU = 21; |
72 | public final static byte ACTIONID_MAINMENU = 21; |
63 | public final static byte ACTIONID_HORIZON = 22; |
73 | public final static byte ACTIONID_HORIZON = 22; |
64 | public final static byte ACTIONID_WRITE_PARAM_AS = 23; |
74 | public final static byte ACTIONID_WRITE_PARAM_AS = 23; |
65 | public final static byte ACTIONID_PARAM_WRITE_OK = 24; |
75 | public final static byte ACTIONID_PARAM_WRITE_OK = 24; |
66 | public final static byte ACTIONID_PARAM_MENU = 25; |
76 | public final static byte ACTIONID_PARAM_MENU = 25; |
67 | public final static byte ACTIONID_PARAM_LOAD_MOBILE = 26; |
77 | public final static byte ACTIONID_PARAM_LOAD_MOBILE = 26; |
68 | public final static byte ACTIONID_PARAM_COPY_MOBILE = 27; |
78 | public final static byte ACTIONID_PARAM_COPY_MOBILE = 27; |
69 | public final static byte ACTIONID_DATABUFF = 28; |
79 | public final static byte ACTIONID_DATABUFF = 28; |
70 | public final static byte ACTIONID_SWITCH_MK3MAG = 29; |
80 | public final static byte ACTIONID_SWITCH_MK3MAG = 29; |
71 | public final static byte ACTIONID_CONNECT_TCP = 30; |
81 | public final static byte ACTIONID_CONNECT_TCP = 30; |
72 | public final static byte ACTIONID_SCAN_BT = 31; |
82 | public final static byte ACTIONID_SCAN_BT = 31; |
73 | public final static byte ACTIONID_SELECT_COM = 32; |
83 | public final static byte ACTIONID_SELECT_COM = 32; |
74 | public final static byte ACTIONID_PROXY_INPUT = 33; |
84 | public final static byte ACTIONID_PROXY_INPUT = 33; |
75 | public final static byte ACTIONID_FLASH = 34; |
85 | public final static byte ACTIONID_FLASH = 34; |
76 | public final static byte ACTIONID_RESET_PARAMS = 35; |
86 | public final static byte ACTIONID_RESET_PARAMS = 35; |
77 | public final static byte ACTIONID_BACK_TO_CONNDETAILS = 36; |
87 | public final static byte ACTIONID_BACK_TO_CONNDETAILS = 36; |
78 | public final static byte ACTIONID_SELECT_PARAMS = 37; |
88 | public final static byte ACTIONID_SELECT_PARAMS = 37; |
79 | public final static byte ACTIONID_RENAME_PARAMS = 38; |
89 | public final static byte ACTIONID_RENAME_PARAMS = 38; |
80 | public final static byte ACTIONID_QUIT = 100; |
90 | public final static byte ACTIONID_QUIT = 100; |
81 | 91 | ||
82 | 92 | ||
83 | 93 | ||
84 | 94 | ||
85 | public final static String[] param_menu_items={"Edit Settings","Copy all to Mobile","Load from Mobile","Reinitialize all","back"}; |
95 | public final static String[] param_menu_items={"Edit Settings","Copy all to Mobile","Load from Mobile","Reinitialize all","back"}; |
86 | public final static byte[] param_menu_actions={ACTIONID_SELECT_PARAMS,ACTIONID_PARAM_COPY_MOBILE,ACTIONID_PARAM_LOAD_MOBILE,ACTIONID_RESET_PARAMS,ACTIONID_MAINMENU}; |
96 | public final static byte[] param_menu_actions={ACTIONID_SELECT_PARAMS,ACTIONID_PARAM_COPY_MOBILE,ACTIONID_PARAM_LOAD_MOBILE,ACTIONID_RESET_PARAMS,ACTIONID_MAINMENU}; |
87 | 97 | ||
88 | 98 | ||
89 | public final static String[] handle_params_menu_items={"Edit Content","Rename","Save AS","Save","Read Again","back"}; |
99 | public final static String[] handle_params_menu_items={"Edit Content","Rename","Save AS","Save","Read Again","back"}; |
90 | public final static byte[] handle_params_menu_actions={ACTIONID_EDIT_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_WRITE_PARAMS,ACTIONID_UNDO_PARAMS,ACTIONID_SELECT_PARAMS }; |
100 | public final static byte[] handle_params_menu_actions={ACTIONID_EDIT_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_WRITE_PARAMS,ACTIONID_UNDO_PARAMS,ACTIONID_SELECT_PARAMS }; |
91 | 101 | ||
92 | 102 | ||
93 | /* |
103 | /* |
94 | public final static String[] conn_details_menu_items={ "packet Traffic","view Data","connect via TCP/IP","connect via BT","connect via COM","set Proxy","back" }; |
104 | public final static String[] conn_details_menu_items={ "packet Traffic","view Data","connect via TCP/IP","connect via BT","connect via COM","set Proxy","back" }; |
95 | public final static byte[] conn_details_menu_actions={ ACTIONID_TRAFFIC,ACTIONID_DATABUFF,ACTIONID_CONNECT_TCP,ACTIONID_SCAN_BT, ACTIONID_SELECT_COM,ACTIONID_PROXY_INPUT,ACTIONID_MAINMENU}; |
105 | public final static byte[] conn_details_menu_actions={ ACTIONID_TRAFFIC,ACTIONID_DATABUFF,ACTIONID_CONNECT_TCP,ACTIONID_SCAN_BT, ACTIONID_SELECT_COM,ACTIONID_PROXY_INPUT,ACTIONID_MAINMENU}; |
96 | */ |
106 | */ |
97 | 107 | ||
98 | public final static String[] onlyback_menu_items={"back" }; |
108 | public final static String[] onlyback_menu_items={"back" }; |
99 | public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS}; |
109 | public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS}; |
100 | 110 | ||
101 | 111 | ||
102 | final static byte SKINID_DARK= 0; |
112 | final static byte SKINID_DARK= 0; |
103 | final static byte SKINID_LIGHT = 1; |
113 | final static byte SKINID_LIGHT = 1; |
104 | 114 | ||
105 | 115 | ||
106 | 116 | ||
107 | final static String[] credits= { |
117 | final static String[] credits= { |
108 | //#expand "About DUBwise v%VERSION%", |
118 | //#expand "About DUBwise v%VERSION%", |
109 | "", |
119 | "", |
110 | "", |
120 | "", |
111 | "Digital UFO", |
121 | "Digital UFO", |
112 | "Broadcasting With ", |
122 | "Broadcasting With ", |
113 | "Byteelligent Service", |
123 | "Byteelligent Service", |
114 | "Equipment", |
124 | "Equipment", |
115 | "", |
125 | "", |
116 | "2007-2008 by ", |
126 | "2007-2008 by ", |
117 | "Marcus LiGi B"+(char)(252)+"schleb", |
127 | "Marcus LiGi B"+(char)(252)+"schleb", |
118 | "mailto:ligi"+"@"+"ligi.de", |
128 | "mailto:ligi"+"@"+"ligi.de", |
119 | "", |
129 | "", |
120 | "Licence:", |
130 | "Licence:", |
121 | "Creative Commons(CC)", |
131 | "Creative Commons(CC)", |
122 | " -Attribution", |
132 | " -Attribution", |
123 | " -Noncommercial", |
133 | " -Noncommercial", |
124 | " -Share Alike", |
134 | " -Share Alike", |
125 | " -No Violence", |
135 | " -No Violence", |
126 | " ", |
136 | " ", |
127 | "Credits: ", |
137 | "Credits: ", |
128 | " -HolgerB&IngoB", |
138 | " -HolgerB&IngoB", |
129 | " -CaScAdE", |
139 | " -CaScAdE", |
130 | " -Orion8", |
140 | " -Orion8", |
131 | " -Joko", |
141 | " -Joko", |
132 | " -Speedy", |
142 | " -Speedy", |
133 | " -Jamiro", |
143 | " -Jamiro", |
134 | "", |
144 | "", |
135 | "More Infos:", |
145 | "More Infos:", |
136 | " www.ligi.de", |
146 | " www.ligi.de", |
137 | " www.mikrokopter.com"}; |
147 | " www.mikrokopter.com"}; |
138 | 148 | ||
139 | 149 | ||
140 | public final static char[] idle_seq={'.','_','-','='}; |
150 | public final static char[] idle_seq={'.','_','-','='}; |
141 | 151 | ||
142 | 152 | ||
143 | public final static int[] default_ip={192,168,1,42,4242}; |
153 | public final static int[] default_ip={192,168,1,42,4242}; |
144 | 154 | ||
145 | 155 | ||
146 | 156 | ||
147 | 157 | ||
148 | } |
158 | } |
149 | 159 |