private void UserControl_Loaded(object sender, RoutedEventArgs e) { if (!_toolsCreated) { // Generate toolbar DocumentToolbar.CreateToolbar(this); if (this.EnableOutlineTreeControl == true || this.EnableThumbnailListControl == true || this.EnableSearchControl == true) { this.DocumentSideWindow.CreateSideWindow(this); } _toolsCreated = true; SetSideWindowVisible(this.ShowSideWindow); } if (!_documentLoaded && InitialDocumentUrl != null) { //load initial document uri specified by xaml this.LoadDocument(InitialDocumentUrl); _documentLoaded = true; } //commandStack is to support redo/undo //this.commandStack = AnnotationCommandStack.Instance; //Hook up event handlers in the CommandStack to capture actions for undo/redo //AnnotationCommandHelper.HookAnnotationCommandEventHandlers(this.DocumentViewer); }
internal void SetToolbar(DocumentToolbar toolbar) { toolbar.Add(labelOverview, true); toolbar.Add(buttonDiff); toolbar.Add(buttonPrev); toolbar.Add(buttonNext); toolbar.ShowAll(); }
internal void SetToolbar(DocumentToolbar toolbar) { toolbar.Add(revertButton); toolbar.Add(revertToButton); Gtk.HBox a = new Gtk.HBox(); a.PackEnd(searchEntry, false, false, 0); toolbar.Add(a, true); toolbar.ShowAll(); }
internal void SetToolbar(DocumentToolbar toolbar) { if (info.Repository.SupportsRevertRevision) { toolbar.Add(revertButton); } toolbar.Add(revertToButton); toolbar.Add(refreshButton); Gtk.HBox a = new Gtk.HBox(); a.PackEnd(searchEntry, false, false, 0); toolbar.Add(a, true); toolbar.ShowAll(); }
public void SetToolbar(DocumentToolbar toolbar) { }