www.pudn.com > UIQ_Code1.rar > CommandsHandlerPage3.h
// CommandsHandlerPage3.h // // © Symbian Software Ltd 2005. All rights reserved. // #ifndef COMMANDSHANDLERPAGE3_H #define COMMANDSHANDLERPAGE3_H #include#include /** This class takes care of all page 3 specific commands for CCommandsView. This to separate the different page specific commands from each other. Page 3 shows how different command types interact with each other and how it's possible to add/remove command icons. In Set visibility, the visibility of commands can be changed, icons can be added or removed and the interaction between different types of commands can be studied. All of the checkboxes in Set visibility ending with "visible" decide if the command is visible or not. For example Yes visible indicates if the command of type Yes (EQikCommandTypeYes) is be visible or not. Checkboxes in Set visibility ending with "icon" decide if the command has an icon or not. All of the commands have the same icon. When using an icon instead of a text, it is possible to add more buttons in pen style. Page 3 demonstrates the different types for commands, but we do not recommend using all of these different types in the same command list; for more information see UIQ Style Guide - Interaction style. This page can, however, make it easier for a developer to figure out which type of commands to use and to see how they will interact with each other in different phone styles. The delete command will not be visible in the buttonbar and the highest prioritezed delete command is assigned to the delete key. In this project there only exist one delete command, so it will be assigned to the delete key. */ class CCommandsView; class CCommandsHandlerPage3 : public CBase, public MQikCommandHandler { public: static CCommandsHandlerPage3* NewL(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); ~CCommandsHandlerPage3(); // from MQikCommandHandler void HandleCommandL(CQikCommand& aCommand); private: CCommandsHandlerPage3(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); void ConstructL(); void SetIconL(TInt aCommandId, TBool aAddIcon) const; private: /** Reference to the command manager that are used to change commands with. */ CQikCommandManager& iCommandManager; /** Reference to the command view. */ CCommandsView& iCommandsView; }; #endif // COMMANDSHANDLERPAGE3_H