www.pudn.com > UIQ_Code1.rar > CommandsHandlerPage2.h
// CommandsHandlerPage2.h // // © Symbian Software Ltd 2005. All rights reserved. // #ifndef COMMANDSHANDLERPAGE2_H #define COMMANDSHANDLERPAGE2_H #include#include /** This class takes care of all page 2 specific commands for CCommandsView. This to separate the different page specific commands from each other. Page 2 shows usage of option button list and cascading menu. The option buttons in "Set cascade" determine if the commands in "Cascade" are available or not. For example if command "Cmd E available" is activated the command "Cmd E" is available and "Cmd F" is not. "Cascading available" is a checkbox that decides the availability of the cascading menu. When a cascading menu is unavailable in pen style, the cascading menu and its commands will be dimmed; in softkey style they will be invisible. You can change the availability of the commands in the cascading menu but it will not change in the UI until the cascading menu is available again, commands will then have the present state. For example when option button "Cmd E available" is marked, it is possible to activate "Cmd E". Unmark "Cascading available" to make the cascading menu unavailable. None of the commands in "Cascade" will then be available. Changing option button "Cmd F available" to marked will not change anything in the UI. Make the cascading menu available by activating "Cascading available". When this is marked, "Cmd F" can be activated again. */ class CCommandsView; class CCommandsHandlerPage2: public CBase, public MQikCommandHandler { public: static CCommandsHandlerPage2* NewL(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); ~CCommandsHandlerPage2(); // from MQikCommandHandler void HandleCommandL(CQikCommand& aCommand); private: CCommandsHandlerPage2(CCommandsView& aCommandsView, CQikCommandManager& aCommandManager); void ConstructL(); private: /** Reference to the command manager that are used to change commands with. */ CQikCommandManager& iCommandManager; /** Reference to the command view. */ CCommandsView& iCommandsView; }; #endif // COMMANDSHANDLERPAGE2_H