26 #if defined (Q_OS_WIN32)
35 #if defined (Q_OS_WIN32)
47 if (colors.isEmpty ())
49 colors << QColor(0,0,0)
50 << QColor(255,255,255)
51 << QColor(192,192,192)
52 << QColor(128,128,128);
61 static QStringList
names;
65 names << QObject::tr (
"foreground")
66 << QObject::tr (
"background")
67 << QObject::tr (
"selection")
68 << QObject::tr (
"cursor");
82 QKeySequence (Qt::ControlModifier + Qt::Key_C));
91 QFont term_font = QFont ();
92 term_font.setStyleHint (QFont::TypeWriter);
94 (settings->value (
"terminal/fontName",
"Courier New").toString ());
95 term_font.setPointSize (settings->value (
"terminal/fontSize", 10).toInt ());
99 = settings->value (
"terminal/cursorType",
"ibeam").toString ();
102 = settings->value (
"terminal/cursorBlinking",
true).toBool ();
104 if (cursorType ==
"ibeam")
106 else if (cursorType ==
"block")
108 else if (cursorType ==
"underline")
111 bool cursorUseForegroundColor
112 = settings->value (
"terminal/cursorUseForegroundColor",
true).toBool ();
117 (settings->value (
"terminal/color_f",
118 QVariant (colors.at (0))).value<QColor> ());
121 (settings->value (
"terminal/color_b",
122 QVariant (colors.at (1))).value<QColor> ());
125 (settings->value (
"terminal/color_s",
126 QVariant (colors.at (2))).value<QColor> ());
129 (cursorUseForegroundColor,
130 settings->value (
"terminal/color_c",
131 QVariant (colors.at (3))).value<QColor> ());
135 int set = settings->value (
"shortcuts/set",0).toInt ();
137 QString key = QString (
"shortcuts/main_edit:copy");
140 copy = QKeySequence (settings->value (key).toString ());
144 copy = QKeySequence::Copy;
148 ctrl = Qt::ControlModifier;
150 bool extra_ir_action = (copy != QKeySequence (ctrl + Qt::Key_C));
virtual void setScrollBufferSize(int value=1000)=0
virtual void setForegroundColor(const QColor &color)=0
static string_vector names(const map_type &lst)
QAction * _interrupt_action
virtual void setSelectionColor(const QColor &color)=0
virtual void has_extra_interrupt(bool extra)=0
void set_global_shortcuts(bool focus_out)
virtual void setCursorColor(bool useForegroundColor, const QColor &color)=0
void notice_settings(const QSettings *settings)
static QTerminal * create(QWidget *xparent=0)
static QStringList color_names(void)
virtual void setTerminalFont(const QFont &font)=0
static QList< QColor > default_colors(void)
virtual void setBackgroundColor(const QColor &color)=0
virtual void setCursorType(CursorType type, bool blinking)