28 #include <QKeySequence>
30 #include <QStringList>
35 #include <QApplication>
56 virtual void setSize (
int h,
int v) = 0;
87 const QColor& color) = 0;
107 QClipboard * cb = QApplication::clipboard ();
129 setContextMenuPolicy (Qt::CustomContextMenu);
144 tr (
"Select All"),
this, SLOT (
selectAll ()));
149 _contextMenu->addAction (tr (
"Clear Window"), parent (),
150 SLOT (handle_clear_command_window_request ()));
152 connect (
this, SIGNAL (customContextMenuRequested (QPoint)),
158 connect (xparent, SIGNAL (settings_changed (
const QSettings *)),
161 connect (xparent, SIGNAL (init_terminal_size_signal ()),
164 connect (xparent, SIGNAL (copyClipboard_signal ()),
167 connect (xparent, SIGNAL (pasteClipboard_signal ()),
170 connect (xparent, SIGNAL (selectAll_signal ()),
178 QKeySequence (Qt::ControlModifier + Qt::Key_C));
194 #endif // QTERMINAL_H
virtual void sendText(const QString &text)=0
virtual void setScrollBufferSize(int value=1000)=0
virtual void init_terminal_size(void)
void interrupt_signal(void)
QAction * _selectall_action
virtual void setForegroundColor(const QColor &color)=0
void terminal_interrupt(void)
virtual void pasteClipboard(void)=0
QAction * _interrupt_action
virtual void setSelectionColor(const QColor &color)=0
virtual void selectAll(void)=0
virtual void has_extra_interrupt(bool extra)=0
virtual void copyClipboard(void)=0
virtual QString selectedText()=0
void report_status_message(const QString &)
void set_global_shortcuts(bool focus_out)
virtual void setSize(int h, int v)=0
virtual void setCursorColor(bool useForegroundColor, const QColor &color)=0
void notice_settings(const QSettings *settings)
QTerminal(QWidget *xparent=0)
static QTerminal * create(QWidget *xparent=0)
static QStringList color_names(void)
virtual void setTerminalFont(const QFont &font)=0
static QList< QColor > default_colors(void)
static QIcon icon(const QString &icon_name, bool fallback=true)
virtual void setBackgroundColor(const QColor &color)=0
virtual void setCursorType(CursorType type, bool blinking)
virtual void handleCustomContextMenuRequested(const QPoint &at)