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

#include "qt-interpreter-events.h"

Inheritance diagram for octave::qt_interpreter_events:
Collaboration diagram for octave::qt_interpreter_events:

Public Types

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

Public Slots

void confirm_shutdown_octave (void)
 
void get_named_icon_slot (const QString &name)
 
void gui_preference_slot (const QString &key, const QString &value)
 

Signals

void append_history_signal (const QString &hist_entry)
 
void apply_new_settings (void)
 
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 directory_changed_signal (const QString &dir)
 
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 file_remove_signal (const QString &old_name, const QString &new_name)
 
void file_renamed_signal (bool load_new)
 
void focus_window_signal (const QString &win_name)
 
void get_named_icon_signal (const QString &name)
 
void gui_preference_signal (const QString &key, const QString &value)
 
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_info_list &syminfo)
 
void settings_changed (const gui_settings *, bool)
 
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)
 
void update_path_dialog_signal (void)
 

Public Member Functions

 qt_interpreter_events (base_qobject &oct_qobj)
 
 qt_interpreter_events (const qt_interpreter_events &)=delete
 
 ~qt_interpreter_events (void)=default
 
void append_history (const std::string &hist_entry)
 
void apply_preferences (void)
 
void clear_history (void)
 
void clear_workspace (void)
 
bool confirm_shutdown (void)
 
bool copy_image_to_clipboard (const std::string &file)
 
int debug_cd_or_addpath_error (const std::string &file, const std::string &dir, bool addpath_option)
 
void directory_changed (const std::string &dir)
 
bool edit_file (const std::string &file)
 
void edit_variable (const std::string &name, const octave_value &val)
 
void enter_debugger_event (const std::string &fcn_name, const std::string &fcn_file_name, int line)
 
void execute_command_in_terminal (const std::string &command)
 
void execute_in_debugger_event (const std::string &file, int line)
 
void exit_debugger_event (void)
 
std::list< std::string > file_dialog (const filter_list &filter, const std::string &title, const std::string &filename, const std::string &pathname, const std::string &multimode)
 
void file_remove (const std::string &old_name, const std::string &new_name)
 
void file_renamed (bool load_new=true)
 
void focus_window (const std::string win_name)
 
uint8NDArray get_named_icon (const std::string &icon_name)
 
std::string gui_preference (const std::string &key, const std::string &value)
 
std::list< std::string > 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 > 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)
 
void lock (void)
 
qt_interpreter_eventsoperator= (const qt_interpreter_events &)=delete
 
void post_input_event (void)
 
void pre_input_event (void)
 
bool prompt_new_edit_file (const std::string &file)
 
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)
 
void register_doc (const std::string &file)
 
void set_history (const string_vector &hist)
 
void set_workspace (bool top_level, bool debug, const symbol_info_list &syminfo, bool update_variable_editor)
 
void show_doc (const std::string &file)
 
void show_preferences (void)
 
void unlock (void)
 
void unregister_doc (const std::string &file)
 
void update_breakpoint (bool insert, const std::string &file, int line, const std::string &cond)
 
void update_path_dialog (void)
 
void wait (void)
 
void wake_all (void)
 

Private Member Functions

void delete_debugger_pointer (const std::string &file, int line)
 
QString gui_preference_adjust (const QString &key, const QString &value)
 
void insert_debugger_pointer (const std::string &file, int line)
 

Private Attributes

QMutex m_mutex
 
base_qobjectm_octave_qobj
 
QVariant m_result
 
QUIWidgetCreator m_uiwidget_creator
 
QWaitCondition m_waitcondition
 

Detailed Description

Definition at line 68 of file qt-interpreter-events.h.

Member Typedef Documentation

◆ filter_list

typedef std::list<std::pair<std::string, std::string> > octave::interpreter_events::filter_list
inherited

Definition at line 90 of file event-manager.h.

Constructor & Destructor Documentation

◆ qt_interpreter_events() [1/2]

octave::qt_interpreter_events::qt_interpreter_events ( base_qobject oct_qobj)

◆ qt_interpreter_events() [2/2]

octave::qt_interpreter_events::qt_interpreter_events ( const qt_interpreter_events )
delete

◆ ~qt_interpreter_events()

octave::qt_interpreter_events::~qt_interpreter_events ( void  )
default

Member Function Documentation

◆ append_history()

void octave::qt_interpreter_events::append_history ( const std::string &  hist_entry)
virtual

Reimplemented from octave::interpreter_events.

◆ append_history_signal

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

◆ apply_new_settings

void octave::qt_interpreter_events::apply_new_settings ( void  )
signal

◆ apply_preferences()

void octave::qt_interpreter_events::apply_preferences ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ clear_history()

