GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::octave_qt_link Class Reference

Provides threadsafe access to octave. More...

#include "octave-qt-link.h"

Inheritance diagram for octave::octave_qt_link:
Collaboration diagram for octave::octave_qt_link:

Public Types

typedef std::list< std::pair< std::string, std::string > > filter_list
 

Signals

void append_history_signal (const QString &hist_entry)
 
void change_directory_signal (const QString &dir)
 
void clear_history_signal (void)
 
void clear_workspace_signal (void)
 
void confirm_shutdown_signal (void)
 
void copy_image_to_clipboard_signal (const QString &file, bool remove_file)
 
void delete_debugger_pointer_signal (const QString &, int)
 
void edit_file_signal (const QString &file)
 
void edit_variable_signal (const QString &name, const octave_value &val)
 
void enter_debugger_signal (void)
 
void execute_command_in_terminal_signal (const QString &command)
 
void exit_debugger_signal (void)
 
void insert_debugger_pointer_signal (const QString &, int)
 
void refresh_variable_editor_signal (void)
 
void register_doc_signal (const QString &file)
 
void set_history_signal (const QStringList &hist)
 
void set_workspace_signal (bool top_level, bool debug, const symbol_scope &scope)
 
void show_doc_signal (const QString &file)
 
void show_preferences_signal (void)
 
void unregister_doc_signal (const QString &file)
 
void update_breakpoint_marker_signal (bool insert, const QString &file, int line, const QString &cond)
 

Public Member Functions

 octave_qt_link (QWidget *p, gui_application *app_context)
 
 octave_qt_link (const octave_qt_link &)=delete
 
 ~octave_qt_link (void)=default
 
void do_append_history (const std::string &hist_entry)
 
void do_change_directory (const std::string &dir)
 
void do_clear_history (void)
 
void do_clear_workspace (void)
 
bool do_confirm_shutdown (void)
 
bool do_copy_image_to_clipboard (const std::string &file)
 
int do_debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option)
 
bool do_disable (void)
 
bool do_edit_file (const std::string &file)
 
void do_edit_variable (const std::string &name, const octave_value &val)
 
bool do_enable (void)
 
void do_enter_debugger_event (const std::string &file, int line)
 
void do_execute_command_in_terminal (const std::string &command)
 
void do_execute_in_debugger_event (const std::string &file, int line)
 
void do_exit_debugger_event (void)
 
std::list< std::stringdo_file_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &pathname, const std::string &multimode)
 
std::list< std::stringdo_input_dialog (const std::list< std::string > &prompt, const std::string &title, const std::list< float > &nr, const std::list< float > &nc, const std::list< std::string > &defaults)
 
std::pair< std::list< int >, int > do_list_dialog (const std::list< std::string > &list, const std::string &mode, int width, int height, const std::list< int > &initial_value, const std::string &name, const std::list< std::string > &prompt, const std::string &ok_string, const std::string &cancel_string)
 
int do_message_dialog (const std::string &dlg, const std::string &msg, const std::string &title)
 
void do_post_input_event (void)
 
void do_pre_input_event (void)
 
bool do_prompt_new_edit_file (const std::string &file)
 
std::string do_question_dialog (const std::string &msg, const std::string &title, const std::string &btn1, const std::string &btn2, const std::string &btn3, const std::string &btndef)
 
void do_register_doc (const std::string &file)
 
void do_set_default_prompts (std::string &ps1, std::string &ps2, std::string &ps4)
 
void do_set_history (const string_vector &hist)
 
void do_set_workspace (bool top_level, bool debug, const symbol_scope &scope, bool update_variable_editor)
 
void do_show_doc (const std::string &file)
 
void do_show_preferences (void)
 
void do_unregister_doc (const std::string &file)
 
void do_update_breakpoint (bool insert, const std::string &file, int line, const std::string &cond)
 
void lock (void)
 
octave_qt_linkoperator= (const octave_qt_link &)=delete
 
void shutdown_confirmation (bool sd)
 
void unlock (void)
 
void wait (void)
 
void wake_all (void)
 

Static Public Member Functions

static void append_history (const std::string &hist_entry)
 
static void change_directory (const std::string &dir)
 
static void clear_history (void)
 
static void clear_workspace (void)
 
static bool confirm_shutdown (void)
 
