📄 listview.h
字号:
//
// ListView.h - List view for our signed app
//
// Copyright (C) UIQ Technology AB, 2007
//
// This material is provided "as is" without any warranty to its performance or functionality.
// In no event shall UIQ Technology be liable for any damages whatsoever arising out of the
// use or inabilty to use this material.
//
#ifndef __LISTVIEW_H__
#define __LISTVIEW_H__
// these pragmas stop the compiler complaining that params to functions not being used in body
#ifdef __CW32__
#pragma warn_unusedarg off
#endif // __CW32__
#pragma warning(disable : 4100)
#include <qikappui.h>
#include <QikViewBase.h>
#include <QikListBoxModel.h>
#include <QikListBox.h>
#include <MQikListBoxData.h>
#include <QikEditCategoryObserver.h>
#include "Engine.h"
/////////////////////////////////////////////////////////////////////////////////////////////
class CListView : public CQikViewBase,
public MQikListBoxObserver,
public MQikEditCategoryObserver
{
protected:
// from CQikViewBase
TVwsViewId ViewId() const;
void HandleCommandL(CQikCommand& aCommand);
void ViewConstructL();
void ViewDeactivated();
void ViewActivatedL(const TVwsViewId& aPrevViewId,const TUid aCustomMessageId,const TDesC8& aCustomMessage);
CQikCommand* DynInitOrDeleteCommandL(CQikCommand* aCommand,const CCoeControl& aControlAddingCommands);
// from MQikListBoxObserver
void HandleListBoxEventL(CQikListBox* aListBox,TQikListBoxEvent aEventType,TInt aItemIndex,TInt aSlotId);
//from MQikEditCategoryObserver
TBool OkToAddCategory() const;
TBool DoAddCategoryL(TInt& aHandle);
TBool OkToRenameCategory(TInt aHandle, const TDesC& aNewName) const;
TBool DoRenameCategoryL(TInt aHandle, const TDesC& aNewName);
TBool OkToMergeCategories(TInt aSourceHandle, TInt aTargetHandle) const;
TBool DoMergeCategoriesL(TInt aSourceHandle, TInt aTargetHandle);
TBool OkToDeleteCategory(TInt aHandle) const;
TBool DoDeleteCategoryL(TInt aHandle);
TBool IsCategoryEmpty(TInt aHandle) const;
// new methods
void UpdateCommandAvailability();
void UpdateListBoxL();
void SetCurrentEntry();
void SortListL(const TFolderEntrySortType aType,const TFolderEntrySortOrder aOrder,const TInt aCmdId);
void SendFileAsL();
void DeleteCurrentEntryL();
public:
// new methods
CListView(CQikAppUi& aAppUi,CAppEngine* aEngine);
protected:
CAppEngine* iEngine;
};
#endif // __LISTVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -