diff --git a/bin/curvecalc b/bin/curvecalc
--- a/bin/curvecalc
+++ b/bin/curvecalc
@@ -35,6 +35,8 @@ from light9.curvecalc.subtermview import
from light9.curvecalc.output import Output
from light9.gtkpyconsole import togglePyConsole
from light9.rdfdb.syncedgraph import SyncedGraph
+from light9.editchoicegtk import EditChoice
+from light9.observable import Observable
class SubtermExists(ValueError):
pass
@@ -59,7 +61,6 @@ class Main(object):
mainwin.connect("delete-event", lambda *args: reactor.crash())
def updateTitle():
- # song will soon be a lookup on this curvecalc session
mainwin.set_title("curvecalc - %s" %
graph.label(
graph.value(session, L9['currentSong'])))
@@ -70,7 +71,16 @@ class Main(object):
# but it's a minimum size, which i don't really want
mainwin.set_size_request(1678, 922)
+ songChoice = Observable(None) # to be connected with the session song
+ def setSong():
+ songChoice(graph.value(session, L9['currentSong']))
+ graph.addHandler(setSong)
+
+ ec = EditChoice(graph, songChoice, label="Editing song:")
+ wtree.get_object("currentSongEditChoice").add(ec)
+ ec.show()
+
wtree.get_object("subterms").connect("add", self.onSubtermChildAdded)
graph.addHandler(self.add_subterms_for_song)
self.refreshCurveView()
diff --git a/light9/curvecalc/curvecalc.glade b/light9/curvecalc/curvecalc.glade
--- a/light9/curvecalc/curvecalc.glade
+++ b/light9/curvecalc/curvecalc.glade
@@ -296,6 +296,34 @@
+
+
+ False
+ False
+ 1
+
+
+
600
True
@@ -568,7 +596,7 @@
True
True
- 1
+ 2
@@ -628,12 +656,9 @@
False
False
5
- 2
+ 3
-
-
-