Thumbnail management code cleanup
This commit is contained in:
@@ -46,7 +46,7 @@ namespace EveOPreview.UI
|
||||
event Action<ViewCloseRequest> FormCloseRequested;
|
||||
event Action ApplicationSettingsChanged;
|
||||
event Action ThumbnailsSizeChanged;
|
||||
event Action<IntPtr, Boolean> ThumbnailStateChanged;
|
||||
event Action<IntPtr> ThumbnailStateChanged;
|
||||
event Action ForumUrlLinkActivated;
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,6 @@ namespace EveOPreview.UI
|
||||
{
|
||||
IntPtr Id { get; set; }
|
||||
string Title { get; set; }
|
||||
bool IsDisabled { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,6 @@ namespace EveOPreview.UI
|
||||
{
|
||||
public interface IThumbnailDescriptionViewFactory
|
||||
{
|
||||
IThumbnailDescriptionView Create(IntPtr id, string title);
|
||||
IThumbnailDescriptionView Create(IntPtr id, string title, bool isDisabled);
|
||||
}
|
||||
}
|
||||
31
Eve-O-Preview/UI/Interface/IThumbnailView.cs
Normal file
31
Eve-O-Preview/UI/Interface/IThumbnailView.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace EveOPreview.UI
|
||||
{
|
||||
public interface IThumbnailView : IView
|
||||
{
|
||||
IntPtr Id { get; set; }
|
||||
string Title { get; set; }
|
||||
|
||||
bool IsEnabled { get; set; }
|
||||
bool IsActive { get; set; }
|
||||
Point Location { get; set; }
|
||||
Size Size { get; set; }
|
||||
bool IsOverlayEnabled { get; set; }
|
||||
|
||||
bool IsKnownHandle(IntPtr handle);
|
||||
|
||||
void SetOpacity(double opacity);
|
||||
void SetWindowFrames(bool enable);
|
||||
void SetTopMost(bool enableTopmost);
|
||||
|
||||
void Refresh();
|
||||
|
||||
event Action<IntPtr> ThumbnailResized;
|
||||
event Action<IntPtr> ThumbnailMoved;
|
||||
event Action<IntPtr> ThumbnailFocused;
|
||||
event Action<IntPtr> ThumbnailLostFocus;
|
||||
event Action<IntPtr> ThumbnailActivated;
|
||||
}
|
||||
}
|
||||
10
Eve-O-Preview/UI/Interface/IThumbnailViewFactory.cs
Normal file
10
Eve-O-Preview/UI/Interface/IThumbnailViewFactory.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
namespace EveOPreview.UI
|
||||
{
|
||||
public interface IThumbnailViewFactory
|
||||
{
|
||||
IThumbnailView Create(IntPtr id, string title, Size size);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user