%
% anyremote configuration file for customization of GUI of Java client. (Server-mode)
%

% STATUS stable
% XTEST no
% SOUND no
% ENV no

GuiAppName=Main screen layout configuration example
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=Server
GuiAppDesc=Example of anyRemote Android/J2ME clients main screen layout customization.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);
	
(Connect)=\
	Set(parameter,debug,on);\
	Get(screen_size);\
	Set(title,Example of anyRemote client main screen layout customization);\
	Set(icons,Icons Example,\
		1,vol_down,2,mute,3,vol_up,\
		4,rewind,5,play,6,forward,\
		7,prev,8,stop,9,next,\
		*,question,0,pause,#,no);\
	Macro(Default);\
	Set(volume,60);\
	Macro(SET_MENU);

* *=Set(text,replace,Help,Use menu or buttons,\n0 - set defaults: 3x4 - running text\n1 - fullscreen on\n2 - vibrate\n3 - fullscreen off\nNote: Android client does not supports running text,\n keypad/joystick-only setup and volume bar);

SET_MENU=\
	Set(menu,replace,Default,3x4,7x1,Static Text,Running Text,Joystick Only,Keypad Only,Volume Bar,Fullscreen);

SET_LAYOUT=\
	Set(layout,$(vlayout),$(vticker));\
	Set(status,$(vlayout) - $(vticker));

Back=Set(text,close);Macro(SET_MENU);

Default=\
	Make(var,vlayout,by_value,default);\
	Make(var,vticker,by_value,ticker);\
	Macro(SET_LAYOUT);

3x4=Make(var,vlayout,by_value,3x4);Macro(SET_LAYOUT);
7x1=Make(var,vlayout,by_value,7x1);Macro(SET_LAYOUT);

Static Text=Make(var,vticker,by_value,noticker);Macro(SET_LAYOUT);
Running Text=Make(var,vticker,by_value,ticker);Macro(SET_LAYOUT);

Joystick Only=Set(layout,$(vlayout),$(vticker),keypad_only);
Keypad Only=Set(layout,$(vlayout),$(vticker),joystick_only);
Volume Bar=Set(layout,$(vlayout),$(vticker),volume);
Fullscreen=Set(fullscreen,toggle);

0=Macro(Default);

1=Set(fullscreen,on);
2=Set(vibrate,5);
3=Set(fullscreen,off);

[End]
