public UMLEditableField(UMLEntry entry, bool resizable) : base((CanvasGroup) entry) { _textwidget = new CanvasWidget ((CanvasGroup) entry); _entry = entry; _is_resizable = resizable; _textview = new TextView (); TextBuffer tb = _textview.Buffer; tb.Text = _entry.Text; double x = entry.TextX, y = entry.TextY; _textwidget.W2i (ref x, ref y); X = x + entry.X; Y = y + entry.Y; _textwidget.Widget = _textview; _textwidget.Width = entry.TextWidth + 10;//FIXME? _textwidget.Height = entry.TextHeight + 10; //FIXME? _textview.KeyReleaseEvent += LookingEsc; _textview.Show (); Width = _textwidget.Width; Height = _textwidget.Height; //TODO: Dejar esto como estaba //CreateUMLControlPointGroup (); Resized += ElementResized; _entry.Root.CanvasEvent += ClickCanvasEvent; }
private void SetupInfoWidget() { infoWidget = new CanvasWidget(group); infoWidget.Width = widgetWidth; infoWidget.Height = widgetHeigh; int startingMinute = Task.StartingMinute; string minuteText = startingMinute.ToString(); if (startingMinute <= 9) { minuteText = "0" + minuteText; } label = new Label(); label.UseMarkup = true; label.Markup = "<b>" + Task.StartingHour.ToString() + ":" + minuteText + "</b>"; EventBox ebox = new EventBox(); ebox.Show(); ebox.Add(label); tooltips.SetTip(ebox, Task.Description, Task.Description); infoWidget.Widget = ebox; label.Show(); infoWidget.Show(); infoWidget.RaiseToTop(); }
private void SetupInfoWidget() { infoWidget = new CanvasWidget (group); infoWidget.Width = widgetWidth; infoWidget.Height = widgetHeigh; int startingMinute = Task.StartingMinute; string minuteText = startingMinute.ToString (); if (startingMinute <= 9) minuteText = "0" + minuteText; label = new Label (); label.UseMarkup = true; label.Markup = "<b>" + Task.StartingHour.ToString () + ":" + minuteText + "</b>"; EventBox ebox = new EventBox (); ebox.Show (); ebox.Add (label); tooltips.SetTip (ebox, Task.Description, Task.Description); infoWidget.Widget = ebox; label.Show (); infoWidget.Show (); infoWidget.RaiseToTop (); }