crashanalysercmd/UI/Plugins/CAPluginRawStackUi/Plugin/CAPluginRawStackUi.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2004-2008 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 using System;
       
    19 using System.Text;
       
    20 using System.IO;
       
    21 using System.Collections.Generic;
       
    22 using System.Threading;
       
    23 using System.Windows.Forms;
       
    24 using CrashAnalyserEngine.Plugins;
       
    25 using CrashAnalyserEngine.Engine;
       
    26 using CrashAnalyserEngine.Interfaces;
       
    27 using SymbianUtils;
       
    28 using CAPRawStack.Plugin;
       
    29 using CAPluginRawStackUi.Tabs;
       
    30 using CAPluginRawStackUi.Wizards;
       
    31 
       
    32 namespace CAPluginRawStackUi.Plugin
       
    33 {
       
    34     public class CAPluginRawStackUi : CAPluginRawStack
       
    35 	{
       
    36 		#region Constructors
       
    37         public CAPluginRawStackUi( CAEngine aEngine )
       
    38             : base( aEngine )
       
    39 		{
       
    40             // Switch debug engine to UI mode
       
    41             aEngine.DebugEngine.UiMode = SymbianDebugLib.TDbgUiMode.EUiEnabled;
       
    42             RegisterMenuItems();
       
    43         }
       
    44 		#endregion
       
    45 
       
    46 		#region API
       
    47         #endregion
       
    48 
       
    49         #region From CAPlugin
       
    50         public override CAPlugin.TType Type
       
    51         {
       
    52             get { return CAPlugin.TType.ETypeUi; }
       
    53         }
       
    54         #endregion
       
    55 
       
    56 		#region Properties
       
    57 		#endregion
       
    58 
       
    59         #region Event handlers
       
    60         private void Menu_File_New_RawStack_Click( object aTag, string aCaption )
       
    61         {
       
    62             CAWizardRawStack wizard = new CAWizardRawStack( this );
       
    63             DialogResult result = wizard.ShowDialog();
       
    64             if ( result == DialogResult.OK )
       
    65             {
       
    66                 CATabStackViewer control = new CATabStackViewer( this );
       
    67                 base.UIManager.UIManagerContentAdd( control );
       
    68             }
       
    69         }
       
    70         #endregion
       
    71 
       
    72         #region Internal constants
       
    73         #endregion
       
    74 
       
    75         #region Internal methods
       
    76         private void RegisterMenuItems()
       
    77         {
       
    78             // Register "new" menu item
       
    79             base.UIManager.UIManagerMenuItemAdd( TEngineUIMenuPane.EFileNew, base.Name, new UIMenuItemClickHandler( Menu_File_New_RawStack_Click ), null );
       
    80         }
       
    81         #endregion
       
    82 
       
    83         #region Data members
       
    84         #endregion
       
    85     }
       
    86 }