void octave::qt_interpreter_events::clear_history ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ clear_history_signal

void octave::qt_interpreter_events::clear_history_signal ( void  )
signal

◆ clear_workspace()

void octave::qt_interpreter_events::clear_workspace ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ clear_workspace_signal

void octave::qt_interpreter_events::clear_workspace_signal ( void  )
signal

◆ confirm_shutdown()

bool octave::qt_interpreter_events::confirm_shutdown ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ confirm_shutdown_octave

void octave::qt_interpreter_events::confirm_shutdown_octave ( void  )
slot

◆ confirm_shutdown_signal

void octave::qt_interpreter_events::confirm_shutdown_signal ( void  )
signal

◆ copy_image_to_clipboard()

bool octave::qt_interpreter_events::copy_image_to_clipboard ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ copy_image_to_clipboard_signal

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

◆ debug_cd_or_addpath_error()

int octave::qt_interpreter_events::debug_cd_or_addpath_error ( const std::string &  file,
const std::string &  dir,
bool  addpath_option 
)
virtual

Reimplemented from octave::interpreter_events.

◆ delete_debugger_pointer()

void octave::qt_interpreter_events::delete_debugger_pointer ( const std::string &  file,
int  line 
)
private

◆ delete_debugger_pointer_signal

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

◆ directory_changed()

void octave::qt_interpreter_events::directory_changed ( const std::string &  dir)
virtual

Reimplemented from octave::interpreter_events.

◆ directory_changed_signal

void octave::qt_interpreter_events::directory_changed_signal ( const QString &  dir)
signal

◆ edit_file()

bool octave::qt_interpreter_events::edit_file ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ edit_file_signal

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

◆ edit_variable()

void octave::qt_interpreter_events::edit_variable ( const std::string &  name,
const octave_value val 
)
virtual

Reimplemented from octave::interpreter_events.

◆ edit_variable_signal

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

◆ enter_debugger_event()

void octave::qt_interpreter_events::enter_debugger_event ( const std::string &  fcn_name,
const std::string &  fcn_file_name,
int  line 
)
virtual

Reimplemented from octave::interpreter_events.

◆ enter_debugger_signal

void octave::qt_interpreter_events::enter_debugger_signal ( void  )
signal

◆ execute_command_in_terminal()

void octave::qt_interpreter_events::execute_command_in_terminal ( const std::string &  command)
virtual

Reimplemented from octave::interpreter_events.

◆ execute_command_in_terminal_signal

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

◆ execute_in_debugger_event()

void octave::qt_interpreter_events::execute_in_debugger_event ( const std::string &  file,
int  line 
)
virtual

Reimplemented from octave::interpreter_events.

◆ exit_debugger_event()

void octave::qt_interpreter_events::exit_debugger_event ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ exit_debugger_signal

void octave::qt_interpreter_events::exit_debugger_signal ( void  )
signal

◆ file_dialog()

std::list<std::string> octave::qt_interpreter_events::file_dialog ( const filter_list filter,
const std::string &  title,
const std::string &  filename,
const std::string &  pathname,
const std::string &  multimode 
)
virtual

Reimplemented from octave::interpreter_events.

◆ file_remove()

void octave::qt_interpreter_events::file_remove ( const std::string &  old_name,
const std::string &  new_name 
)
virtual

Reimplemented from octave::interpreter_events.

◆ file_remove_signal

void octave::qt_interpreter_events::file_remove_signal ( const QString &  old_name,
const QString &  new_name 
)
signal

◆ file_renamed()

void octave::qt_interpreter_events::file_renamed ( bool  load_new = true)
virtual

Reimplemented from octave::interpreter_events.

◆ file_renamed_signal

void octave::qt_interpreter_events::file_renamed_signal ( bool  load_new)
signal

◆ focus_window()

void octave::qt_interpreter_events::focus_window ( const std::string  win_name)
virtual

Reimplemented from octave::interpreter_events.

◆ focus_window_signal

void octave::qt_interpreter_events::focus_window_signal ( const QString &  win_name)
signal

◆ get_named_icon()

uint8NDArray octave::qt_interpreter_events::get_named_icon ( const std::string &  icon_name)
virtual

Reimplemented from octave::interpreter_events.

◆ get_named_icon_signal

void octave::qt_interpreter_events::get_named_icon_signal ( const QString &  name)
signal

◆ get_named_icon_slot

void octave::qt_interpreter_events::get_named_icon_slot ( const QString &  name)
slot

◆ gui_preference()

std::string octave::qt_interpreter_events::gui_preference ( const std::string &  key,
const std::string &  value 
)
virtual

Reimplemented from octave::interpreter_events.

◆ gui_preference_adjust()

QString octave::qt_interpreter_events::gui_preference_adjust ( const QString &  key,
const QString &  value 
)
private

