www.pudn.com > UIQ_Code1.rar > Commands.hrh
// Commands.hrh
//
// © Symbian Software Ltd 2005. All rights reserved.
//
#ifndef COMMANDS_HRH
#define COMMANDS_HRH
/**
Identifies the value for the commands in the application.
Commands shall first start on 0x1000 and not above
KCategoryMenuIdOffset = 0x0FFFFFFF.
Values before 0x1000 is reserved for commands in the framework.
*/
enum TCommandsId
{
ECommandsExtraStart = 0x1000,
ECommandsExtraCmd = ECommandsExtraStart,
ECommandsExtraSetCurrentStateCmd,
ECommandsExtraEnableState1Cmd,
ECommandsExtraEnableState2Cmd,
ECommandsExtraCurrentStateCmd,
ECommandsExtraCmdAState1Cmd,
ECommandsExtraCmdBState1Cmd,
ECommandsExtraCmdCState2Cmd,
ECommandsExtraCmdDState1And2Cmd,
ECommandsChangeUiModeCmd,
ECommandsPage2Start = 0x1100,
ECommandsPage2SetCascadeCmd = ECommandsPage2Start,
ECommandsPage2CacscadingAvailableCmd,
ECommandsPage2AllOffCmd,
ECommandsPage2CmdEAvailableCmd,
ECommandsPage2CmdFAvailableCmd,
ECommandsPage2CmdEAndFAvailableCmd,
ECommandsPage2CascadeCmd,
ECommandsPage2CmdECmd,
ECommandsPage2CmdFCmd,
// The order in which the page3 commandids are stated is the code dependent
// on in CCommandsView::HandleCommandL. Don't add or remove commands
// without checking against the code.
ECommandsPage3Start = 0x1200,
ECommandsPage3SetVisibilityCmd = ECommandsPage3Start,
ECommandsPage3VisibleStart,
ECommandsPage3YesVisibleCmd = ECommandsPage3VisibleStart,
ECommandsPage3NoVisibleCmd,
ECommandsPage3DoneVisibleCmd,
ECommandsPage3ItemVisibleCmd,
ECommandsPage3PreferVisibleCmd,
ECommandsPage3DeleteVisibleCmd,
ECommandsPage3ShowIconStart,
ECommandsPage3ShowYesIconCmd = ECommandsPage3ShowIconStart,
ECommandsPage3ShowNoIconCmd,
ECommandsPage3ShowDoneIconCmd,
ECommandsPage3ShowItemIconCmd,
ECommandsPage3ShowPreferIconCmd,
ECommandsPage3ShowDeleteIconCmd,
ECommandsPage3TypeStart,
ECommandsPage3TypeYesCmd = ECommandsPage3TypeStart,
ECommandsPage3TypeNoCmd,
ECommandsPage3TypeDoneCmd,
ECommandsPage3TypeItemCmd,
ECommandsPage3PreferToBePlacedInButtonbarCmd,
ECommandsPage3TypeDeleteCmd,
ECommandsPage4Start = 0x1300,
ECommandsPage4SetSortOrderCmd = ECommandsPage4Start,
ECommandsPage4AlphabeticallyCmd,
ECommandsPage4PriorityCmd,
ECommandsPage4SortOrderCmd,
ECommandsPage4APriority2Cmd,
ECommandsPage4BPriority1Cmd
};
/**
Defines the sort order in the menu for the commands
Following the suggested order from UIQ Style Guide.
*/
enum TCommandsPriority
{
ECommandsDefaultCmdPriority,
ECommandsExitPriority,
ECommandsChangeUiModePriority,
ECommandsExtraPriority,
ECommandsExtraCurrentStatePriority,
ECommandsPage2CascadePriority,
ECommandsPage4SortPriority,
ECommandsExtraSetPriority,
ECommandsPage2SetPriority,
ECommandsPage4SetPriority,
// SortB will be sorted before SortA if the commands is sorted by priority
ECommandsPage4BPriority,
ECommandsPage4APriority
};
/**
Define groups for commands which is seperated with dividers in menu
*/
enum TCommandsGroupId
{
ECommandsDefaultCmdGroupId,
ECommandsSpecificGroupId,
ECommandsSetGroupId,
ECommandsPage3YesGroupId,
ECommandsPage3NoGroupId,
ECommandsPage3DoneGroupId,
ECommandsPage3ItemGroupId,
ECommandsPage3PreferGroupId,
ECommandsPage3DeleteGroupId
};
/**
Unique controls in view.
*/
enum TCommandsControl
{
ECommandsViewPage1,
ECommandsViewPage2,
ECommandsViewPage3,
ECommandsViewPage4,
ECommandsLabelCtrl
};
/**
The set of states the state monitor shall keep track of
*/
enum TCommandsMonitorState
{
ECommandsApplicationState1,
ECommandsApplicationState2,
ECommandsNumOfStates
};
#endif //COMMANDS_HRH