packages feed

goatee-gtk 0.3.1.2 → 0.3.1.3

raw patch · 25 files changed

+28/−29 lines, 25 filesdep ~gtksetup-changedPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: gtk

API changes (from Hackage documentation)

- Game.Goatee.Ui.Gtk.Common: class MonadUiGo go => UiCtrl go ui | ui -> go where readTool ui = findTool ui . uiToolType =<< readModes ui openNewBoard ui = openBoard ui Nothing . cursorNode . execGo (modifyVariationMode $ const $ VariationMode ShowCurrentVariations True) . rootCursor . rootNode openFile ui file = do { result <- parseFile file; case result of { Right collection -> case collectionTrees collection of { [root] -> Right <$> openBoard ui (Just file) root root0 : _ : _ -> do { dialog <- messageDialogNew Nothing [] MessageWarning ButtonsOk ("The file " ++ file ++ " contains multiple game trees. Goatee only " ++ "supports single-tree collections at this time. Only the first tree " ++ "will be presented, and saving the game will write a file containing " ++ "only the first tree.\n\ \\n" ++ "Saving the game will not overwrite the existing file by default."); dialogRun dialog; widgetDestroy dialog; Right <$> openBoard ui Nothing root0 } [] -> return $ Left "Invalid game file, it contains no game trees." } Left err -> return $ Left err } } getFileName ui = maybe untitledFileName takeFileName <$> getFilePath ui
+ Game.Goatee.Ui.Gtk.Common: class MonadUiGo go => UiCtrl go ui | ui -> go
- Game.Goatee.Ui.Gtk.Common: class UiView go ui tool => UiTool go ui tool where toolIsImplemented _ = True toolPanelWidget _ = Nothing toolOnDestroy _ = return () toolOnActivating = toolGobanInvalidate toolOnDeactivated _ = return () toolGobanHandleEvent = toolGobanHandleEventDefault toolGobanClickComplete _ _ _ = return () toolGobanInvalidate _ = return () toolGobanRenderGetBoard _ = return . cursorBoard toolGobanRenderModifyCoords _ _ = return
+ Game.Goatee.Ui.Gtk.Common: class UiView go ui tool => UiTool go ui tool

Files

Setup.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
goatee-gtk.cabal view
@@ -1,10 +1,10 @@ name: goatee-gtk-version: 0.3.1.2+version: 0.3.1.3 synopsis: A monadic take on a 2,500-year-old board game - GTK+ UI. category: Game license: AGPL-3 license-file: LICENSE-copyright: Copyright 2014-2017 Bryan Gardiner+copyright: Copyright 2014-2018 Bryan Gardiner author: Bryan Gardiner <bog@khumba.net> maintainer: Bryan Gardiner <bog@khumba.net> homepage: http://khumba.net/projects/goatee@@ -34,7 +34,7 @@         directory >= 1.1 && < 1.4,         filepath >= 1.3 && < 1.5,         glib >= 0.13 && < 0.14,-        gtk >= 0.13 && < 0.15,+        gtk >= 0.13 && < 0.16,         goatee >= 0.3 && < 0.4,         mtl >= 2.1 && < 2.3,         parsec >= 3.1 && < 3.2@@ -75,7 +75,7 @@ executable goatee-gtk     build-depends:         base >= 4 && < 5,-        gtk >= 0.13 && < 0.15,+        gtk >= 0.13 && < 0.16,         goatee-gtk     ghc-options: -W -fwarn-incomplete-patterns -fwarn-unused-do-bind     hs-source-dirs: src-exe@@ -92,5 +92,4 @@     other-modules:         Game.Goatee.Ui.Gtk.CommonTest         Game.Goatee.Ui.Gtk.LatchTest-        Test     type: exitcode-stdio-1.0
src-exe/Main.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Actions.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Common.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/GamePropertiesPanel.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Goban.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/InfoLine.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Latch.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/MainWindow.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/NodePropertiesPanel.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/PlayPanel.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/AssignStone.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/Line.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/Mark.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/Null.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/Play.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Tool/Visibility.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Utils.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
src/Game/Goatee/Ui/Gtk/Widget.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
tests/Game/Goatee/Ui/Gtk/CommonTest.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
tests/Game/Goatee/Ui/Gtk/LatchTest.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by
tests/Test.hs view
@@ -1,6 +1,6 @@ -- This file is part of Goatee. ----- Copyright 2014-2017 Bryan Gardiner+-- Copyright 2014-2018 Bryan Gardiner -- -- Goatee is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by