📄 wavegen_view.h
字号:
//
// wavegen_view.h
//
// Copyright (C) 2002 Nokia Corporation. All rights reserved.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef WAVEGENVIEW_H
#define WAVEGENVIEW_H
// INCLUDES
#include <aknview.h>
#include "wavegen.hrh"
// CONSTANTS
// FORWARD DECLARATIONS
class CWaveGenListbox;
class CStreamAudioEngine;
//
// CWaveGenView class declaration
//
class CWaveGenView : public CAknView
{
public:
// standard Epoc NewL constructor
static CWaveGenView* NewL(CStreamAudioEngine* aEng, TPlaybackMode aMode);
static CWaveGenView* NewLC(CStreamAudioEngine* aEng, TPlaybackMode aMode);
// Destructor
virtual ~CWaveGenView();
public: // From CAknView
// Returns id of view
TUid Id() const;
// Menu command handler
void HandleCommandL(TInt aCommand);
private: // New functions
// private Constructor
CWaveGenView(CStreamAudioEngine* aEng, TPlaybackMode aMode);
// private 2nd phase constructor
void ConstructL();
// Sets text on title pane by ID of resource.
void SetTitlePaneTextL(const TInt aResourceId);
// Creates and activates a new listbox from a specified resource
void CreateListBoxL(TInt aResourceId);
void DeleteListBox();
void ActivateGeneratorViewL();
void ActivatePlayerViewL();
private: // From CAknView
void DoActivateL(const TVwsViewId& aPrevViewId,
TUid aCustomMessageId,
const TDesC8& aCustomMessage );
void DoDeactivate();
private: // Data
CStreamAudioEngine* iEng; // not owned
CWaveGenListbox* iListBox;
TPlaybackMode iMode;
};
#endif // WAVEGENVIEW_H
// eof
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -