diff libinterp/octave-value/ov-struct.h @ 24660:a4ea36915e38

handle structure arrays in the variable editor * ov-struct.h, ov-struct.cc (octave_struct::edit_display, octave_scalar_struct::edit_display): New functions. * variable-editor-model.h, variable-editor-model.cc (variable_editor_model::impl::cell::init_data_and_sub_editor): New function. (get_rows_and_columns, variable_editor_model::impl, variable_editor_model::impl::quote_char, variable_editor_model::value_at, variable_editor_model::type_is_editable, variable_editor_model::subscript_expression): Handle structs. (variable_editor_model::impl::header_data, variable_editor_model::headerData): New functions.
author John W. Eaton <jwe@octave.org>
date Wed, 31 Jan 2018 16:18:24 -0500
parents 194eb4bd202b
children d4dd741b2794
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.h	Wed Jan 31 12:41:36 2018 -0800
+++ b/libinterp/octave-value/ov-struct.h	Wed Jan 31 16:18:24 2018 -0500
@@ -131,6 +131,8 @@
 
   bool print_name_tag (std::ostream& os, const std::string& name) const;
 
+  std::string edit_display (octave_idx_type i, octave_idx_type j) const;
+
   bool save_ascii (std::ostream& os);
 
   bool load_ascii (std::istream& is);
@@ -252,6 +254,8 @@
 
   bool print_name_tag (std::ostream& os, const std::string& name) const;
 
+  std::string edit_display (octave_idx_type i, octave_idx_type j) const;
+
   bool save_ascii (std::ostream& os);
 
   bool load_ascii (std::istream& is);