Subversion Repositories Projects

Rev

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