当前位置: 首页>>代码示例>>C#>>正文


C# ScrolledWindow.ShowAll方法代码示例

本文整理汇总了C#中Gtk.ScrolledWindow.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# ScrolledWindow.ShowAll方法的具体用法?C# ScrolledWindow.ShowAll怎么用?C# ScrolledWindow.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk.ScrolledWindow的用法示例。


在下文中一共展示了ScrolledWindow.ShowAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HelpTree

		public HelpTree () : base (GettextCatalog.GetString ("Help"), Stock.Help)
		{
			tree_view = new MonoDevelop.Ide.Gui.Components.PadTreeView ();

			tree_view.AppendColumn ("name_col", tree_view.TextRenderer, "text", 0);
			tree_view.RowExpanded += new Gtk.RowExpandedHandler (RowExpanded);
			tree_view.Selection.Changed += new EventHandler (RowActivated);
			
			store = new TreeStore (typeof (string), typeof (Node));
			tree_view.Model = store;
			tree_view.HeadersVisible = false;
			
			scroller = new MonoDevelop.Components.CompactScrolledWindow ();
			scroller.ShadowType = Gtk.ShadowType.None;
			scroller.Add (tree_view);
			
			if (HelpService.HelpTree != null) {
				root_iter = store.AppendValues (GettextCatalog.GetString ("Mono Documentation"), HelpService.HelpTree);
				PopulateNode (root_iter);
	
				tree_view.ExpandRow (new TreePath ("0"), false);
				TreeIter child_iter;
			start:
				if (store.IterChildren (out child_iter, root_iter)) {
					do {
						if (!store.IterHasChild (child_iter)) {
							store.Remove (ref child_iter);
							goto start;
						}
					} while (store.IterNext (ref child_iter));
				}
			}
			scroller.ShowAll ();
		}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:34,代码来源:MonodocTreePad.cs

示例2: DisassemblyView

		public DisassemblyView ()
		{
			ContentName = GettextCatalog.GetString ("Disassembly");
			sw = new Gtk.ScrolledWindow ();
			editor = new TextEditor ();
			editor.Document.ReadOnly = true;
			
			editor.Options = new CommonTextEditorOptions {
				ShowLineNumberMargin = false,
			};
			
			sw.Add (editor);
			sw.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.ShowAll ();
			sw.Vadjustment.ValueChanged += OnScrollEditor;
			sw.VScrollbar.ButtonPressEvent += OnPress;
			sw.VScrollbar.ButtonReleaseEvent += OnRelease;
			sw.VScrollbar.Events |= Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask;
			sw.ShadowType = Gtk.ShadowType.In;
			
			sw.Sensitive = false;
			
			currentDebugLineMarker = new CurrentDebugLineTextMarker (editor);
			DebuggingService.StoppedEvent += OnStop;
		}
开发者ID:behappyyoung,项目名称:monodevelop,代码行数:26,代码来源:DisassemblyView.cs

示例3: AudiobookContent

 public AudiobookContent()
 {
     sw = new ScrolledWindow ();
     grid = new AudiobookGrid ();
     sw.Child = grid;
     sw.ShowAll ();
 }
开发者ID:haugjan,项目名称:banshee-hacks,代码行数:7,代码来源:AudiobookContent.cs

示例4: ErrorsSource

        public ErrorsSource(string name, Source source)
            : base(name, 50)
        {
            this.source = source;
            this.source.AddChildSource (this);

            scrolled_window = new ScrolledWindow();
            scrolled_window.ShadowType = ShadowType.In;
            scrolled_window.VscrollbarPolicy = PolicyType.Automatic;
            scrolled_window.HscrollbarPolicy = PolicyType.Automatic;

            view = new TreeView();

            scrolled_window.Add(view);
            scrolled_window.ShowAll();

            TreeViewColumn message_col = view.AppendColumn(Catalog.GetString("Message"),
                new CellRendererText(), "text", 0);
            TreeViewColumn file_col = view.AppendColumn(Catalog.GetString("File Name"),
                new CellRendererText(), "text", 1);

            message_col.Resizable = true;
            file_col.Resizable = true;

            store = new ListStore(typeof(string), typeof(string), typeof(Exception));
            view.Model = store;
        }
开发者ID:jrmuizel,项目名称:banshee-unofficial-plugins,代码行数:27,代码来源:ErrorsSource.cs

