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