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

📄 quickstart.rss

📁 《UIQ 3 The Complete Guide》书的源代码
💻 RSS
字号:
//
// QuickStart.RSS    - UIQ Quick Start Example Resource file
//
// This material is provided "as is" without any warranty to its performance or functionality. 
// In no event shall the authors or publishers be liable for any damages whatsoever arising out 
// of the use or inabilty to use this material. 
//

NAME    QST

#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 "QuickStart.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_quickstart_commands;
			view = r_quickstart_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchLandscape;
			command_list = r_quickstart_commands;
			view = r_quickstart_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStylePortrait;
			command_list = r_quickstart_commands;
			view = r_quickstart_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
 			command_list = r_quickstart_commands;
 			view = r_quickstart_view;
			},
		QIK_VIEW_CONFIGURATION
 			{
			ui_config_mode = KQikSoftkeyStyleSmallLandscape;
 			command_list = r_quickstart_commands;
 			view = r_quickstart_view;
			},
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikSoftkeyStyleTouchPortrait;
			command_list = r_quickstart_commands;
			view = r_quickstart_view;
 			}
		};
	}


//////////////////////////////////////////////////////////////////
// these commands are defined to be available for ALL views
RESOURCE QIK_COMMAND_LIST r_quickstart_commands
    {
    items=
        {
		// a standard about command
	    QIK_COMMAND
            {
            id = EAppCmdAbout;
            type = EQikCommandTypeScreen;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdAboutPriority;
            text = "About";
			},

		// this command only appears in Debug builds - due to the stateFlags defn
	    QIK_COMMAND
            {
            id = EAppCmdDebugTest;
            type = EQikCommandTypeScreen;
			stateFlags = EQikCmdFlagDebugOnly;
			groupId = EAppCmdMiscGroup;
			priority = EAppCmdDebugTestPriority;
            text = "Test";
            }
         };
	}


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

// Defines the one page of the view. 
RESOURCE QIK_VIEW_PAGES r_quickstart_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = EAppQuickStartPage;
			page_content = r_quickstart_control;
			command_list = r_quickstart_commands; 
			}
		};
	}

////////////////////////////////////////////////////////////////////
// Pages contains a single row based list box
RESOURCE QIK_CONTAINER_SETTINGS r_quickstart_control
	{
	layout_manager_type = EQikRowLayoutManager;
	layout_manager = r_row_layout_manager_default;
	controls =
		{
		QIK_CONTAINER_ITEM_CI_LI
			{
			unique_handle = EAppQuickStartList;
			type = EQikCtListBox;
			control = r_app_quickstart_listbox;
	    		layout_data = r_row_layout_data_fill;
			}
		};
	}
	
RESOURCE QIK_ROW_LAYOUT_DATA r_row_layout_data_fill
	{
	vertical_alignment = EQikLayoutVAlignFill;
	vertical_excess_grab_weight = 1;
	}
	
////////////////////////////////////////////////////////////////////
//// List box controls
RESOURCE QIK_LISTBOX r_app_quickstart_listbox
	{
	view = r_app_quickstart_listbox_view_default;
	layouts = { r_app_quickstart_normal_layout_pair };
	}

RESOURCE QIK_LISTBOX_ROW_VIEW r_app_quickstart_listbox_view_default
	{
	}

RESOURCE QIK_LISTBOX_LAYOUT_PAIR r_app_quickstart_normal_layout_pair
	{
	standard_normal_layout = EQikListBoxLine;
	}

//////////////////////////////////////////////////////////////////////
// Layout Managers - uses the default settings for the row layout handling
RESOURCE QIK_ROW_LAYOUT_MANAGER r_row_layout_manager_default
	{
	default_layout_data = QIK_ROW_LAYOUT_DATA {};
	}

//////////////////////////////////////////////////////////////////////

RESOURCE QIK_DIALOG r_about_dialog
{
title = "About Quick Start";
configurations = 
    {
    QIK_DIALOG_CONFIGURATION
        {
        ui_config_mode = KQikPenStyleTouchPortrait;
        container = r_about_container;
        command_list = r_about_commands;
        },
    QIK_DIALOG_CONFIGURATION
        {
        ui_config_mode = KQikPenStyleTouchLandscape;
        container = r_about_container;
        command_list = r_about_commands;
        },
    QIK_DIALOG_CONFIGURATION
        {
        ui_config_mode = KQikSoftkeyStyleTouchPortrait;
        container = r_about_container;
        command_list = r_about_commands;
        },
    QIK_DIALOG_CONFIGURATION
        {
        ui_config_mode = KQikSoftkeyStylePortrait;
        container = r_about_container;
        command_list = r_about_commands;
        },
    QIK_DIALOG_CONFIGURATION
        {
        ui_config_mode = KQikSoftkeyStyleSmallPortrait;
        container = r_about_container;
        command_list = r_about_commands;
        }
    };
}

RESOURCE QIK_COMMAND_LIST r_about_commands
{
items=
    {
    QIK_COMMAND
		{
		id = EAppCmdContinue;
        type = EQikCommandTypeDone;
        text = "Continue";
		}
	};
}

RESOURCE QIK_SCROLLABLE_CONTAINER_SETTINGS r_about_container
{
controls = 
    {
	QIK_CONTAINER_ITEM_CD_LI
		{
		type = EQikCtOnelineBuildingBlock;
		control = QIK_SYSTEM_BUILDING_BLOCK
			{
			content =
				{
				QIK_SLOT_CONTENT_DIRECT
					{
					slot_id = EQikItemSlot1;
					type = EEikCtLabel;
					unique_handle = EAppLabel1; 
					control = LABEL
						{
						standard_font = EEikLabelFontAnnotation;
						horiz_align=EEikLabelAlignHCenter;
						txt = ""; 
						};
					}
				};
			};
		},

	QIK_CONTAINER_ITEM_CD_LI
		{
		type = EQikCtOnelineBuildingBlock;
		control = QIK_SYSTEM_BUILDING_BLOCK
			{
			content =
				{
				QIK_SLOT_CONTENT_DIRECT
					{
					slot_id = EQikItemSlot1;
					type = EEikCtLabel;
					control = LABEL
						{
						standard_font = EEikLabelFontAnnotation;
						horiz_align=EEikLabelAlignHCenter;
						txt="Quick Start Example";
						};
					}
				};
			};
		},

	QIK_CONTAINER_ITEM_CD_LI
		{
		type = EQikCtOnelineBuildingBlock;
		control = QIK_SYSTEM_BUILDING_BLOCK
			{
			content =
				{
				QIK_SLOT_CONTENT_DIRECT
					{
					slot_id = EQikItemSlot1;
					type = EEikCtLabel;
					control = LABEL
						{
						standard_font = EEikLabelFontAnnotation;
						horiz_align=EEikLabelAlignHCenter;
						txt="UIQ Technology";
						};
					}
				};
			};
		}

    };
}


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

// Dont change the order of these as the C++ code assumes they are sequential.
RESOURCE TBUF r_str_list_content_1		{ buf="One";}
RESOURCE TBUF r_str_list_content_2		{ buf="Two";}
RESOURCE TBUF r_str_list_content_3		{ buf="Three";}
RESOURCE TBUF r_str_list_content_4		{ buf="Four";}
RESOURCE TBUF r_str_list_content_5		{ buf="Five";}
RESOURCE TBUF r_str_list_content_6		{ buf="Six";}
RESOURCE TBUF r_str_list_content_7		{ buf="Seven";}

RESOURCE TBUF r_str_version				{ buf="Version %d.%02d(%02d) 2007";}

⌨️ 快捷键说明

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