diff options
author | Seth Hitefield <sdh11@vt.edu> | 2015-11-20 15:43:52 -0500 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-02-17 19:55:16 +0100 |
commit | 0d5bd456adb7e4299ca6f77f9f3880426c0d0905 (patch) | |
tree | 055e772f2206f71f98bdc53d2d05fd0ec20fad3a /grc/model/Constants.py | |
parent | 36af320d43c726d9bf71eb871737bdd647ff60ef (diff) |
grc-refactor: Moved code from grc.model.base to grc.model
Diffstat (limited to 'grc/model/Constants.py')
-rw-r--r-- | grc/model/Constants.py | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/grc/model/Constants.py b/grc/model/Constants.py index b7a370cad7..9336a9f642 100644 --- a/grc/model/Constants.py +++ b/grc/model/Constants.py @@ -1,5 +1,5 @@ """ -Copyright 2008-2011 Free Software Foundation, Inc. +Copyright 2008-2015 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or @@ -41,6 +41,38 @@ BLOCKS_DIRS = filter( # filter blank strings ]).split(PATH_SEP), ) + [HIER_BLOCKS_LIB_DIR] + +#data files +DATA_DIR = os.path.dirname(__file__) +FLOW_GRAPH_DTD = os.path.join(DATA_DIR, 'flow_graph.dtd') +BLOCK_TREE_DTD = os.path.join(DATA_DIR, 'block_tree.dtd') + +# file format versions: +# 0: undefined / legacy +# 1: non-numeric message port keys (label is used instead) +FLOW_GRAPH_FILE_FORMAT_VERSION = 1 + +# Param tabs +DEFAULT_PARAM_TAB = "General" +ADVANCED_PARAM_TAB = "Advanced" + +# Port domains +DOMAIN_DTD = os.path.join(DATA_DIR, 'domain.dtd') +GR_STREAM_DOMAIN = "gr_stream" +GR_MESSAGE_DOMAIN = "gr_message" +DEFAULT_DOMAIN = GR_STREAM_DOMAIN + +BLOCK_FLAG_THROTTLE = 'throttle' +BLOCK_FLAG_DISABLE_BYPASS = 'disable_bypass' +BLOCK_FLAG_NEED_QT_GUI = 'need_qt_gui' +BLOCK_FLAG_NEED_WX_GUI = 'need_ex_gui' + +# Block States +BLOCK_DISABLED = 0 +BLOCK_ENABLED = 1 +BLOCK_BYPASSED = 2 + + # user settings XTERM_EXECUTABLE = _gr_prefs.get_string('grc', 'xterm_executable', 'xterm') |