[Greater-commits] r448 - trunk/GREAT-ER/Greater/Modules

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 14 12:16:46 CEST 2011


Author: aheinecke
Date: 2011-07-14 12:16:46 +0200 (Thu, 14 Jul 2011)
New Revision: 448

Modified:
   trunk/GREAT-ER/Greater/Modules/alpha.py
Log:
Fix alpha mode tables by using the "newer" QueryTableFrame which inherits from
Table Frame but adds some nice features


Modified: trunk/GREAT-ER/Greater/Modules/alpha.py
===================================================================
--- trunk/GREAT-ER/Greater/Modules/alpha.py	2011-07-14 09:55:31 UTC (rev 447)
+++ trunk/GREAT-ER/Greater/Modules/alpha.py	2011-07-14 10:16:46 UTC (rev 448)
@@ -15,7 +15,7 @@
 
 
 from Thuban.UI.command import registry, Command
-from Thuban.UI.tableview import TableFrame
+from Thuban.UI.tableview import QueryTableFrame
 
 from Greater.UI.context import context_results_exist, context_catchment_open
 
@@ -26,7 +26,7 @@
     name = "discharge_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Discharge Table", table)
+        dialog = QueryTableFrame(window, name, "Discharge Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:
@@ -41,7 +41,7 @@
     name = "session_discharge_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Session Discharge Table", table)
+        dialog = QueryQueryTableFrame(window, name, "Session Discharge Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:
@@ -56,7 +56,7 @@
     name = "market_discharge_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Market Discharge Table", table)
+        dialog = QueryTableFrame(window, name, "Market Discharge Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:
@@ -69,7 +69,7 @@
     name = "stretch_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Stretch Table", table)
+        dialog = QueryTableFrame(window, name, "Stretch Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:
@@ -82,7 +82,7 @@
     name = "discharge_results_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Discharge Results Table", table)
+        dialog = QueryTableFrame(window, name, "Discharge Results Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:
@@ -95,7 +95,7 @@
     name = "stretch_results_table"
     dialog = window.get_open_dialog(name)
     if dialog is None:
-        dialog = TableFrame(window, name, "Stretch Results Table", table)
+        dialog = QueryTableFrame(window, name, "Stretch Results Table", table)
         window.add_dialog(name, dialog)
         dialog.Show(True)
     else:



More information about the Greater-commits mailing list