helpfulform.h

来自「barcode readers [ from Image]」· C头文件 代码 · 共 88 行

H
88
字号
/*
	HelpfulForm. Help form for the ReadBarC application.
	This code is a derivative work of the HelpExample
	application distributed with the Symbian 6.0 SDK.
	Copyright (C) 2006  Jon A. Webb

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

*/

#ifndef __HELPFULFORM_H__
#define __HELPFULFORM_H__

#include <AknForm.h>

/*! 
  @class CHelpfulForm
  
  @discussion CHelpfulForm implements context sensitive help for
  itself and the controls it contains
  */
class CHelpfulForm : public CAknForm
    {
public:
/*!
  @function NewL
  
  @discussion Construct a CHelpfulForm for the AVKON application 
  using two phase construction, and return a pointer to the created object
  @param aMenuResource Resource of menu to be added to form menu (with Help option)
  @result A pointer to the created instance of CHelpfulForm
  */
    static CHelpfulForm* NewL(TInt aMenuResource);

/*!
  @function NewLC
  
  @discussion Construct a CHelpfulForm for the AVKON application 
  using two phase construction, and return a pointer to the created object
  @param aMenuResource Resource of menu to be added to form menu (with Help option)
  @result A pointer to the created instance of CHelpfulForm
  */
    static CHelpfulForm* NewLC(TInt aMenuResource);

public: // from AknForm
/*!
  @function ProcessCommandL
  
  @discussion Handle user menu commands
  @param aCommandId The command identifier to process
*/    
    void ProcessCommandL(TInt aCommandId);

/*!
  @function DynInitMenuPaneL
  
  @discussion Remove the unused default form options
  @param aResourceId The id of the menu pane
  @param aMenuPane The menu pane itself
*/    
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);


private:

/*!
  @function ConstructL
  
  @discussion Perform the second phase construction of a CHelpfulForm object
  @param aMenuResource The menu resource to be used for the form
  */
    void ConstructL(TInt aMenuResource);

    };

#endif // __HELPFULFORM_H__

⌨️ 快捷键说明

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