2014-07-08 16:08:52 +00:00
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
public interface IControlMainform
|
|
|
|
|
{
|
2015-12-07 17:04:30 +00:00
|
|
|
|
bool WantsToControlSavestates { get; }
|
|
|
|
|
|
|
|
|
|
void SaveState();
|
|
|
|
|
void LoadState();
|
|
|
|
|
void SaveStateAs();
|
|
|
|
|
void LoadStateAs();
|
|
|
|
|
void SaveQuickSave(int slot);
|
|
|
|
|
void LoadQuickSave(int slot);
|
|
|
|
|
void SelectSlot(int slot);
|
|
|
|
|
void PreviousSlot();
|
|
|
|
|
void NextSlot();
|
|
|
|
|
|
2014-07-10 19:51:36 +00:00
|
|
|
|
bool WantsToControlReadOnly { get; }
|
2014-09-27 12:19:50 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Function that is called by Mainform instead of using its own code
|
|
|
|
|
/// when a Tool sets WantsToControlReadOnly.
|
|
|
|
|
/// Should not be called directly.
|
|
|
|
|
/// </summary>
|
2014-07-08 16:08:52 +00:00
|
|
|
|
void ToggleReadOnly();
|
2014-07-10 19:51:36 +00:00
|
|
|
|
|
2014-08-19 19:24:17 +00:00
|
|
|
|
bool WantsToControlStopMovie { get; }
|
2014-09-27 12:19:50 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Function that is called by Mainform instead of using its own code
|
|
|
|
|
/// when a Tool sets WantsToControlStopMovie.
|
|
|
|
|
/// Should not be called directly.
|
|
|
|
|
/// <remarks>Like MainForm's StopMovie(), saving the movie is part of this function's responsibility.</remarks>
|
|
|
|
|
/// </summary>
|
2014-11-08 17:44:25 +00:00
|
|
|
|
void StopMovie(bool supressSave);
|
2014-09-27 12:19:50 +00:00
|
|
|
|
|
|
|
|
|
bool WantsToControlRewind { get; }
|
|
|
|
|
|
|
|
|
|
void CaptureRewind();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Function that is called by Mainform instead of using its own code
|
|
|
|
|
/// when a Tool sets WantsToControlRewind
|
|
|
|
|
/// Returns whether or not the rewind action actually occured
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool Rewind();
|
2014-10-26 16:36:50 +00:00
|
|
|
|
|
|
|
|
|
bool WantsToControlRestartMovie { get; }
|
|
|
|
|
|
|
|
|
|
void RestartMovie();
|
2014-07-08 16:08:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|