crashanalysercmd/Libraries/Engine/CrashItemLib/Crash/Base/DataBinding/CIDBColumn.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 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 using System;
       
    18 using System.Text;
       
    19 using System.Collections.Generic;
       
    20 using CrashItemLib.Crash;
       
    21 using SymbianDebugLib.Engine;
       
    22 using CrashItemLib.Crash.Messages;
       
    23 
       
    24 namespace CrashItemLib.Crash.Base.DataBinding
       
    25 {
       
    26 	public class CIDBColumn
       
    27 	{
       
    28 		#region Constructors
       
    29         public CIDBColumn()
       
    30         {
       
    31         }
       
    32 
       
    33         public CIDBColumn( string aCaption )
       
    34         {
       
    35             iCaption = aCaption;
       
    36  		}
       
    37 		#endregion
       
    38 
       
    39         #region API
       
    40         #endregion
       
    41 
       
    42         #region Properties
       
    43         public string Caption
       
    44         {
       
    45             get { return iCaption; }
       
    46             set { iCaption = value; }
       
    47         }
       
    48 
       
    49         public int Width
       
    50         {
       
    51             get
       
    52             {
       
    53                 int ret = iWidth;
       
    54                 return ret; 
       
    55             }
       
    56             set { iWidth = value; }
       
    57         }
       
    58 
       
    59         public bool WidthSet
       
    60         {
       
    61             get { return iWidthSet; }
       
    62             set { iWidthSet = value; }
       
    63         }
       
    64 
       
    65         public bool TakesUpSlack
       
    66         {
       
    67             get { return iTakesUpSlack; }
       
    68             set { iTakesUpSlack = value; }
       
    69         }
       
    70 
       
    71         public CIElement Element
       
    72         {
       
    73             get { return Model.Element; }
       
    74         }
       
    75 
       
    76         internal CIDBModel Model
       
    77         {
       
    78             get { return iModel; }
       
    79             set { iModel = value; }
       
    80         }
       
    81         #endregion
       
    82 
       
    83         #region Constants
       
    84         public const int KDefaultWidth = 24;
       
    85         #endregion
       
    86 
       
    87         #region Data members
       
    88         private bool iTakesUpSlack = false;
       
    89         private int iWidth = KDefaultWidth;
       
    90         private bool iWidthSet = false;
       
    91         private string iCaption = string.Empty;
       
    92         private CIDBModel iModel = null;
       
    93 		#endregion
       
    94 	}
       
    95 }