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


C# Notebook.AppendPage方法代码示例

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


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

示例1: AboutDialog

        public AboutDialog()
        {
            Title = Catalog.GetString ("About Pinta");
            //TransientFor = IdeApp.Workbench.RootWindow;
            AllowGrow = false;
            HasSeparator = false;
            Icon = PintaCore.Resources.GetIcon ("Pinta.png");

            VBox.BorderWidth = 0;

            aboutPictureScrollBox = new ScrollBox ();

            VBox.PackStart (aboutPictureScrollBox, false, false, 0);
            imageSep = PintaCore.Resources.GetIcon ("About.ImageSep.png");

            VBox.PackStart (new Gtk.Image (imageSep), false, false, 0);

            Notebook notebook = new Notebook ();
            notebook.BorderWidth = 6;
            notebook.AppendPage (new AboutPintaTabPage (), new Label (Title));
            notebook.AppendPage (new VersionInformationTabPage (), new Label (Catalog.GetString ("Version Info")));

            VBox.PackStart (notebook, true, true, 4);

            AddButton (Gtk.Stock.Close, (int)ResponseType.Close);

            ShowAll ();
        }
开发者ID:RodH257,项目名称:Pinta,代码行数:28,代码来源:AboutDialog.cs

示例2: ViewEditorDialog

		public ViewEditorDialog (ISchemaProvider schemaProvider, bool create, ViewEditorSettings settings)
		{
			if (schemaProvider == null)
				throw new ArgumentNullException ("schemaProvider");
			
			
			this.schemaProvider = schemaProvider;
			this.action = create ? SchemaActions.Create : SchemaActions.Alter;
			
			this.Build();
			
			if (create)
				Title = AddinCatalog.GetString ("Create View");
			else
				Title = AddinCatalog.GetString ("Alter View");
			
			notebook = new Notebook ();

			sqlEditor = new SqlEditorWidget ();
			sqlEditor.TextChanged += new EventHandler (SqlChanged);
			notebook.AppendPage (sqlEditor, new Label (AddinCatalog.GetString ("Definition")));
			
			if (settings.ShowComment) {
				commentEditor = new CommentEditorWidget ();
				notebook.AppendPage (commentEditor, new Label (AddinCatalog.GetString ("Comment")));
			}

			notebook.Page = 0;

			entryName.Text = view.Name;

			vboxContent.PackStart (notebook, true, true, 0);
			vboxContent.ShowAll ();
			SetWarning (null);
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:35,代码来源:ViewEditorDialog.cs

示例3: DemoMain

		public DemoMain ()
		{
			SetupDefaultIcon ();
		   	window = new Gtk.Window ("Gtk# Code Demos");
		   	window.SetDefaultSize (600, 400);
			window.DeleteEvent += new DeleteEventHandler (WindowDelete);

			HBox hbox = new HBox (false, 0);
			window.Add (hbox);

			treeView = CreateTree ();
			hbox.PackStart (treeView, false, false, 0);

			Notebook notebook = new Notebook ();
			hbox.PackStart (notebook, true, true, 0);

			notebook.AppendPage (CreateText (infoBuffer, false), new Label ("_Info"));
			TextTag heading = new TextTag ("heading");
			heading.Font = "Sans 18";
			infoBuffer.TagTable.Add (heading);

			notebook.AppendPage (CreateText (sourceBuffer, true), new Label ("_Source"));

			window.ShowAll ();
		}
开发者ID:ystk,项目名称:debian-gtk-sharp2,代码行数:25,代码来源:DemoMain.cs

示例4: ChangesetView

    public ChangesetView(Driver driver, int stopAfter)
    {
        this.driver = driver;
            this.stopAfter = stopAfter;

            InitializeChangesetList();

            ScrolledWindow scrolledWindow1 = new ScrolledWindow();
            scrolledWindow1.Add(changesetList);

            Add1(scrolledWindow1);

            viewChildren = new Notebook ();
            viewChildren.TabPos = PositionType.Bottom;
            Add2(viewChildren);

            changesetDetailView = new ChangesetDetailView(driver);
            viewChildren.AppendPage (changesetDetailView, new Label ("Details"));

            changesetDiffView = new ChangesetDiffView(driver);
            viewChildren.AppendPage (changesetDiffView, new Label ("Unified Diff"));

            int x, y, width, height, depth;
            RootWindow.GetGeometry (out x, out y, out width, out height, out depth);
            Position = Convert.ToInt32((height - 40) * 0.4);

            viewChildren.SwitchPage += OnSwitchPage;
    }
开发者ID:Jeff-Lewis,项目名称:opentf,代码行数:28,代码来源:ChangesetView.cs

示例5: CommonAboutDialog

        public CommonAboutDialog()
        {
            Title = MainClass.Languages.Translate("moscrif_ide_title_f1");
            TransientFor = MainClass.MainWindow;
            AllowGrow = false;
            HasSeparator = false;
            Modal = true;

            VBox.BorderWidth = 0;

            aboutPictureScrollBox = new ScrollBox();

            VBox.PackStart(aboutPictureScrollBox, false, false, 0);

            Notebook notebook = new Notebook();
            notebook.BorderWidth = 6;
            notebook.AppendPage(new AboutTabPage(), new Label(Title));
            notebook.AppendPage(new VersionInformationTabPage(), new Label(MainClass.Languages.Translate("components")));
            var buildInfo = LoadBuildInfo();
            if (buildInfo != null)
                notebook.AppendPage(buildInfo, new Label(MainClass.Languages.Translate("components")));
            VBox.PackStart(notebook, true, true, 4);

            AddButton (Stock.Close, ResponseType.Close);

            //ShowAll();
        }
开发者ID:moscrif,项目名称:ide,代码行数:27,代码来源:CommonAboutDialog.cs

示例6: ManagerView

 /// <summary>
 /// Constructor
 /// </summary>
 public ManagerView(ViewBase owner)
     : base(owner)
 {
     notebook = new Notebook();
     _mainWidget = notebook;
     Grid = new GridView(this);
     ScriptEditor = new EditorView(this);
     notebook.AppendPage(Grid.MainWidget, new Label("Properties"));
     notebook.AppendPage(ScriptEditor.MainWidget, new Label("Script"));
 }
开发者ID:ykhorzon,项目名称:ApsimX,代码行数:13,代码来源:ManagerView.cs

示例7: PreferencesDialog

        //        Entry sipServerAddressEntry;
        //        Entry sipUsernameEntry;
        //        Entry sipPasswordEntry;
        public PreferencesDialog()
            : base()
        {
            SetDefaultSize (600, 600);
            WindowPosition = WindowPosition.Center;
            IconName = "rtc";
            HasSeparator = false;
            BorderWidth = 5;
            Resizable = true;
            Title = Catalog.GetString ("Banter Preferences");

            VBox.Spacing = 5;
            ActionArea.Layout = ButtonBoxStyle.End;

            // Notebook Tabs (General, Messages)...
            Gtk.Notebook notebook = new Notebook ();
            notebook.TabPos = PositionType.Top;
            notebook.BorderWidth = 5;
            notebook.Show ();

            //			notebook.AppendPage (MakeGeneralPage (),
            //									new Label (Catalog.GetString ("General")));
            notebook.AppendPage (MakeAccountsPage (),
                                    new Label (Catalog.GetString ("Accounts")));
            notebook.AppendPage (MakeMessagesPage (),
                                    new Label (Catalog.GetString ("Messages")));

            VBox.PackStart (notebook, true, true, 0);

            // Close button...
            Button button = new Button (Stock.Close);
            button.CanDefault = true;
            button.Show ();

            AccelGroup accelGroup = new AccelGroup ();
            AddAccelGroup (accelGroup);

            button.AddAccelerator ("activate",
                                    accelGroup,
                                    (uint) Gdk.Key.Escape,
                                    0,
                                    0);

            AddActionWidget (button, ResponseType.Close);
            DefaultResponse = ResponseType.Close;

            Realized += DialogRealized;

            Preferences.PreferenceChanged += PreferenceChanged;

            ShowAll ();
        }
开发者ID:GNOME,项目名称:banter,代码行数:55,代码来源:PreferencesDialog.cs

示例8: DatabaseEditor

        public DatabaseEditor(string filePath)
        {
            fileName = filePath;
            control = new Notebook();

            control.TabPos = PositionType.Bottom;
            control.AppendPage(new StructureDatabaseView(filePath),new Label(MainClass.Languages.Translate("sql_structure")));
            control.AppendPage(new DataDatabaseView(filePath),new Label(MainClass.Languages.Translate("sql_data")));
            control.AppendPage(new SqlDatabaseView(filePath),new Label(MainClass.Languages.Translate("sql_sql")));

            control.SwitchPage += new SwitchPageHandler(OnSwitchPage);

            control.ShowAll();
        }
开发者ID:moscrif,项目名称:ide,代码行数:14,代码来源:DatabaseEditor.cs

示例9: ClassBrowserPadWidget

		public ClassBrowserPadWidget (ExtensibleTreeView treeView, IPadWindow window)
		{
			this.treeView = treeView;
			
			DockItemToolbar searchBox = window.GetToolbar (PositionType.Top);
			
			searchEntry = new Entry ();
			searchBox.Add (searchEntry, true);
			buttonSearch = new Button (new Gtk.Image (Gtk.Stock.Find, IconSize.Menu));
			buttonSearch.Relief = ReliefStyle.None;
			buttonCancelSearch = new Button (new Gtk.Image (Gtk.Stock.Stop, IconSize.Menu));
			buttonCancelSearch.Relief = ReliefStyle.None;
			searchBox.Add (buttonSearch);
			searchBox.Add (buttonCancelSearch);
			searchBox.ShowAll ();
			
			notebook = new Notebook ();
			notebook.ShowTabs = false;
			notebook.ShowBorder = false;
			this.PackEnd (notebook, true, true, 0);
			
			notebook.AppendPage (treeView, null);
			ScrolledWindow scrolledWindow = new ScrolledWindow ();
			scrolledWindow.Add (searchResultsTreeView);
			notebook.AppendPage (scrolledWindow, null);
			
			list = new ListStore (new Type[] {
				typeof (Pixbuf),
				typeof (string),
				typeof (IType)
			});
			model = new TreeModelSort (list);
			searchResultsTreeView.Model = model;
			searchResultsTreeView.AppendColumn (string.Empty, new Gtk.CellRendererPixbuf (), "pixbuf", 0);
			searchResultsTreeView.AppendColumn (string.Empty, new Gtk.CellRendererText (), "text", 1);
			searchResultsTreeView.HeadersVisible = false;
			searchResultsTreeView.RowActivated += SearchRowActivated;
			IdeApp.Workspace.WorkspaceItemOpened += OnOpenCombine;
			IdeApp.Workspace.WorkspaceItemClosed += OnCloseCombine;
					
			this.searchEntry.Changed += SearchEntryChanged;
			this.buttonCancelSearch.Clicked += CancelSearchClicked;
			this.searchEntry.Activated += SearchClicked;
			this.searchEntry.KeyPressEvent += SearchEntryKeyPressEvent;
			this.buttonSearch.Clicked += SearchClicked;
			
			this.ShowAll ();
		}
开发者ID:nocache,项目名称:monodevelop,代码行数:48,代码来源:ClassBrowserPadWidget.cs

示例10: WorkbenchView

        public WorkbenchView(WorkbenchController controller)
        {
            SplashWindow.Update ("Creating GUI");
            XML gxml = new Glade.XML (null,
                          WorkbenchSingleton.GLADEFILE,
                          "Workbench",
                          null);

            window = (Gtk.Window) gxml["Workbench"];
            Gtk.VPaned splitter = (Gtk.VPaned) gxml["mainPane"];

            editorNotebook = new EditorNotebook ();
            splitter.Pack1 (editorNotebook, true, false);

            ScrolledWindow sw = new ScrolledWindow ();
            console = new TextView ();
            console.Editable = false;
            console.WrapMode = WrapMode.Word;
            sw.Add (console);

            Notebook bottomNotebook = new Notebook ();
            bottomNotebook.AppendPage (sw, new Label ("Console"));
            splitter.Pack2 (bottomNotebook, true, false);

                        window.Icon = icon;
            this.WindowTitle = "";
            gxml.Autoconnect (controller);
            bottomNotebook.ShowAll ();
            editorNotebook.ShowAll ();
            SplashWindow.Update ("Simetron is ready!");
        }
开发者ID:BackupTheBerlios,项目名称:simetron,代码行数:31,代码来源:WorkbenchView.cs

示例11: TabbedSkin

		public TabbedSkin(BasilProject project, ITaskBuilder taskBuilder)
		{
			_project = project;
			_tabsToTools = new System.Collections.Hashtable();

			window = new Gtk.Window ("WeSay");
			window.SetDefaultSize (600, 400);
			window.DeleteEvent += new DeleteEventHandler (WindowDelete);

			HBox hbox = new HBox (false, 0);
			window.Add (hbox);

			Notebook notebook = new Notebook ();
			notebook.SwitchPage += new SwitchPageHandler(OnNotebookSwitchPage);
			hbox.PackStart(notebook, true, true, 0);
			foreach (ITask t in taskBuilder.Tasks)
			{
				VBox container = new VBox();
				t.Container = container;
				int i = notebook.AppendPage(container, new Label(t.Label));
				_tabsToTools.Add(i, t);
			}

			window.ShowAll ();
		}
开发者ID:bbriggs,项目名称:wesay,代码行数:25,代码来源:TabbedSkin.cs

示例12: PreferencesDialog

    public PreferencesDialog(ItemShelf itemShelf)
        : base()
    {
        this.itemShelf = itemShelf;

        this.Title = Mono.Posix.Catalog.GetString ("Preferences");
        this.HasSeparator = false;
        this.SetDefaultSize (300, 200);

        Notebook notebook = new Notebook ();

        Glade.XML gxml = new Glade.XML (null, "themeselection.glade", "hbox1", null);
        HBox hBox = (HBox)gxml["hbox1"];
        ScrolledWindow scrolledwindow = (ScrolledWindow)gxml["scrolledwindow1"];
        TreeView themeTreeview = CreateThemeTreeView ();
        themeTreeview.Selection.Changed += OnThemeTreeViewSelectionChanged;

        scrolledwindow.Add (themeTreeview);

        notebook.AppendPage (hBox, new Label (Mono.Posix.Catalog.GetString ("Theme")));

        this.VBox.Add (notebook);

        Button closeButton = (Button)this.AddButton (Gtk.Stock.Close, 1);
        closeButton.Clicked += OnCloseButtonClicked;

        this.ShowAll();
    }
开发者ID:MonoBrasil,项目名称:historico,代码行数:28,代码来源:PreferencesDialog.cs

示例13: ListPage

        public ListPage(Notebook notebook, ModulesTreeInfo module)
        {
            this.notebook = notebook;
            this.module = module;

            headerbox = new HBox();
            headerlabel = new Label(module.Text);
            headerbox.PackStart(headerlabel);
            //Image img = new Image("gtk-close", IconSize.Menu);
            close_img = ImageManager.GetImage("Images.close-button.png");
            //close_img = new Image("gtk-close", IconSize.Menu);
            btnCloseTab = new Button(close_img);
            btnCloseTab.BorderWidth = 0;
            btnCloseTab.Relief = ReliefStyle.None;
            //btnCloseTab.WidthRequest = 19;
            //btnCloseTab.HeightRequest = 19;
            btnCloseTab.Clicked += delegate { this.Dispose(); };
            headerbox.PackStart(btnCloseTab);
            headerbox.ShowAll();

            tableview = new DataTableView(module);
            this.Add(tableview);
            this.ShowAll();

            notebook.AppendPage(this, headerbox);
            notebook.SetTabReorderable(this, true);
        }
开发者ID:langpavel,项目名称:LPS-old,代码行数:27,代码来源:ListPage.cs

示例14: UnitForm

        //------------------------------------------------------------------------------
        public UnitForm(string file_name)
        {
            instance = new Notebook ();

            UnitEditor.RenderablesList renderables_list = new UnitEditor.RenderablesList (file_name);
            instance.AppendPage (renderables_list, new Label("Renderables"));
        }
开发者ID:Narinyir,项目名称:crown-tools,代码行数:8,代码来源:UnitForm.cs

示例15: CommonAboutDialog

		public CommonAboutDialog ()
		{
			Title = string.Format (GettextCatalog.GetString ("About {0}"), BrandingService.ApplicationName);
			TransientFor = IdeApp.Workbench.RootWindow;
			AllowGrow = false;
			HasSeparator = false;
			
			var notebook = new Notebook ();
			notebook.BorderWidth = 0;
			notebook.AppendPage (new AboutMonoDevelopTabPage (), new Label (Title));
			notebook.AppendPage (new VersionInformationTabPage (), new Label (GettextCatalog.GetString ("Version Info")));
			VBox.PackStart (notebook, true, true, 0);
			
			AddButton (Gtk.Stock.Close, (int)ResponseType.Close);
			
			ShowAll ();
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:17,代码来源:CommonAboutDialog.cs


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