Ejemplo n.º 1
0
        public void InitInterface()
        {
            mainwindow.Icon = new Gdk.Pixbuf(null, "lPhant.png");
            mainwindow.Maximize();
            imgDownloads.Pixbuf   = new Gdk.Pixbuf(null, "down.gif");
            imgUploads.Pixbuf     = new Gdk.Pixbuf(null, "up.gif");
            imgSearch.Pixbuf      = new Gdk.Pixbuf(null, "viewmag.gif");
            imgServers.Pixbuf     = new Gdk.Pixbuf(null, "network.gif");
            imgFriends.Pixbuf     = new Gdk.Pixbuf(null, "kdmconfig.gif");
            imgPreferences.Pixbuf = new Gdk.Pixbuf(null, "configure.gif");
            imgConnect.Pixbuf     = new Gdk.Pixbuf(null, "connect_no.gif");
            imgAbout.Pixbuf       = new Gdk.Pixbuf(null, "help.gif");

            downloads   = new TDownloads(tvDownloads, krnGateway);
            uploads     = new TUploads(tvUploads, krnGateway);
            comments    = new TComments(tvComments, krnGateway);
            servers     = new TServers(krnGateway, gxml, txtServerLog);
            sharedFiles = new TSharedFiles(tvSharedFiles, krnGateway);
            search      = new TSearch(krnGateway, gxml);
            trayicon    = new TIcon(krnGateway, mainwindow);

            tvFileNames.AppendColumn("File name", new CellRendererText(), "text", 0);
            tvFileNames.AppendColumn("Sources", new CellRendererText(), "text", 1);

            tvSources.AppendColumn("Name", new CellRendererText(), "text", 0);
            tvSources.AppendColumn("File name", new CellRendererText(), "text", 1);
            tvSources.AppendColumn("Speed", new CellRendererText(), "text", 2);
            tvSources.AppendColumn("Status", new CellRendererText(), "text", 3);
            tvSources.AppendColumn("Position", new CellRendererText(), "text", 4);
            tvSources.AppendColumn("Downloaded", new CellRendererText(), "text", 5);
            tvSources.AppendColumn("Uploaded", new CellRendererText(), "text", 6);
            tvSources.AppendColumn("Progress", new CellRendererText(), "text", 7);
            tvSources.AppendColumn("Software", new CellRendererText(), "text", 8);
            tvSources.AppendColumn("Version", new CellRendererText(), "text", 9);

            tvFriends.AppendColumn("Friend", new CellRendererText(), "text", 0);
        }
Ejemplo n.º 2
0
        public void InitInterface()
        {
            mainwindow.Icon = new Gdk.Pixbuf (null, "lPhant.png");
               	   mainwindow.Maximize ();
               	   imgDownloads.Pixbuf = new Gdk.Pixbuf (null, "down.gif");
               	   imgUploads.Pixbuf = new Gdk.Pixbuf (null, "up.gif");
               	   imgSearch.Pixbuf = new Gdk.Pixbuf (null, "viewmag.gif");
               	   imgServers.Pixbuf = new Gdk.Pixbuf (null, "network.gif");
               	   imgFriends.Pixbuf = new Gdk.Pixbuf (null, "kdmconfig.gif");
               	   imgPreferences.Pixbuf = new Gdk.Pixbuf (null, "configure.gif");
               	   imgConnect.Pixbuf = new Gdk.Pixbuf (null, "connect_no.gif");
               	   imgAbout.Pixbuf = new Gdk.Pixbuf (null, "help.gif");

               	   downloads = new TDownloads (tvDownloads,krnGateway);
               	   uploads = new TUploads (tvUploads,krnGateway);
               	   comments = new TComments (tvComments,krnGateway);
               	   servers = new TServers (krnGateway,gxml,txtServerLog);
               	   sharedFiles = new TSharedFiles (tvSharedFiles,krnGateway);
               	   search = new TSearch (krnGateway,gxml);
            trayicon = new TIcon (krnGateway,mainwindow);

               	   tvFileNames.AppendColumn ("File name", new CellRendererText(),"text",0);
               	   tvFileNames.AppendColumn ("Sources", new CellRendererText(),"text",1);

               	   tvSources.AppendColumn ("Name",new CellRendererText(),"text",0);
               	   tvSources.AppendColumn ("File name",new CellRendererText(),"text",1);
               	   tvSources.AppendColumn ("Speed",new CellRendererText(),"text",2);
               	   tvSources.AppendColumn ("Status",new CellRendererText(),"text",3);
               	   tvSources.AppendColumn ("Position",new CellRendererText(),"text",4);
               	   tvSources.AppendColumn ("Downloaded",new CellRendererText(),"text",5);
               	   tvSources.AppendColumn ("Uploaded",new CellRendererText(),"text",6);
               	   tvSources.AppendColumn ("Progress",new CellRendererText(),"text",7);
               	   tvSources.AppendColumn ("Software",new CellRendererText(),"text",8);
               	   tvSources.AppendColumn ("Version",new CellRendererText(),"text",9);

               	   tvFriends.AppendColumn ("Friend", new CellRendererText(),"text",0);
        }