diff options
Diffstat (limited to 'src/jrummikub/view/IView.java')
-rw-r--r-- | src/jrummikub/view/IView.java | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java index 03bddb5..09ab088 100644 --- a/src/jrummikub/view/IView.java +++ b/src/jrummikub/view/IView.java @@ -6,8 +6,10 @@ import java.util.Collection; import jrummikub.model.Stone; import jrummikub.model.StoneSet; +import jrummikub.util.Event; import jrummikub.util.IEvent; import jrummikub.util.IEvent1; +import jrummikub.view.IQuitWarningPanel.QuitMode; /** * The top-level view interface @@ -168,7 +170,7 @@ public interface IView { * * @return the event */ - public IEvent1<File> getLoadEvent(); + public IEvent getLoadEvent(); /** * The save event is emitted when the user wants to save the current game @@ -282,6 +284,22 @@ public interface IView { public void setInvalidStoneSets(Collection<StoneSet> sets); /** + * Show when loading is unsuccessful + */ + public void showLoadingError(); + + /** + * Enables/disables saving in menu bar + * + * @param enable + */ + public void enableSave(boolean enable); + + public void showQuitWarningPanel(boolean show); + + public IEvent getQuitEvent(); + + /** * Different types of bottom panels */ public enum BottomPanelType { @@ -299,15 +317,9 @@ public interface IView { WIN_PANEL } - /** - * Show when loading is unsuccessful - */ - void showLoadingError(); + public IQuitWarningPanel getQuitWarningPanel(); - /** - * Enables/disables saving in menu bar - * - * @param enable - */ - void enableSave(boolean enable); + public IEvent1<File> getLoadFileEvent(); + + public void load(); } |