Subversion Repositories Projects

Rev

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

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