⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guiclock8_appui.cpp__.htm

📁 symbian clock 源代码..........
💻 HTM
字号:
<html><head><title>Exercise_GUIClock.rar GUIClock8_appui.cpp</title>
<LINK href="/inc/read_style.css" type=text/css rel=stylesheet></head>
<body>
<p><a href=http://www.pudn.com>www.pudn.com</a> &gt; <a href="http://www.pudn.com/downloads91/sourcecode/comm/symbian/detail348522.html">Exercise_GUIClock.rar</a> &gt GUIClock8_appui.cpp</p><!-- saved from http://www.pudn.com -->
<script src="/inc/gg_read1.js"></script><BR>
<pre name="code" class="cpp">
// GUIClock_CGUIClockUi.cpp 
// ---------------------------- 
// 
// Copyright (c) 2000 Symbian Ltd.  All rights reserved. 
// 
 
//////////////////////////////////////////////////////////////////////// 
// 
// Source file for the implementation of the  
// application UI class - CGUIClockUi 
// 
//////////////////////////////////////////////////////////////////////// 
 
 
#include "GUIClock8.h" 
 
//             The second phase constructor of the application UI class. 
//             The application UI creates and owns the one and only view. 
//  
void CGUIClockUi::ConstructL() 
    { 
    BaseConstructL(EAknEnableSkin); 
	 
    iMainView = CGUIClockMainView::NewL(); 
    iAboutView = CGUIClockAboutView::NewL(); 
	 
    AddViewL(iAboutView); // Transfer ownership to base class  
    AddViewL(iMainView); // Transfer ownership to base class  
	 
    SetDefaultViewL(*iMainView); 
	 
 
	CGUIClockDocument * pDoc = (CGUIClockDocument * )this->Document(); 
//	pDoc->iClock->AddObserver(((CGUIClockMainView*)iMainView)->GetClockObserver()); 
	pDoc->iClock->Start(); 
 
} 
 
 
//             Called by the UI framework when a command has been issued. 
//             In this example, a command can originate through a  
//             hot-key press or by selection of a menu item. 
//             The command Ids are defined in the .hrh file 
//             and are 'connected' to the hot-key and menu item in the 
//             resource file. 
//             Note that the EEikCmdExit is defined by the UI 
//             framework and is pulled in by including eikon.hrh 
// 
void CGUIClockUi::HandleCommandL(TInt aCommand) 
{ 
	switch (aCommand) 
	{ 
	case EEikCmdExit:  
	case EAknSoftkeyExit: 
		SaveL(); 
		Exit(); 
		break; 
	default: 
		break; 
	} 
} 
 
 
 
 
TKeyResponse CGUIClockUi::HandleKeyEventL( 
						const TKeyEvent&, /*aKeyEvent*/ 
						TEventCode /*aType*/) 
{ 
	return EKeyWasConsumed; 
} 
 
 
CGUIClockDocument* CGUIClockUi::GetDocument() 
{ 
	return static_cast<CGUIClockDocument*>(Document()); 
} 
</pre>
<script src="/inc/gg_read2.js"></script><BR>
<script src="http://s117.cnzz.com/stat.php?id=1236358&web_id=1236358&show=pic" language="JavaScript" charset="gb2312"></script>
</body></html>

⌨️ 快捷键说明

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