From e9b990b717ad6a5018121fa045f45c8eaa5f3eb3 Mon Sep 17 00:00:00 2001 From: Rene Vergara A Date: Sat, 10 Feb 2024 15:45:29 -0500 Subject: [PATCH] First commit - GTK interface test in Haskell --- .gitignore | 2 ++ CHANGELOG.md | 11 +++++++ LICENSE | 30 ++++++++++++++++++ README.md | 1 + Setup.hs | 2 ++ app/Main.hs | 69 ++++++++++++++++++++++++++++++++++++++++++ bp32.png | Bin 0 -> 8578 bytes hkgui02.cabal | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ package.yaml | 63 ++++++++++++++++++++++++++++++++++++++ src/Lib.hs | 6 ++++ stack.yaml | 68 +++++++++++++++++++++++++++++++++++++++++ stack.yaml.lock | 13 ++++++++ test/Spec.hs | 2 ++ zenith-qr.png | Bin 0 -> 2781 bytes 14 files changed, 346 insertions(+) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 LICENSE create mode 100644 README.md create mode 100644 Setup.hs create mode 100644 app/Main.hs create mode 100644 bp32.png create mode 100644 hkgui02.cabal create mode 100644 package.yaml create mode 100644 src/Lib.hs create mode 100644 stack.yaml create mode 100644 stack.yaml.lock create mode 100644 test/Spec.hs create mode 100644 zenith-qr.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c368d45 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.stack-work/ +*~ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..bd7eb12 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog for `hkgui02` + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to the +[Haskell Package Versioning Policy](https://pvp.haskell.org/). + +## Unreleased + +## 0.1.0.0 - YYYY-MM-DD diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..98e2291 --- /dev/null +++ b/LICENSE @@ -0,0 +1,30 @@ +Copyright Author name here (c) 2024 + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Author name here nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d7ebf61 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# hkgui02 diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/app/Main.hs b/app/Main.hs new file mode 100644 index 0000000..92c15db --- /dev/null +++ b/app/Main.hs @@ -0,0 +1,69 @@ +{-# LANGUAGE OverloadedLabels #-} +{-# LANGUAGE OverloadedStrings #-} + +module Main (main) where + +import Data.GI.Base +import qualified GI.Gtk as Gtk +import System.Directory + +main :: IO () +main = do + _ <- Gtk.init Nothing + + win <- Gtk.windowNew Gtk.WindowTypeToplevel + Gtk.setContainerBorderWidth win 10 + Gtk.setWindowTitle win "Zenith - full node wallet" + Gtk.setWindowResizable win False + Gtk.setWindowDefaultWidth win 600 + Gtk.setWindowDefaultHeight win 450 + Gtk.setWindowWindowPosition win Gtk.WindowPositionCenter + -- Gtk.windowSetDecorated win False + + home <- getHomeDirectory + img1 <- Gtk.imageNewFromFile $ home ++ "/Development/HaskelDev/hk-gui/hkgui02/zenith-qr.png" + img2 <- Gtk.imageNewFromFile $ home ++ "/Development/HaskelDev/hk-gui/hkgui02/bp32.png" + + + spacer <- Gtk.labelNew Nothing + Gtk.labelSetMarkup spacer " " + label1 <- Gtk.labelNew Nothing + Gtk.labelSetMarkup label1 "Cancel" + + + label0 <- Gtk.labelNew Nothing + Gtk.labelSetMarkup label0 "Zenith" + + + btn <- Gtk.buttonNew + Gtk.buttonSetRelief btn Gtk.ReliefStyleNormal + Gtk.buttonSetImage btn $ Just img2 + Gtk.buttonSetImagePosition btn Gtk.PositionTypeLeft + Gtk.widgetSetHexpand btn False + Gtk.buttonSetLabel btn "Cancel" + + _ <- on btn #clicked $ do + putStrLn "User choose: close" + Gtk.widgetDestroy win + + -- on btn #clicked (set msg [ #label := "Clicked!"]) + + box <- new Gtk.Box [ #orientation := Gtk.OrientationVertical ] + + + grid <- Gtk.gridNew + Gtk.gridSetColumnSpacing grid 10 + Gtk.gridSetRowSpacing grid 10 + Gtk.gridSetColumnHomogeneous grid True + + #attach grid spacer 0 0 1 1 + #attach grid btn 1 0 1 1 + + #add win box + #packStart box label0 True False 10 + #packStart box img1 True False 10 + #packStart box grid True False 10 + + _ <- Gtk.onWidgetDestroy win Gtk.mainQuit + #showAll win + Gtk.main \ No newline at end of file diff --git a/bp32.png b/bp32.png new file mode 100644 index 0000000000000000000000000000000000000000..c4793dc8470b0289c0672b67b5f3f39af09d6a99 GI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f)tM_bGW+hawyI_^Ann`dI0*r-a52A0HdLUvu!GOSQ)Uu>8(LTNtLm(Tl_ z#PYvjF!2uaC6IQ=3i7p)4Wd4$xDX-8mB~cbuVbw|h60#rbx$?oF8hgl^HaKcvC_-) z=e@V?JO9jW@XDEo(RHf;|&3r)5RqR-wij!-kbF=W2boj`BdRU|(2brrj7u(;`zn^0#Hp?w%%3oXW^G^$Gvt z9W5hu+vNRxd>c&Q*L0)QbX+h-n zP&1m#|Mr(R^Kjmyq8Otk$+hgfxr7mLLGJ9kUUA2Uk5>{q&dnod;-F59H$D4?(?=fB zZO6xG>1bD7#$hlaB#OE&QR!zAJL0NTpROqU#t yHM?xR;78QuT-j&?uMumox^B(00=xRTk15N=-%So{e5C$K0kky?)Js&a1^*8##Cs?J literal 0 HcmV?d00001 diff --git a/hkgui02.cabal b/hkgui02.cabal new file mode 100644 index 0000000..2f9a46a --- /dev/null +++ b/hkgui02.cabal @@ -0,0 +1,79 @@ +cabal-version: 2.2 + +-- This file has been generated from package.yaml by hpack version 0.36.0. +-- +-- see: https://github.com/sol/hpack + +name: hkgui02 +version: 0.1.0.0 +description: Please see the README on GitHub at +homepage: https://github.com/githubuser/hkgui02#readme +bug-reports: https://github.com/githubuser/hkgui02/issues +author: Author name here +maintainer: example@example.com +copyright: 2024 Author name here +license: BSD-3-Clause +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md + CHANGELOG.md + +source-repository head + type: git + location: https://github.com/githubuser/hkgui02 + +library + exposed-modules: + Lib + other-modules: + Paths_hkgui02 + autogen-modules: + Paths_hkgui02 + hs-source-dirs: + src + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints + build-depends: + base >=4.7 && <5 + , directory + , gi-gtk ==3.0.* + , gi-gtk-hs + , haskell-gi-base + default-language: Haskell2010 + +executable hkgui02-exe + main-is: Main.hs + other-modules: + Paths_hkgui02 + autogen-modules: + Paths_hkgui02 + hs-source-dirs: + app + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N + build-depends: + base >=4.7 && <5 + , directory + , gi-gtk ==3.0.* + , gi-gtk-hs + , haskell-gi-base + , hkgui02 + default-language: Haskell2010 + +test-suite hkgui02-test + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + Paths_hkgui02 + autogen-modules: + Paths_hkgui02 + hs-source-dirs: + test + ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N + build-depends: + base >=4.7 && <5 + , directory + , gi-gtk ==3.0.* + , gi-gtk-hs + , haskell-gi-base + , hkgui02 + default-language: Haskell2010 diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..f2b4ee8 --- /dev/null +++ b/package.yaml @@ -0,0 +1,63 @@ +name: hkgui02 +version: 0.1.0.0 +github: "githubuser/hkgui02" +license: BSD-3-Clause +author: "Author name here" +maintainer: "example@example.com" +copyright: "2024 Author name here" + +extra-source-files: +- README.md +- CHANGELOG.md + +# Metadata used when publishing your package +# synopsis: Short description of your package +# category: Web + +# To avoid duplicated efforts in documentation and dealing with the +# complications of embedding Haddock markup inside cabal files, it is +# common to point users to the README.md file. +description: Please see the README on GitHub at + +dependencies: +- base >= 4.7 && < 5 +- gi-gtk == 3.0.* +- gi-gtk-hs +- haskell-gi-base +- directory + +ghc-options: +- -Wall +- -Wcompat +- -Widentities +- -Wincomplete-record-updates +- -Wincomplete-uni-patterns +- -Wmissing-export-lists +- -Wmissing-home-modules +- -Wpartial-fields +- -Wredundant-constraints + +library: + source-dirs: src + +executables: + hkgui02-exe: + main: Main.hs + source-dirs: app + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - hkgui02 + +tests: + hkgui02-test: + main: Spec.hs + source-dirs: test + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - hkgui02 diff --git a/src/Lib.hs b/src/Lib.hs new file mode 100644 index 0000000..d36ff27 --- /dev/null +++ b/src/Lib.hs @@ -0,0 +1,6 @@ +module Lib + ( someFunc + ) where + +someFunc :: IO () +someFunc = putStrLn "someFunc" diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..651d378 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,68 @@ +# This file was automatically generated by 'stack init' +# +# Some commonly used options have been documented as comments in this file. +# For advanced use and comprehensive documentation of the format, please see: +# https://docs.haskellstack.org/en/stable/yaml_configuration/ + +# Resolver to choose a 'specific' stackage snapshot or a compiler version. +# A snapshot resolver dictates the compiler version and the set of packages +# to be used for project dependencies. For example: +# +# resolver: lts-21.13 +# resolver: nightly-2023-09-24 +# resolver: ghc-9.6.2 +# +# The location of a snapshot can be provided as a file or url. Stack assumes +# a snapshot provided as a file might change, whereas a url resource does not. +# +# resolver: ./custom-snapshot.yaml +# resolver: https://example.com/snapshots/2023-01-01.yaml +resolver: + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/9.yaml + +# User packages to be built. +# Various formats can be used as shown in the example below. +# +# packages: +# - some-directory +# - https://example.com/foo/bar/baz-0.0.2.tar.gz +# subdirs: +# - auto-update +# - wai +packages: +- . +# Dependency packages to be pulled from upstream that are not in the resolver. +# These entries can reference officially published versions as well as +# forks / in-progress versions pinned to a git hash. For example: +# +# extra-deps: +# - acme-missiles-0.3 +# - git: https://github.com/commercialhaskell/stack.git +# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a +# +# extra-deps: [] + +# Override default flag values for local packages and extra-deps +# flags: {} + +# Extra package databases containing global packages +# extra-package-dbs: [] + +# Control whether we use the GHC we find on the path +# system-ghc: true +# +# Require a specific version of Stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: ">=2.13" +# +# Override the architecture used by Stack, especially useful on Windows +# arch: i386 +# arch: x86_64 +# +# Extra directories used by Stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] +# +# Allow a newer minor version of GHC than the snapshot specifies +# compiler-check: newer-minor +allow-newer: true \ No newline at end of file diff --git a/stack.yaml.lock b/stack.yaml.lock new file mode 100644 index 0000000..e0099f2 --- /dev/null +++ b/stack.yaml.lock @@ -0,0 +1,13 @@ +# This file was autogenerated by Stack. +# You should not edit this file by hand. +# For more information, please see the documentation at: +# https://docs.haskellstack.org/en/stable/lock_files + +packages: [] +snapshots: +- completed: + sha256: ad2884d5d84ed4ea576897103606212da3be693eef30591efe2d8d2965895500 + size: 714105 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/9.yaml + original: + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/9.yaml diff --git a/test/Spec.hs b/test/Spec.hs new file mode 100644 index 0000000..cd4753f --- /dev/null +++ b/test/Spec.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "Test suite not yet implemented" diff --git a/zenith-qr.png b/zenith-qr.png new file mode 100644 index 0000000000000000000000000000000000000000..f3719cf3411975950f577033dcfe554be256beb3 GIT binary patch literal 2781 zcmZuz3p|ti8=oR`iLG37TXs%$BvYEqF~i1^Xd`lqZp4PoE&i-ol9cPo?T~T{(=jED z$@P$-lG03Z&?32C4x=rX|2pS?{+-h2{k-4L^FHtI`Td^D_j%s;8qN;8ReFas007u( zeHdd80ElUe?p?qwA`KgMD^K(g*oak?D^&5FUZ3!X6mh;uZ|QQ zSD1plOUXBO0V%$;{S6l*o$ut+^ZQ6Q%%?l$AFBqTag~=- z3*ys0Hr{!m&AvQLt*c#TMM?q_544G)Rw&&ziccLb*Z%3H2}2p6Q;oyK!Sq z-E(Pq3>kB^p&UV}b9lYco~&fC%fdi#f@yV-UE3$|DKg3@`0`&mZhpUSbp!Y2oMedTsu zve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