Switch to MVP pattern
This commit is contained in:
52
Eve-O-Preview/UI/Interface/IMainView.cs
Normal file
52
Eve-O-Preview/UI/Interface/IMainView.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace EveOPreview.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Main view interface
|
||||
/// Presenter uses it to access GUI properties
|
||||
/// </summary>
|
||||
public interface IMainView : IView
|
||||
{
|
||||
bool MinimizeToTray { get; set; }
|
||||
|
||||
double ThumbnailsOpacity { get; set; }
|
||||
bool TrackClientLocations { get; set; }
|
||||
bool HideActiveClientThumbnail { get; set; }
|
||||
bool ShowThumbnailsAlwaysOnTop { get; set; }
|
||||
bool HideAllThumbnailsIfClientIsNotActive { get; set; }
|
||||
bool EnableUniqueThumbnailsLayouts { get; set; }
|
||||
|
||||
bool SyncThumbnailsSize { get; set; }
|
||||
int ThumbnailsWidth { get; set; }
|
||||
int ThumbnailsHeight { get; set; }
|
||||
|
||||
bool EnableZoomOnHover { get; set; }
|
||||
int ZoomFactor { get; set; }
|
||||
ZoomAnchor ZoomAnchor { get; set; }
|
||||
|
||||
bool ShowThumbnailOverlays { get; set; }
|
||||
bool ShowThumbnailFrames { get; set; }
|
||||
|
||||
void SetForumUrl(string url);
|
||||
|
||||
void Minimize();
|
||||
|
||||
void AddThumbnails(IList<IThumbnailDescriptionView> thumbnails);
|
||||
void UpdateThumbnails(IList<IThumbnailDescriptionView> thumbnails);
|
||||
void RemoveThumbnails(IList<IThumbnailDescriptionView> thumbnails);
|
||||
void UpdateThumbnailsSizeView(Size size);
|
||||
void UpdateZoomSettingsView();
|
||||
|
||||
event Action ApplicationExitRequested;
|
||||
event Action FormActivated;
|
||||
event Action FormMinimized;
|
||||
event Action<ViewCloseRequest> FormCloseRequested;
|
||||
event Action ApplicationSettingsChanged;
|
||||
event Action ThumbnailsSizeChanged;
|
||||
event Action<IntPtr, Boolean> ThumbnailStateChanged;
|
||||
event Action ForumUrlLinkActivated;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user