示例#1
0
        public ActionGroupEditor()
        {
            changedEvent = new ObjectWrapperEventHandler(OnActionChanged);

            Gtk.Fixed fx = new Gtk.Fixed();
            table               = new Gtk.Table(0, 0, false);
            table.RowSpacing    = 8;
            table.ColumnSpacing = 8;
            table.BorderWidth   = 12;

            Gtk.EventBox ebox = new Gtk.EventBox();
            ebox.ModifyBg(Gtk.StateType.Normal, this.Style.Backgrounds [0]);
            headerLabel = new EditableLabel();
            headerLabel.MarkupTemplate = "<b>$TEXT</b>";
            headerLabel.Changed       += OnGroupNameChanged;
            Gtk.VBox  vbox     = new Gtk.VBox();
            Gtk.Label grpLabel = new Gtk.Label();
            grpLabel.Xalign = 0;
            grpLabel.Markup = string.Format("<small><i>{0}</i></small>", Catalog.GetString("Action Group"));
//			vbox.PackStart (grpLabel, false, false, 0);
            vbox.PackStart(headerLabel, false, false, 3);
            vbox.BorderWidth = 12;
            ebox.Add(vbox);

            Gtk.VBox box = new Gtk.VBox();
            box.Spacing = 6;
            box.PackStart(ebox, false, false, 0);
            box.PackStart(table, false, false, 0);

            fx.Put(box, 0, 0);
            Add(fx);
            ShowAll();
        }
示例#2
0
        public ActionGroupEditor()
        {
            changedEvent = new ObjectWrapperEventHandler (OnActionChanged);

            Gtk.Fixed fx = new Gtk.Fixed ();
            table = new Gtk.Table (0, 0, false);
            table.RowSpacing = 8;
            table.ColumnSpacing = 8;
            table.BorderWidth = 12;

            Gtk.EventBox ebox = new Gtk.EventBox ();
            ebox.ModifyBg (Gtk.StateType.Normal, this.Style.Backgrounds [0]);
            headerLabel = new EditableLabel ();
            headerLabel.MarkupTemplate = "<b>$TEXT</b>";
            headerLabel.Changed += OnGroupNameChanged;
            Gtk.VBox vbox = new Gtk.VBox ();
            Gtk.Label grpLabel = new Gtk.Label ();
            grpLabel.Xalign = 0;
            grpLabel.Markup = "<small><i>Action Group</i></small>";
            //			vbox.PackStart (grpLabel, false, false, 0);
            vbox.PackStart (headerLabel, false, false, 3);
            vbox.BorderWidth = 12;
            ebox.Add (vbox);

            Gtk.VBox box = new Gtk.VBox ();
            box.Spacing = 6;
            box.PackStart (ebox, false, false, 0);
            box.PackStart (table, false, false, 0);

            fx.Put (box, 0, 0);
            Add (fx);
            ShowAll ();
        }
示例#3
0
 public override void Append(DriverWidget dw)
 {
     Gtk.Widget w = dw.NativeObject as Gtk.Widget;
     if (w != null)
     {
         fixchild.Put(w, 0, 0);
     }
 }
示例#4
0
        public Calendar() : base("Calendario")
        {
            SetDefaultSize(300, 270);
            SetPosition(Gtk.WindowPosition.Center);

            label = new Gtk.Label("...");

            Gtk.Calendar calendar = new Gtk.Calendar();
            calendar.DaySelected += OnDaySelected;

            Gtk.Fixed fix = new Gtk.Fixed();
            fix.Put(calendar, 20, 20);
            fix.Put(label, 40, 230);

            Add(fix);

            ShowAll();
        }
示例#5
0
        public IImageViewWrapper GetImageView(IImageWrapper imageWrapper)
        {
            var pixelBuf  = (Gdk.Pixbuf)imageWrapper.NativeObject;
            var image     = new Gtk.Image(pixelBuf);
            var fixedView = new Gtk.Fixed();

            fixedView.Put(image, 0, 0);
            var wrapper = new ImageViewWrapper(image);

            return(wrapper);
        }