⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multiview4.rss

📁 《UIQ 3 The Complete Guide》书的源代码
💻 RSS
字号:
//
// MULTIVIEW4.RSS    - UIQ MultiView4 Resource file
//
// Copyright (C) UIQ Technology AB, 2007
//
// This material is provided "as is" without any warranty to its performance or functionality. 
// In no event shall UIQ Technology be liable for any damages whatsoever arising out of the
// use or inabilty to use this material. 
//

NAME    MVW4

#include <eikon.rh>
#include <eikon.rsg>
#include <qikon.rh>
#include <qikon.hrh>
#include <uikon.rh>
#include <uikon.hrh>
#include <QikCommand.rh>
#include <QikListBox.rh>
#include <QikListBoxStandardLayouts.hrh>

#include "MultiView4.hrh"

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE RSS_SIGNATURE { }

// Default file name - if no file in existance
RESOURCE TBUF16 { buf=""; }

RESOURCE EIK_APP_INFO {	}

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_VIEW_CONFIGURATIONS r_list_view_configurations
	{
	configurations = 
		{
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchPortrait;
			command_list = r_list_view_commands;
			view = r_list_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchLandscape;
			command_list = r_list_view_commands;
			view = r_list_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStylePortrait;
			command_list = r_list_view_commands;
			view = r_list_view_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
 			command_list = r_list_view_commands;
 			view = r_list_view_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallLandscape;
 			command_list = r_list_view_commands;
 			view = r_list_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStyleTouchPortrait;
			command_list = r_list_view_commands;
			view = r_list_view_view;
 			}
		};
	}

// List view, for all device configurations
RESOURCE QIK_COMMAND_LIST r_list_view_commands
    {
    items=
        {
	    QIK_COMMAND
            {
            id = EAppCmdDetails;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdDetailsPriority;
            text = "Details dialog";
            }
         };
	}

// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_list_view_view
	{
	pages = r_list_view_pages;
	}

// Defines the pages of a view - we have 1. 
RESOURCE QIK_VIEW_PAGES r_list_view_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = EAppSpecificListViewPageId;
			page_content = r_list_view_page_control;
			}
		};
	}

RESOURCE QIK_CONTAINER_SETTINGS r_list_view_page_control
	{
	layout_manager_type = EQikRowLayoutManager;
	layout_manager = r_row_layout_manager_default;
	controls =
		{
		QIK_CONTAINER_ITEM_CD_LD
			{
			unique_handle = EAppSpecificListViewListId;
			type = EQikCtListBox;
			control = QIK_LISTBOX
				{
				view = r_app_listview_listbox_view_default;
				layouts = { r_app_listview_normal_layout_pair };
				};
	    	layout_data = QIK_ROW_LAYOUT_DATA
				{
				vertical_alignment = EQikLayoutVAlignFill;
				vertical_excess_grab_weight = 1;
				};
			}
		};
	}
	
RESOURCE QIK_ROW_LAYOUT_MANAGER r_row_layout_manager_default
	{
	default_layout_data = QIK_ROW_LAYOUT_DATA {};
	}

RESOURCE QIK_LISTBOX_ROW_VIEW r_app_listview_listbox_view_default
	{
	}

RESOURCE QIK_LISTBOX_LAYOUT_PAIR r_app_listview_normal_layout_pair
	{
	standard_normal_layout = EQikListBoxLine;
	}
	
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_VIEW_CONFIGURATIONS r_details_view_configurations
	{
	configurations = 
		{
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchPortrait;
			command_list = r_details_view_commands;
			view = r_details_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchLandscape;
			command_list = r_details_view_commands;
			view = r_details_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStylePortrait;
			command_list = r_details_view_commands;
			view = r_details_view_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
 			command_list = r_details_view_commands;
 			view = r_details_view_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallLandscape;
 			command_list = r_details_view_commands;
 			view = r_details_view_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStyleTouchPortrait;
			command_list = r_details_view_commands;
			view = r_details_view_view;
 			}
		};
	}

RESOURCE QIK_COMMAND_LIST r_details_view_commands
    {
    items=
        {
	    QIK_COMMAND
            {
            id = EAppCmdSave;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdSavePriority;
            text = "Save";
            },
	    QIK_COMMAND
            {
            id = EAppCmdAbout;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdAboutPriority;
            text = "About";
            }
         };
	}

// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_details_view_view
	{
	pages = r_details_view_pages;
	}

// Defines the pages of a view - we have 1. 
RESOURCE QIK_VIEW_PAGES r_details_view_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = EAppSpecificDetailsViewPageId;
			page_content = r_details_view_page_control;
			}
		};
	}


////////////////////////////////////////////////////////////////////
RESOURCE QIK_CONTAINER_SETTINGS r_details_view_page_control
	{
	controls =
		{
		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot1;
						type = EEikCtChoiceList;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppChoiceList1; 
						control = CHOICELIST
							{
							array_id = r_detailspage_choicelist_array;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Points"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtNumberEditor;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line number editor
						unique_handle = EAppEdwin1; 
						control = QIK_NUMBER_EDITOR
							{
							min=0;
							max=6;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Odds"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtSlider;

						// a 1/2 line slider
						unique_handle = EAppSlider1; 
						control = QIK_SLIDER
							{
							min_value = 0;
							max_value = 100;
							num_markers = 10;
							};
						}
					};
				};
			}
		};
	}

RESOURCE ARRAY r_detailspage_choicelist_array
	{
	items=
		{
		LBUF {txt="Winners";},
		LBUF {txt="Runners up";},
		LBUF {txt="Knocked out";},
		LBUF {txt="Still playing";}
		};
	}

////////////////////////////////////////////////////////////////////////////////////////
// Used by a CQikViewDialog...

RESOURCE QIK_VIEW_CONFIGURATIONS r_details_dialog_configurations
	{
	configurations = 
		{
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchPortrait;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchLandscape;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStylePortrait;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallLandscape;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStyleTouchPortrait;
			command_list = r_details_dialog_commands;
			view = r_details_dialog_view;
 			}
		};
	}


RESOURCE QIK_COMMAND_LIST r_details_dialog_commands
    {
    items=
        {
	    QIK_COMMAND
            {
            id = EAppCmdSave;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdSavePriority;
            text = "Save";
            },
	    QIK_COMMAND
            {
            id = EAppCmdAbout;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdAboutPriority;
            text = "About";
            }
         };
	}

// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_details_dialog_view
	{
	pages = r_details_dialog_pages;
	}

// Defines the pages of a view - we have 1. 
RESOURCE QIK_VIEW_PAGES r_details_dialog_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = EAppSpecificDetailsViewPageId;
			page_content = r_details_dialog_page_control;
			container_type = EQikCtContainer;
			container = r_page_container; 
			}
		};
	}

RESOURCE QIK_CONTAINER r_page_container
	{
	// uses the default settings for a container
	}

RESOURCE QIK_CONTAINER_SETTINGS r_details_dialog_page_control
	{
	controls =
		{
		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot1;
						type = EEikCtChoiceList;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppChoiceList1; 
						control = CHOICELIST
							{
							array_id = r_detailspage_choicelist_array;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Points"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtNumberEditor;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line number editor
						unique_handle = EAppEdwin1; 
						control = QIK_NUMBER_EDITOR
							{
							min=0;
							max=6;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Odds"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtSlider;

						// a 1/2 line slider
						unique_handle = EAppSlider1; 
						control = QIK_SLIDER
							{
							min_value = 0;
							max_value = 100;
							num_markers = 10;
							};
						}
					};
				};
			}
		};
	}

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE TBUF r_str_list_title			{ buf="List title";}
RESOURCE TBUF r_str_details_title		{ buf="Details title";}

// Dont change the order of these as the C++ code assumes they are sequential.
RESOURCE TBUF r_str_list_content_1		{ buf="South Africa";}
RESOURCE TBUF r_str_list_content_2		{ buf="Australia";}
RESOURCE TBUF r_str_list_content_3		{ buf="Sri Lanka";}
RESOURCE TBUF r_str_list_content_4		{ buf="India";}
RESOURCE TBUF r_str_list_content_5		{ buf="New Zealand";}
RESOURCE TBUF r_str_list_content_6		{ buf="West Indies";}
RESOURCE TBUF r_str_list_content_7		{ buf="England";}

RESOURCE TBUF r_str_activating			{ buf="Display details for entry %d";}
RESOURCE TBUF r_str_unknown_msgid		{ buf="Unknown msg id %d";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -