gr::qtgui::edit_box_msg
gr::block
gnuradio/qtgui/edit_box_msg.h
std::shared_ptr< edit_box_msg > typedef std::shared_ptr<edit_box_msg> gr::qtgui::edit_box_msg::sptr sptr gr::qtgui::edit_box_msg::sptr
QApplication * QApplication* gr::qtgui::edit_box_msg::d_qApplication d_qApplication gr::qtgui::edit_box_msg::d_qApplication
sptr static sptr gr::qtgui::edit_box_msg::make (gr::qtgui::data_type_t type, const std::string &value="", const std::string &label="", bool is_pair=true, bool is_static=true, const std::string &key="", QWidget *parent=NULL) make gr::qtgui::edit_box_msg::make gr::qtgui::data_type_t type const std::string & value "" const std::string & label "" bool is_pair true bool is_static true const std::string & key "" QWidget * parent NULL

Constructs the Edit box block.

type

the data type of data in the value box.

value

the default value of the message. This is entered as a string regardless of the type and converted internally much like how the block extracts the value from the edit box and converts it.

label

a label to identify the box on screen.

is_pair

if we are using a key:value pair.

is_static

sets the key edit box as a static text box (cannot be edited live).

key

Set the key used in a key:value pair message.

parent

a QWidget parent in the QT app.

void virtual void gr::qtgui::edit_box_msg::exec_ ()=0 exec_ gr::qtgui::edit_box_msg::exec_
QWidget * virtual QWidget * gr::qtgui::edit_box_msg::qwidget ()=0 qwidget gr::qtgui::edit_box_msg::qwidget

Create a QT Edit Box widget where the value is posted as a message.

This block creates a QT Edit Box widget that manages data through message passing interfaces. The 'msg' output port produces messages based on the text in the edit box and the data type set by the `type` argument (see gr::qtgui::data_type_t). The data types are checked, and WARN log messages are produced when the data is in the wrong format. Not all errors are explicitly checked for, only that conversions happen correctly. Failures are either produces as log messages or the action is simply silently dropped.

The value of the edit boxes can be programmatically updated through the 'val' input message port. It is also checked for the correct data type.

The `is_pair` argument to the constructor determines if the edit box handles a key:value pair. If set to True, two edit boxes are created with the left for the key and right for the value. The key is always assumed to be a string and the value is restricted by the data type setting as above.

The block can take a default value. Because the block is capable of handling multiple different data types, we enter the default value as a string in the same way we expect the user to enter it into the Value edit box of the widget. We convert this default exactly the same way we convert the user-entered text in the edit box. See the next paragraph for an explanation for how to handle complex numbers.

Complex numbers are currently handled a bit differently than expected. Because we use the std iostream for complex, complex numbers MUST be in the form "(a,b)" to represent "a + jb". Note that you cannot even have a space after the comma, so "(1.23,10.56)" is correct while "(1.23, 10.56)" will not parse.

The 'static' mode prevents the user from changing the data type or the key used in the widget. If also in 'pair' mode, the key is not displayed and so must be set in the constructor. It is an error if using static and pair modes with no default key set.

Message Ports:

- msg (output): Produces a PMT message from the data in the edit box. It is packaged in the PMT container determined by the `type` argument to the ctor. If the data in the box is not of the correct type and the conversion fails, the block produces a log WARN message but does nothing else with the data. If the `is_pair` flag is set on this block, it will produce a PMT pair object where the key (car) is assumed to be a string and the value (cdr) is determined by `type`.

- val (input): Accepts messages to update the value in the edit boxes. The messages, as PMTs, are first checked to make sure that they are the correct type (integer, float, string, or complex), and unpacks them and converts them to QStrings to display in the edit box. When using `is_pair`, the PMT is checked to make sure it is a PMT pair. Then the key (car) is extracted as a string before the value (cdr) is processed based on the set data type of the box.

gr::basic_block
gr::block
gr::messages::msg_accepter
gr::msg_accepter
gr::qtgui::edit_box_msg
std::enable_shared_from_this< basic_block >
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::messages::msg_accepter
gr::msg_accepter
gr::qtgui::edit_box_msg
std::basic_string< Char >
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
std::shared_ptr< io_signature >
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::shared_ptr< rpcbasic_base >
std::string
std::vector< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::qtgui::edit_box_msg
  _post
