0
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include <akntitle.h>
|
|
20 |
#include <eikbtgpc.h>
|
|
21 |
#include <barsread.h>
|
|
22 |
#include <aknviewappui.h>
|
|
23 |
|
|
24 |
#include "JavaDebugAgent.hrh"
|
|
25 |
#include "JavaDebugAgentRes.h"
|
|
26 |
#include "JavaDebugAgentLogView.h"
|
|
27 |
|
|
28 |
#define SUPER CJavaDebugAgentBasicLogView
|
|
29 |
|
|
30 |
CJavaDebugAgentLogView* CJavaDebugAgentLogView::NewLC()
|
|
31 |
{
|
|
32 |
CJavaDebugAgentLogView* self = new(ELeave)CJavaDebugAgentLogView;
|
|
33 |
CleanupStack::PushL(self);
|
|
34 |
self->ConstructL();
|
|
35 |
return self;
|
|
36 |
}
|
|
37 |
|
|
38 |
CJavaDebugAgentLogView::CJavaDebugAgentLogView() :
|
|
39 |
SUPER(TUid::Uid(KJavaDebugAgentLogViewId))
|
|
40 |
{
|
|
41 |
}
|
|
42 |
|
|
43 |
void CJavaDebugAgentLogView::ConstructL()
|
|
44 |
{
|
|
45 |
BaseConstructL(R_JAVA_DEBUG_AGENT_LOG_VIEW,
|
|
46 |
R_JAVA_DEBUG_AGENT_LOG_POPUP_MENUBAR);
|
|
47 |
}
|
|
48 |
|
|
49 |
void CJavaDebugAgentLogView::DoActivateL(const TVwsViewId&,TUid,const TDesC8&)
|
|
50 |
{
|
|
51 |
Cba()->MakeVisible(ETrue);
|
|
52 |
StatusPane()->MakeVisible(ETrue);
|
|
53 |
|
|
54 |
// Get title pane
|
|
55 |
CAknTitlePane* title = (CAknTitlePane*)AppUi()->StatusPane()->
|
|
56 |
ControlL(TUid::Uid(EEikStatusPaneUidTitle));
|
|
57 |
|
|
58 |
// Configure the title
|
|
59 |
TResourceReader reader;
|
|
60 |
iCoeEnv->CreateResourceReaderLC(reader, R_JAVA_DEBUG_AGENT_LOG_TITLE);
|
|
61 |
title->SetFromResourceL(reader);
|
|
62 |
CleanupStack::PopAndDestroy();
|
|
63 |
|
|
64 |
// Add control to stack
|
|
65 |
ShowLogScreenL();
|
|
66 |
}
|
|
67 |
|
|
68 |
// CJavaDebugAgentBasicLogView
|
|
69 |
TRect CJavaDebugAgentLogView::LogScreenRect()
|
|
70 |
{
|
|
71 |
return AppUi()->ClientRect();
|
|
72 |
}
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Local Variables:
|
|
76 |
* c-basic-offset: 4
|
|
77 |
* indent-tabs-mode: nil
|
|
78 |
* End:
|
|
79 |
*/
|