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

📄 commands1.hrh

📁 《UIQ 3 The Complete Guide》书的源代码
💻 HRH
字号:
//
// Commands1.hrh - Shared Rsc/C++ hdr file for Commands1
//
// 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. 
// 

#ifndef __COMMANDS1_HRH__
#define __COMMANDS1_HRH__

///////////////////////////////////////////////////////////////////////////////////////////////
// Menu/toolbar command ids. These are delivered to an app via the aCommand.Id()
enum TAppCommandIds
	{
	EAppCmdAbout=0x1000,	// below 0x1000 reserved for Uiq3 system use
	EAppCmdHelp,
	EAppCmdContinue,

	EAppCmdAdd,
	EAppCmdAdd2,
	EAppCmdDelete,			// in this app, delivered by the 'cancel' hardware key
	EAppCmdDelete2,			// in this app, delivered by selecting a menu option
	EAppCmdDelete3,

	EAppCmdSortCascade,
	EAppCmdSortType1,
	EAppCmdSortType2,
	EAppCmdSortType3,
	EAppCmdSeparator,
	EAppCmdSortOrder,
			
	EAppCmdSortAltType1,
	EAppCmdSortAltType2,

	EAppCmdDebugTest,

	EAppCmdLastItem
	};

// UIQ3 has concept of command priorities, this effectivly defines sort order in menus 
// This set of enums is very important to set up correctly since it effectivly defines
// our menu. The values assigned to these enums is very important - the lower the number
// the higher the priority = nearer the top of the group.
enum TAppCommandPriorities
	{
	EAppCmdDefaultPriority,

	// this priortity will be overridden since the command will be set to EQikCommandTypeHelp
	EAppCmdHelpPriority,

	EAppCmdDebugTestPriority,

	EAppCmdAddPriority,
	EAppCmdDeletePriority,

	// the indenting has no purpose other than indicate our desired menu layout
	EAppCmdSortCascadePriority,
		EAppCmdSortType1Priority,
		EAppCmdSortType2Priority,
		EAppCmdSortType3Priority,
		EAppCmdSeparatorPriority,
		EAppCmdSortOrderPriority,

	EAppCmdAboutPriority,


	EAppCmdLastPriority
	};


// Uiq3 has concept of groups of commands, groups are typically delimited by lines in menu
// All commands should belong to a group - and groups usually represent common command sets
// The values assigned to these enums are important, e.g. groups of commands are presented in
// group order within a menu. Within a group commands are ordered by their TAppCommandPriorities
enum TAppCommandGroupIds
	{
	EAppCmdEditGroup,

	EAppCmdSortGroup,
	EAppCmdSortCmdsLink,

	EAppCmdMiscGroup,			// miscellaneous commands, help, about etc

	EAppCmdLastGroupId
	};

// Our application has controls. Controls need to be indentified via ids. 
enum TAppControlIds
	{
	// we have a number of pages of controls
	EAppSpecificListViewPageId1 = 1,
	EAppSpecificListViewPageId2,

	// and a list box on each page
	EAppSpecificListViewListId1,
	EAppSpecificListViewListId2,

	EAppLabel1,

	EAppControlLastItem
	};


#endif // #define __COMMANDS1_HRH__

⌨️ 快捷键说明

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