24 #if defined (HAVE_CONFIG_H) 28 #include <QDesktopWidget> 46 setObjectName (
"TerminalDockWidget");
47 setWindowIcon (QIcon (
":/actions/icons/logo.png"));
57 connect (
this, SIGNAL (visibilityChanged (
bool)),
64 QFont font = QFont ();
65 font.setStyleHint (QFont::TypeWriter);
67 (settings->value (
"terminal/fontName",
"Courier New").toString ());
68 font.setPointSize (settings->value (
"terminal/fontSize", 10).toInt ());
70 QFontMetrics metrics(font);
72 int win_x = metrics.maxWidth()*80;
73 int win_y = metrics.height()*25;
75 int max_x = QApplication::desktop ()->screenGeometry (
this).width ();
76 int max_y = QApplication::desktop ()->screenGeometry (
this).height ();
83 setGeometry (0, 0, win_x, win_y);
95 return w->hasFocus ();
105 w->activateWindow ();
volatile sig_atomic_t octave_signal_caught
int octave_kill_wrapper(pid_t pid, int signum)
std::complex< double > w(std::complex< double > z, double relerr=0)
sig_atomic_t octave_interrupt_state
static QSettings * get_settings(void)
bool octave_get_sig_number(const char *signame, int *signum)