static void connect_link (octave_link *)
 
static bool copy_image_to_clipboard (const std::string &file)
 
static int debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option)
 
static bool disable (void)
 
static void discard_events (void)
 
static octave_linkdisconnect_link (bool delete_instance=true)
 
static bool edit_file (const std::string &file)
 
static bool edit_variable (const std::string &name, const octave_value &val)
 
static bool enable (void)
 
static bool enabled (void)
 
static void enter_debugger_event (const std::string &file, int line)
 
static void entered_readline_hook (void)
 
static void execute_command_in_terminal (const std::string &command)
 
static void execute_in_debugger_event (const std::string &file, int line)
 
static void exit_debugger_event (void)
 
static std::list< std::stringfile_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &dirname, const std::string &multimode)
 
static bool file_in_path (const std::string &file, const std::string &dir)
 
static void finished_readline_hook (void)
 
static void generate_events (void)
 
static std::list< std::stringinput_dialog (const std::list< std::string > &prompt, const std::string &title, const std::list< float > &nr, const std::list< float > &nc, const std::list< std::string > &defaults)
 
static std::pair< std::list< int >, int > list_dialog (const std::list< std::string > &list, const std::string &mode, int width, int height, const std::list< int > &initial_value, const std::string &name, const std::list< std::string > &prompt, const std::string &ok_string, const std::string &cancel_string)
 
static int message_dialog (const std::string &dlg, const std::string &msg, const std::string &title)
 
template<typename T >
static void post_event (T *obj, void(T::*method)(void))
 
template<typename T , typename A >
static void post_event (T *obj, void(T::*method)(A), A arg)
 
template<typename T , typename A >
static void post_event (T *obj, void(T::*method)(const A &), const A &arg)
 
template<class T , class A , class B >
static void post_event (T *obj, void(T::*method)(const A &, const B &), const A &arg_a, const B &arg_b)
 
template<class T , class A , class B , class C >
static void post_event (T *obj, void(T::*method)(const A &, const B &, const C &), const A &arg_a, const B &arg_b, const C &arg_c)
 
template<class T , class A , class B , class C , class D >
static void post_event (T *obj, void(T::*method)(const A &, const B &, const C &, const D &), const A &arg_a, const B &arg_b, const C &arg_c, const D &arg_d)
 
static void post_exception (const std::exception_ptr &p)
 
static void post_input_event (void)
 
static void pre_input_event (void)
 
static void process_events (bool disable=false)
 
static bool prompt_new_edit_file (const std::string &file)
 
static std::string question_dialog (const std::string &msg, const std::string &title, const std::string &btn1, const std::string &btn2, const std::string &btn3, const std::string &btndef)
 
static bool register_doc (const std::string &file)
 
static void set_default_prompts (std::string &ps1, std::string &ps2, std::string &ps4)
 
static void set_history (const string_vector &hist)
 
static void set_workspace (void)
 
static void set_workspace (bool top_level, const octave::symbol_scope &scope, bool update_variable_editor=true)
 
static bool show_doc (const std::string &file)
 
static bool show_preferences ()
 
static bool unregister_doc (const std::string &file)
 
static void update_breakpoint (bool insert, const std::string &file, int line, const std::string &cond="")
 

Protected Member Functions

void do_discard_events (void)
 
void do_entered_readline_hook (void)
 
void do_finished_readline_hook (void)
 
void do_generate_events (void)
 
template<typename T >
void do_post_event (T *obj, void(T::*method)(void))
 
template<typename T , typename A >
void do_post_event (T *obj, void(T::*method)(A), A arg)
 
template<typename T , typename A >
void do_post_event (T *obj, void(T::*method)(const A &), const A &arg)
 
template<class T , class A , class B >
void do_post_event (T *obj, void(T::*method)(const A &, const B &), const A &arg_a, const B &arg_b)
 
template<class T , class A , class B , class C >
void do_post_event (T *obj, void(T::*method)(const A &, const B &, const C &), const A &arg_a, const B &arg_b, const C &arg_c)
 
template<class T , class A , class B , class C , class D >
void do_post_event (T *obj, void(T::*method)(const A &, const B &, const C &, const D &), const A &arg_a, const B &arg_b, const C &arg_c, const D &arg_d)
 
void do_post_exception (const std::exception_ptr &p)
 
