~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

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 IconLoader {
25
 
        
26
 
        public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) {
27
 
            Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
28
 
            if ((res != null)) {
29
 
                return res;
30
 
            }
31
 
            else {
32
 
                try {
33
 
                    return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
34
 
                }
35
 
                catch (System.Exception ) {
36
 
                    if ((name != "gtk-missing-image")) {
37
 
                        return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz);
38
 
                    }
39
 
                    else {
40
 
                        Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
41
 
                        Gdk.GC gc = new Gdk.GC(pmap);
42
 
                        gc.RgbFgColor = new Gdk.Color(255, 255, 255);
43
 
                        pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
44
 
                        gc.RgbFgColor = new Gdk.Color(0, 0, 0);
45
 
                        pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
46
 
                        gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
47
 
                        gc.RgbFgColor = new Gdk.Color(255, 0, 0);
48
 
                        pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
49
 
                        pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
50
 
                        return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
51
 
                    }
52
 
                }
53
 
            }
54
 
        }
55
 
    }
56
 
    
57
 
    internal class ActionGroups {
58
 
        
59
 
        public static Gtk.ActionGroup GetActionGroup(System.Type type) {
60
 
            return Stetic.ActionGroups.GetActionGroup(type.FullName);
61
 
        }
62
 
        
63
 
        public static Gtk.ActionGroup GetActionGroup(string name) {
64
 
            return null;
65
 
        }
66
 
    }
 
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 IconLoader
 
18
        {
 
19
                public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size)
 
20
                {
 
21
                        Gdk.Pixbuf res = widget.RenderIcon (name, size, null);
 
22
                        if ((res != null)) {
 
23
                                return res;
 
24
                        } else {
 
25
                                int sz;
 
26
                                int sy;
 
27
                                global::Gtk.Icon.SizeLookup (size, out sz, out sy);
 
28
                                try {
 
29
                                        return Gtk.IconTheme.Default.LoadIcon (name, sz, 0);
 
30
                                } catch (System.Exception) {
 
31
                                        if ((name != "gtk-missing-image")) {
 
32
                                                return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size);
 
33
                                        } else {
 
34
                                                Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz);
 
35
                                                Gdk.GC gc = new Gdk.GC (pmap);
 
36
                                                gc.RgbFgColor = new Gdk.Color (255, 255, 255);
 
37
                                                pmap.DrawRectangle (gc, true, 0, 0, sz, sz);
 
38
                                                gc.RgbFgColor = new Gdk.Color (0, 0, 0);
 
39
                                                pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1));
 
40
                                                gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
 
41
                                                gc.RgbFgColor = new Gdk.Color (255, 0, 0);
 
42
                                                pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
 
43
                                                pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
 
44
                                                return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
 
45
                                        }
 
46
                                }
 
47
                        }
 
48
                }
 
49
        }
 
50
 
 
51
        internal class ActionGroups
 
52
        {
 
53
                public static Gtk.ActionGroup GetActionGroup (System.Type type)
 
54
                {
 
55
                        return Stetic.ActionGroups.GetActionGroup (type.FullName);
 
56
                }
 
57
 
 
58
                public static Gtk.ActionGroup GetActionGroup (string name)
 
59
                {
 
60
                        return null;
 
61
                }
 
62
        }
67
63
}