private void Init(System.Guid guid, bool visible, int width, int height, int xPos, int yPos, bool showSidebar, PersonCardSize personCardSize, string personGroupId) { this.guid = guid; searchTimeoutID = 0; CreateWidgets(); SetDefaultSize(width, height); Icon = Utilities.GetIcon("banter-22", 22); AllowShrink = true; initialPersonCardSize = personCardSize; initiallyShowSidebar = showSidebar; initialGroupId = personGroupId; Move(xPos, yPos); groupTreeModel = PersonManager.Groups; groupButtonMap = new Dictionary <int, GroupButton> (); saveStateTimeout = new InterruptableTimeout(); saveStateTimeout.Timeout += SaveStateTimeout; Realized += OnRealizeWidget; }
public PersonCard() : base() { this.person = null; this.cardSize = PersonCardSize.Small; Init(); }
///<summary> /// Constructs a PersonCard from a Person object ///</summary> public PersonCard(Person person) : base() { this.person = person; this.cardSize = PersonCardSize.Small; person.PresenceUpdated += OnPersonPresenceUpdated; person.AvatarUpdated += OnPersonAvatarUpdated; person.NotifyUpdated += OnPersonNotifyUpdated; Init(); }
private void Init(Widget parentWidget, TreeModel personModel) { this.ModifyBg(StateType.Normal, this.Style.Base(StateType.Normal)); this.ModifyBase(StateType.Normal, this.Style.Base(StateType.Normal)); this.CanFocus = true; vbox = new VBox(false, 0); this.Add(vbox); personCardMap = new Dictionary <TreeIter, PersonCard> (); personCardSize = PersonCardSize.Small; Model = personModel; }
private void Init(System.Guid guid, bool visible, int width, int height, int xPos, int yPos, bool showSidebar, PersonCardSize personCardSize, string personGroupId) { this.guid = guid; searchTimeoutID = 0; CreateWidgets (); SetDefaultSize (width, height); Icon = Utilities.GetIcon ("banter-22", 22); AllowShrink = true; initialPersonCardSize = personCardSize; initiallyShowSidebar = showSidebar; initialGroupId = personGroupId; Move (xPos, yPos); groupTreeModel = PersonManager.Groups; groupButtonMap = new Dictionary<int, GroupButton> (); saveStateTimeout = new InterruptableTimeout (); saveStateTimeout.Timeout += SaveStateTimeout; Realized += OnRealizeWidget; }
private void Init(Widget parentWidget, TreeModel personModel) { this.ModifyBg (StateType.Normal, this.Style.Base (StateType.Normal)); this.ModifyBase (StateType.Normal, this.Style.Base (StateType.Normal)); this.CanFocus = true; vbox = new VBox (false, 0); this.Add (vbox); personCardMap = new Dictionary<TreeIter, PersonCard> (); personCardSize = PersonCardSize.Small; Model = personModel; }