void do_process_events (void)
 
void rethrow_exception_callback (const std::exception_ptr &p)
 

Protected Attributes

bool debugging
 
octave::mutexevent_queue_mutex
 
octave::event_queue gui_event_queue
 
bool link_enabled
 

Private Member Functions

void do_delete_debugger_pointer (const std::string &file, int line)
 
void do_insert_debugger_pointer (const std::string &file, int line)
 

Private Attributes

gui_applicationm_app_context
 
QMutex m_mutex
 
bool m_shutdown_confirm_result
 
QWaitCondition m_waitcondition
 

Detailed Description

Provides threadsafe access to octave.

Author
Jacob Dawid

This class is a wrapper around octave and provides thread safety by buffering access operations to octave and executing them in the readline event hook, which lives in the octave thread.

Definition at line 55 of file octave-qt-link.h.

Member Typedef Documentation

◆ filter_list

typedef std::list<std::pair<std::string, std::string> > octave_link::filter_list
inherited

Definition at line 237 of file octave-link.h.

Constructor & Destructor Documentation

◆ octave_qt_link() [1/2]

octave::octave_qt_link::octave_qt_link ( QWidget p,
gui_application app_context 
)

◆ octave_qt_link() [2/2]

octave::octave_qt_link::octave_qt_link ( const octave_qt_link )
delete

◆ ~octave_qt_link()

octave::octave_qt_link::~octave_qt_link ( void  )
default

Member Function Documentation

◆ append_history()

static void octave_link::append_history ( const std::string hist_entry)
inlinestaticinherited

◆ append_history_signal

void octave::octave_qt_link::append_history_signal ( const QString &  hist_entry)
signal

◆ change_directory()

static void octave_link::change_directory ( const std::string dir)
inlinestaticinherited

Definition at line 259 of file octave-link.h.

Referenced by octave_change_to_directory().

◆ change_directory_signal

void octave::octave_qt_link::change_directory_signal ( const QString &  dir)
signal

◆ clear_history()

static void octave_link::clear_history ( void  )
inlinestaticinherited

Definition at line 301 of file octave-link.h.

Referenced by do_history().

◆ clear_history_signal

void octave::octave_qt_link::clear_history_signal ( void  )
signal

◆ clear_workspace()

static void octave_link::clear_workspace ( void  )
inlinestaticinherited

Definition at line 283 of file octave-link.h.

◆ clear_workspace_signal

void octave::octave_qt_link::clear_workspace_signal ( void  )
signal

◆ confirm_shutdown()

static bool octave_link::confirm_shutdown ( void  )
inlinestaticinherited

Definition at line 96 of file octave-link.h.

References retval.

◆ confirm_shutdown_signal

void octave::octave_qt_link::confirm_shutdown_signal ( void  )
signal

◆ connect_link()

void octave_link::connect_link ( octave_link obj)
staticinherited

Definition at line 86 of file octave-link.cc.

References error(), and octave_link::instance.

Referenced by octave::main_window::construct_octave_qt_link().

◆ copy_image_to_clipboard()

static bool octave_link::copy_image_to_clipboard ( const std::string file)
inlinestaticinherited

Definition at line 175 of file octave-link.h.

References file.

Referenced by QtHandles::Figure::copy_figure_callback().

◆ copy_image_to_clipboard_signal

void octave::octave_qt_link::copy_image_to_clipboard_signal ( const QString &  file,
bool  remove_file 
)
signal

◆ debug_cd_or_addpath_error()

static int octave_link::debug_cd_or_addpath_error ( const std::string file,
const std::string dir,
bool  addpath_option 
)
inlinestaticinherited

Definition at line 250 of file octave-link.h.

References file.

◆ delete_debugger_pointer_signal

void octave::octave_qt_link::delete_debugger_pointer_signal ( const QString &  ,
int   
)
signal

◆ disable()

static bool octave_link::disable ( void  )
inlinestaticinherited

Definition at line 383 of file octave-link.h.

◆ discard_events()

static void octave_link::discard_events ( void  )
inlinestaticinherited

Definition at line 90 of file octave-link.h.

◆ disconnect_link()

static octave_link* octave_link::disconnect_link ( bool  delete_instance = true)
inlinestaticinherited

Definition at line 355 of file octave-link.h.

