public PlacesSearch()
        {
            this.Build();
            store= new Gtk.ListStore (typeof(string),typeof(string),typeof(string),typeof(string),typeof(Vector3),typeof(UUID));

            MyTreeViewColumn mycol;
            mycol = new MyTreeViewColumn("Name", new Gtk.CellRendererText(), "text", 0,true);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Sim", new Gtk.CellRendererText(), "text", 1,false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Traffic", new Gtk.CellRendererText(), "text", 2,false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            store.SetSortFunc(2,numericsort);

            mycol = new MyTreeViewColumn("Location", new Gtk.CellRendererText(), "text", 3,false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            treeview1.HeadersClickable = true;
            treeview1.Model=store;
            store.SetSortColumnId(0, Gtk.SortType.Ascending);

            MainClass.onRegister += new MainClass.register(MainClass_onRegister);
            MainClass.onDeregister += new MainClass.deregister(MainClass_onDeregister);
            if(MainClass.client != null ) { MainClass_onRegister(); }
        }
        public GroupChatList()
        {
            this.Build();
            store= new Gtk.ListStore (typeof(string),typeof(ChatSessionMember));
            MyTreeViewColumn tvc;
            Gtk.CellRendererText NameRenderer=new Gtk.CellRendererText();
            tvc=new MyTreeViewColumn("Name",NameRenderer,"text",0,true);
            tvc.Sizing=Gtk.TreeViewColumnSizing.Autosize;
            tvc.setmodel(store);

            tvc.SetCellDataFunc(NameRenderer,new Gtk.TreeCellDataFunc(RenderName));

            this.treeview_members.AppendColumn(tvc);
            this.treeview_members.HeadersClickable=true;
            store.SetSortColumnId(0,SortType.Ascending);

            this.treeview_members.Selection.Mode = SelectionMode.Multiple;
            this.treeview_members.ButtonPressEvent += new ButtonPressEventHandler(treeview_ButtonPressEvent);
            Dictionary <UUID,TreeIter> memberstree= new Dictionary<UUID,TreeIter>();

            treeview_members.Model=store;
        }
        public GroupSearch()
        {
            this.Build();

            MainClass.onRegister += new MainClass.register(MainClass_onRegister);
            MainClass.onDeregister += new MainClass.deregister(MainClass_onDeregister);
            if(MainClass.client != null ) { MainClass_onRegister(); }

            store= new Gtk.ListStore (typeof(string),typeof(string),typeof(UUID));

            MyTreeViewColumn mycol;
            mycol = new MyTreeViewColumn("Name", new Gtk.CellRendererText(), "text", 0,true);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Members", new Gtk.CellRendererText(), "text", 1,false);
            mycol.setmodel(store);
            store.SetSortFunc(2, numericsort);
            treeview1.AppendColumn(mycol);

            treeview1.Model=store;
        }
        public Inventory()
        {
            this.Build();

            treeview_inv.AppendColumn("",new CellRendererPixbuf(),"pixbuf",0);

            Gtk.CellRendererText item_name = new Gtk.CellRendererText();
            renderer = item_name;
            item_name.Editable = true;
            item_name.Edited += new EditedHandler(item_name_Edited);

            col = new MyTreeViewColumn("Name", item_name, "text", 1,true);
            col.setmodel(inventory);

            treeview_inv.InsertColumn(col, 1);

            this.treeview_inv.RowExpanded += new Gtk.RowExpandedHandler(onRowExpanded);
            this.treeview_inv.RowCollapsed += new Gtk.RowCollapsedHandler(onRowCollapsed);
            this.treeview_inv.ButtonPressEvent += new ButtonPressEventHandler(treeview_inv_ButtonPressEvent);

            this.treeview_inv.Selection.Mode = SelectionMode.Multiple;

            filter = new Gtk.TreeModelFilter(inventory, null);
            filter.VisibleFunc = new TreeModelFilterVisibleFunc(FilterTree);
            treeview_inv.Model = filter;
            treeview_inv.HeadersClickable=true;

            this.inventory.SetSortFunc(0, sortinventoryfunc);
            this.inventory.SetSortColumnId(0, SortType.Ascending);
            this.inventory.SetSortFunc(1, sortinventoryfunc);
            this.inventory.SetSortColumnId(1, SortType.Ascending);

            MainClass.onRegister += new MainClass.register(MainClass_onRegister);
            MainClass.onDeregister += new MainClass.deregister(MainClass_onDeregister);
            if(MainClass.client != null ) { MainClass_onRegister(); }

            this.label_aquired.Text="";
            this.label_createdby.Text="";
            this.label_name.Text="";
            this.label_group.Text="";
            this.label_saleprice.Text="";

            if (MainClass.client != null)
            {
                if (MainClass.client.Network.LoginStatusCode == OpenMetaverse.LoginStatus.Success)
                {
                    inventoryloaded = true;
                    inventory.Clear();
                    populate_top_level_inv();
                }
            }
        }
        public FriendsList()
        {
            this.Build();
            store= new Gtk.ListStore (typeof(Gdk.Pixbuf),typeof(string),typeof(Gdk.Pixbuf),typeof(Gdk.Pixbuf),typeof(Gdk.Pixbuf),typeof(Gdk.Pixbuf),typeof(string),typeof(bool));

            MyTreeViewColumn mycol;

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 0,false);
            //    mycol.setmodel(store);
            mycol.Expand=false;
            mycol.FixedWidth=24;
            treeview_friends.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Name", new CellRendererText(), "text", 1,true);
            mycol.Expand=true;
            mycol.setmodel(store);
            treeview_friends.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 2,false);
              //  mycol.setmodel(store);
            mycol.Expand=false;
            mycol.Spacing=0;
            mycol.FixedWidth=24;
            mycol.Sizing=Gtk.TreeViewColumnSizing.Fixed;
            treeview_friends.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 3,false);
             //   mycol.setmodel(store);
            mycol.Expand=false;
            mycol.Spacing=0;
            mycol.Sizing=Gtk.TreeViewColumnSizing.Fixed;
            mycol.FixedWidth=24;
            treeview_friends.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 4,false);
              //  mycol.setmodel(store);
            mycol.Expand=false;
            mycol.Spacing=0;
            mycol.FixedWidth=24;
            mycol.Sizing=Gtk.TreeViewColumnSizing.Fixed;
            treeview_friends.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 5,false);
              //  mycol.setmodel(store);
            mycol.Expand=false;
            mycol.Spacing=0;
            mycol.FixedWidth=24;
            mycol.Sizing=Gtk.TreeViewColumnSizing.Fixed;
            treeview_friends.AppendColumn(mycol);

            treeview_friends.Model=store;
            store.SetSortColumnId(1, SortType.Ascending);
            store.SetSortFunc(1,sortfunc);
            treeview_friends.HeadersClickable=true;
            this.treeview_friends.Selection.Mode = SelectionMode.Multiple;

            online_img=MainClass.GetResource("icon_avatar_online.png");
            offline_img=MainClass.GetResource("icon_avatar_offline.png");
            this.img_blank=MainClass.GetResource("blank_arrow.png");
            this.img_edit_mine=MainClass.GetResource("ff_edit_mine.png");
            this.img_edit_theirs=MainClass.GetResource("ff_edit_theirs.png");
            this.img_map_me=MainClass.GetResource("ff_visible_map.png");
            this.img_see_my_status=MainClass.GetResource("ff_visible_online.png");

            MainClass.onRegister += new MainClass.register(MainClass_onRegister);
            MainClass.onDeregister += new MainClass.deregister(MainClass_onDeregister);
            if(MainClass.client != null ) { MainClass_onRegister(); }

            treeview_friends.CursorChanged += new EventHandler(treeview_friends_CursorChanged);
        }
        public ObjectsLayout()
        {
            this.Build();
            store = new Gtk.ListStore(typeof(string), typeof(string), typeof(string), typeof(UUID), typeof(ulong), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf), typeof(Gdk.Pixbuf));

            MyTreeViewColumn mycol;
            mycol = new MyTreeViewColumn("Name",new Gtk.CellRendererText(), "text", 0,true);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Desc", new Gtk.CellRendererText(), "text", 1,false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("Distance", new Gtk.CellRendererText(), "text", 2,false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 5, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 6, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 7, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 8, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 9, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 10, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 11, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);
            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 12, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            mycol = new MyTreeViewColumn("", new CellRendererPixbuf(), "pixbuf", 13, false);
            mycol.setmodel(store);
            treeview1.AppendColumn(mycol);

            treeview1.Model=store;
            this.store.SetSortFunc(2, sort_Vector3);
            store.SetSortColumnId(2, Gtk.SortType.Ascending);

            this.label_desc.Text="";
            this.label_forsale.Text="";
            this.label_group.Text="";
            this.label_name.Text="";
            this.label_owner.Text="";
            this.label_key.Text="";
            this.label_distance.Text="";
            this.label_pos.Text="";
            this.label_float_text.Text="";
            treeview1.HeadersClickable = true;

            img_blank = MainClass.GetResource("blank_arrow.png");
            img_script = MainClass.GetResource("inv_item_script.png");
            img_touch = MainClass.GetResource("touch.png");
            img_pay= MainClass.GetResource("status_money.png");
            img_phantom = MainClass.GetResource("phantom.png");
            img_physical = MainClass.GetResource("inv_item_object.png");
            img_owner = MainClass.GetResource("icn_voice-pvtfocus.png");
            img_officer = MainClass.GetResource("icn_voice-groupfocus2.png");
            img_group = MainClass.GetResource("icn_voice-groupfocus.png");

            img_move = MainClass.GetResource("move.png");
            img_mod = MainClass.GetResource("ff_edit_mine.png");
            img_trans = MainClass.GetResource("ff_edit_theirs.png");

            AutoPilot.onAutoPilotFinished += new AutoPilot.AutoPilotFinished(onAutoPilotFinished);

            MainClass.onRegister += new MainClass.register(MainClass_onRegister);
            MainClass.onDeregister += new MainClass.deregister(MainClass_onDeregister);
            if(MainClass.client != null ) { MainClass_onRegister(); }
        }