Rev 222 | Rev 224 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 222 | Rev 223 | ||
---|---|---|---|
1 | public interface DUBwiseUIDefinitions |
1 | public interface DUBwiseUIDefinitions |
2 | { |
2 | { |
3 | 3 | ||
4 | 4 | ||
5 | // id for each state - must just be uniq - order isnt important |
5 | // id for each state - must just be uniq - order isnt important |
6 | public final static byte STATEID_SCANNING =0; |
6 | public final static byte STATEID_INITIAL =0; |
7 | public final static byte STATEID_DEVICESELECT =1; |
7 | public final static byte STATEID_DEVICESELECT =1; |
8 | public final static byte STATEID_MAINMENU =2; |
8 | public final static byte STATEID_MAINMENU =2; |
9 | public final static byte STATEID_MOTORTEST =3; |
9 | public final static byte STATEID_MOTORTEST =3; |
10 | public final static byte STATEID_SELECT_PARAMSET =4; |
10 | public final static byte STATEID_SELECT_PARAMSET =4; |
11 | public final static byte STATEID_EDIT_PARAMS =5; |
11 | public final static byte STATEID_EDIT_PARAMS =5; |
12 | public final static byte STATEID_HANDLE_PARAMS =6; |
12 | public final static byte STATEID_HANDLE_PARAMS =6; |
13 | public final static byte STATEID_FLIGHTVIEW =7; |
13 | public final static byte STATEID_FLIGHTVIEW =7; |
14 | public final static byte STATEID_RAWDEBUG =8; |
14 | public final static byte STATEID_RAWDEBUG =8; |
15 | public final static byte STATEID_KEYCONTROL =9; |
15 | public final static byte STATEID_KEYCONTROL =9; |
16 | public final static byte STATEID_SETTINGSMENU =10; |
16 | public final static byte STATEID_SETTINGSMENU =10; |
17 | public final static byte STATEID_STICKVIEW =11; |
17 | public final static byte STATEID_STICKVIEW =11; |
18 | public final static byte STATEID_CAMMODE =12; |
18 | public final static byte STATEID_CAMMODE =12; |
19 | public final static byte STATEID_READ_PARAMS =13; |
19 | public final static byte STATEID_READ_PARAMS =13; |
20 | public final static byte STATEID_GPSVIEW =14; |
20 | public final static byte STATEID_GPSVIEW =14; |
21 | public final static byte STATEID_FILEOPEN =15; |
21 | public final static byte STATEID_FILEOPEN =15; |
22 | public final static byte STATEID_GRAPH =16; |
22 | public final static byte STATEID_GRAPH =16; |
23 | public final static byte STATEID_CONN_DETAILS =17; |
23 | public final static byte STATEID_CONN_DETAILS =17; |
24 | public final static byte STATEID_IPINPUT =18; |
24 | public final static byte STATEID_IPINPUT =18; |
25 | public final static byte STATEID_PROXY =19; |
25 | public final static byte STATEID_PROXY =19; |
26 | public final static byte STATEID_TRAFFIC =20; |
26 | public final static byte STATEID_TRAFFIC =20; |
27 | public final static byte STATEID_SELECT_COMPORT =21; |
27 | public final static byte STATEID_SELECT_COMPORT =21; |
28 | public final static byte STATEID_ABOUT =22; |
28 | public final static byte STATEID_ABOUT =22; |
29 | public final static byte STATEID_NC_ERRORS =23; |
29 | public final static byte STATEID_NC_ERRORS =23; |
30 | public final static byte STATEID_FLASHING =24; |
30 | public final static byte STATEID_FLASHING =24; |
31 | public final static byte STATEID_NAMEINPUT =25; |
31 | public final static byte STATEID_NAMEINPUT =25; |
32 | public final static byte STATEID_DATABUFF =26; |
32 | public final static byte STATEID_DATABUFF =26; |
33 | public final static byte STATEID_HORIZON =27; |
33 | public final static byte STATEID_HORIZON =27; |
34 | //public final static byte STATEID_SELECT_SPEED_FORMAT=28; |
34 | //public final static byte STATEID_SELECT_SPEED_FORMAT=28; |
35 | public final static byte STATEID_STRINGINPUT =29; |
35 | public final static byte STATEID_STRINGINPUT =29; |
- | 36 | public final static byte STATEID_SCANNING =30; |
|
- | 37 | public final static byte LAST_STATEID =30; |
|
36 | 38 | ||
37 | 39 | ||
38 | 40 | ||
39 | public final static byte ACTIONID_SETTINGS = 0; |
41 | public final static byte ACTIONID_SETTINGS = 0; |
40 | public final static byte ACTIONID_DEVICESELECT = 1; |
42 | public final static byte ACTIONID_DEVICESELECT = 1; |
41 | public final static byte ACTIONID_DEBUG = 2; |
43 | public final static byte ACTIONID_DEBUG = 2; |
42 | public final static byte ACTIONID_CONN_DETAILS = 3; |
44 | public final static byte ACTIONID_CONN_DETAILS = 3; |
43 | public final static byte ACTIONID_SWITCH_NC = 4; |
45 | public final static byte ACTIONID_SWITCH_NC = 4; |
44 | public final static byte ACTIONID_SWITCH_FC = 5; |
46 | public final static byte ACTIONID_SWITCH_FC = 5; |
45 | 47 | ||
46 | public final static byte ACTIONID_GRAPH = 6; |
48 | public final static byte ACTIONID_GRAPH = 6; |
47 | public final static byte ACTIONID_LCD = 7; |
49 | public final static byte ACTIONID_LCD = 7; |
48 | public final static byte ACTIONID_RAWDEBUG = 8; |
50 | public final static byte ACTIONID_RAWDEBUG = 8; |
49 | public final static byte ACTIONID_RCDATA = 9; |
51 | public final static byte ACTIONID_RCDATA = 9; |
50 | public final static byte ACTIONID_KEYCONTROL = 10; |
52 | public final static byte ACTIONID_KEYCONTROL = 10; |
51 | public final static byte ACTIONID_MOTORTEST = 11; |
53 | public final static byte ACTIONID_MOTORTEST = 11; |
52 | public final static byte ACTIONID_EDIT_PARAMS = 12; |
54 | public final static byte ACTIONID_EDIT_PARAMS = 12; |
53 | public final static byte ACTIONID_CAM = 13; |
55 | public final static byte ACTIONID_CAM = 13; |
54 | public final static byte ACTIONID_PROXY = 14; |
56 | public final static byte ACTIONID_PROXY = 14; |
55 | public final static byte ACTIONID_GPSDATA = 15; |
57 | public final static byte ACTIONID_GPSDATA = 15; |
56 | public final static byte ACTIONID_TRAFFIC = 16; |
58 | public final static byte ACTIONID_TRAFFIC = 16; |
57 | public final static byte ACTIONID_ABOUT = 17; |
59 | public final static byte ACTIONID_ABOUT = 17; |
58 | public final static byte ACTIONID_NC_ERRORS = 18; |
60 | public final static byte ACTIONID_NC_ERRORS = 18; |
59 | 61 | ||
60 | 62 | ||
61 | public final static byte ACTIONID_WRITE_PARAMS = 19; |
63 | public final static byte ACTIONID_WRITE_PARAMS = 19; |
62 | public final static byte ACTIONID_UNDO_PARAMS = 20; |
64 | public final static byte ACTIONID_UNDO_PARAMS = 20; |
63 | public final static byte ACTIONID_MAINMENU = 21; |
65 | public final static byte ACTIONID_MAINMENU = 21; |
64 | 66 | ||
65 | 67 | ||
- | 68 | public final static byte ACTIONID_HORIZON = 22; |
|
66 | public final static byte ACTIONID_HORIZON = 22; |
69 | public final static byte ACTIONID_WRITE_PARAM_AS = 23; |
67 | // public final static byte ACTIONID_SOUNDTOGGLE = 23; |
70 | // public final static byte ACTIONID_SOUNDTOGGLE = 23; |
68 | // public final static byte ACTIONID_VIBRATOGGLE = 24; |
71 | // public final static byte ACTIONID_VIBRATOGGLE = 24; |
69 | // public final static byte ACTIONID_GRAPHTOGGLE = 25; |
72 | // public final static byte ACTIONID_GRAPHTOGGLE = 25; |
70 | // public final static byte ACTIONID_FULLSCREENTOGGLE = 26; |
73 | // public final static byte ACTIONID_FULLSCREENTOGGLE = 26; |
71 | // public final static byte ACTIONID_LIGHTTOGGLE =27; |
74 | // public final static byte ACTIONID_LIGHTTOGGLE =27; |
72 | public final static byte ACTIONID_DATABUFF =28; |
75 | public final static byte ACTIONID_DATABUFF =28; |
73 | 76 | ||
74 | 77 | ||
75 | public final static byte ACTIONID_SWITCH_MK3MAG = 29; |
78 | public final static byte ACTIONID_SWITCH_MK3MAG = 29; |
76 | public final static byte ACTIONID_CONNECT_TCP =30; |
79 | public final static byte ACTIONID_CONNECT_TCP =30; |
77 | public final static byte ACTIONID_SCAN_BT =31; |
80 | public final static byte ACTIONID_SCAN_BT =31; |
78 | public final static byte ACTIONID_SELECT_COM =32; |
81 | public final static byte ACTIONID_SELECT_COM =32; |
79 | public final static byte ACTIONID_PROXY_INPUT =33; |
82 | public final static byte ACTIONID_PROXY_INPUT =33; |
80 | public final static byte ACTIONID_FLASH =34; |
83 | public final static byte ACTIONID_FLASH =34; |
81 | public final static byte ACTIONID_RESET_PARAMS =35; |
84 | public final static byte ACTIONID_RESET_PARAMS =35; |
82 | 85 | ||
83 | public final static byte ACTIONID_BACK_TO_CONNDETAILS=36; |
86 | public final static byte ACTIONID_BACK_TO_CONNDETAILS=36; |
84 | // public final static byte ACTIONID_SELECT_GPS_FORMAT=37; |
87 | // public final static byte ACTIONID_SELECT_GPS_FORMAT=37; |
85 | // public final static byte ACTIONID_SET_GPS_FORMAT_DECIMAL=38; |
88 | // public final static byte ACTIONID_SET_GPS_FORMAT_DECIMAL=38; |
86 | // public final static byte ACTIONID_SET_GPS_FORMAT_MINSEC=39; |
89 | // public final static byte ACTIONID_SET_GPS_FORMAT_MINSEC=39; |
87 | 90 | ||
88 | 91 | ||
89 | 92 | ||
90 | //public final static byte ACTIONID_SELECT_SPEED_FORMAT=40; |
93 | //public final static byte ACTIONID_SELECT_SPEED_FORMAT=40; |
91 | //public final static byte ACTIONID_SET_SPEED_FORMAT_KMH=41; |
94 | //public final static byte ACTIONID_SET_SPEED_FORMAT_KMH=41; |
92 | //public final static byte ACTIONID_SET_SPEED_FORMAT_MPH=42; |
95 | //public final static byte ACTIONID_SET_SPEED_FORMAT_MPH=42; |
93 | //public final static byte ACTIONID_SET_SPEED_FORMAT_CMS=43; |
96 | //public final static byte ACTIONID_SET_SPEED_FORMAT_CMS=43; |
94 | 97 | ||
95 | public final static byte ACTIONID_RENAME_PARAMS=44; |
98 | public final static byte ACTIONID_RENAME_PARAMS=44; |
96 | //public final static byte ACTIONID_TOGGLE_EXPERT=45; |
99 | //public final static byte ACTIONID_TOGGLE_EXPERT=45; |
97 | 100 | ||
98 | 101 | ||
99 | public final static byte ACTIONID_QUIT = 100; |
102 | public final static byte ACTIONID_QUIT = 100; |
100 | 103 | ||
101 | 104 | ||
102 | 105 | ||
103 | public final static String[] handle_params_menu_items={"write to MK","don't write to MK","discard/read again","rename","all to default"}; |
106 | public final static String[] handle_params_menu_items={"save","save as","discard/read again","rename","all to default","to Main-Menu"}; |
104 | public final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_MAINMENU,ACTIONID_UNDO_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_RESET_PARAMS}; |
107 | public final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_WRITE_PARAM_AS,ACTIONID_UNDO_PARAMS,ACTIONID_RENAME_PARAMS,ACTIONID_RESET_PARAMS,ACTIONID_MAINMENU}; |
105 | 108 | ||
106 | 109 | ||
107 | 110 | ||
108 | 111 | ||
109 | 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" }; |
112 | 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" }; |
110 | 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}; |
113 | 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}; |
111 | 114 | ||
112 | 115 | ||
113 | /* |
116 | /* |
114 | public final static String[] set_gps_format_menu_items={ "Decimal" , "Min/Sec","Back" }; |
117 | public final static String[] set_gps_format_menu_items={ "Decimal" , "Min/Sec","Back" }; |
115 | public final static byte[] set_gps_format_menu_actions={ ACTIONID_SET_GPS_FORMAT_DECIMAL , ACTIONID_SET_GPS_FORMAT_MINSEC,ACTIONID_MAINMENU}; |
118 | public final static byte[] set_gps_format_menu_actions={ ACTIONID_SET_GPS_FORMAT_DECIMAL , ACTIONID_SET_GPS_FORMAT_MINSEC,ACTIONID_MAINMENU}; |
116 | 119 | ||
117 | 120 | ||
118 | 121 | ||
119 | public final static String[] set_speed_format_menu_items={ "Kilometers/Hour" , "Miles/Hour", "CM/Sec","Back" }; |
122 | public final static String[] set_speed_format_menu_items={ "Kilometers/Hour" , "Miles/Hour", "CM/Sec","Back" }; |
120 | public final static byte[] set_speed_format_menu_actions={ ACTIONID_SET_SPEED_FORMAT_KMH , ACTIONID_SET_SPEED_FORMAT_MPH , ACTIONID_SET_SPEED_FORMAT_CMS,ACTIONID_SETTINGS}; |
123 | public final static byte[] set_speed_format_menu_actions={ ACTIONID_SET_SPEED_FORMAT_KMH , ACTIONID_SET_SPEED_FORMAT_MPH , ACTIONID_SET_SPEED_FORMAT_CMS,ACTIONID_SETTINGS}; |
121 | 124 | ||
122 | 125 | ||
123 | 126 | ||
124 | public final static String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling BG ","FullScreen " ,"GPS-Format","Speed-Format", |
127 | public final static String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling BG ","FullScreen " ,"GPS-Format","Speed-Format", |
125 | //#if devicecontrol=="on" |
128 | //#if devicecontrol=="on" |
126 | "Keep BGLight " , |
129 | "Keep BGLight " , |
127 | //#endif |
130 | //#endif |
128 | "Expert Mode", |
131 | "Expert Mode", |
129 | "Back" }; |
132 | "Back" }; |
130 | 133 | ||
131 | 134 | ||
132 | public final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE , ACTIONID_FULLSCREENTOGGLE ,ACTIONID_SELECT_GPS_FORMAT,ACTIONID_SELECT_SPEED_FORMAT, |
135 | public final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE , ACTIONID_FULLSCREENTOGGLE ,ACTIONID_SELECT_GPS_FORMAT,ACTIONID_SELECT_SPEED_FORMAT, |
133 | //#if devicecontrol=="on" |
136 | //#if devicecontrol=="on" |
134 | ACTIONID_LIGHTTOGGLE, |
137 | ACTIONID_LIGHTTOGGLE, |
135 | //#endif |
138 | //#endif |
136 | ACTIONID_TOGGLE_EXPERT, |
139 | ACTIONID_TOGGLE_EXPERT, |
137 | ACTIONID_MAINMENU }; |
140 | ACTIONID_MAINMENU }; |
138 | 141 | ||
139 | 142 | ||
140 | */ |
143 | */ |
141 | public final static String[] onlyback_menu_items={"back" }; |
144 | public final static String[] onlyback_menu_items={"back" }; |
142 | public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS}; |
145 | public final static byte[] back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS}; |
143 | 146 | ||
144 | 147 | ||
145 | 148 | ||
146 | 149 | ||
147 | 150 | ||
148 | final static byte SKINID_DARK= 0; |
151 | final static byte SKINID_DARK= 0; |
149 | final static byte SKINID_LIGHT = 1; |
152 | final static byte SKINID_LIGHT = 1; |
150 | 153 | ||
151 | 154 | ||
152 | 155 | ||
153 | final static String[] credits= { |
156 | final static String[] credits= { |
154 | //#expand "About DUBwise v%VERSION%", |
157 | //#expand "About DUBwise v%VERSION%", |
155 | "", |
158 | "", |
156 | "", |
159 | "", |
157 | "Digital UFO", |
160 | "Digital UFO", |
158 | "Broadcasting With ", |
161 | "Broadcasting With ", |
159 | "Byteelligent Service", |
162 | "Byteelligent Service", |
160 | "Equipment", |
163 | "Equipment", |
161 | "", |
164 | "", |
162 | "2007-2008 by ", |
165 | "2007-2008 by ", |
163 | "Marcus LiGi B"+(char)(252)+"schleb", |
166 | "Marcus LiGi B"+(char)(252)+"schleb", |
164 | "mailto:ligi"+"@"+"ligi.de", |
167 | "mailto:ligi"+"@"+"ligi.de", |
165 | "", |
168 | "", |
166 | "Licence:", |
169 | "Licence:", |
167 | "Creative Commons(CC)", |
170 | "Creative Commons(CC)", |
168 | " -Attribution", |
171 | " -Attribution", |
169 | " -Noncommercial", |
172 | " -Noncommercial", |
170 | " -Share Alike", |
173 | " -Share Alike", |
171 | " -No Violence", |
174 | " -No Violence", |
172 | " ", |
175 | " ", |
173 | "Credits: ", |
176 | "Credits: ", |
174 | " -HolgerB&IngoB", |
177 | " -HolgerB&IngoB", |
175 | " -CaScAdE", |
178 | " -CaScAdE", |
176 | " -Orion8", |
179 | " -Orion8", |
177 | " -Joko", |
180 | " -Joko", |
178 | " -Speedy", |
181 | " -Speedy", |
179 | " -Jamiro", |
182 | " -Jamiro", |
180 | "", |
183 | "", |
181 | "More Infos:", |
184 | "More Infos:", |
182 | " www.ligi.de", |
185 | " www.ligi.de", |
183 | " www.mikrokopter.com"}; |
186 | " www.mikrokopter.com"}; |
184 | 187 | ||
185 | 188 | ||
186 | public final static char[] idle_seq={'.','_','-','='}; |
189 | public final static char[] idle_seq={'.','_','-','='}; |
187 | 190 | ||
188 | 191 | ||
189 | public final static int[] default_ip={192,168,1,42,4242}; |
192 | public final static int[] default_ip={192,168,1,42,4242}; |
190 | 193 | ||
191 | 194 | ||
192 | 195 | ||
193 | 196 | ||
194 | } |
197 | } |
195 | 198 |