References retval.

◆ do_append_history()

void octave::octave_qt_link::do_append_history ( const std::string hist_entry)
virtual

Implements octave_link.

◆ do_change_directory()

void octave::octave_qt_link::do_change_directory ( const std::string dir)
virtual

Implements octave_link.

◆ do_clear_history()

void octave::octave_qt_link::do_clear_history ( void  )
virtual

Implements octave_link.

◆ do_clear_workspace()

void octave::octave_qt_link::do_clear_workspace ( void  )
virtual

Implements octave_link.

◆ do_confirm_shutdown()

bool octave::octave_qt_link::do_confirm_shutdown ( void  )
virtual

Implements octave_link.

◆ do_copy_image_to_clipboard()

bool octave::octave_qt_link::do_copy_image_to_clipboard ( const std::string file)
virtual

Implements octave_link.

◆ do_debug_cd_or_addpath_error()

int octave::octave_qt_link::do_debug_cd_or_addpath_error ( const std::string file,
const std::string dir,
bool  addpath_option 
)
virtual

Implements octave_link.

◆ do_delete_debugger_pointer()

void octave::octave_qt_link::do_delete_debugger_pointer ( const std::string file,
int  line 
)
private

◆ do_disable()

bool octave_link::do_disable ( void  )
inlineinherited

Definition at line 395 of file octave-link.h.

References retval.

◆ do_discard_events()

void octave_link::do_discard_events ( void  )
protectedinherited

◆ do_edit_file()

bool octave::octave_qt_link::do_edit_file ( const std::string file)
virtual

Implements octave_link.

◆ do_edit_variable()

void octave::octave_qt_link::do_edit_variable ( const std::string name,
const octave_value val 
)
virtual

Implements octave_link.

◆ do_enable()

bool octave_link::do_enable ( void  )
inlineinherited

Definition at line 388 of file octave-link.h.

References retval.

◆ do_enter_debugger_event()

void octave::octave_qt_link::do_enter_debugger_event ( const std::string file,
int  line 
)
virtual

Implements octave_link.

◆ do_entered_readline_hook()

void octave_link::do_entered_readline_hook ( void  )
inlineprotectedinherited

Definition at line 546 of file octave-link.h.

◆ do_execute_command_in_terminal()

void octave::octave_qt_link::do_execute_command_in_terminal ( const std::string command)
virtual

Implements octave_link.

◆ do_execute_in_debugger_event()

void octave::octave_qt_link::do_execute_in_debugger_event ( const std::string file,
int  line 
)
virtual

Implements octave_link.

◆ do_exit_debugger_event()

void octave::octave_qt_link::do_exit_debugger_event ( void  )
virtual

Implements octave_link.

◆ do_file_dialog()

std::list<std::string> octave::octave_qt_link::do_file_dialog ( const filter_list filter,
const std::string title,
const std::string filename,
const std::string pathname,
const std::string multimode 
)
virtual

Implements octave_link.

◆ do_finished_readline_hook()

void octave_link::do_finished_readline_hook ( void  )
inlineprotectedinherited

Definition at line 547 of file octave-link.h.

◆ do_generate_events()

void octave_link::do_generate_events ( void  )
protectedinherited

Definition at line 95 of file octave-link.cc.

◆ do_input_dialog()

std::list<std::string> octave::octave_qt_link::do_input_dialog ( const std::list< std::string > &  prompt,
const std::string title,
const std::list< float > &  nr,
const std::list< float > &  nc,
const std::list< std::string > &  defaults 
)
virtual

Implements octave_link.

◆ do_insert_debugger_pointer()

void octave::octave_qt_link::do_insert_debugger_pointer ( const std::string file,
int  line 
)
private

◆ do_list_dialog()

std::pair<std::list<int>, int> octave::octave_qt_link::do_list_dialog ( const std::list< std::string > &  list,
const std::string mode,
int  width,
int  height,
const std::list< int > &  initial_value,
const std::string name,
const std::list< std::string > &  prompt,
const std::string ok_string,
const std::string cancel_string 
)
virtual

Implements octave_link.

◆ do_message_dialog()

int octave::octave_qt_link::do_message_dialog ( const std::string dlg,
const std::string msg,
const std::string title 
)
virtual

Implements octave_link.

