2daysoft.com yrgo forum

The most customizable UI software for Windows Mobile.
It is currently Sat Sep 11, 2010 12:58 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Several constants used in yrgo_userdesktop.xml
PostPosted: Sun Feb 15, 2009 9:01 pm 
Offline
Site Admin

Joined: Tue Aug 26, 2008 10:49 am
Posts: 515
Location: Czech republic
Gadget types
Code:
   YGT_CLOCK = 1,
   YGT_BATTERY_INFO = 2,
   YGT_GSM_NETWORK = 3,
   YGT_MISSED_CALLS_EVENT = 4,
   YGT_UNREAD_SMS_EVENT = 5,
   YGT_SHOW_PAGE = 6,
   YGT_SIGNAL_STRENGTH = 7,
   YGT_DATE = 8,
   YGT_LINE = 9,
   YGT_ACTION = 10,
   YGT_FAVORITES_DETAILS = 11,
   YGT_ACTIONS_HISTORY_DETAILS = 12,
   YGT_UNREAD_MMS_EVENT = 13,
   YGT_ALARM = 14,
   YGT_SWITCH_TO_DESKTOP = 15,
   YGT_UNREAD_EMAIL_EVENT = 16,
   YGT_BLUETOOTH = 17,
   YGT_SMS_DETAILS = 18,
   YGT_MEMORY = 19,
   YGT_FAVORITES = 20,
   YGT_ACTIONS_HISTORY = 21,
   YGT_TASKS = 22,
   YGT_APPOINTMENT_PANEL = 23,
   YGT_LAST_INCOMING_CALL_PANEL = 24,
   YGT_TODAY_PLUGIN = 25,
   YGT_YRGO_PLUGIN = 26,
   YGT_CALENDAR = 27,
   YGT_CONNECTION_MANAGER = 28,
   YGT_VOLUME = 29,
   YGT_DESKTOP_SWITCHER = 30,
   YGT_MOST_USED_ACTIONS = 31,
   YGT_MOST_USED_SETTINGS = 32,
   YGT_MOST_USED_APPLICATIONS = 33,
   YGT_MOST_USED_CALLS = 34,
   YGT_MOST_WRITTEN_SMS = 35,
   YGT_LABEL = 36,
   YGT_BIG_SMS_PANEL = 37,
   YGT_LAST_INCOMING_CALL = 38,


Action types
Code:
   YA_MAKE_CALL = 0,
   YA_EXECUTE_CONTROL_PANEL = 1,
   YA_EXECUTE_FILE = 2,
   YA_WRITE_SMS = 3,
   YA_OFFICE = 4,
   YA_WRITE_EMAIL = 5,
   YA_SHOW_PAGE = 6,
   YA_CONTACT = 7,
   YA_SUBMENU = 8,
   YA_HELPTUTORIAL = 9,


Page IDs
Some of the page IDs requires additional parameters (eg. Call log) - this I'll describe later if you'll make pressure on me :-)

The lines that starts with '//' are not used any more.

Code:
   YP_MAINMENU = 0,
   YP_CALL_LOG = 1,
   YP_CALL_LOG_INCOMING = 2,
   YP_CALL_LOG_OUTGOING = 3,
   YP_CALL_LOG_MISSED = 4,
   YP_READ_SMS = 5,
   YP_WRITE_SMS = 6,
//   YP_SMS = 7,
   YP_SMS_ITEMS = 8,
   YP_BATTERY_INFO = 9,
//   YP_MESSAGE_BOX = 10,
   YP_REGISTRATION = 11,
   YP_YRGO_SETTINGS = 12,
//   YP_YRGO_OFFICE = 13,
   YP_IMAGE_VIEW = 14,
   YP_FAVORITES = 15,
   YP_CONTACT_DETAILS = 16,
   YP_FILE_LIST = 17,
   YP_TASK_LIST = 18,
   YP_CONTACTS = 19,
//   YP_CALL_LOG_MENU = 20,
   YP_PROGRAMS = 21,
   YP_EXPLORE_ROOT = 22,
   YP_CONTROL_PANEL = 23,
   YP_ACTIONS_HISTORY = 24,
   YP_SYSTEM_INFO = 25,
   YP_RUNNING_APPS = 26,
   YP_MEMORY_INFO = 27,
//   YP_OFFICE_CALENDAR = 28,
   YP_SETTINGS_PERSONAL = 29,
   YP_SETTINGS_SYSTEM = 30,
   YP_SETTINGS_CONNECTIONS = 31,
   YP_CALENDAR = 32,
   YP_FAQ = 33,
   YP_ABOUT = 34,
   YP_LANGUAGES = 35,
   YP_REG_EDIT = 36,

_________________
2daysoft.com yrgo - The most customizable User Interface for Windows Mobile


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Several constants used in yrgo_userdesktop.xml
PostPosted: Sun Feb 15, 2009 9:11 pm 
Offline

Joined: Mon Sep 01, 2008 10:24 am
Posts: 34
Thanks! Really convenient.

I'm currently digging in the XML file.

Could explain how the value of <desktops> works? I haven't been able to figure this out...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Several constants used in yrgo_userdesktop.xml
PostPosted: Sun Feb 15, 2009 9:29 pm 
Offline
Site Admin

Joined: Tue Aug 26, 2008 10:49 am
Posts: 515
Location: Czech republic
Ahhh... I see.. the desktops value is little bit complicated :-).

For developers: the list of desktops where gadget belongs to is saved in one 4byte integer = 32 bits. Each bit represents one desktop - that's why yrgo supports 32 desktops. So if you understand this principle, the format of <desktops>number</desktops> should be clear for you.

I understand that lot of users are not developers so let me try to explain it to in more user friendly way :-).

Here are IDs of the desktops:

Code:
Desktop 1 = 1
Desktop 2 = 2
Desktop 3 = 4
Desktop 4 = 8
Desktop 5 = 16
Desktop 6 = 32
Desktop 7 = 64
Desktop 8 = 128
Desktop 9 = 256
Desktop 10 = 512
Desktop 11 = 1024
Desktop 12 = 2048
Desktop 13 = 4096
Desktop 14 = 8192
Desktop 15 = 16384
Desktop 16 = 32768
Desktop 17 = 65536
Desktop 18 = 131072
Desktop 19 = 262144
Desktop 20 = 524288
Desktop 21 = 1048576
Desktop 22 = 2097152
Desktop 23 = 4194304
Desktop 24 = 8388608
Desktop 25 = 16777216
Desktop 26 = 33554432
Desktop 27 = 67108864
Desktop 28 = 134217728
Desktop 29 = 268435456
Desktop 30 = 536870912
Desktop 31 = 1073741824
Desktop 32 = 2147483648


If you'd like to add gadget to the several desktops you just have add the IDs of the desktops and that's it :-).

I know it's not user friendly and I'll probably extend it later so it's more human readable.

_________________
2daysoft.com yrgo - The most customizable User Interface for Windows Mobile


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Several constants used in yrgo_userdesktop.xml
PostPosted: Sun Feb 15, 2009 9:55 pm 
Offline

Joined: Sun Jan 18, 2009 3:16 pm
Posts: 69
Location: Belgium
mmmmm very interesting

I'll try all that tomorrow :)

_________________
Bruno (tester and French translator ) . We'll make yrgo the best UI of the World :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Several constants used in yrgo_userdesktop.xml
PostPosted: Fri Apr 10, 2009 8:05 am 
Offline

Joined: Thu Apr 09, 2009 1:36 pm
Posts: 2
Can I create "button" that change desktop (without desktop_switcher)?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Several constants used in yrgo_userdesktop.xml
PostPosted: Fri Apr 10, 2009 9:30 am 
Offline
Site Admin

Joined: Tue Aug 26, 2008 10:49 am
Posts: 515
Location: Czech republic
NoVAarts wrote:
Can I create "button" that change desktop (without desktop_switcher)?


Hi,

currently there's no such button.

Luky

_________________
2daysoft.com yrgo - The most customizable User Interface for Windows Mobile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group