📄 numericeditorcontainer.h
字号:
#ifndef NUMERICEDITORCONTAINER_H
#define NUMERICEDITORCONTAINER_H
// INCLUDES
// System includes
#include <coecntrl.h> // CCoeControl
#include <eiklbo.h>
#include <badesca.h>
#include <eiklabel.h>
// User includes
#include "SynchToDoDb.h"
// FORWARD DECLARATIONS
class CAknColumnListBox;
class CEikRichTextEditor;
// CLASS DECLARATION
/**
*
* @class CNumericEditorContainer NumericEditorContainer.h
* @brief This is the container class for the NumericEditor example based on the
* standard Symbian OS architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class CNumericEditorContainer : public CCoeControl,MEikListBoxObserver
{
public: // Constructors and destructor
static CNumericEditorContainer* NewL(const TRect& aRect, CSynchToDoDb& aToDoDb);
static CNumericEditorContainer* NewLC(const TRect& aRect, CSynchToDoDb& aToDoDb );
~CNumericEditorContainer();
public: // members
void NewEmployeeL();
void OpenEmployeeL();
void DeleteEmployeeL();
TInt NumberOfEmployees();
void SearchToDoL( );
//void SetLabelText(void);
void UpdateListBox();
private: // Constructor
CNumericEditorContainer( CSynchToDoDb& aToDoDb ) : iToDoDb( aToDoDb ){}
void ConstructL(const TRect& aRect);
private: // from CoeControl
void SizeChanged();
void SetupListIconsL();
// void SetupScrollBarsL();
void HandleListBoxEventL(CEikListBox* /*aListBox*/, TListBoxEvent aListBoxEvent);
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void Draw(const TRect& aRect) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private: // members
TBuf<50> ListStringFromEmployeeL (const CToDo& aToDo) const;
void AddEmployeeToListL ( CToDo& aToDo);
void UpdateEmployeeInListL (CToDo& aToDo);
void CreateLabel( void );
private: // Member data
CAknColumnListBox* iToDoList;
//RArray<CToDo> iToDoA;//数组
CSynchToDoDb& iToDoDb;
//CEikRichTextEditor* iEditor;
// CEikLabel* iLabel;
};
#endif // #ifndef NUMERICEDITORCONTAINER_H
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -