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

📄 buildingblocks1.rss

📁 《UIQ 3 The Complete Guide》书的源代码
💻 RSS
字号:
//
// BUILDINGBLOCKS1.RSS    - UIQ BuildingBlocks1 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    BBK1

#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 "BuildingBlocks1.hrh"

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

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

RESOURCE EIK_APP_INFO {	}

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_VIEW_CONFIGURATIONS r_app_view_configurations
	{
	configurations = 
		{
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchPortrait;
			command_list = r_application_commands;
			view = r_application_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchLandscape;
			command_list = r_application_commands;
			view = r_application_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStylePortrait;
			command_list = r_application_commands;
			view = r_application_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
 			command_list = r_application_commands;
 			view = r_application_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallLandscape;
 			command_list = r_application_commands;
 			view = r_application_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStyleTouchPortrait;
			command_list = r_application_commands;
			view = r_application_view;
 			}
		};
	}

//////////////////////////////////////////////////////////////////
// Application wide commands
RESOURCE QIK_COMMAND_LIST r_application_commands
    {
    items=
        {
	    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_application_view
	{
	pages = r_application_view_pages;
	}

// Defines the pages of a view - we have 1. 
RESOURCE QIK_VIEW_PAGES r_application_view_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = EAppSpecificPageId;
			page_content = r_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_page_control
	{
	controls =
		{
		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "One line building block."; 
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtTwolineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT_INDIRECT
						{
						slot_id = EQikItemSlot1;
						type = EEikCtLabel;
						itemflags = EQikCtrlFlagIsFocusing;
						control = r_indirect_two_line_building_block;
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtManylinesBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				content =
					{
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot1;
						type = EEikCtLabel;
						itemflags = EQikCtrlFlagIsFocusing;
						control = LABEL
							{
							standard_font = EEikLabelFontAnnotation;
							txt = "Many line building blocks wrap text across as many lines as is required to display the text."; 
							};
						}
					};
				};
			}
		};
	}

RESOURCE LABEL r_indirect_two_line_building_block	
	{
	txt = "Two line blocks wrap, as opposed to having two slots."; 
	}

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE TBUF r_str_view_title			{ buf="View title";}

⌨️ 快捷键说明

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