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

#include "QUnixTerminalImpl.h"

Inheritance diagram for QUnixTerminalImpl:
Collaboration diagram for QUnixTerminalImpl:

Public Types

enum  CursorType { IBeamCursor , BlockCursor , UnderlineCursor }
 

Public Slots

void copyClipboard ()
 
void doc_on_expression (void)
 
void edit_file (void)
 
void edit_selected (void)
 
virtual void handle_visibility_changed (bool visible)
 
virtual void handleCustomContextMenuRequested (const QPoint &at)
 
void help_on_expression (void)
 
virtual void init_terminal_size (void)
 
void notice_settings (const gui_settings *settings)
 
void pasteClipboard ()
 
void run_selection (void)
 
void selectAll ()
 
void set_global_shortcuts (bool focus_out)
 
void terminal_interrupt (void)
 

Signals

void edit_mfile_request (const QString &, int)
 
void execute_command_in_terminal_signal (const QString &)
 
void interrupt_signal (void)
 
void report_status_message (const QString &)
 
void show_doc_signal (const QString &)
 

Public Member Functions

 QUnixTerminalImpl (QWidget *parent=nullptr)
 
virtual ~QUnixTerminalImpl ()
 
QList< QAction * > get_hotspot_actions (const QPoint &at)
 
void has_extra_interrupt (bool extra_interrupt)
 
QString selectedText ()
 
void sendText (const QString &text)
 
void setBackgroundColor (const QColor &color)
 
void setCursorColor (bool useForegroundColor, const QColor &color)
 
void setCursorType (CursorType type, bool blinking)
 
void setForegroundColor (const QColor &color)
 
void setScrollBufferSize (int value)
 
void setSelectionColor (const QColor &color)
 
void setSize (int h, int v)
 
void setTerminalFont (const QFont &font)
 

Static Public Member Functions

static QTerminalcreate (octave::base_qobject &oct_qobj, QWidget *xparent=nullptr)
 

Protected Member Functions

void construct (octave::base_qobject &oct_qobj, QWidget *xparent)
 
virtual void resizeEvent (QResizeEvent *)
 
void showEvent (QShowEvent *)
 

Private Member Functions

void connectToPty ()
 
void initialize ()
 

Private Attributes

QMenu_contextMenu
 
QAction * _copy_action
 
QAction * _edit_action
 
bool _extra_interrupt
 
QAction * _interrupt_action
 
QAction * _nop_action
 
QWidget_parent
 
QAction * _paste_action
 
QAction * _run_selection_action
 
QAction * _selectall_action
 
int fdstderr
 
QAction * m_doc_selected_action
 
QAction * m_edit_selected_action
 
QAction * m_help_selected_action
 
KPtym_kpty
 
TerminalModelm_terminalModel
 
TerminalViewm_terminalView
 

Detailed Description

Definition at line 30 of file QUnixTerminalImpl.h.

Member Enumeration Documentation

◆ CursorType

enum QTerminal::CursorType
inherited
Enumerator
IBeamCursor 
BlockCursor 
UnderlineCursor 

Definition at line 71 of file QTerminal.h.

Constructor & Destructor Documentation

◆ QUnixTerminalImpl()

QUnixTerminalImpl::QUnixTerminalImpl ( QWidget parent = nullptr)

Definition at line 27 of file QUnixTerminalImpl.cpp.

References initialize().

◆ ~QUnixTerminalImpl()

QUnixTerminalImpl::~QUnixTerminalImpl ( )
virtual

Member Function Documentation

◆ connectToPty()

void QUnixTerminalImpl::connectToPty ( )
private

Definition at line 108 of file QUnixTerminalImpl.cpp.

References octave::sys::dup2(), fdstderr, isatty, m_kpty, KPty::slaveFd(), and STDIN_FILENO.

Referenced by initialize().

◆ construct()

◆ copyClipboard

void QUnixTerminalImpl::copyClipboard ( void  )
slot

◆ create()

QTerminal * QTerminal::create ( octave::base_qobject oct_qobj,
QWidget xparent = nullptr 
)
staticinherited

Definition at line 52 of file QTerminal.cc.

References QTerminal::construct().

◆ doc_on_expression

void QTerminal::doc_on_expression ( void  )
slotinherited

Definition at line 214 of file QTerminal.cc.

References QTerminal::m_doc_selected_action, and QTerminal::show_doc_signal().

Referenced by QTerminal::construct().

◆ edit_file

void QTerminal::edit_file ( void  )
slotinherited

Definition at line 189 of file QTerminal.cc.

References QTerminal::_edit_action, and QTerminal::edit_mfile_request().

Referenced by QTerminal::construct().

◆ edit_mfile_request

void QTerminal::edit_mfile_request ( const QString &  ,
int   
)
signalinherited

◆ edit_selected

void QTerminal::edit_selected ( void  )
slotinherited

◆ execute_command_in_terminal_signal

void QTerminal::execute_command_in_terminal_signal ( const QString &  )
signalinherited

◆ get_hotspot_actions()

QList< QAction * > QUnixTerminalImpl::get_hotspot_actions ( const QPoint &  at)
virtual

Reimplemented from QTerminal.

Definition at line 103 of file QUnixTerminalImpl.cpp.

References TerminalView::filterActions(), and m_terminalView.

◆ handle_visibility_changed

void QUnixTerminalImpl::handle_visibility_changed ( bool  visible)
virtualslot

Definition at line 263 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::visibility_changed().

◆ handleCustomContextMenuRequested

◆ has_extra_interrupt()

