GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_qscintilla Class Reference

#include "octave-qscintilla.h"

Inheritance diagram for octave_qscintilla:
Collaboration diagram for octave_qscintilla:

Public Types

enum  { ST_NONE = 0 , ST_LINE_COMMENT , ST_BLOCK_COMMENT }
 

Public Slots

void handle_enter_debug_mode (void)
 
void handle_exit_debug_mode (void)
 

Signals

void context_menu_break_condition_signal (int)
 
void context_menu_break_once (int)
 
void context_menu_edit_signal (const QString &)
 
void create_context_menu_signal (QMenu *)
 
void ctx_menu_run_finished_signal (bool, int, QTemporaryFile *, QTemporaryFile *, bool, bool)
 
void execute_command_in_terminal_signal (const QString &)
 
void focus_console_after_command_signal (void)
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void qsci_has_focus_signal (bool)
 
void show_doc_signal (const QString &)
 
void status_update (bool, bool)
 
void update_rowcol_indicator_signal (int line, int col)
 

Public Member Functions

 octave_qscintilla (QWidget *p, base_qobject &oct_qobj)
 
 ~octave_qscintilla (void)=default
 
void clear_selection_markers (void)
 
QStringList comment_string (bool comment=true)
 
void context_edit (void)
 
void context_help_doc (bool)
 
void context_run (void)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
QString eol_string (void)
 
bool get_actual_word (void)
 
void get_current_position (int *pos, int *line, int *col)
 
void get_global_textcursor_pos (QPoint *global_pos, QPoint *local_pos)
 
int get_style (int pos=-1)
 
int is_style_comment (int pos=-1)
 
void replace_all (const QString &o_str, const QString &n_str, bool re, bool cs, bool wo)
 
void set_selection_marker_color (const QColor &c)
 
void set_word_selection (const QString &word=QString())
 
virtual void setCursorPosition (int line, int col)
 
void show_selection_markers (int l1, int c1, int l2, int c2)
 
void smart_indent (bool do_smart_indent, int do_auto_close, int line, int ind_char_width)
 
void smart_indent_line_or_selected_text (int lineFrom, int lineTo)
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *e)
 
bool event (QEvent *e)
 
void focusInEvent (QFocusEvent *focusEvent)
 
void keyPressEvent (QKeyEvent *e)
 
void show_replace_action_tooltip (void)
 

Private Slots

void contextmenu_break_condition (bool)
 
void contextmenu_break_once (const QPoint &)
 
void contextmenu_doc (bool)
 
void contextmenu_edit (bool)
 
void contextmenu_help (bool)
 
void contextmenu_help_doc (bool)
 
void contextmenu_run (bool)
 
void contextmenu_run_temp_error (void)
 
void ctx_menu_run_finished (bool, int, QTemporaryFile *, QTemporaryFile *, bool, bool)
 
void cursor_position_changed (int, int)
 
void text_changed (void)
 

Private Member Functions

void auto_close (int auto_endif, int l, const QString &line, QString &first_word)
 

Private Attributes

bool m_debug_mode
 
int m_indicator_id
 
base_qobjectm_octave_qobj
 
QString m_selection
 
int m_selection_col
 
int m_selection_line
 
QString m_selection_replacement
 
QString m_word_at_cursor
 

Detailed Description

Definition at line 43 of file octave-qscintilla.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ST_NONE 
ST_LINE_COMMENT 
ST_BLOCK_COMMENT 

Definition at line 53 of file octave-qscintilla.h.

Constructor & Destructor Documentation

◆ octave_qscintilla()

octave_qscintilla::octave_qscintilla ( QWidget p,
base_qobject oct_qobj 
)

◆ ~octave_qscintilla()

octave_qscintilla::~octave_qscintilla ( void  )
default

Member Function Documentation

◆ auto_close()

void octave_qscintilla::auto_close ( int  auto_endif,
int  l,
const QString &  line,
QString &  first_word 
)
private

Definition at line 1271 of file octave-qscintilla.cc.

References is_end().

Referenced by smart_indent().

◆ clear_selection_markers()

void octave_qscintilla::clear_selection_markers ( void  )

◆ comment_string()

◆ context_edit()

void octave_qscintilla::context_edit ( void  )

Definition at line 343 of file octave-qscintilla.cc.

References contextmenu_edit(), and get_actual_word().

Referenced by file_editor_tab::context_edit().

