GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "unix/TerminalView.h"
#include <QApplication>
#include <QBoxLayout>
#include <QClipboard>
#include <QKeyEvent>
#include <QtCore/QEvent>
#include <QtCore/QTime>
#include <QtCore/QFile>
#include <QGridLayout>
#include <QLabel>
#include <QLayout>
#include <QPainter>
#include <QPixmap>
#include <QScrollBar>
#include <QStyle>
#include <QtCore>
#include <QtGui>
#include "unix/Filter.h"
#include "unix/konsole_wcwidth.h"
#include "unix/ScreenWindow.h"
#include "unix/TerminalCharacterDecoder.h"
#include <signal.h>
#include "LineFont.h"
Go to the source code of this file.
Macros | |
#define | loc(X, Y) ((Y)*_columns+(X)) |
#define | REPCHAR |
#define | yMouseScroll 1 |
Enumerations | |
enum | LineEncode { TopL = (1<<1), TopC = (1<<2), TopR = (1<<3), LeftT = (1<<5), Int11 = (1<<6), Int12 = (1<<7), Int13 = (1<<8), RightT = (1<<9), LeftC = (1<<10), Int21 = (1<<11), Int22 = (1<<12), Int23 = (1<<13), RightC = (1<<14), LeftB = (1<<15), Int31 = (1<<16), Int32 = (1<<17), Int33 = (1<<18), RightB = (1<<19), BotL = (1<<21), BotC = (1<<22), BotR = (1<<23) } |
A table for emulating the simple (single width) unicode drawing chars. More... | |
Functions | |
static void | drawLineChar (QPainter &paint, int x, int y, int w, int h, uchar code) |
static bool | isLineChar (quint16 c) |
static bool | isLineCharString (const QString &string) |
Variables | |
unsigned short | vt100_graphics [32] |
#define loc | ( | X, | |
Y | |||
) | ((Y)*_columns+(X)) |
Definition at line 55 of file TerminalView.cpp.
Referenced by TerminalView::drawContents(), TerminalView::drawInputMethodPreeditString(), TerminalView::extendSelection(), TerminalView::inputMethodQuery(), TerminalView::mouseDoubleClickEvent(), TerminalView::mouseTripleClickEvent(), and TerminalView::paintFilters().
#define REPCHAR |
Definition at line 60 of file TerminalView.cpp.
Referenced by TerminalView::fontChange().
#define yMouseScroll 1 |
Definition at line 58 of file TerminalView.cpp.
Referenced by TerminalView::extendSelection().
enum LineEncode |
A table for emulating the simple (single width) unicode drawing chars.
It represents the 250x - 257x glyphs. If it's zero, we can't use it. if it's not, it's encoded as follows: imagine a 5x5 grid where the points are numbered 0 to 24 left to top, top to bottom. Each point is represented by the corresponding bit.
Then, the pixels basically have the following interpretation: _|||_ -...- -...- -...- _|||_
where _ = none | = vertical line.
Enumerator | |
---|---|
TopL | |
TopC | |
TopR | |
LeftT | |
Int11 | |
Int12 | |
Int13 | |
RightT | |
LeftC | |
Int21 | |
Int22 | |
Int23 | |
RightC | |
LeftB | |
Int31 | |
Int32 | |
Int33 | |
RightB | |
BotL | |
BotC | |
BotR |
Definition at line 372 of file TerminalView.cpp.
|
inlinestatic |
Definition at line 144 of file TerminalView.cpp.
Referenced by TerminalView::drawContents(), isLineCharString(), and TerminalView::updateImage().
|
inlinestatic |
Definition at line 145 of file TerminalView.cpp.
References isLineChar(), and jit_convention::length.
Referenced by TerminalView::drawCharacters().
unsigned short vt100_graphics[32] |
Definition at line 153 of file TerminalView.cpp.
Referenced by Vt102Emulation::applyCharset().