- gr::qtgui::edit_box_msg
  active_thread_priority
- gr::qtgui::edit_box_msg
  add_item_tag
- gr::qtgui::edit_box_msg
  add_item_tag
- gr::qtgui::edit_box_msg
  alias
- gr::qtgui::edit_box_msg
  alias_pmt
- gr::qtgui::edit_box_msg
  alias_set
- gr::qtgui::edit_box_msg
  alignment
- gr::qtgui::edit_box_msg
  allocate_buffer
- gr::qtgui::edit_box_msg
  allocate_detail
- gr::qtgui::edit_box_msg
  basic_block
- gr::qtgui::edit_box_msg
  basic_block
- gr::qtgui::edit_box_msg
  BLACK
- gr::qtgui::edit_box_msg
  blkd_input_timer_value
- gr::qtgui::edit_box_msg
  block
- gr::qtgui::edit_box_msg
  block
- gr::qtgui::edit_box_msg
  check_topology
- gr::qtgui::edit_box_msg
  clear_finished
- gr::qtgui::edit_box_msg
  color
- gr::qtgui::edit_box_msg
  consume
- gr::qtgui::edit_box_msg
  consume_each
- gr::qtgui::edit_box_msg
  d_blkd_input_timer_value
- gr::qtgui::edit_box_msg
  d_color
- gr::qtgui::edit_box_msg
  d_debug_logger
- gr::qtgui::edit_box_msg
  d_input_signature
- gr::qtgui::edit_box_msg
  d_logger
- gr::qtgui::edit_box_msg
  d_max_output_buffer
- gr::qtgui::edit_box_msg
  d_message_subscribers
- gr::qtgui::edit_box_msg
  d_min_output_buffer
- gr::qtgui::edit_box_msg
  d_name
- gr::qtgui::edit_box_msg
  d_output_signature
- gr::qtgui::edit_box_msg
  d_pmt_done
- gr::qtgui::edit_box_msg
  d_qApplication
- gr::qtgui::edit_box_msg
  d_rpc_set
- gr::qtgui::edit_box_msg
  d_rpc_vars
- gr::qtgui::edit_box_msg
  d_setlock
- gr::qtgui::edit_box_msg
  d_symbol_alias
- gr::qtgui::edit_box_msg
  d_symbol_name
- gr::qtgui::edit_box_msg
  d_symbolic_id
- gr::qtgui::edit_box_msg
  d_system_port
- gr::qtgui::edit_box_msg
  d_unique_id
- gr::qtgui::edit_box_msg
  declare_sample_delay
- gr::qtgui::edit_box_msg
  declare_sample_delay
- gr::qtgui::edit_box_msg
  delete_head_nowait
- gr::qtgui::edit_box_msg
  detail
- gr::qtgui::edit_box_msg
  dispatch_msg
- gr::qtgui::edit_box_msg
  empty_handled_p
- gr::qtgui::edit_box_msg
  empty_handled_p
- gr::qtgui::edit_box_msg
  empty_p
- gr::qtgui::edit_box_msg
  empty_p
- gr::qtgui::edit_box_msg
  enable_update_rate
- gr::qtgui::edit_box_msg
  erase_msg
- gr::qtgui::edit_box_msg
  exec_
- gr::qtgui::edit_box_msg
  expand_minmax_buffer
- gr::qtgui::edit_box_msg
  finished
- gr::qtgui::edit_box_msg
  fixed_rate
- gr::qtgui::edit_box_msg
  fixed_rate_ninput_to_noutput
- gr::qtgui::edit_box_msg
  fixed_rate_noutput_to_ninput
- gr::qtgui::edit_box_msg
  forecast
- gr::qtgui::edit_box_msg
  general_work
- gr::qtgui::edit_box_msg
  get_iterator
- gr::qtgui::edit_box_msg
  get_msg_map
- gr::qtgui::edit_box_msg
  get_tags_in_range
- gr::qtgui::edit_box_msg
  get_tags_in_range
- gr::qtgui::edit_box_msg
  get_tags_in_window
- gr::qtgui::edit_box_msg
  get_tags_in_window
- gr::qtgui::edit_box_msg
  GREY
- gr::qtgui::edit_box_msg
  has_msg_handler
