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

#include "command-widget.h"

Inheritance diagram for command_widget:
Collaboration diagram for command_widget:

Public Slots

void insert_interpreter_output (const QString &msg)
 
void notice_settings (const gui_settings *settings)
 
void process_input_line (const QString &input_line)
 
void update_prompt (const QString &prompt)
 

Signals

void clear_line_edit (void)
 
void interpreter_event (const fcn_callback &fcn)
 
void interpreter_event (const meth_callback &meth)
 
void interpreter_pause (void)
 
void interpreter_resume (void)
 
void interpreter_stop (void)
 
void new_command_line_signal (const QString &command=QString())
 

Public Member Functions

 command_widget (base_qobject &oct_qobj, QWidget *p)
 
consoleget_console ()
 
void init_command_prompt ()
 
QString prompt (void)
 

Private Attributes

consolem_console
 
bool m_incomplete_parse
 
QString m_prompt
 

Detailed Description

Definition at line 81 of file command-widget.h.

Constructor & Destructor Documentation

◆ command_widget()

command_widget::command_widget ( base_qobject oct_qobj,
QWidget p 
)

Member Function Documentation

◆ clear_line_edit

void command_widget::clear_line_edit ( void  )
signal

◆ get_console()

console* command_widget::get_console ( )
inline

Definition at line 89 of file command-widget.h.

References m_console.

Referenced by terminal_dock_widget::terminal_dock_widget().

◆ init_command_prompt()

◆ insert_interpreter_output

void command_widget::insert_interpreter_output ( const QString &  msg)
slot

Definition at line 131 of file command-widget.cc.

References m_console.

Referenced by terminal_dock_widget::terminal_dock_widget().

◆ interpreter_event [1/2]

void command_widget::interpreter_event ( const fcn_callback fcn)
signal

◆ interpreter_event [2/2]

void command_widget::interpreter_event ( const meth_callback meth)
signal

◆ interpreter_pause

void command_widget::interpreter_pause ( void  )
signal

◆ interpreter_resume

void command_widget::interpreter_resume ( void  )
signal

◆ interpreter_stop

void command_widget::interpreter_stop ( void  )
signal

◆ new_command_line_signal

void command_widget::new_command_line_signal ( const QString &  command = QString())
signal

◆ notice_settings

void command_widget::notice_settings ( const gui_settings settings)
slot

◆ process_input_line

◆ prompt()

◆ update_prompt

void command_widget::update_prompt ( const QString &  prompt)
slot

Definition at line 121 of file command-widget.cc.

References m_prompt, and prompt().

Referenced by terminal_dock_widget::terminal_dock_widget().

Member Data Documentation

◆ m_console

console* command_widget::m_console
private

Definition at line 122 of file command-widget.h.

Referenced by get_console(), insert_interpreter_output(), and notice_settings().

◆ m_incomplete_parse

bool command_widget::m_incomplete_parse
private

Definition at line 120 of file command-widget.h.

Referenced by process_input_line().

◆ m_prompt

QString command_widget::m_prompt
private

Definition at line 121 of file command-widget.h.

Referenced by prompt(), and update_prompt().


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