void QUnixTerminalImpl::has_extra_interrupt ( bool  extra_interrupt)
virtual

Implements QTerminal.

Definition at line 257 of file QUnixTerminalImpl.cpp.

References _extra_interrupt.

◆ help_on_expression

void QTerminal::help_on_expression ( void  )
slotinherited

◆ init_terminal_size

virtual void QTerminal::init_terminal_size ( void  )
inlinevirtualslotinherited

Definition at line 122 of file QTerminal.h.

Referenced by QTerminal::construct().

◆ initialize()

◆ interrupt_signal

void QTerminal::interrupt_signal ( void  )
signalinherited

◆ notice_settings

◆ pasteClipboard

void QUnixTerminalImpl::pasteClipboard ( void  )
slot

Definition at line 240 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::pasteClipboard().

◆ report_status_message

void QTerminal::report_status_message ( const QString &  )
signalinherited

◆ resizeEvent()

void QUnixTerminalImpl::resizeEvent ( QResizeEvent *  )
protectedvirtual

Definition at line 227 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::updateImage().

◆ run_selection

void QTerminal::run_selection ( void  )
slotinherited

◆ selectAll

void QUnixTerminalImpl::selectAll ( void  )
slot

Definition at line 245 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::selectAll().

◆ selectedText()

QString QUnixTerminalImpl::selectedText ( )
virtual

Implements QTerminal.

Definition at line 251 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::selectedText().

◆ sendText()

void QUnixTerminalImpl::sendText ( const QString &  text)
virtual

Implements QTerminal.

Definition at line 159 of file QUnixTerminalImpl.cpp.

References m_terminalModel, and TerminalModel::sendText().

◆ set_global_shortcuts

void QTerminal::set_global_shortcuts ( bool  focus_out)
slotinherited

◆ setBackgroundColor()

void QUnixTerminalImpl::setBackgroundColor ( const QColor &  color)
virtual

◆ setCursorColor()

void QUnixTerminalImpl::setCursorColor ( bool  useForegroundColor,
const QColor &  color 
)
virtual

Implements QTerminal.

Definition at line 214 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setKeyboardCursorColor().

◆ setCursorType()

◆ setForegroundColor()

void QUnixTerminalImpl::setForegroundColor ( const QColor &  color)
virtual

◆ setScrollBufferSize()

void QUnixTerminalImpl::setScrollBufferSize ( int  value)
virtual

◆ setSelectionColor()

void QUnixTerminalImpl::setSelectionColor ( const QColor &  color)
virtual

Implements QTerminal.

Definition at line 212 of file QUnixTerminalImpl.cpp.

◆ setSize()

void QUnixTerminalImpl::setSize ( int  h,
int  v 
)
virtual

Implements QTerminal.

Definition at line 152 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setSize().

◆ setTerminalFont()

void QUnixTerminalImpl::setTerminalFont ( const QFont &  font)
virtual

Implements QTerminal.

Definition at line 145 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::setVTFont().

Referenced by initialize().

◆ show_doc_signal

void QTerminal::show_doc_signal ( const QString &  )
signalinherited

◆ showEvent()

void QUnixTerminalImpl::showEvent ( QShowEvent *  )
protected

Definition at line 220 of file QUnixTerminalImpl.cpp.

References m_terminalView, and TerminalView::updateImage().

◆ terminal_interrupt

void QTerminal::terminal_interrupt ( void  )
inlineslotinherited

Member Data Documentation

◆ _contextMenu

QMenu* QTerminal::_contextMenu
privateinherited

◆ _copy_action

QAction* QTerminal::_copy_action
privateinherited

◆ _edit_action

QAction* QTerminal::_edit_action
privateinherited

◆ _extra_interrupt

bool QUnixTerminalImpl::_extra_interrupt
private

Definition at line 72 of file QUnixTerminalImpl.h.

Referenced by copyClipboard(), and has_extra_interrupt().

◆ _interrupt_action

QAction* QTerminal::_interrupt_action
privateinherited

◆ _nop_action

QAction* QTerminal::_nop_action
privateinherited

◆ _parent

QWidget* QUnixTerminalImpl::_parent
private

Definition at line 73 of file QUnixTerminalImpl.h.

Referenced by initialize().

◆ _paste_action

QAction* QTerminal::_paste_action
privateinherited

◆ _run_selection_action

QAction* QTerminal::_run_selection_action
privateinherited

◆ _selectall_action

QAction* QTerminal::_selectall_action
privateinherited

Definition at line 151 of file QTerminal.h.

Referenced by QTerminal::construct().

◆ fdstderr

int QUnixTerminalImpl::fdstderr
private

Definition at line 34 of file QUnixTerminalImpl.h.

Referenced by ~QUnixTerminalImpl(), and connectToPty().

◆ m_doc_selected_action

QAction* QTerminal::m_doc_selected_action
privateinherited

◆ m_edit_selected_action

QAction* QTerminal::m_edit_selected_action
privateinherited

◆ m_help_selected_action

QAction* QTerminal::m_help_selected_action
privateinherited

◆ m_kpty

KPty* QUnixTerminalImpl::m_kpty
private

Definition at line 71 of file QUnixTerminalImpl.h.

Referenced by ~QUnixTerminalImpl(), connectToPty(), and initialize().

◆ m_terminalModel

TerminalModel* QUnixTerminalImpl::m_terminalModel
private

Definition at line 70 of file QUnixTerminalImpl.h.

Referenced by ~QUnixTerminalImpl(), initialize(), sendText(), and setScrollBufferSize().

◆ m_terminalView


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