123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Ink;
- using System.Windows.Shapes;
- namespace SketchAssistantWPF
- {
- public interface MVP_View
- {
- /// <summary>
- /// Updates the colour of a canvas.
- /// </summary>
- /// <param name="canvasName">The name of the canvas to be updated.</param>
- /// <param name="active">Whether or not the canvas is active.</param>
- void SetCanvasState(string canvasName, bool active);
- /// <summary>
- /// Remove the current line.
- /// </summary>
- void RemoveCurrLine();
- /// <summary>
- /// Display the current line.
- /// </summary>
- /// <param name="line">The current line to display</param>
- void DisplayCurrLine(Polyline line);
- /// <summary>
- /// Removes all Lines from the left canvas.
- /// </summary>
- void RemoveAllLeftLines();
- /// <summary>
- /// Removes all lines in the right canvas.
- /// </summary>
- void RemoveAllRightLines();
- /// <summary>
- /// Adds another Line that will be displayed in the left display.
- /// </summary>
- /// <param name="newLine">The new Polyline to be added displayed.</param>
- void AddNewLineLeft(Polyline newLine);
- /// <summary>
- /// Adds another Line that will be displayed in the right display.
- /// </summary>
- /// <param name="newLine">The new Polyline to be added displayed.</param>
- void AddNewLineRight(Polyline newLine);
- /// <summary>
- /// Enables the timer of the View, which will tick the Presenter.
- /// </summary>
- void EnableTimer();
- /// <summary>
- /// A function that opens a file dialog and returns the filename.
- /// </summary>
- /// <param name="Filter">The filter that should be applied to the new Dialog.</param>
- /// <returns>Returns the FileName and the SafeFileName if the user correctly selects a file,
- /// else returns a tuple with empty strigns</returns>
- Tuple<String, String> openNewDialog(String Filter);
- /// <summary>
- /// Sets the contents of the load status indicator label.
- /// </summary>
- /// <param name="message">The new contents</param>
- void SetToolStripLoadStatus(String message);
- /// <summary>
- /// Sets the contents of the last action taken indicator label.
- /// </summary>
- /// <param name="message">The new contents</param>
- void SetLastActionTakenText(String message);
- /// <summary>
- /// Changes the states of a tool strip button.
- /// </summary>
- /// <param name="buttonName">The name of the button.</param>
- /// <param name="state">The new state of the button.</param>
- void SetToolStripButtonStatus(String buttonName, MainWindow.ButtonState state);
- /// <summary>
- /// shows the given info message in a popup and asks the user to aknowledge it
- /// </summary>
- /// <param name="message">the message to show</param>
- void ShowInfoMessage(String message);
- /// <summary>
- /// Shows a warning box with the given message (Yes/No Buttons)and returns true if the user aknowledges it.
- /// </summary>
- /// <param name="message">The message of the warning.</param>
- /// <returns>True if the user confirms (Yes), negative if he doesn't (No)</returns>
- bool ShowWarning(String message);
- /// <summary>
- /// If the mouse is pressed or not.
- /// </summary>
- /// <returns>Whether or not the mouse is pressed.</returns>
- bool IsMousePressed();
- /// <summary>
- /// Adds a point to the right canvas
- /// </summary>
- /// <param name="newPoint">The point</param>
- /// <param name="line">The original line object</param>
- void AddNewPointRight(Ellipse newPoint, InternalLine line);
- /// <summary>
- /// Adds a point to the left canvas
- /// </summary>
- /// <param name="newPoint">The point</param>
- void AddNewPointLeft(Ellipse newPoint);
- /// <summary>
- /// Returns the cursor position.
- /// </summary>
- /// <returns>The cursor Position</returns>
- Point GetCursorPosition();
- /// <summary>
- /// Sets the contents of the last action taken indicator label.
- /// </summary>
- /// <param name="message">The new contents</param>
- void SetOptiTrackText(String message);
- /// <summary>
- /// Sets the contents of the status bar label containing
- /// the similarity score of the left and right image.
- /// </summary>
- /// <param name="message">The message to be set,
- /// will be set to the default value if left empty.</param>
- void SetImageSimilarityText(string message);
- }
- }
|