예제 #1
0
        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;
        }
예제 #2
0
        public PersonCard() : base()
        {
            this.person   = null;
            this.cardSize = PersonCardSize.Small;

            Init();
        }
예제 #3
0
        ///<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();
        }
예제 #4
0
        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;
        }
예제 #5
0
파일: GroupWindow.cs 프로젝트: GNOME/banter
        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;
        }
예제 #6
0
파일: PersonView.cs 프로젝트: GNOME/banter
        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;
        }