Mercurial > octave
diff libgui/src/command-widget.h @ 29525:d6b2d9f9e1e0
use terminal settings for the experimental command widget
* QTerminal.cc (construct): do not connect settings signal here
* command-widget.cc: include gui-preferences-cs.h, gui-preferences-global.h,
and gui-utils.h;
(command_widget): initialize class variable for input color, move input
widget to the bottom, line edit gets focus proxy;
(accept_input_line): style input and output text,
(notice_settings): new function for reading terminal font and colors
from the settings file
* command-widget.h: include gui-settings.h, new slot notice:settings,
new class variable for the input color
* terminal-dock-widget.cc (terminal_dock_widget): connect main windows
settings signal with the related slot in QTerminal or command_widget
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Mon, 12 Apr 2021 23:03:11 +0200 |
parents | 3bfec185c9e2 |
children | 63c515ff762f |
line wrap: on
line diff
--- a/libgui/src/command-widget.h Sun Apr 11 19:22:31 2021 +0200 +++ b/libgui/src/command-widget.h Mon Apr 12 23:03:11 2021 +0200 @@ -29,6 +29,7 @@ #include <QWidget> #include "octave-qobject.h" +#include "gui-settings.h" class QLabel; class QLineEdit; @@ -54,6 +55,10 @@ void interpreter_event (const fcn_callback& fcn); void interpreter_event (const meth_callback& meth); + public slots: + + void notice_settings (const gui_settings *settings); + protected slots: void accept_input_line (void); @@ -66,6 +71,7 @@ QLabel *m_prompt; QLineEdit *m_line_edit; QTextBrowser *m_output_display; + QColor m_input_color; }; }