Ejemplo n.º 1
0
        private void SetupUI()
        {
            hPaned1 = new HPaned();
            hPaned2 = new HPaned();
            hPaned1.Add1(SetupTypeTree());
            hPaned1.Add2(hPaned2);

            hPaned1.Position = (int)gconf.Get(gconfPath + "hpaned1position");
            hPaned2.Position = (int)gconf.Get(gconfPath + "hpaned2position");

            vbox         = new VBox(true, 2);
            vbox.Spacing = 2;
            Frame frame = new Frame();

            frame.Shadow = ShadowType.In;
            frame.Add(MemberSelector());
            vbox.Add(frame);
            frame        = new Frame();
            frame.Shadow = ShadowType.In;
            frame.Add(ICSelector());
            vbox.Add(frame);
            hPaned2.Add1(vbox);

            memberView = new MemberView();
            memberView.MemberSelectedEvent += new MemberView.MemberSelected(MemberSelected);
            memberView.RecordFactory        = recordFactory [0];

            ScrolledWindow sw = new ScrolledWindow();

            sw.Add(memberView);
            hPaned2.Add2(sw);

            Content = new Notebook();
            findBar = new FindBar(this);
            Content.AppendPage(findBar, new Label("Find"));

            Add1(hPaned1);
            Add2(Content);

            Position = (int)gconf.Get(gconfPath + "vpaned1position");
        }
Ejemplo n.º 2
0
		private void SetupUI ()
		{
			hPaned1 = new HPaned ();
			hPaned2 = new HPaned ();
			hPaned1.Add1 (SetupTypeTree ());
			hPaned1.Add2 (hPaned2);

			hPaned1.Position = (int) gconf.Get (gconfPath + "hpaned1position");
			hPaned2.Position = (int) gconf.Get (gconfPath + "hpaned2position");

			vbox = new VBox (true, 2);
			vbox.Spacing = 2;
			Frame frame = new Frame ();
			frame.Shadow = ShadowType.In;
			frame.Add (MemberSelector ());
			vbox.Add (frame);
			frame = new Frame ();
			frame.Shadow = ShadowType.In;
			frame.Add (ICSelector ());
			vbox.Add (frame);
			hPaned2.Add1 (vbox);

			memberView = new MemberView ();
			memberView.MemberSelectedEvent += new MemberView.MemberSelected (MemberSelected);
			memberView.RecordFactory = recordFactory [0];

			ScrolledWindow sw = new ScrolledWindow ();
			sw.Add (memberView);
			hPaned2.Add2 (sw);

			Content = new Notebook ();
			findBar = new FindBar (this);
			Content.AppendPage (findBar, new Label ("Find"));

			Add1 (hPaned1);
			Add2 (Content);

			Position = (int) gconf.Get (gconfPath + "vpaned1position");
		}