26 #if defined (HAVE_CONFIG_H)
33 #if defined (HAVE_QSCINTILLA)
51 m_experimental_terminal_widget (oct_qobj.experimental_terminal_widget ())
55 if (m_experimental_terminal_widget)
57 #if defined (HAVE_QSCINTILLA)
88 connect (
this, &terminal_dock_widget::visibilityChanged,
94 m_terminal->setObjectName (
"OctaveTerminal");
95 m_terminal->setFocusPolicy (Qt::StrongFocus);
97 set_title (tr (
"Command Window"));
99 setWidget (m_terminal);
100 setFocusProxy (m_terminal);
107 QFont font = QFont ();
108 font.setStyleHint (QFont::TypeWriter);
115 QFontMetrics metrics(font);
117 int win_x = metrics.maxWidth()*80;
118 int win_y = metrics.height()*25;
120 int max_x = QGuiApplication::primaryScreen ()->availableGeometry ().width ();
121 int max_y = QGuiApplication::primaryScreen ()->availableGeometry ().height ();
128 setGeometry (0, 0, win_x, win_y);
137 return w->hasFocus ();
146 #if defined (HAVE_QSCINTILLA)
163 #if defined (HAVE_QSCINTILLA)
virtual void handle_visibility_changed(bool)
void notice_settings(const gui_settings *settings)
static QTerminal * create(octave::base_qobject &oct_qobj, QWidget *xparent)
Base class for Octave interfaces that use Qt.
void execute_command(const QString &command)
void new_command_line(const QString &command=QString())
gui_settings * get_settings(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
const gui_pref cs_font_size("terminal/fontSize", QVariant(10))
const gui_pref cs_font("terminal/fontName", QVariant())
const gui_pref global_mono_font("monospace_font", global_font_family)
std::complex< double > w(std::complex< double > z, double relerr=0)