~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.CodeBehind/CodeBehindViewContent.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
using System;
3
 
 
4
 
using MonoDevelop.Ide.Gui;
5
 
 
6
 
namespace MonoDevelop.DesignerSupport.CodeBehind
7
 
{
8
 
        
9
 
        
10
 
        public class CodeBehindViewContent : MonoDevelop.DesignerSupport.WrapperDesignView, ISecondaryViewContent
11
 
        {
12
 
                public CodeBehindViewContent (IViewContent content)
13
 
                        : base (content)
14
 
                {
15
 
                        Gtk.Label nameLabel = new Gtk.Label ("CodeBehind file: "+System.IO.Path.GetFileName (Content.ContentName));
16
 
                        nameLabel.Xpad = 3;
17
 
                        nameLabel.Show ();
18
 
                        base.TopBar = nameLabel;
19
 
                }
20
 
                
21
 
                public virtual void Selected()
22
 
                {
23
 
                }
24
 
                
25
 
                public virtual void Deselected()
26
 
                {
27
 
                }
28
 
                
29
 
                public virtual void NotifyBeforeSave()
30
 
                {
31
 
                }
32
 
 
33
 
                public virtual void BaseContentChanged ()
34
 
                {
35
 
                }
36
 
                
37
 
                public override string TabPageLabel {
38
 
                        get { return "CodeBehind"; }
39
 
                }
40
 
                
41
 
                public override bool CanReuseView (string fileName)
42
 
                {
43
 
                        return (Content.ContentName == fileName);
44
 
                }
45
 
        }
46
 
}