◆ context_help_doc()

void octave_qscintilla::context_help_doc ( bool  documentation)

Definition at line 805 of file octave-qscintilla.cc.

References contextmenu_help_doc(), and get_actual_word().

Referenced by file_editor_tab::context_help().

◆ context_menu_break_condition_signal

void octave_qscintilla::context_menu_break_condition_signal ( int  )
signal

◆ context_menu_break_once

void octave_qscintilla::context_menu_break_once ( int  )
signal

Referenced by contextmenu_break_once().

◆ context_menu_edit_signal

void octave_qscintilla::context_menu_edit_signal ( const QString &  )
signal

◆ context_run()

void octave_qscintilla::context_run ( void  )

◆ contextmenu_break_condition

void octave_qscintilla::contextmenu_break_condition ( bool  )
privateslot

Definition at line 1068 of file octave-qscintilla.cc.

References context_menu_break_condition_signal().

Referenced by contextMenuEvent().

◆ contextmenu_break_once

void octave_qscintilla::contextmenu_break_once ( const QPoint &  local_pos)
privateslot

Definition at line 1082 of file octave-qscintilla.cc.

References context_menu_break_once().

◆ contextmenu_doc

void octave_qscintilla::contextmenu_doc ( bool  )
privateslot

Definition at line 800 of file octave-qscintilla.cc.

References contextmenu_help_doc().

Referenced by contextMenuEvent().

◆ contextmenu_edit

void octave_qscintilla::contextmenu_edit ( bool  )
privateslot

Definition at line 811 of file octave-qscintilla.cc.

References context_menu_edit_signal(), and m_word_at_cursor.

Referenced by context_edit(), and contextMenuEvent().

◆ contextmenu_help

void octave_qscintilla::contextmenu_help ( bool  )
privateslot

Definition at line 795 of file octave-qscintilla.cc.

References contextmenu_help_doc().

Referenced by contextMenuEvent().

◆ contextmenu_help_doc

void octave_qscintilla::contextmenu_help_doc ( bool  documentation)
privateslot

◆ contextmenu_run

◆ contextmenu_run_temp_error

void octave_qscintilla::contextmenu_run_temp_error ( void  )
privateslot

Definition at line 816 of file octave-qscintilla.cc.

Referenced by contextmenu_run().

◆ contextMenuEvent()

void octave_qscintilla::contextMenuEvent ( QContextMenuEvent *  e)
virtual

◆ create_context_menu_signal

void octave_qscintilla::create_context_menu_signal ( QMenu )
signal

◆ ctx_menu_run_finished

void octave_qscintilla::ctx_menu_run_finished ( bool  show_dbg_file,
int  ,
QTemporaryFile *  tmp_file,
QTemporaryFile *  tmp_hist,
bool  dbg,
bool  auto_repeat 
)
privateslot

◆ ctx_menu_run_finished_signal

void octave_qscintilla::ctx_menu_run_finished_signal ( bool  ,
int  ,
QTemporaryFile *  ,
QTemporaryFile *  ,
bool  ,
bool   
)
signal

◆ cursor_position_changed

void octave_qscintilla::cursor_position_changed ( int  line,
int  col 
)
privateslot

Definition at line 1096 of file octave-qscintilla.cc.

References m_selection, m_selection_col, m_selection_line, and set_word_selection().

Referenced by octave_qscintilla().

◆ dragEnterEvent()

void octave_qscintilla::dragEnterEvent ( QDragEnterEvent *  e)
protected

Definition at line 1355 of file octave-qscintilla.cc.

◆ eol_string()

QString octave_qscintilla::eol_string ( void  )

Definition at line 394 of file octave-qscintilla.cc.

Referenced by file_editor_tab::do_save_file(), and replace_all().

◆ event()

bool octave_qscintilla::event ( QEvent *  e)
protected

◆ execute_command_in_terminal_signal

void octave_qscintilla::execute_command_in_terminal_signal ( const QString &  )
signal

◆ focus_console_after_command_signal

void octave_qscintilla::focus_console_after_command_signal ( void  )
signal

◆ focusInEvent()

void octave_qscintilla::focusInEvent ( QFocusEvent *  focusEvent)
protected

Definition at line 1109 of file octave-qscintilla.cc.

References status_update().

◆ get_actual_word()

bool octave_qscintilla::get_actual_word ( void  )

