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

#include "command-widget.h"

Inheritance diagram for console:
Collaboration diagram for console:

Public Slots

void cursor_position_changed (int line, int col)
 
void execute_command (const QString &command)
 
void move_cursor_to_end (void)
 
void new_command_line (const QString &command=QString())
 
void text_changed (void)
 

Public Member Functions

 console (command_widget *p, base_qobject &oct_qobj)
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 

Private Member Functions

void accept_command_line (void)
 
void append_string (const QString &string)
 

Private Attributes

int m_command_position
 
command_widgetm_command_widget
 
int m_cursor_position
 
QString m_last_key_string
 
bool m_text_changed
 

Detailed Description

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

Constructor & Destructor Documentation

◆ console()

console::console ( command_widget p,
base_qobject oct_qobj 
)

Member Function Documentation

◆ accept_command_line()

void console::accept_command_line ( void  )
private

◆ append_string()

void console::append_string ( const QString &  string)
private

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

Referenced by accept_command_line(), move_cursor_to_end(), and new_command_line().

◆ cursor_position_changed

void console::cursor_position_changed ( int  line,
int  col 
)
slot

◆ execute_command

void console::execute_command ( const QString &  command)
slot

◆ keyPressEvent()

void console::keyPressEvent ( QKeyEvent *  e)
protected

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

References accept_command_line(), and m_last_key_string.

◆ move_cursor_to_end

void console::move_cursor_to_end ( void  )
slot

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

References append_string(), and m_last_key_string.

Referenced by console().

◆ new_command_line

void console::new_command_line ( const QString &  command = QString ())
slot

◆ text_changed

void console::text_changed ( void  )
slot

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

References m_text_changed.

Referenced by console().

Member Data Documentation

◆ m_command_position

int console::m_command_position
private

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

Referenced by cursor_position_changed(), and new_command_line().

◆ m_command_widget

command_widget* console::m_command_widget
private

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

Referenced by accept_command_line(), cursor_position_changed(), and new_command_line().

◆ m_cursor_position

int console::m_cursor_position
private

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

Referenced by cursor_position_changed().

◆ m_last_key_string

QString console::m_last_key_string
private

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

Referenced by keyPressEvent(), and move_cursor_to_end().

◆ m_text_changed

bool console::m_text_changed
private

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

Referenced by cursor_position_changed(), and text_changed().


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