📄 tasklistview.h
字号:
#include <apgwgnam.h> // CApaWindowGroupName
#include <eikcmbut.h> // CEikBitmapButton
#include <eikclbd.h> // CEikColumnListBoxData
#include <eiktxlbm.h> // CEikTextListBoxModel
#include <apgtask.h> // TApaTaskList
#include <apgcli.h> // RApaLsSession
#include <hal.h> // hardware abstraction layer
#include <hal_data.h> // memory stats
#include <gulutil.h> // TextUtils::ColumnText
#include <eikclb.h> // CEikColumnListBox
#include <apgicnfl.h> // CApaMaskedBitmap
#include <eikmenub.h> // CEikMenuBar
#include <eikimage.h> // CEikImage
#include "bjackicon.h"
#include "dialogs.h"
#include "config.h"
#include "refreshtasklist.h"
#include "viewbase.h"
#if !defined(__TASKLISTVIEW_H__)
#define __TASKLISTVIEW_H__
// Actions to perform in refreshTaskList()
#define TODO_NOTHING 0
#define TODO_FOCUS 1
#define TODO_TERMINATE 2
#define TODO_SNAPSHOT 3
#define TODO_FLUSH 4
#define TODO_REFRESH 5
/*************************************************************
*
* Default view. This is also the task list view
*
**************************************************************/
class CSMan2TaskListView : public CViewBase, public MCoeControlObserver, public MCoeView
{
protected: // implements MCoeView
virtual void ViewDeactivated();
virtual void ViewActivatedL(const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/);
public:
virtual TVwsViewId ViewId() const;
virtual TVwsViewIdAndMessage ViewScreenDeviceChangedL();
virtual TBool ViewScreenModeCompatible(TInt aScreenMode);
void SetZoomLevel(TInt zoomLevel);
public:
CSMan2TaskListView(CConfig *cData);
~CSMan2TaskListView();
TInt32 iCapturedHotkeyHandle;
CEikColumnListBox *cTaskListBox;
CArrayFixSeg<TApaAppCaption> *snapshotTasks;
TFileName snapshotFileName;
void ConstructL(const TRect& aRect);
void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
void HandlePointerEventL(const TPointerEvent& aPointerEvent);
void refreshTaskList(TInt intTodo);
int saveSnapShot(void);
int saveConfig(void);
void gentleEndTask(TPtrC currentCaptionText);
void ToggleHotKey(void);
// Buttons at the bottom
CEikBitmapButton *flushButton, *endTaskButton, *refreshButton, *snapshotButton,
*compHeapButton;
// Memory status label
TBuf<50> memStatusText;
CEikLabel *memStatus;
private:
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
int loadSnapShot(void);
void InitToolBarButton(CEikBitmapButton **aButton, TPoint aPosition, TFileName *bitmapFile, TInt aBitmapId, TInt aBitmapMaskId);
TInt oldItem;
CRefreshTaskList *taskRefresher;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -