internal BookmarkListSource(CustomToolbar parent, UITableView table) { parentView = parent; items = parentView.listViewItemsSource; tableView = table; bookmarkFont = parent.bookmarkFont; }
internal BookmarkToolbar(CustomToolbar parent) { parentView = parent; border = new UIView(); border.BackgroundColor = UIColor.LightGray; titleContainer = new UIView(); titleContainer.BackgroundColor = new UIColor(red: 0.97f, green: 0.97f, blue: 0.97f, alpha: 1.0f); //Title label that displays "Bookmarks" title = new UILabel(); title.Text = "Bookmarks"; title.Font = UIFont.BoldSystemFontOfSize(14); title.TextColor = UIColor.Black; title.TextAlignment = UITextAlignment.Left; //Button to remove the bookmark toolbar (mobile only) backButton = new UIButton(); backButton.AccessibilityIdentifier = "backbutton"; backButton.Font = parentView.bookmarkFont; backButton.SetTitle("\ue709", UIControlState.Normal); backButton.SetTitleColor(UIColor.FromRGB(113, 113, 113), UIControlState.Normal); backButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; backButton.VerticalAlignment = UIControlContentVerticalAlignment.Center; backButton.TouchUpInside += BackButton_TouchUpInside; bookmarkCloseButton = new UIButton(); bookmarkCloseButton.AccessibilityIdentifier = "bookmarkCloseButton"; bookmarkCloseButton.Font = parentView.highFont; bookmarkCloseButton.SetTitle("\uE70f", UIControlState.Normal); bookmarkCloseButton.SetTitleColor(UIColor.FromRGB(113, 113, 113), UIControlState.Normal); bookmarkCloseButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; bookmarkCloseButton.VerticalAlignment = UIControlContentVerticalAlignment.Center; bookmarkCloseButton.TouchUpInside += bookmarkCloseButton_TouchUpInside;; bookmarkListView = new UITableView(); bookmarkListView.RowHeight = 60; bookmarkListView.SeparatorStyle = UITableViewCellSeparatorStyle.None; bookmarkListView.Source = new BookmarkListSource(parentView, bookmarkListView); titleContainer.AddSubview(title); this.AddSubview(bookmarkListView); this.AddSubview(titleContainer); //Add back button or left border only if the device is mobile or tablet respectively if ((UIDevice.CurrentDevice).UserInterfaceIdiom != UIUserInterfaceIdiom.Pad) { titleContainer.AddSubview(backButton); } else { this.AddSubview(border); this.AddSubview(bookmarkCloseButton); } }
internal BookmarkCell(NSString cellID, UIFont bookmarkFont, CustomToolbar parent, List <PdfBookmark> forwardQue) : base(UITableViewCellStyle.Default, cellID) { this.navigationQueue = forwardQue; parentView = parent; title = new UILabel(); title.Font = UIFont.SystemFontOfSize(14); title.TextColor = UIColor.Black; title.BackgroundColor = UIColor.Clear; //Button to navigate to the parent bookmark of the current bookmark list backToParentButton = new UIButton(); backToParentButton.AccessibilityIdentifier = "backToParentButton"; backToParentButton.Font = bookmarkFont; backToParentButton.SetTitle("\ue709", UIControlState.Normal); backToParentButton.SetTitleColor(UIColor.FromRGB(113, 113, 113), UIControlState.Normal); backToParentButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; backToParentButton.TouchUpInside += BackToParentButton_TouchUpInside; //Button to navigate to the children of a bookmark. It is visible only the bookmark has children expandButton = new UIButton(); expandButton.AccessibilityIdentifier = "expandButton"; expandButton.Font = bookmarkFont; expandButton.SetTitle("\ue704", UIControlState.Normal); expandButton.SetTitleColor(UIColor.FromRGB(113, 113, 113), UIControlState.Normal); expandButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Center; expandButton.TouchUpInside += ExpandButton_TouchUpInside; //Border that separates the tableview cells customSeparatorBorder = new UIView(); customSeparatorBorder.BackgroundColor = UIColor.LightGray; ContentView.Add(backToParentButton); ContentView.Add(title); ContentView.Add(expandButton); ContentView.Add(customSeparatorBorder); }
public AnnotationHelper(CustomToolbar customtoolbar) { parent = customtoolbar; }
public InkAnnotationHelper(AnnotationHelper annottoolbar, CustomToolbar customtoolbar) { AnnotHelper = annottoolbar; Parent = customtoolbar; }
public InkAnnotationHelper(TextMarkupAnnotationHelper helper, CustomToolbar customtoolbar) { TextmarkupHelper = helper; Parent = customtoolbar; }
public InkAnnotationHelper(CustomToolbar customtoolbar) { Parent = customtoolbar; }
public EditTextAnnotationHelper(AnnotationHelper annottoolbar, CustomToolbar customtoolbar) { annotHelper = annottoolbar; parent = customtoolbar; }
public EditTextAnnotationHelper(TextMarkupAnnotationHelper helper, CustomToolbar customtoolbar) { textmarkupHelper = helper; parent = customtoolbar; }
public TextMarkupAnnotationHelper(AnnotationHelper annottoolbar, CustomToolbar customtoolbar) { annotHelper = annottoolbar; parent = customtoolbar; }
public TextMarkupAnnotationHelper(InkAnnotationHelper inkannottoolbar, CustomToolbar customtoolbar) { inkAnnot = inkannottoolbar; parent = customtoolbar; }
public TextMarkupAnnotationHelper(CustomToolbar customtoolbar) { parent = customtoolbar; }
internal StampAnnotationView(CustomToolbar customToolbar) { parent = new UIView(); transparentView = new UIView(); mainView = customToolbar; titleBar = new UIView(); backButton = new UIButton(); backButton.SetTitle("\ue71b", UIControlState.Normal); backButton.Font = mainView.highFont; backButton.SetTitleColor(UIColor.DarkGray, UIControlState.Normal); titleBar.AddSubview(backButton); backButton.TouchUpInside += BackButton_TouchUpInside; title = new UILabel(); if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) { title.TextAlignment = UITextAlignment.Right; title.Text = "CHOOSE STAMP"; title.TextColor = UIColor.FromRGB(0, 118, 255); } else { title.TextAlignment = UITextAlignment.Center; title.Text = "Choose Stamp"; title.TextColor = UIColor.Black; } titleBar.AddSubview(title); titleBar.BackgroundColor = UIColor.FromRGB(249, 249, 249); parent.AddSubview(titleBar); UIImage imageApproved = UIImage.FromBundle("Approved.png"); UIImage imageNotApproved = UIImage.FromBundle("NotApproved.png"); UIImage imageDraft = UIImage.FromBundle("Draft.png"); UIImage imageConfidential = UIImage.FromBundle("Confidential.png"); UIImage imageExpired = UIImage.FromBundle("Expired.png"); approved = new UIButton(); approved.SetImage(imageApproved, UIControlState.Normal); approved.TouchUpInside += Stamp_TouchUpInside; parent.AddSubview(approved); notApproved = new UIButton(); notApproved.SetImage(imageNotApproved, UIControlState.Normal); notApproved.TouchUpInside += Stamp_TouchUpInside; parent.AddSubview(notApproved); draft = new UIButton(); draft.SetImage(imageDraft, UIControlState.Normal); draft.TouchUpInside += Stamp_TouchUpInside; parent.AddSubview(draft); confidential = new UIButton(); confidential.SetImage(imageConfidential, UIControlState.Normal); confidential.TouchUpInside += Stamp_TouchUpInside; parent.AddSubview(confidential); expired = new UIButton(); expired.SetImage(imageExpired, UIControlState.Normal); expired.TouchUpInside += Stamp_TouchUpInside; parent.AddSubview(expired); if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) { transparentView.BackgroundColor = UIColor.Black; transparentView.Alpha = 0.5f; AddSubview(transparentView); } AddSubview(parent); bottomBar = new UIView(); bottomBar.BackgroundColor = UIColor.FromRGB(249, 249, 249); parent.AddSubview(bottomBar); closeButton = new UIButton(); closeButton.SetTitleColor(UIColor.FromRGB(0, 118, 255), UIControlState.Normal); closeButton.SetTitle("Close", UIControlState.Normal); closeButton.Font = UIFont.SystemFontOfSize(16); bottomBar.AddSubview(closeButton); closeButton.TouchUpInside += CloseButton_TouchUpInside; parent.BackgroundColor = UIColor.White; }
public ShapeAnnotationHelper(AnnotationHelper annottoolbar, CustomToolbar customtoolbar) { annotHelper = annottoolbar; parent = customtoolbar; }