示例5: StatusLogPage

        private StatusLogPage()
        {
            m_TextView = new TextView();
            m_TextView.Editable = false;

            ScrolledWindow swindow = new ScrolledWindow();
            swindow.Add(m_TextView);

            this.PackStart(swindow, true, true, 0);
            swindow.ShowAll();

            var tag = new TextTag("Error");
            tag.Foreground = "darkred";
            m_TextView.Buffer.TagTable.Add(tag);

            tag = new TextTag("Fatal");
            tag.Foreground = "darkred";
            m_TextView.Buffer.TagTable.Add(tag);

            tag = new TextTag("Warn");
            tag.Foreground = "darkorange";
            m_TextView.Buffer.TagTable.Add(tag);

            tag = new TextTag("Info");
            tag.Foreground = "darkgreen";
            m_TextView.Buffer.TagTable.Add(tag);

            tag = new TextTag("Debug");
            tag.Foreground = "darkblue";
            m_TextView.Buffer.TagTable.Add(tag);

            m_TextView.Buffer.CreateMark("end", m_TextView.Buffer.EndIter, false);

            LoggingService.AddLogger(this);
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:35,代码来源:StatusLogPage.cs

示例6: ObjectValuePad

		public ObjectValuePad ()
		{
			scrolled = new ScrolledWindow ();
			scrolled.HscrollbarPolicy = PolicyType.Automatic;
			scrolled.VscrollbarPolicy = PolicyType.Automatic;
			
			tree = new ObjectValueTreeView ();
			
			fontChanger = new PadFontChanger (tree, tree.SetCustomFont, tree.QueueResize);
			
			tree.AllowEditing = true;
			tree.AllowAdding = false;
			tree.HeadersVisible = true;
			tree.RulesHint = true;
			scrolled.Add (tree);
			scrolled.ShowAll ();
			
			DebuggingService.CurrentFrameChanged += OnFrameChanged;
			DebuggingService.PausedEvent += OnDebuggerPaused;
			DebuggingService.ResumedEvent += OnDebuggerResumed;
			DebuggingService.StoppedEvent += OnDebuggerStopped;
			DebuggingService.EvaluationOptionsChanged += OnEvaluationOptionsChanged;

			needsUpdate = true;
			//If pad is created/opened while debugging...
			initialResume = !DebuggingService.IsDebugging;
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:27,代码来源:ObjectValuePad.cs

示例7: TransfersPage

        private TransfersPage()
        {
            ScrolledWindow swindow = new ScrolledWindow();

            transferListStore = new ListStore(typeof(IFileTransfer));
            transferList = new TreeView ();
            transferList.Model = transferListStore;

            swindow.Add(transferList);
            this.PackStart(swindow, true, true, 0);
            swindow.ShowAll();

            TreeViewColumn column = transferList.AppendColumn ("", new CellRendererPixbuf(), new TreeCellDataFunc (TransferIconFunc));
            column.MinWidth = 25;

            column = transferList.AppendColumn("Name", new CellRendererText(), new TreeCellDataFunc(TransferNameFunc));
            column.Expand = true;
            column.Resizable = true;

            column = transferList.AppendColumn("Progress", new CellRendererProgress(), new TreeCellDataFunc(TransferProgressFunc));
            column.Resizable = true;
            column.MinWidth = 100;

            column = transferList.AppendColumn("Up Speed", new CellRendererText(), new TreeCellDataFunc(TransferUpSpeedFunc));
            column.Resizable = true;

            column = transferList.AppendColumn("Down Speed", new CellRendererText(), new TreeCellDataFunc(TransferDownSpeedFunc));
            column.Resizable = true;

            column = transferList.AppendColumn("Status", new CellRendererText(), new TreeCellDataFunc(TransferStatusFunc));
            column.Resizable = true;
            column.MinWidth = 150;

            transferList.RowActivated += OnTransferListRowActivated;
            transferList.ButtonPressEvent +=  OnTransferListButtonPressEvent;

            downloadImage = Gui.LoadIcon(16, "go-down");
            uploadImage = Gui.LoadIcon(16, "go-up");

            GLib.Timeout.Add (500, new GLib.TimeoutHandler (RefreshTransferList));

            /*
            Core.NetworkAdded +=
                (NetworkEventHandler)DispatchService.GuiDispatch(
                    new NetworkEventHandler(Core_NetworkAdded)
                );
                */

            Core.FileTransferManager.NewFileTransfer +=
                (FileTransferEventHandler)DispatchService.GuiDispatch(
                    new FileTransferEventHandler(manager_NewFileTransfer)
                );

            Core.FileTransferManager.FileTransferRemoved +=
                (FileTransferEventHandler)DispatchService.GuiDispatch(
                    new FileTransferEventHandler(manager_FileTransferRemoved)
                );
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:58,代码来源:TransfersPage.cs

示例8: GetWidget

		public Widget GetWidget (MethodDefinition method)
		{
			Digraph digraph = GetIlSourceAsDot (method);

			Image image = new Image (DotHelper.BuildDotImage (digraph));

			ScrolledWindow sw = new ScrolledWindow ();
			sw.AddWithViewport (image);
			sw.ShowAll ();
			return sw;
		}
开发者ID:transformersprimeabcxyz,项目名称:cecil-old,代码行数:11,代码来源:IlasmGraphVisualizer.cs

示例9: TreeModelDemo

		public TreeModelDemo () : base ("TreeModel demo")
		{
			DefaultSize = new Gdk.Size (640,480);
			ScrolledWindow sw = new ScrolledWindow ();
			TreeView view = new TreeView (new TreeModelAdapter (new MyTreeModel ()));
			view.HeadersVisible = true;
			view.AppendColumn ("Name", new CellRendererText (), "text", 0);
			view.AppendColumn ("Type", new CellRendererText (), "text", 1);
			sw.Add (view);
			sw.ShowAll ();
			Add (sw);
		}
开发者ID:ystk,项目名称:debian-gtk-sharp2,代码行数:12,代码来源:TreeModelDemo.cs

示例10: GetWidget

		public Widget GetWidget (MethodDefinition method)
		{
			BackwardAnalysis (">", null, method);
			Digraph digraph = BuildDotFile (method);

			Image image = new Image (DotHelper.BuildDotImage (digraph));

			ScrolledWindow sw = new ScrolledWindow ();
			sw.AddWithViewport (image);
			sw.ShowAll ();
			Clear ();
			return sw;
		}
开发者ID:transformersprimeabcxyz,项目名称:cecil-old,代码行数:13,代码来源:CallerAnalysisVisualizer.cs

示例11: StackView

 public StackView(ProfileData data, DisplayOptions options)
 {
     list = new StackList (data, options);
     ScrolledWindow sw = new ScrolledWindow ();
     sw.Add (list);
     sw.ShowAll ();
     Add1 (sw);
     detail = new StackDetail (data, options);
     detail.CurrentItem = list.SelectedItem;
     list.Selection.Changed += delegate { detail.CurrentItem = list.SelectedItem; };
     Add2 (detail);
     Position = 200;
 }
开发者ID:mono,项目名称:emveepee,代码行数:13,代码来源:StackView.cs

示例12: MemosPage

        private MemosPage()
        {
            ScrolledWindow swindow = new ScrolledWindow();

            memoList = new TreeView ();
            swindow.Add(memoList);

            memoTreeStore = new NetworkGroupedTreeStore<Memo>(memoList);
            memoList.Model = memoTreeStore;

            TreeViewColumn column;

            column = memoList.AppendColumn("Subject",
                                           new CellRendererText(),
                                   new TreeCellDataFunc(MemoSubjectDataFunc));
            column.Expand = true;
            column.Resizable = true;

            column = memoList.AppendColumn(String.Empty,
                                           new CellRendererPixbuf(),
                               new TreeCellDataFunc(MemoAttachmentFunc));
            column.Widget = new Gtk.Image(new Gdk.Pixbuf(null, "FileFind.Meshwork.GtkClient.attachment-col-small.png"));
            column.Widget.Show();

            column = memoList.AppendColumn("Posted By",
                                   new CellRendererText (),
                                   new TreeCellDataFunc (MemoByDataFunc));

            column.Resizable = true;

            column = memoList.AppendColumn("Date",
                                   new CellRendererText (),
                                   new TreeCellDataFunc (MemoDateDataFunc));

            column.Resizable = true;

            memoList.RowActivated += memoList_RowActivated;
            memoList.ButtonPressEvent += memoList_ButtonPressEvent;

            this.PackStart(swindow, true, true, 0);
            swindow.ShowAll();

            foreach (Network network in Core.Networks) {
                Core_NetworkAdded (network);
            }

            Core.NetworkAdded +=
                (NetworkEventHandler)DispatchService.GuiDispatch(
                    new NetworkEventHandler(Core_NetworkAdded)
                );
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:51,代码来源:MemosPage.cs

示例13: GetWidget

		public Widget GetWidget (MethodDefinition method)
		{
			FontDescription fd = FontDescription.FromString ("Courier 10 Pitch 10");

			TextView ilTextView = new TextView ();
			ilTextView.ModifyFont (fd);
			ilTextView.Editable = false;
			ilTextView.Buffer.Text = GetIlSource (method);

			ScrolledWindow sw = new ScrolledWindow ();
			sw.Add (ilTextView);
			sw.ShowAll ();
			return sw;
		}
开发者ID:transformersprimeabcxyz,项目名称:cecil-old,代码行数:14,代码来源:IlasmSourceVisualizer.cs

示例14: ConnectionsPage

        private ConnectionsPage()
        {
            ScrolledWindow swindow = new ScrolledWindow();

            connectionListStore = new ListStore (typeof(ITransport));
            connectionList = new TreeView ();
            connectionList.Model = connectionListStore;
            connectionList.HeadersVisible = true;
            connectionList.ButtonPressEvent += connectionList_ButtonPressEvent;

            incomingPixbuf = Gui.LoadIcon(16, "go-next");
            outgoingPixbuf = Gui.LoadIcon(16, "go-previous");

            TreeViewColumn column;

            column = connectionList.AppendColumn ("", new CellRendererPixbuf (), new TreeCellDataFunc (ConnectionListIconFunc));
            column.MinWidth = 25;

            column = connectionList.AppendColumn ("Remote Address", new CellRendererText (), new TreeCellDataFunc (ConnectionListAddressFunc));
            column.Resizable = true;

            column = connectionList.AppendColumn ("Type", new CellRendererText (), new TreeCellDataFunc (ConnectionListTypeFunc));
            column.Resizable = true;

            column = connectionList.AppendColumn ("Status", new CellRendererText (), new TreeCellDataFunc (ConnectionListStatusFunc));
            column.Resizable = true;

            column = connectionList.AppendColumn ("Information", new CellRendererText (), new TreeCellDataFunc (ConnectionListInformationFunc));
            column.Resizable = true;

            swindow.Add(connectionList);
            this.PackStart(swindow, true, true, 0);
            swindow.ShowAll();

            Core.TransportManager.NewTransportAdded +=
                (TransportEventHandler)DispatchService.GuiDispatch(
                    new TransportEventHandler(OnNewTransportAdded)
                );

            Core.TransportManager.TransportRemoved +=
                (TransportEventHandler)DispatchService.GuiDispatch(
                    new TransportEventHandler(OnTransportRemoved)
                );

            Core.TransportManager.TransportError +=
                (TransportErrorEventHandler)DispatchService.GuiDispatch(
                    new TransportErrorEventHandler(CoreTransportManagerTransportError)
                );
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:49,代码来源:ConnectionsPage.cs

示例15: DisassemblyView

		public DisassemblyView ()
		{
			ContentName = GettextCatalog.GetString ("Disassembly");
			sw = new Gtk.ScrolledWindow ();
			editor = TextEditorFactory.CreateNewEditor ();
			editor.IsReadOnly = true;
			asmMarker = TextMarkerFactory.CreateAsmLineMarker (editor);

			editor.Options = DefaultSourceEditorOptions.PlainEditor;
			
			sw.AddWithViewport (editor);
			sw.HscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.VscrollbarPolicy = Gtk.PolicyType.Automatic;
			sw.ShowAll ();
			sw.Vadjustment.ValueChanged += OnScrollEditor;
			sw.VScrollbar.ButtonPressEvent += OnPress;
			sw.VScrollbar.ButtonReleaseEvent += OnRelease;
			sw.VScrollbar.Events |= Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask;
			sw.ShadowType = Gtk.ShadowType.In;
			
			sw.Sensitive = false;

			DebuggingService.StoppedEvent += OnStop;
		}
开发者ID:kdubau,项目名称:monodevelop,代码行数:24,代码来源:DisassemblyView.cs


注:本文中的Gtk.ScrolledWindow.ShowAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。