1 module RMCA.GUI.MainSettings where
3 import Data.ReactiveValue
5 import Graphics.UI.Gtk.Reactive
7 globalSettings :: IO (VBox, ReactiveFieldReadWrite IO Int)
9 globalSettingsBox <- vBoxNew False 10
10 tempoAdj <- adjustmentNew 120 40 200 1 1 1
11 tempoLabel <- labelNew (Just "Tempo")
12 boxPackStart globalSettingsBox tempoLabel PackGrow 0
13 tempoScale <- hScaleNew tempoAdj
14 boxPackStart globalSettingsBox tempoScale PackGrow 0
15 scaleSetDigits tempoScale 0
17 bijection (floor, fromIntegral) `liftRW` scaleValueReactive tempoScale
19 return (globalSettingsBox, tempoRV)