diff libgui/graphics/Table.h @ 26122:4d1c6c60f6b3

Clean up implementation of uitable in 36e0e5b428e7. * genpropdoc.m: Re-order primary list of graphics objects. Correct spelling in comments. Indent and document uitable properties. Correct generation of Texinfo string to handle a default value of a cell '{}'. * gui.txi: Re-order list of uiXXX functions in to sensible groups. * Table.cc, Table.h: Use Octave standard copyright on file. Use Octave coding conventions for placement of parentheses, line length, position of '*' in pointers, * graphics.cc: Use Octave coding conventions for placement of parentheses, space after '!' operator, line length, * graphics.in.h (uitable): Change default of "columnformat" to "Cell ()" to match Matlab. Change "enable" to a bool_property. * graphics.in.h (uitable::update_fontweight): Add warning when "demi" or "light" fontweight is used. * uitable.m: Use Octave standard copyright on file. Rewrite documentation to match other uiXXX functions. Use Octave coding conventions in documentation, in code, and in demonstration code in %!demo blocks. Only provide an output if one is requested. Use rows() or columns() rather than size (x, [1|2]). * NEWS: Move note about Unicode characters to be above changes to libraries.
author Rik <rik@octave.org>
date Thu, 22 Nov 2018 08:12:03 -0800
parents 36e0e5b428e7
children 0a383bddfb40
line wrap: on
line diff
--- a/libgui/graphics/Table.h	Thu Nov 22 07:27:22 2018 -0800
+++ b/libgui/graphics/Table.h	Thu Nov 22 08:12:03 2018 -0800
@@ -4,19 +4,19 @@
 
 This file is part of Octave.
 
-Octave is free software; you can redistribute it and/or modify it
-under the terms of the GNU General Public License as published by the
-Free Software Foundation; either version 3 of the License, or (at your
-option) any later version.
+Octave is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
 
-Octave is distributed in the hope that it will be useful, but WITHOUT
-ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
+Octave is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with Octave; see the file COPYING.  If not, see
-<http://www.gnu.org/licenses/>.
+<https://www.gnu.org/licenses/>.
 
 */
 
@@ -74,18 +74,20 @@
     bool m_keyPressHandlerDefined;
     bool m_keyReleaseHandlerDefined;
     QWidget * checkBoxForLogical(octave_value cal, bool enabled);
-    void updateData (int row, int col, octave_value value, std::string format, bool enabled);
+    void updateData (int row, int col, octave_value value, std::string format,
+                     bool enabled);
     void updateData (int row, int col);
     void updateDataColumn (int col);
     std::string columnformat (int column);
     bool columneditable (int column);
-    void sendCellEditCallback (int row, int col, octave_value old_value, octave_value new_value, octave_value edit_data, octave_value error);
+    void sendCellEditCallback (int row, int col, octave_value old_value,
+                               octave_value new_value, octave_value edit_data, octave_value error);
     void checkBoxClicked (int row, int col, QCheckBox* checkBox);
 
 
 
   };
 
-}; // namespace QtHandles
+}
 
 #endif