summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/gui/ActionHandler.py4
-rw-r--r--grc/gui/Makefile.am2
-rw-r--r--grc/gui/PropsDialog.py (renamed from grc/gui/ParamsDialog.py)2
-rw-r--r--grc/todo.txt2
4 files changed, 6 insertions, 4 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 8f317d6a8..f12893579 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -31,7 +31,7 @@ import Messages
from .. base import ParseXML
import random
from MainWindow import MainWindow
-from ParamsDialog import ParamsDialog
+from PropsDialog import PropsDialog
import Dialogs
from FileDialogs import OpenFlowGraphFileDialog, SaveFlowGraphFileDialog, SaveImageFileDialog
@@ -240,7 +240,7 @@ class ActionHandler:
##################################################
elif state == Actions.BLOCK_PARAM_MODIFY:
selected_block = self.get_flow_graph().get_selected_block()
- if selected_block and ParamsDialog(selected_block).run():
+ if selected_block and PropsDialog(selected_block).run():
self.get_flow_graph().update()
self.get_page().get_state_cache().save_new_state(self.get_flow_graph().export_data())
self.get_page().set_saved(False)
diff --git a/grc/gui/Makefile.am b/grc/gui/Makefile.am
index cb45d5359..b14817d04 100644
--- a/grc/gui/Makefile.am
+++ b/grc/gui/Makefile.am
@@ -43,7 +43,7 @@ ourpython_PYTHON = \
MainWindow.py \
Messages.py \
NotebookPage.py \
- ParamsDialog.py \
+ PropsDialog.py \
Preferences.py \
StateCache.py \
__init__.py
diff --git a/grc/gui/ParamsDialog.py b/grc/gui/PropsDialog.py
index ccf19d1a2..200cff1f5 100644
--- a/grc/gui/ParamsDialog.py
+++ b/grc/gui/PropsDialog.py
@@ -37,7 +37,7 @@ def get_title_label(title):
hbox.pack_start(label, False, False, padding=11)
return hbox
-class ParamsDialog(gtk.Dialog):
+class PropsDialog(gtk.Dialog):
"""A dialog box to set block parameters."""
def __init__(self, block):
diff --git a/grc/todo.txt b/grc/todo.txt
index ca9a68180..8afd2f145 100644
--- a/grc/todo.txt
+++ b/grc/todo.txt
@@ -73,6 +73,8 @@
* will not update for non-enum params
* needs to account for added or removed params
* example with grid params need update after notebook change
+ * idea: hash the current param keys list and types,
+ if changed, redo the whole dialog (params part)
##################################################
# Future