- gr::qtgui::edit_box_msg
  has_msg_port
- gr::qtgui::edit_box_msg
  history
- gr::qtgui::edit_box_msg
  identifier
- gr::qtgui::edit_box_msg
  input_signature
- gr::qtgui::edit_box_msg
  insert_tail
- gr::qtgui::edit_box_msg
  is_pc_rpc_set
- gr::qtgui::edit_box_msg
  is_rpc_set
- gr::qtgui::edit_box_msg
  is_set_max_noutput_items
- gr::qtgui::edit_box_msg
  is_unaligned
- gr::qtgui::edit_box_msg
  log_level
- gr::qtgui::edit_box_msg
  make
- gr::qtgui::edit_box_msg
  max_noutput_items
- gr::qtgui::edit_box_msg
  max_output_buffer
- gr::qtgui::edit_box_msg
  message_port_is_hier
- gr::qtgui::edit_box_msg
  message_port_is_hier_in
- gr::qtgui::edit_box_msg
  message_port_is_hier_out
- gr::qtgui::edit_box_msg
  message_port_pub
- gr::qtgui::edit_box_msg
  message_port_register_in
- gr::qtgui::edit_box_msg
  message_port_register_out
- gr::qtgui::edit_box_msg
  message_port_sub
- gr::qtgui::edit_box_msg
  message_port_unsub
- gr::qtgui::edit_box_msg
  message_ports_in
- gr::qtgui::edit_box_msg
  message_ports_out
- gr::qtgui::edit_box_msg
  message_subscribers
- gr::qtgui::edit_box_msg
  min_noutput_items
- gr::qtgui::edit_box_msg
  min_output_buffer
- gr::qtgui::edit_box_msg
  mp_relative_rate
- gr::qtgui::edit_box_msg
  msg_accepter
- gr::qtgui::edit_box_msg
  msg_queue
- gr::qtgui::edit_box_msg
  name
- gr::qtgui::edit_box_msg
  nitems_read
- gr::qtgui::edit_box_msg
  nitems_written
- gr::qtgui::edit_box_msg
  nmsgs
- gr::qtgui::edit_box_msg
  no_pc_rpc
- gr::qtgui::edit_box_msg
  notify_msg_neighbors
- gr::qtgui::edit_box_msg
  output_multiple
- gr::qtgui::edit_box_msg
  output_multiple_set
- gr::qtgui::edit_box_msg
  output_signature
- gr::qtgui::edit_box_msg
  pc_input_buffers_full
- gr::qtgui::edit_box_msg
  pc_input_buffers_full
- gr::qtgui::edit_box_msg
  pc_input_buffers_full_avg
- gr::qtgui::edit_box_msg
  pc_input_buffers_full_avg
- gr::qtgui::edit_box_msg
  pc_input_buffers_full_var
- gr::qtgui::edit_box_msg
  pc_input_buffers_full_var
- gr::qtgui::edit_box_msg
  pc_noutput_items
- gr::qtgui::edit_box_msg
  pc_noutput_items_avg
- gr::qtgui::edit_box_msg
  pc_noutput_items_var
- gr::qtgui::edit_box_msg
  pc_nproduced
- gr::qtgui::edit_box_msg
  pc_nproduced_avg
- gr::qtgui::edit_box_msg
  pc_nproduced_var
- gr::qtgui::edit_box_msg
  pc_output_buffers_full
- gr::qtgui::edit_box_msg
  pc_output_buffers_full
- gr::qtgui::edit_box_msg
  pc_output_buffers_full_avg
- gr::qtgui::edit_box_msg
  pc_output_buffers_full_avg
- gr::qtgui::edit_box_msg
  pc_output_buffers_full_var
- gr::qtgui::edit_box_msg
  pc_output_buffers_full_var
- gr::qtgui::edit_box_msg
  pc_throughput_avg
- gr::qtgui::edit_box_msg
  pc_work_time
- gr::qtgui::edit_box_msg
  pc_work_time_avg
- gr::qtgui::edit_box_msg
  pc_work_time_total
- gr::qtgui::edit_box_msg
  pc_work_time_var
- gr::qtgui::edit_box_msg
  post
- gr::qtgui::edit_box_msg
  processor_affinity
- gr::qtgui::edit_box_msg
  produce
