Mercurial > octave
diff libgui/src/main-window.h @ 21028:4a7d9c335402
GUI: move the command queue into a separate class
* main-window.cc (main_window): remove initializations of queue synchronization;
(execute_command_in_terminal,run_file_callback,debug_continue,debug_step_into,
debug_step_over,debug_step_out,debug_quit,closeEvent):
adapt queuing commands;
(queue_command): remove function for queuing a command;
(execute_command_callback): move function from here into octave-cmd;
* main-window.h: remove class variables related to the command queue_command
* module.mk: add octave-cmd to the moc-list
* octave-cmd.cc: new class octave_command_queue;
(add_cmd): method for adding a command to the queue;
(execute_command_callback): method for executing commands from the queue
* octave-cmd.h: new class octave_command_queue
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 03 Jan 2016 11:49:19 +0100 |
parents | 8000dacaea98 |
children | e8c3590da9ff |
line wrap: on
line diff
--- a/libgui/src/main-window.h Sun Jan 03 11:49:16 2016 +0100 +++ b/libgui/src/main-window.h Sun Jan 03 11:49:19 2016 +0100 @@ -36,7 +36,6 @@ #include <QCloseEvent> #include <QToolButton> #include <QComboBox> -#include <QSemaphore> #include <QPointer> // Editor includes @@ -395,11 +394,9 @@ // and related callback // the queue for the command structures - QList<octave_cmd *> _cmd_queue; - // semaphores used for handling the queue - QSemaphore _cmd_processing; - QMutex _cmd_queue_mutex; + octave_command_queue _cmd_queue; + // some class global flags bool _prevent_readline_conflicts; bool _suppress_dbg_location; bool _start_gui;