generated.cs 1.8 KB

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