Mercurial > octave
comparison libgui/src/m-editor/file-editor-tab.cc @ 21578:683a1beee538
maint: Use "FIXME:" for all code blocks needing further attention.
* files-dock-widget.cc, file-editor-tab.cc, file-editor-tab.h,
file-editor.cc, octave-qscintilla.cc, octave-qt-link.cc, __ilu__.cc, debug.h,
oct-stream.cc, pt-jit.cc, __magick_read__.cc, ov-classdef.cc, pt-stmt.cc,
oct-sort.cc, inputParser.m, validateattributes.m, fminunc.m, fsolve.m, fzero.m,
__scatter__.m, print.m:
Use "FIXME:" for all code blocks needing further attention.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Apr 2016 14:55:13 -0700 |
parents | 08baf0ebc9a9 |
children | b4354327d2b5 |
comparison
equal
deleted
inserted
replaced
21577:31823239207e | 21578:683a1beee538 |
---|---|
333 return; | 333 return; |
334 | 334 |
335 QString cond; | 335 QString cond; |
336 bp_info info (_file_name, linenr+1); // Get function name & dir from filename. | 336 bp_info info (_file_name, linenr+1); // Get function name & dir from filename. |
337 | 337 |
338 // Search for previous condition. FIXME -- is there a more direct way? | 338 // Search for previous condition. FIXME: is there a more direct way? |
339 if (_edit_area->markersAtLine (linenr) & (1 << marker::cond_break)) | 339 if (_edit_area->markersAtLine (linenr) & (1 << marker::cond_break)) |
340 { | 340 { |
341 emit report_marker_linenr (_bp_lines, _bp_conditions); | 341 emit report_marker_linenr (_bp_lines, _bp_conditions); |
342 for (int i = 0; i < _bp_lines.length (); i++) | 342 for (int i = 0; i < _bp_lines.length (); i++) |
343 if (_bp_lines.value (i) == linenr) | 343 if (_bp_lines.value (i) == linenr) |
348 _bp_lines.clear (); | 348 _bp_lines.clear (); |
349 } | 349 } |
350 | 350 |
351 // If text selected by the mouse, default to that instead | 351 // If text selected by the mouse, default to that instead |
352 // If both present, use the OR of them, to avoid accidental overwriting | 352 // If both present, use the OR of them, to avoid accidental overwriting |
353 // FIXME If both are present, show old condition unselected and | 353 // FIXME: If both are present, show old condition unselected and |
354 // the selection (in edit area) selected (in the dialog). | 354 // the selection (in edit area) selected (in the dialog). |
355 if (_edit_area->hasSelectedText ()) | 355 if (_edit_area->hasSelectedText ()) |
356 { | 356 { |
357 if (cond == "") | 357 if (cond == "") |
358 cond = _edit_area->selectedText (); | 358 cond = _edit_area->selectedText (); |
359 else | 359 else |
1275 } | 1275 } |
1276 | 1276 |
1277 void | 1277 void |
1278 file_editor_tab::do_indent_selected_text (bool indent) | 1278 file_editor_tab::do_indent_selected_text (bool indent) |
1279 { | 1279 { |
1280 // TODO | 1280 // FIXME: |
1281 _edit_area->beginUndoAction (); | 1281 _edit_area->beginUndoAction (); |
1282 | 1282 |
1283 if (_edit_area->hasSelectedText ()) | 1283 if (_edit_area->hasSelectedText ()) |
1284 { | 1284 { |
1285 int lineFrom, lineTo, colFrom, colTo; | 1285 int lineFrom, lineTo, colFrom, colTo; |
1553 update_window_title (false); // window title (no modification) | 1553 update_window_title (false); // window title (no modification) |
1554 _edit_area->setModified (false); // loaded file is not modified yet | 1554 _edit_area->setModified (false); // loaded file is not modified yet |
1555 | 1555 |
1556 update_eol_indicator (); | 1556 update_eol_indicator (); |
1557 | 1557 |
1558 // TODO: (BREAKPOINTS) At this point it would be nice to put any set | 1558 // FIXME: (BREAKPOINTS) At this point it would be nice to put any set |
1559 // breakpoints on the margin. In order to do this, somehow the | 1559 // breakpoints on the margin. In order to do this, somehow the |
1560 // "dbstatus" command needs to be accessed. All it would require is a | 1560 // "dbstatus" command needs to be accessed. All it would require is a |
1561 // routine that does "res = feval("dbstatus") and signals that result | 1561 // routine that does "res = feval("dbstatus") and signals that result |
1562 // to some slot. | 1562 // to some slot. |
1563 // | 1563 // |
1638 _eol_indicator->setText ("LF"); | 1638 _eol_indicator->setText ("LF"); |
1639 break; | 1639 break; |
1640 } | 1640 } |
1641 } | 1641 } |
1642 | 1642 |
1643 // TODO: See patch #8016 for a general way to get Octave results from | 1643 // FIXME: See patch #8016 for a general way to get Octave results from |
1644 // commands processed in the background, e.g., dbstatus. | 1644 // commands processed in the background, e.g., dbstatus. |
1645 void | 1645 void |
1646 file_editor_tab::handle_octave_result (QObject *requester, QString& command, | 1646 file_editor_tab::handle_octave_result (QObject *requester, QString& command, |
1647 octave_value_list&) | 1647 octave_value_list&) |
1648 { | 1648 { |