◆ do_post_event() [1/6]

template<typename T >
void octave_link::do_post_event ( T *  obj,
void(T::*)(void)  method 
)
inlineprotectedinherited

Definition at line 490 of file octave-link.h.

References octave::action_container::add_method(), and method.

◆ do_post_event() [2/6]

template<typename T , typename A >
void octave_link::do_post_event ( T *  obj,
void(T::*)(A method,
A  arg 
)
inlineprotectedinherited

Definition at line 496 of file octave-link.h.

References octave::action_container::add_method(), arg, and method.

◆ do_post_event() [3/6]

template<typename T , typename A >
void octave_link::do_post_event ( T *  obj,
void(T::*)(const A &)  method,
const A arg 
)
inlineprotectedinherited

Definition at line 502 of file octave-link.h.

References octave::action_container::add_method(), arg, and method.

◆ do_post_event() [4/6]

template<class T , class A , class B >
void octave_link::do_post_event ( T *  obj,
void(T::*)(const A &, const B &)  method,
const A arg_a,
const B arg_b 
)
inlineprotectedinherited

Definition at line 508 of file octave-link.h.

References A, octave::action_container::add_method(), arg_a, arg_b, B, and method.

◆ do_post_event() [5/6]

template<class T , class A , class B , class C >
void octave_link::do_post_event ( T *  obj,
void(T::*)(const A &, const B &, const C &)  method,
const A arg_a,
const B arg_b,
const C arg_c 
)
inlineprotectedinherited

Definition at line 516 of file octave-link.h.

References A, octave::action_container::add_method(), arg_a, arg_b, arg_c, B, C, and method.

◆ do_post_event() [6/6]

template<class T , class A , class B , class C , class D >
void octave_link::do_post_event ( T *  obj,
void(T::*)(const A &, const B &, const C &, const D &)  method,
const A arg_a,
const B arg_b,
const C arg_c,
const D &  arg_d 
)
inlineprotectedinherited

Definition at line 526 of file octave-link.h.

References A, octave::action_container::add_method(), arg_a, arg_b, arg_c, B, C, and method.

◆ do_post_exception()

void octave_link::do_post_exception ( const std::exception_ptr &  p)
inlineprotectedinherited

Definition at line 541 of file octave-link.h.

References p, and octave_link::rethrow_exception_callback().

◆ do_post_input_event()

void octave::octave_qt_link::do_post_input_event ( void  )
virtual

Implements octave_link.

◆ do_pre_input_event()

void octave::octave_qt_link::do_pre_input_event ( void  )
virtual

Implements octave_link.

◆ do_process_events()

void octave_link::do_process_events ( void  )
protectedinherited

◆ do_prompt_new_edit_file()

bool octave::octave_qt_link::do_prompt_new_edit_file ( const std::string file)
virtual

Implements octave_link.

◆ do_question_dialog()

std::string octave::octave_qt_link::do_question_dialog ( const std::string msg,
const std::string title,
const std::string btn1,
const std::string btn2,
const std::string btn3,
const std::string btndef 
)
virtual

Implements octave_link.

◆ do_register_doc()

void octave::octave_qt_link::do_register_doc ( const std::string file)
virtual

Implements octave_link.

◆ do_set_default_prompts()

void octave::octave_qt_link::do_set_default_prompts ( std::string ps1,
std::string ps2,
std::string ps4 
)
virtual

Implements octave_link.

◆ do_set_history()

void octave::octave_qt_link::do_set_history ( const string_vector hist)
virtual

Implements octave_link.

◆ do_set_workspace()

void octave::octave_qt_link::do_set_workspace ( bool  top_level,
bool  debug,
const symbol_scope scope,
bool  update_variable_editor 
)
virtual

Implements octave_link.

◆ do_show_doc()

void octave::octave_qt_link::do_show_doc ( const std::string file)
virtual

Implements octave_link.

◆ do_show_preferences()

void octave::octave_qt_link::do_show_preferences ( void  )
virtual

Implements octave_link.

◆ do_unregister_doc()

void octave::octave_qt_link::do_unregister_doc ( const std::string file)
virtual

Implements octave_link.

◆ do_update_breakpoint()

void octave::octave_qt_link::do_update_breakpoint ( bool  insert,
const std::string file,
int  line,
const std::string cond 
)
virtual

Implements octave_link.

◆ edit_file()

static bool octave_link::edit_file ( const std::string file)
inlinestaticinherited

Definition at line 181 of file octave-link.h.

References file.

Referenced by F__octave_link_edit_file__().

◆ edit_file_signal

void octave::octave_qt_link::edit_file_signal ( const QString &  file)
signal

◆ edit_variable()

static bool octave_link::edit_variable ( const std::string name,
const octave_value val 
)
inlinestaticinherited

Definition at line 457 of file octave-link.h.

References name, and val.

Referenced by Fopenvar().

◆ edit_variable_signal

void octave::octave_qt_link::edit_variable_signal ( const QString &  name,
const octave_value val 
)
signal

◆ enable()

static bool octave_link::enable ( void  )
inlinestaticinherited

Definition at line 378 of file octave-link.h.

◆ enabled()

static bool octave_link::enabled ( void  )
inlinestaticinherited

Definition at line 402 of file octave-link.h.

Referenced by F__octave_link_enabled__(), and octave_link::set_workspace().

◆ enter_debugger_event()

static void octave_link::enter_debugger_event ( const std::string file,
int  line 
)
inlinestaticinherited

Definition at line 319 of file octave-link.h.

References file.

◆ enter_debugger_signal

void octave::octave_qt_link::enter_debugger_signal ( void  )
signal

◆ entered_readline_hook()

static void octave_link::entered_readline_hook ( void  )
inlinestaticinherited

Definition at line 162 of file octave-link.h.

Referenced by octave_readline_hook().

◆ execute_command_in_terminal()

static void octave_link::execute_command_in_terminal ( const std::string command)
inlinestaticinherited

Definition at line 266 of file octave-link.h.

References command.

◆ execute_command_in_terminal_signal

void octave::octave_qt_link::execute_command_in_terminal_signal ( const QString &  command)
signal

◆ execute_in_debugger_event()

static void octave_link::execute_in_debugger_event ( const std::string file,
int  line 
)
inlinestaticinherited

Definition at line 329 of file octave-link.h.

References file.

◆ exit_debugger_event()

static void octave_link::exit_debugger_event ( void  )
inlinestaticinherited

Definition at line 335 of file octave-link.h.

Referenced by octave::base_reader::octave_gets().

◆ exit_debugger_signal

void octave::octave_qt_link::exit_debugger_signal ( void  )
signal

◆ file_dialog()

static std::list<std::string> octave_link::file_dialog ( const filter_list filter,
const std::string title,
const std::string filename,
const std::string dirname,
const std::string multimode 
)
inlinestaticinherited

Definition at line 240 of file octave-link.h.

References octave::sys::file_ops::dirname(), filename, and filter().

Referenced by F__octave_link_file_dialog__().

◆ file_in_path()

◆ finished_readline_hook()

static void octave_link::finished_readline_hook ( void  )
inlinestaticinherited

Definition at line 168 of file octave-link.h.

Referenced by octave_readline_hook().

◆ generate_events()

static void octave_link::generate_events ( void  )
inlinestaticinherited

Definition at line 70 of file octave-link.h.

Referenced by octave_readline_hook().

◆ input_dialog()

static std::list<std::string> octave_link::input_dialog ( const std::list< std::string > &  prompt,
const std::string title,
const std::list< float > &  nr,
const std::list< float > &  nc,
const std::list< std::string > &  defaults 
)
inlinestaticinherited

Definition at line 226 of file octave-link.h.

Referenced by F__octave_link_input_dialog__().

◆ insert_debugger_pointer_signal

void octave::octave_qt_link::insert_debugger_pointer_signal ( const QString &  ,
int   
)
signal

◆ list_dialog()

static std::pair<std::list<int>, int> octave_link::list_dialog ( const std::list< std::string > &  list,
const std::string mode,
int  width,
int  height,
const std::list< int > &  initial_value,
const std::string name,
const std::list< std::string > &  prompt,
const std::string ok_string,
const std::string cancel_string 
)
inlinestaticinherited

Definition at line 209 of file octave-link.h.

References list, mode, and name.

Referenced by F__octave_link_list_dialog__().

◆ lock()

void octave::octave_qt_link::lock ( void  )
inline

Definition at line 152 of file octave-qt-link.h.

References m_mutex.

Referenced by octave::main_window::confirm_shutdown_octave().

◆ message_dialog()

static int octave_link::message_dialog ( const std::string dlg,
const std::string msg,
const std::string title 
)
inlinestaticinherited

Definition at line 193 of file octave-link.h.

Referenced by F__octave_link_message_dialog__().

◆ operator=()

octave_qt_link& octave::octave_qt_link::operator= ( const octave_qt_link )
delete

◆ post_event() [1/6]

◆ post_event() [2/6]

template<typename T , typename A >
static void octave_link::post_event ( T *  obj,
void(T::*)(A method,
A  arg 
)
inlinestaticinherited

Definition at line 114 of file octave-link.h.

References arg, and method.

◆ post_event() [3/6]

template<typename T , typename A >
static void octave_link::post_event ( T *  obj,
void(T::*)(const A &)  method,
const A arg 
)
inlinestaticinherited

Definition at line 121 of file octave-link.h.

References arg, and method.

◆ post_event() [4/6]

template<class T , class A , class B >
static void octave_link::post_event ( T *  obj,
void(T::*)(const A &, const B &)  method,
const A arg_a,
const B arg_b 
)
inlinestaticinherited

Definition at line 128 of file octave-link.h.

References A, arg_a, arg_b, B, and method.

◆ post_event() [5/6]

template<class T , class A , class B , class C >
static void octave_link::post_event ( T *  obj,
void(T::*)(const A &, const B &, const C &)  method,
const A arg_a,
const B arg_b,
const C arg_c 
)
inlinestaticinherited

Definition at line 136 of file octave-link.h.

References A, arg_a, arg_b, arg_c, B, C, and method.

◆ post_event() [6/6]

template<class T , class A , class B , class C , class D >
static void octave_link::post_event ( T *  obj,
void(T::*)(const A &, const B &, const C &, const D &)  method,
const A arg_a,
const B arg_b,
const C arg_c,
const D &  arg_d 
)
inlinestaticinherited

Definition at line 146 of file octave-link.h.

References A, arg_a, arg_b, arg_c, B, C, and method.

◆ post_exception()

static void octave_link::post_exception ( const std::exception_ptr &  p)
inlinestaticinherited

Definition at line 156 of file octave-link.h.

References p.

Referenced by QtHandles::GLCanvas::do_print().

◆ post_input_event()

static void octave_link::post_input_event ( void  )
inlinestaticinherited

Definition at line 313 of file octave-link.h.

Referenced by octave::base_reader::octave_gets().

◆ pre_input_event()

static void octave_link::pre_input_event ( void  )
inlinestaticinherited

Definition at line 307 of file octave-link.h.

Referenced by octave::base_reader::octave_gets().

◆ process_events()

static void octave_link::process_events ( bool  disable = false)
inlinestaticinherited

Definition at line 79 of file octave-link.h.

Referenced by octave_readline_hook().

◆ prompt_new_edit_file()

static bool octave_link::prompt_new_edit_file ( const std::string file)
inlinestaticinherited

Definition at line 187 of file octave-link.h.

References file.

Referenced by F__octave_link_edit_file__().

◆ question_dialog()

static std::string octave_link::question_dialog ( const std::string msg,
const std::string title,
const std::string btn1,
const std::string btn2,
const std::string btn3,
const std::string btndef 
)
inlinestaticinherited

Definition at line 200 of file octave-link.h.

Referenced by F__octave_link_question_dialog__().

◆ refresh_variable_editor_signal

void octave::octave_qt_link::refresh_variable_editor_signal ( void  )
signal

◆ register_doc()

static bool octave_link::register_doc ( const std::string file)
inlinestaticinherited

Definition at line 432 of file octave-link.h.

References file.

Referenced by F__octave_link_register_doc__().

◆ register_doc_signal

void octave::octave_qt_link::register_doc_signal ( const QString &  file)
signal

◆ rethrow_exception_callback()

void octave_link::rethrow_exception_callback ( const std::exception_ptr &  p)
inlineprotectedinherited

Definition at line 535 of file octave-link.h.

References p.

Referenced by octave_link::do_post_exception().

◆ set_default_prompts()

static void octave_link::set_default_prompts ( std::string ps1,
std::string ps2,
std::string ps4 
)
inlinestaticinherited

Definition at line 371 of file octave-link.h.

Referenced by set_default_prompts().

◆ set_history()

static void octave_link::set_history ( const string_vector hist)
inlinestaticinherited

Definition at line 289 of file octave-link.h.

Referenced by do_history(), and initialize_history().

◆ set_history_signal

void octave::octave_qt_link::set_history_signal ( const QStringList &  hist)
signal

◆ set_workspace() [1/2]

◆ set_workspace() [2/2]

static void octave_link::set_workspace ( bool  top_level,
const octave::symbol_scope scope,
bool  update_variable_editor = true 
)
inlinestaticinherited

Definition at line 274 of file octave-link.h.

◆ set_workspace_signal

void octave::octave_qt_link::set_workspace_signal ( bool  top_level,
bool  debug,
const symbol_scope scope 
)
signal

◆ show_doc()

static bool octave_link::show_doc ( const std::string file)
inlinestaticinherited

Definition at line 420 of file octave-link.h.

References file.

Referenced by F__octave_link_show_doc__().

◆ show_doc_signal

void octave::octave_qt_link::show_doc_signal ( const QString &  file)
signal

◆ show_preferences()

static bool octave_link::show_preferences ( )
inlinestaticinherited

Definition at line 408 of file octave-link.h.

Referenced by F__octave_link_show_preferences__().

◆ show_preferences_signal

void octave::octave_qt_link::show_preferences_signal ( void  )
signal

◆ shutdown_confirmation()

void octave::octave_qt_link::shutdown_confirmation ( bool  sd)
inline

Definition at line 150 of file octave-qt-link.h.

References m_shutdown_confirm_result.

Referenced by octave::main_window::confirm_shutdown_octave().

◆ unlock()

void octave::octave_qt_link::unlock ( void  )
inline

Definition at line 154 of file octave-qt-link.h.

References m_mutex.

Referenced by octave::main_window::confirm_shutdown_octave().

◆ unregister_doc()

static bool octave_link::unregister_doc ( const std::string file)
inlinestaticinherited

Definition at line 444 of file octave-link.h.

References file.

Referenced by F__octave_link_unregister_doc__().

◆ unregister_doc_signal

void octave::octave_qt_link::unregister_doc_signal ( const QString &  file)
signal

◆ update_breakpoint()

static void octave_link::update_breakpoint ( bool  insert,
const std::string file,
int  line,
const std::string cond = "" 
)
inlinestaticinherited

◆ update_breakpoint_marker_signal

void octave::octave_qt_link::update_breakpoint_marker_signal ( bool  insert,
const QString &  file,
int  line,
const QString &  cond 
)
signal

◆ wait()

void octave::octave_qt_link::wait ( void  )
inline

Definition at line 153 of file octave-qt-link.h.

References m_mutex, and m_waitcondition.

◆ wake_all()

void octave::octave_qt_link::wake_all ( void  )
inline

Definition at line 155 of file octave-qt-link.h.

References m_waitcondition.

Referenced by octave::main_window::confirm_shutdown_octave().

Member Data Documentation

◆ debugging

bool octave_link::debugging
protectedinherited

Definition at line 482 of file octave-link.h.

Referenced by octave_link::set_workspace().

◆ event_queue_mutex

octave::mutex* octave_link::event_queue_mutex
protectedinherited

◆ gui_event_queue

octave::event_queue octave_link::gui_event_queue
protectedinherited

◆ link_enabled

bool octave_link::link_enabled
protectedinherited

Definition at line 483 of file octave-link.h.

◆ m_app_context

gui_application* octave::octave_qt_link::m_app_context
private

Definition at line 162 of file octave-qt-link.h.

◆ m_mutex

QMutex octave::octave_qt_link::m_mutex
private

Definition at line 166 of file octave-qt-link.h.

Referenced by lock(), unlock(), and wait().

◆ m_shutdown_confirm_result

bool octave::octave_qt_link::m_shutdown_confirm_result
private

Definition at line 164 of file octave-qt-link.h.

Referenced by shutdown_confirmation().

◆ m_waitcondition

QWaitCondition octave::octave_qt_link::m_waitcondition
private

Definition at line 167 of file octave-qt-link.h.

Referenced by wait(), and wake_all().


The documentation for this class was generated from the following file: