~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.AssemblyBrowser/gtk-gui/generated.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-07-05 13:00:05 UTC
  • mfrom: (1.2.8 upstream) (1.3.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20100705130005-d6hp4k5gcn1xkj8c
Tags: 2.4+dfsg-1ubuntu1
* debian/patches/remove_support_for_moonlight.patch,
  debian/patches/dont_add_moonlight_to_core_addins.patch,
  debian/control:
  + Enable support for Moonlight
* debian/rules:
  + Ensure Moonlight addin isn't shipped in main MonoDevelop package by
    mistake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// ------------------------------------------------------------------------------
2
 
//  <autogenerated>
3
 
//      This code was generated by a tool.
4
 
//      
5
 
// 
6
 
//      Changes to this file may cause incorrect behavior and will be lost if 
7
 
//      the code is regenerated.
8
 
//  </autogenerated>
9
 
// ------------------------------------------------------------------------------
10
 
 
11
 
namespace Stetic {
12
 
    
13
 
    internal class Gui {
14
 
        
15
 
        private static bool initialized;
16
 
        
17
 
        internal static void Initialize(Gtk.Widget iconRenderer) {
18
 
            if ((Stetic.Gui.initialized == false)) {
19
 
                Stetic.Gui.initialized = true;
20
 
            }
21
 
        }
22
 
    }
23
 
    
24
 
    internal class BinContainer {
25
 
        
26
 
        private Gtk.Widget child;
27
 
        
28
 
        private Gtk.UIManager uimanager;
29
 
        
30
 
        public static BinContainer Attach(Gtk.Bin bin) {
31
 
            BinContainer bc = new BinContainer();
32
 
            bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
33
 
            bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
34
 
            bin.Added += new Gtk.AddedHandler(bc.OnAdded);
35
 
            return bc;
36
 
        }
37
 
        
38
 
        private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args) {
39
 
            if ((this.child != null)) {
40
 
                args.Requisition = this.child.SizeRequest();
41
 
            }
42
 
        }
43
 
        
44
 
        private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args) {
45
 
            if ((this.child != null)) {
46
 
                this.child.Allocation = args.Allocation;
47
 
            }
48
 
        }
49
 
        
50
 
        private void OnAdded(object sender, Gtk.AddedArgs args) {
51
 
            this.child = args.Widget;
52
 
        }
53
 
        
54
 
        public void SetUiManager(Gtk.UIManager uim) {
55
 
            this.uimanager = uim;
56
 
            this.child.Realized += new System.EventHandler(this.OnRealized);
57
 
        }
58
 
        
59
 
        private void OnRealized(object sender, System.EventArgs args) {
60
 
            if ((this.uimanager != null)) {
61
 
                Gtk.Widget w;
62
 
                w = this.child.Toplevel;
63
 
                if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w))) {
64
 
                    ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
65
 
                    this.uimanager = null;
66
 
                }
67
 
            }
68
 
        }
69
 
    }
70
 
    
71
 
    internal class ActionGroups {
72
 
        
73
 
        public static Gtk.ActionGroup GetActionGroup(System.Type type) {
74
 
            return Stetic.ActionGroups.GetActionGroup(type.FullName);
75
 
        }
76
 
        
77
 
        public static Gtk.ActionGroup GetActionGroup(string name) {
78
 
            return null;
79
 
        }
80
 
    }
 
1
 
 
2
// This file has been generated by the GUI designer. Do not modify.
 
3
namespace Stetic
 
4
{
 
5
        internal class Gui
 
6
        {
 
7
                private static bool initialized;
 
8
 
 
9
                static internal void Initialize (Gtk.Widget iconRenderer)
 
10
                {
 
11
                        if ((Stetic.Gui.initialized == false)) {
 
12
                                Stetic.Gui.initialized = true;
 
13
                        }
 
14
                }
 
15
        }
 
16
 
 
17
        internal class BinContainer
 
18
        {
 
19
                private Gtk.Widget child;
 
20
 
 
21
                private Gtk.UIManager uimanager;
 
22
 
 
23
                public static BinContainer Attach (Gtk.Bin bin)
 
24
                {
 
25
                        BinContainer bc = new BinContainer ();
 
26
                        bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
 
27
                        bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
 
28
                        bin.Added += new Gtk.AddedHandler (bc.OnAdded);
 
29
                        return bc;
 
30
                }
 
31
 
 
32
                private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
 
33
                {
 
34
                        if ((this.child != null)) {
 
35
                                args.Requisition = this.child.SizeRequest ();
 
36
                        }
 
37
                }
 
38
 
 
39
                private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
 
40
                {
 
41
                        if ((this.child != null)) {
 
42
                                this.child.Allocation = args.Allocation;
 
43
                        }
 
44
                }
 
45
 
 
46
                private void OnAdded (object sender, Gtk.AddedArgs args)
 
47
                {
 
48
                        this.child = args.Widget;
 
49
                }
 
50
 
 
51
                public void SetUiManager (Gtk.UIManager uim)
 
52
                {
 
53
                        this.uimanager = uim;
 
54
                        this.child.Realized += new System.EventHandler (this.OnRealized);
 
55
                }
 
56
 
 
57
                private void OnRealized (object sender, System.EventArgs args)
 
58
                {
 
59
                        if ((this.uimanager != null)) {
 
60
                                Gtk.Widget w;
 
61
                                w = this.child.Toplevel;
 
62
                                if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) {
 
63
                                        ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
 
64
                                        this.uimanager = null;
 
65
                                }
 
66
                        }
 
67
                }
 
68
        }
 
69
 
 
70
        internal class ActionGroups
 
71
        {
 
72
                public static Gtk.ActionGroup GetActionGroup (System.Type type)
 
73
                {
 
74
                        return Stetic.ActionGroups.GetActionGroup (type.FullName);
 
75
                }
 
76
 
 
77
                public static Gtk.ActionGroup GetActionGroup (string name)
 
78
                {
 
79
                        return null;
 
80
                }
 
81
        }
81
82
}