Subversion Repositories Projects

Rev

Rev 258 | Rev 269 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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