◆ gui_preference_signal

void octave::qt_interpreter_events::gui_preference_signal ( const QString &  key,
const QString &  value 
)
signal

◆ gui_preference_slot

void octave::qt_interpreter_events::gui_preference_slot ( const QString &  key,
const QString &  value 
)
slot

◆ input_dialog()

std::list<std::string> octave::qt_interpreter_events::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

Reimplemented from octave::interpreter_events.

◆ insert_debugger_pointer()

void octave::qt_interpreter_events::insert_debugger_pointer ( const std::string &  file,
int  line 
)
private

◆ insert_debugger_pointer_signal

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

◆ list_dialog()

std::pair<std::list<int>, int> octave::qt_interpreter_events::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

Reimplemented from octave::interpreter_events.

◆ lock()

void octave::qt_interpreter_events::lock ( void  )
inline

Definition at line 177 of file qt-interpreter-events.h.

References m_mutex.

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

◆ operator=()

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

◆ post_input_event()

void octave::qt_interpreter_events::post_input_event ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ pre_input_event()

void octave::qt_interpreter_events::pre_input_event ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ prompt_new_edit_file()

bool octave::qt_interpreter_events::prompt_new_edit_file ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ question_dialog()

std::string octave::qt_interpreter_events::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

Reimplemented from octave::interpreter_events.

◆ refresh_variable_editor_signal

void octave::qt_interpreter_events::refresh_variable_editor_signal ( void  )
signal

◆ register_doc()

void octave::qt_interpreter_events::register_doc ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ register_doc_signal

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

◆ set_history()

void octave::qt_interpreter_events::set_history ( const string_vector hist)
virtual

Reimplemented from octave::interpreter_events.

◆ set_history_signal

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

◆ set_workspace()

void octave::qt_interpreter_events::set_workspace ( bool  top_level,
bool  debug,
const symbol_info_list syminfo,
bool  update_variable_editor 
)
virtual

Reimplemented from octave::interpreter_events.

◆ set_workspace_signal

void octave::qt_interpreter_events::set_workspace_signal ( bool  top_level,
bool  debug,
const symbol_info_list syminfo 
)
signal

◆ settings_changed

void octave::qt_interpreter_events::settings_changed ( const gui_settings ,
bool   
)
signal

◆ show_doc()

void octave::qt_interpreter_events::show_doc ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ show_doc_signal

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

◆ show_preferences()

void octave::qt_interpreter_events::show_preferences ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ show_preferences_signal

void octave::qt_interpreter_events::show_preferences_signal ( void  )
signal

◆ unlock()

void octave::qt_interpreter_events::unlock ( void  )
inline

Definition at line 181 of file qt-interpreter-events.h.

References m_mutex.

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

◆ unregister_doc()

void octave::qt_interpreter_events::unregister_doc ( const std::string &  file)
virtual

Reimplemented from octave::interpreter_events.

◆ unregister_doc_signal

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

◆ update_breakpoint()

void octave::qt_interpreter_events::update_breakpoint ( bool  insert,
const std::string &  file,
int  line,
const std::string &  cond 
)
virtual

Reimplemented from octave::interpreter_events.

◆ update_breakpoint_marker_signal

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

◆ update_path_dialog()

void octave::qt_interpreter_events::update_path_dialog ( void  )
virtual

Reimplemented from octave::interpreter_events.

◆ update_path_dialog_signal

void octave::qt_interpreter_events::update_path_dialog_signal ( void  )
signal

◆ wait()

void octave::qt_interpreter_events::wait ( void  )
inline

Definition at line 179 of file qt-interpreter-events.h.

References m_mutex, and m_waitcondition.

◆ wake_all()

void octave::qt_interpreter_events::wake_all ( void  )
inline

Definition at line 183 of file qt-interpreter-events.h.

References m_waitcondition.

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

Member Data Documentation

◆ m_mutex

QMutex octave::qt_interpreter_events::m_mutex
private

Definition at line 269 of file qt-interpreter-events.h.

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

◆ m_octave_qobj

base_qobject& octave::qt_interpreter_events::m_octave_qobj
private

Definition at line 263 of file qt-interpreter-events.h.

◆ m_result

QVariant octave::qt_interpreter_events::m_result
private

Definition at line 267 of file qt-interpreter-events.h.

◆ m_uiwidget_creator

QUIWidgetCreator octave::qt_interpreter_events::m_uiwidget_creator
private

Definition at line 265 of file qt-interpreter-events.h.

◆ m_waitcondition

QWaitCondition octave::qt_interpreter_events::m_waitcondition
private

Definition at line 271 of file qt-interpreter-events.h.

Referenced by wait(), and wake_all().


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