Mercurial > hg > octave-nkf
comparison libgui/src/m-editor/file-editor-tab.h @ 18236:f26d527c1a71 stable
allow the gui editor to set breakpoints in class methods (bug #41126)
* file-editor-tab.h, file-editor-tab.cc (bp_info::bp_info):
Construct bp_info struct from file name and line number instead of
individual struct components. Change all uses. Recognize class name
in file names that match /dir/@class/fcn.m.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 07 Jan 2014 16:01:44 -0500 |
parents | c3e7da9836bd |
children | 3a26bb54655e c766a1f63c40 |
comparison
equal
deleted
inserted
replaced
18235:0806c9e75e08 | 18236:f26d527c1a71 |
---|---|
163 debugger_position | 163 debugger_position |
164 }; | 164 }; |
165 | 165 |
166 struct bp_info | 166 struct bp_info |
167 { | 167 { |
168 bp_info (const QString& f, const QString& d, const QString& fn, int l) | 168 bp_info (const QString& fname, int l = 0); |
169 : file (f.toStdString ()), dir (d.toStdString ()), | 169 |
170 function_name (fn.toStdString ()), line (l) | 170 int line; |
171 { } | |
172 | |
173 std::string file; | 171 std::string file; |
174 std::string dir; | 172 std::string dir; |
175 std::string function_name; | 173 std::string function_name; |
176 int line; | |
177 }; | 174 }; |
178 | 175 |
179 bool valid_file_name (const QString& file=QString ()); | 176 bool valid_file_name (const QString& file=QString ()); |
180 void save_file (const QString& saveFileName, bool remove_on_success = false); | 177 void save_file (const QString& saveFileName, bool remove_on_success = false); |
181 void save_file_as (bool remove_on_success = false); | 178 void save_file_as (bool remove_on_success = false); |