- gr::qtgui::edit_box_msg
  qwidget
- gr::qtgui::edit_box_msg
  relative_rate
- gr::qtgui::edit_box_msg
  relative_rate_d
- gr::qtgui::edit_box_msg
  relative_rate_i
- gr::qtgui::edit_box_msg
  remove_item_tag
- gr::qtgui::edit_box_msg
  remove_item_tag
- gr::qtgui::edit_box_msg
  replace_buffer
- gr::qtgui::edit_box_msg
  reset_perf_counters
- gr::qtgui::edit_box_msg
  rpc_set
- gr::qtgui::edit_box_msg
  sample_delay
- gr::qtgui::edit_box_msg
  set_alignment
- gr::qtgui::edit_box_msg
  set_blkd_input_timer_value
- gr::qtgui::edit_box_msg
  set_block_alias
- gr::qtgui::edit_box_msg
  set_color
- gr::qtgui::edit_box_msg
  set_detail
- gr::qtgui::edit_box_msg
  set_fixed_rate
- gr::qtgui::edit_box_msg
  set_history
- gr::qtgui::edit_box_msg
  set_input_signature
- gr::qtgui::edit_box_msg
  set_inverse_relative_rate
- gr::qtgui::edit_box_msg
  set_is_unaligned
- gr::qtgui::edit_box_msg
  set_log_level
- gr::qtgui::edit_box_msg
  set_max_noutput_items
- gr::qtgui::edit_box_msg
  set_max_output_buffer
- gr::qtgui::edit_box_msg
  set_max_output_buffer
- gr::qtgui::edit_box_msg
  set_min_noutput_items
- gr::qtgui::edit_box_msg
  set_min_output_buffer
- gr::qtgui::edit_box_msg
  set_min_output_buffer
- gr::qtgui::edit_box_msg
  set_msg_handler
- gr::qtgui::edit_box_msg
  set_output_multiple
- gr::qtgui::edit_box_msg
  set_output_signature
- gr::qtgui::edit_box_msg
  set_processor_affinity
- gr::qtgui::edit_box_msg
  set_relative_rate
- gr::qtgui::edit_box_msg
  set_relative_rate
- gr::qtgui::edit_box_msg
  set_tag_propagation_policy
- gr::qtgui::edit_box_msg
  set_thread_priority
- gr::qtgui::edit_box_msg
  set_unaligned
- gr::qtgui::edit_box_msg
  setup_pc_rpc
- gr::qtgui::edit_box_msg
  setup_rpc
- gr::qtgui::edit_box_msg
  shared_from_base
- gr::qtgui::edit_box_msg
  sptr
- gr::qtgui::edit_box_msg
  start
- gr::qtgui::edit_box_msg
  stop
- gr::qtgui::edit_box_msg
  symbol_name
- gr::qtgui::edit_box_msg
  symbolic_id
- gr::qtgui::edit_box_msg
  system_handler
- gr::qtgui::edit_box_msg
  tag_propagation_policy
- gr::qtgui::edit_box_msg
  tag_propagation_policy_t
- gr::qtgui::edit_box_msg
  thread_priority
- gr::qtgui::edit_box_msg
  to_basic_block
- gr::qtgui::edit_box_msg
  TPP_ALL_TO_ALL
- gr::qtgui::edit_box_msg
  TPP_CUSTOM
- gr::qtgui::edit_box_msg
  TPP_DONT
- gr::qtgui::edit_box_msg
  TPP_ONE_TO_ONE
- gr::qtgui::edit_box_msg
  unaligned
- gr::qtgui::edit_box_msg
  unique_id
- gr::qtgui::edit_box_msg
  unset_max_noutput_items
- gr::qtgui::edit_box_msg
  unset_processor_affinity
- gr::qtgui::edit_box_msg
  update_rate
- gr::qtgui::edit_box_msg
  vcolor
- gr::qtgui::edit_box_msg
  WHITE
- gr::qtgui::edit_box_msg
  WORK_CALLED_PRODUCE
- gr::qtgui::edit_box_msg
  WORK_DONE
- gr::qtgui::edit_box_msg
  work_return_t
- gr::qtgui::edit_box_msg
  ~basic_block
- gr::qtgui::edit_box_msg
  ~block
- gr::qtgui::edit_box_msg
  ~msg_accepter