Mercurial > octave
comparison libgui/src/main-window.cc @ 27408:9b19eec60931
move change directory function to interpreter class
* interpreter.h, interpreter.cc (interpreter::chdir,
Vlast_chdir_time): Move here from change_directory in dirfns.cc.
Change all uses.
* main-window.cc (main_window::set_current_working_directory):
Use interpreter function directly instead of going through DEFUN
function.
* dirfns.h: Delete. This file no longer declares any functions or
variables. Remove remaining include statements from other files.
* libinterp/corefcn/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 13 Sep 2019 16:22:34 -0400 |
parents | 646efbb5f407 |
children | a0d49e55acae |
comparison
equal
deleted
inserted
replaced
27407:e69da2dae19c | 27408:9b19eec60931 |
---|---|
987 QFileInfo fileInfo (xdir); | 987 QFileInfo fileInfo (xdir); |
988 | 988 |
989 if (fileInfo.exists () && fileInfo.isDir ()) | 989 if (fileInfo.exists () && fileInfo.isDir ()) |
990 { | 990 { |
991 emit interpreter_event | 991 emit interpreter_event |
992 ([xdir] (void) | 992 ([xdir] (interpreter& interp) |
993 { | 993 { |
994 // INTERPRETER THREAD | 994 // INTERPRETER THREAD |
995 | 995 |
996 Fcd (ovl (xdir.toStdString ())); | 996 interp.chdir (xdir.toStdString ()); |
997 }); | 997 }); |
998 } | 998 } |
999 } | 999 } |
1000 | 1000 |
1001 void main_window::change_directory_up (void) | 1001 void main_window::change_directory_up (void) |