/* i-net software provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This programming example assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. i-net software support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. © i-net software 1998-2013 */ using Inet.Viewer.Data; using System; using System.Collections.Generic; namespace Inet.Viewer { /// /// Enum to differ the different buttons for the toolbar /// public enum ToolbarButtonType { /// /// Button group of all "general" buttons /// General = 0, /// /// Button group of all "navigation" buttons such as "next page", "previous page", etc. /// Navigation = 1, /// /// Button group of all "view" buttons such as "double page view", "single page view", etc. /// View = 2, /// /// Button group of all "zoom" buttons, that is - "zoom in", "zoom out". /// Zoom = 3, /// /// Button group of all various "report" buttons such as "search", "export", and "refresh". /// Report = 4, /// /// Button responsible for the print action /// Print = 5, /// /// Button responsible for the refresh action /// Refresh = 6, /// /// Button responsible for the export action /// Export = 7, /// /// Button responsible for the search action /// Search = 8, /// /// Button responsible for showing the info dialog /// Info = 9, /// /// Button responsible for action loading java report archive (JRA) /// JRA_Laod = 10, /// /// Button responsible for action saving java report archive (JRA) /// JRA_Save = 11 } /// /// The toolbar which contains various buttons. /// public interface IToolBar { /// /// Sets a button or a button group visible or invisible. /// The identifier for the button or button group /// True if the button shoulb be visible otherwise false /// void SetButtonsVisible(ToolbarButtonType buttonType, bool visible); /// /// Return true if the button or button group is visible otherwise false. /// The specified button or button group /// true if it is visible otherwise false /// bool IsButtonsVisible(ToolbarButtonType buttonType); /// /// Shows or hides this component depending on the value of parameter b. /// if true, shows this component; otherwise, hides this component bool Visible { set; get; } /// /// The toolbar will be shown according to this ReportView /// IReportView ReportView { get; set; } /// /// Checks or unchecks to search button of this toolbar. /// bool SearchChecked { set; } /// /// Adds a progress to this toolbar. /// /// the progress to add void AddProgress(Progress progress); /// /// Selectes any running progress that match the specified filter delegate. /// /// if the filter returns true for a given progress, the progress will be returned IEnumerable SelectProgress(Func filter); /// /// Increases the zoom level of the current viewer. /// void ZoomIn(); /// /// Decreases the zoom level of the current viewer. /// void ZoomOut(); } }