Definition at line 373 of file octave-qscintilla.cc.

References get_global_textcursor_pos(), lexer, and m_word_at_cursor.

Referenced by context_edit(), and context_help_doc().

◆ get_current_position()

void octave_qscintilla::get_current_position ( int *  pos,
int *  line,
int *  col 
)

◆ get_global_textcursor_pos()

void octave_qscintilla::get_global_textcursor_pos ( QPoint *  global_pos,
QPoint *  local_pos 
)

◆ get_style()

int octave_qscintilla::get_style ( int  pos = -1)

Definition at line 485 of file octave-qscintilla.cc.

Referenced by is_style_comment().

◆ handle_enter_debug_mode

void octave_qscintilla::handle_enter_debug_mode ( void  )
slot

Definition at line 1370 of file octave-qscintilla.cc.

References m_debug_mode.

Referenced by file_editor::make_file_editor_tab().

◆ handle_exit_debug_mode

void octave_qscintilla::handle_exit_debug_mode ( void  )
slot

Definition at line 1375 of file octave-qscintilla.cc.

References m_debug_mode.

Referenced by file_editor::make_file_editor_tab().

◆ interpreter_event [1/2]

void octave_qscintilla::interpreter_event ( const fcn_callback fcn)
signal

◆ interpreter_event [2/2]

void octave_qscintilla::interpreter_event ( const meth_callback meth)
signal

◆ is_style_comment()

int octave_qscintilla::is_style_comment ( int  pos = -1)

◆ keyPressEvent()

void octave_qscintilla::keyPressEvent ( QKeyEvent *  e)
protected

◆ qsci_has_focus_signal

void octave_qscintilla::qsci_has_focus_signal ( bool  )
signal

◆ replace_all()

void octave_qscintilla::replace_all ( const QString &  o_str,
const QString &  n_str,
bool  re,
bool  cs,
bool  wo 
)

◆ set_selection_marker_color()

void octave_qscintilla::set_selection_marker_color ( const QColor &  c)

Definition at line 239 of file octave-qscintilla.cc.

References m_indicator_id, and marker::selection.

Referenced by file_editor_tab::update_lexer_settings().

◆ set_word_selection()

void octave_qscintilla::set_word_selection ( const QString &  word = QString ())

◆ setCursorPosition()

◆ show_doc_signal

void octave_qscintilla::show_doc_signal ( const QString &  )
signal

◆ show_replace_action_tooltip()

void octave_qscintilla::show_replace_action_tooltip ( void  )
protected

◆ show_selection_markers()

void octave_qscintilla::show_selection_markers ( int  l1,
int  c1,
int  l2,
int  c2 
)

◆ smart_indent()

void octave_qscintilla::smart_indent ( bool  do_smart_indent,
int  do_auto_close,
int  line,
int  ind_char_width 
)

Definition at line 540 of file octave-qscintilla.cc.

References auto_close(), is_end(), and setCursorPosition().

Referenced by file_editor_tab::handle_cursor_moved().

◆ smart_indent_line_or_selected_text()

void octave_qscintilla::smart_indent_line_or_selected_text ( int  lineFrom,
int  lineTo 
)

◆ status_update

void octave_qscintilla::status_update ( bool  ,
bool   
)
signal

◆ text_changed

void octave_qscintilla::text_changed ( void  )
privateslot

Definition at line 1091 of file octave-qscintilla.cc.

References status_update().

Referenced by octave_qscintilla().

◆ update_rowcol_indicator_signal

void octave_qscintilla::update_rowcol_indicator_signal ( int  line,
int  col 
)
signal

Member Data Documentation

◆ m_debug_mode

bool octave_qscintilla::m_debug_mode
private

Definition at line 148 of file octave-qscintilla.h.

Referenced by event(), handle_enter_debug_mode(), and handle_exit_debug_mode().

◆ m_indicator_id

int octave_qscintilla::m_indicator_id
private

◆ m_octave_qobj

base_qobject& octave_qscintilla::m_octave_qobj
private

◆ m_selection

QString octave_qscintilla::m_selection
private

◆ m_selection_col

int octave_qscintilla::m_selection_col
private

◆ m_selection_line

int octave_qscintilla::m_selection_line
private

◆ m_selection_replacement

QString octave_qscintilla::m_selection_replacement
private

◆ m_word_at_cursor

QString octave_qscintilla::m_word_at_cursor
private

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