Guitar
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
AbstractCharacterBasedApplication Class Referenceabstract

#include <AbstractCharacterBasedApplication.h>

Inheritance diagram for AbstractCharacterBasedApplication:
Inheritance graph
[legend]
Collaboration diagram for AbstractCharacterBasedApplication:
Collaboration graph
[legend]

Classes

struct  Char
 
struct  Character
 
struct  CharAttr
 
class  FormattedLine2
 
struct  Option
 
struct  Private
 

Public Types

enum  WriteMode { WriteMode::Insert, WriteMode::Overwrite }
 
enum  State { State::Normal, State::Exit }
 
enum  LineFlag { LineChanged = 1 }
 

Public Member Functions

QList< FormattedLine2formatLine_ (const Document::Line &line, int tab_span, int anchor_a=-1, int anchor_b=-1) const
 
QList< FormattedLine2formatLine2_ (int row_index) const
 
int currentRow () const
 
int currentCol () const
 
virtual void layoutEditor ()
 
void scrollUp ()
 
void scrollDown ()
 
void moveCursorOut ()
 
void moveCursorHome ()
 
void moveCursorEnd ()
 
void moveCursorUp ()
 
virtual void moveCursorDown ()
 
void moveCursorLeft ()
 
void moveCursorRight ()
 
void movePageUp ()
 
void movePageDown ()
 
void scrollToTop ()
 
 AbstractCharacterBasedApplication ()
 
virtual ~AbstractCharacterBasedApplication ()
 
TextEditorEnginePtr engine () const
 
int screenWidth () const
 
int screenHeight () const
 
void setScreenSize (int w, int h, bool update_layout)
 
void setTextEditorEngine (const TextEditorEnginePtr &e)
 
void openFile (QString const &path)
 
void saveFile (QString const &path)
 
void loadExampleFile ()
 
void pressEnter ()
 
void pressEscape ()
 
State state () const
 
bool isLineNumberVisible () const
 
void showLineNumber (bool show, int left_margin=LEFT_MARGIN)
 
void showHeader (bool f)
 
void showFooter (bool f)
 
void setAutoLayout (bool f)
 
void setDocument (const QList< Document::Line > *source)
 
void setSelectionAnchor (SelectionAnchor::Enabled enabled, bool update_anchor, bool auto_scroll)
 
void setNormalTextEditorMode (bool f)
 
void setToggleSelectionAnchorEnabled (bool f)
 
void setReadOnly (bool f)
 
bool isReadOnly () const
 
void editPaste ()
 
void editCopy ()
 
void editCut ()
 
void setWriteMode (WriteMode wm)
 
bool isInsertMode () const
 
bool isOverwriteMode () const
 
void setTerminalMode (bool f)
 
bool isTerminalMode () const
 
void moveToTop ()
 
void moveToBottom ()
 
bool isBottom () const
 
void setLineMargin (int n)
 
void write (uint32_t c, bool by_keyboard)
 
void write (char const *ptr, int len, bool by_keyboard)
 
void write (std::string const &text)
 
void write (QKeyEvent *e)
 
void setTextCodec (QTextCodec *codec)
 
void setCursorVisible (bool show)
 
bool isCursorVisible ()
 
void setModifierKeys (Qt::KeyboardModifiers keymod)
 
bool isControlModifierPressed () const
 
bool isShiftModifierPressed () const
 
void clearShiftModifier ()
 
void retrieveLastText (std::vector< char > *out, int maxlen) const
 
bool isChanged () const
 
void setChanged (bool f)
 
void logicalMoveToBottom ()
 
void logicalMoveToBottom2 ()
 
void appendBulk (const char *ptr, int len)
 
void clear ()
 

Static Public Member Functions

static int charWidth (uint32_t c)
 

Static Public Attributes

static const int LEFT_MARGIN = 8
 
static const int RIGHT_MARGIN = 10
 

Protected Member Functions

int char_screen_w () const
 
int char_screen_h () const
 
std::vector< Character > * char_screen ()
 
const std::vector< Character > * char_screen () const
 
std::vector< uint8_t > * line_flags ()
 
void initEditor ()
 
void fetchCurrentLine () const
 
QByteArray fetchLine (int row) const
 現在行を取得 More...
 
void clearParsedLine ()
 
int currentColX () const
 
void setCurrentRow (int row)
 
void setCurrentCol (int col)
 
int cursorCol () const
 
int cursorRow () const
 
int editorViewportWidth () const
 
int editorViewportHeight () const
 
virtual int print (int x, int y, QString const &text, Option const &opt)
 
TextEditorContextcx ()
 
const TextEditorContextcx () const
 
Documentdocument ()
 
int documentLines () const
 
bool isSingleLineMode () const
 
void ensureCurrentLineVisible ()
 
int decideColumnScrollPos () const
 
int calcVisualWidth (Document::Line const &line) const
 
int leftMargin_ () const
 
void makeBuffer ()
 
int printArea (const TextEditorContext *cx, SelectionAnchor const *sel_a=nullptr, SelectionAnchor const *sel_b=nullptr)
 
virtual void updateVisibility (bool ensure_current_line_visible, bool change_col, bool auto_scroll)=0
 
void commitLine (const std::vector< Char > &vec)
 
void doDelete ()
 
void doBackspace ()
 
bool isDialogMode ()
 
void setDialogMode (bool f)
 
void closeDialog (bool result)
 
void setDialogOption (QString const &title, QString const &value, const DialogHandler &handler)
 
void execDialog (QString const &dialog_title, const QString &dialog_value, const DialogHandler &handler)
 
void deselect ()
 
std::vector< Char > * parseCurrentLine (std::vector< Char > *vec, int increase_hint, bool force)
 行のレイアウトを解析 More...
 
void parseLine (int row, std::vector< Char > *vec) const
 行の桁位置を求める More...
 
virtual void setCursorRow (int row, bool auto_scroll=true, bool by_mouse=false)
 
virtual void setCursorCol (int col)
 
void setCursorPosByMouse (RowCol pos, QPoint pt)
 
void setCursorPos (int row, int col)
 
int nextTabStop (int x) const
 
int scrollBottomLimit () const
 
int scrollBottomLimit2 () const
 
bool isPaintingSuppressed () const
 
void setPaintingSuppressed (bool f)
 
void addNewLineToBottom ()
 
void appendNewLine (std::vector< Char > *vec)
 
void writeNewLine ()
 
void updateCursorPos (bool auto_scroll)
 
QString statusLine () const
 
void preparePaintScreen ()
 
void setRecentlyUsedPath (QString const &path)
 
QString recentlyUsedPath ()
 
void clearRect (int x, int y, int w, int h)
 
void paintLineNumbers (std::function< void(int, QString const &, Document::Line const *)> const &draw)
 
bool isAutoLayout () const
 
void invalidateArea (int top_y=0)
 
void savePos ()
 
void restorePos ()
 
void write_ (char const *ptr, bool by_keyboard)
 
void write_ (QString const &text, bool by_keyboard)
 
void makeColumnPosList (std::vector< int > *out)
 現在行の桁座標リストを作成する More...
 
bool isValidRowIndex (int row_index) const
 
bool hasSelection () const
 
void updateSelectionAnchor1 (bool auto_scroll)
 
void updateSelectionAnchor2 (bool auto_scroll)
 

Protected Attributes

SelectionAnchor selection_start
 
SelectionAnchor selection_end
 
const int reference_char_width_ = 1
 
std::shared_ptr< TextEditorContexteditor_cx
 
std::shared_ptr< TextEditorContextdialog_cx
 

Private Types

enum  EditOperation { EditOperation::Cut, EditOperation::Copy }
 

Private Member Functions

int internalParseLine (const QByteArray &parsed_line, int current_col, std::vector< Char > *vec, int increase_hint) const
 桁位置を求める More...
 
void internalWrite (const ushort *begin, const ushort *end)
 
void pressLetterWithControl (int c)
 
void invalidateAreaBelowTheCurrentLine ()
 
void onQuit ()
 
void onOpenFile ()
 
void onSaveFile ()
 
void printInvertedBar (int x, int y, char const *text, int padchar)
 
SelectionAnchor currentAnchor (SelectionAnchor::Enabled enabled)
 
void editSelected (EditOperation op, std::vector< Char > *cutbuffer)
 
int calcColumnToIndex (int column)
 
void edit_ (EditOperation op)
 
bool isCurrentLineWritable () const
 
void initEngine (const std::shared_ptr< TextEditorContext > &cx)
 
void writeCR ()
 
bool deleteIfSelected ()
 
void setCursorCol_ (int col, bool auto_scroll=true, bool by_mouse=false)
 

Static Private Member Functions

static int findSyntax (const QList< Document::CharAttr_ > *list, size_t offset)
 
static void insertSyntax (QList< Document::CharAttr_ > *list, size_t offset, const Document::CharAttr_ &a)
 

Private Attributes

Privatem
 

Member Enumeration Documentation

◆ EditOperation

Enumerator
Cut 
Copy 

◆ LineFlag

Enumerator
LineChanged 

◆ State

Enumerator
Normal 
Exit 

◆ WriteMode

Enumerator
Insert 
Overwrite 

Constructor & Destructor Documentation

◆ AbstractCharacterBasedApplication()

AbstractCharacterBasedApplication::AbstractCharacterBasedApplication ( )

◆ ~AbstractCharacterBasedApplication()

AbstractCharacterBasedApplication::~AbstractCharacterBasedApplication ( )
virtual

Member Function Documentation

◆ addNewLineToBottom()

void AbstractCharacterBasedApplication::addNewLineToBottom ( )
protected
Here is the call graph for this function:

◆ appendBulk()

void AbstractCharacterBasedApplication::appendBulk ( const char *  ptr,
int  len 
)
Here is the call graph for this function:

◆ appendNewLine()

void AbstractCharacterBasedApplication::appendNewLine ( std::vector< Char > *  vec)
protected
Here is the call graph for this function:

◆ calcColumnToIndex()

int AbstractCharacterBasedApplication::calcColumnToIndex ( int  column)
private
Here is the call graph for this function:

◆ calcVisualWidth()

int AbstractCharacterBasedApplication::calcVisualWidth ( Document::Line const &  line) const
protected
Here is the call graph for this function:

◆ char_screen() [1/2]

const std::vector< AbstractCharacterBasedApplication::Character > * AbstractCharacterBasedApplication::char_screen ( )
protected

◆ char_screen() [2/2]

const std::vector<Character>* AbstractCharacterBasedApplication::char_screen ( ) const
protected

◆ char_screen_h()

int AbstractCharacterBasedApplication::char_screen_h ( ) const
protected

◆ char_screen_w()

int AbstractCharacterBasedApplication::char_screen_w ( ) const
protected

◆ charWidth()

int AbstractCharacterBasedApplication::charWidth ( uint32_t  c)
static
Here is the call graph for this function:

◆ clear()

void AbstractCharacterBasedApplication::clear ( )
Here is the call graph for this function:

◆ clearParsedLine()

void AbstractCharacterBasedApplication::clearParsedLine ( )
protected

◆ clearRect()

void AbstractCharacterBasedApplication::clearRect ( int  x,
int  y,
int  w,
int  h 
)
protected
Here is the call graph for this function:

◆ clearShiftModifier()

void AbstractCharacterBasedApplication::clearShiftModifier ( )

◆ closeDialog()

void AbstractCharacterBasedApplication::closeDialog ( bool  result)
protected
Here is the call graph for this function:

◆ commitLine()

void AbstractCharacterBasedApplication::commitLine ( const std::vector< Char > &  vec)
protected
Here is the call graph for this function:

◆ currentAnchor()

SelectionAnchor AbstractCharacterBasedApplication::currentAnchor ( SelectionAnchor::Enabled  enabled)
private
Here is the call graph for this function:

◆ currentCol()

int AbstractCharacterBasedApplication::currentCol ( ) const
Here is the call graph for this function:

◆ currentColX()

int AbstractCharacterBasedApplication::currentColX ( ) const
protected
Here is the call graph for this function:

◆ currentRow()

int AbstractCharacterBasedApplication::currentRow ( ) const
Here is the call graph for this function:

◆ cursorCol()

int AbstractCharacterBasedApplication::cursorCol ( ) const
protected
Here is the call graph for this function:

◆ cursorRow()

int AbstractCharacterBasedApplication::cursorRow ( ) const
protected
Here is the call graph for this function:

◆ cx() [1/2]

const TextEditorContext * AbstractCharacterBasedApplication::cx ( )
protected
Here is the call graph for this function:

◆ cx() [2/2]

const TextEditorContext* AbstractCharacterBasedApplication::cx ( ) const
protected

◆ decideColumnScrollPos()

int AbstractCharacterBasedApplication::decideColumnScrollPos ( ) const
protected
Here is the call graph for this function:

◆ deleteIfSelected()

bool AbstractCharacterBasedApplication::deleteIfSelected ( )
private
Here is the call graph for this function:

◆ deselect()

void AbstractCharacterBasedApplication::deselect ( )
protected

◆ doBackspace()

void AbstractCharacterBasedApplication::doBackspace ( )
protected
Here is the call graph for this function:

◆ document()

Document * AbstractCharacterBasedApplication::document ( )
protected
Here is the call graph for this function:

◆ documentLines()

int AbstractCharacterBasedApplication::documentLines ( ) const
protected
Here is the call graph for this function:

◆ doDelete()

void AbstractCharacterBasedApplication::doDelete ( )
protected
Here is the call graph for this function:

◆ edit_()

void AbstractCharacterBasedApplication::edit_ ( EditOperation  op)
private
Here is the call graph for this function:

◆ editCopy()

void AbstractCharacterBasedApplication::editCopy ( )
Here is the call graph for this function:

◆ editCut()

void AbstractCharacterBasedApplication::editCut ( )
Here is the call graph for this function:

◆ editorViewportHeight()

int AbstractCharacterBasedApplication::editorViewportHeight ( ) const
protected
Here is the call graph for this function:

◆ editorViewportWidth()

int AbstractCharacterBasedApplication::editorViewportWidth ( ) const
protected
Here is the call graph for this function:

◆ editPaste()

void AbstractCharacterBasedApplication::editPaste ( )
Here is the call graph for this function:

◆ editSelected()

void AbstractCharacterBasedApplication::editSelected ( EditOperation  op,
std::vector< Char > *  cutbuffer 
)
private
Here is the call graph for this function:

◆ engine()

TextEditorEnginePtr AbstractCharacterBasedApplication::engine ( ) const
Here is the call graph for this function:

◆ ensureCurrentLineVisible()

void AbstractCharacterBasedApplication::ensureCurrentLineVisible ( )
protected
Here is the call graph for this function:

◆ execDialog()

void AbstractCharacterBasedApplication::execDialog ( QString const &  dialog_title,
const QString &  dialog_value,
const DialogHandler handler 
)
protected
Here is the call graph for this function:

◆ fetchCurrentLine()

void AbstractCharacterBasedApplication::fetchCurrentLine ( ) const
protected
Here is the call graph for this function:

◆ fetchLine()

QByteArray AbstractCharacterBasedApplication::fetchLine ( int  row) const
protected

現在行を取得

Parameters
row
Returns
Here is the call graph for this function:

◆ findSyntax()

int AbstractCharacterBasedApplication::findSyntax ( const QList< Document::CharAttr_ > *  list,
size_t  offset 
)
staticprivate

◆ formatLine2_()

QList< AbstractCharacterBasedApplication::FormattedLine2 > AbstractCharacterBasedApplication::formatLine2_ ( int  row_index) const
Here is the call graph for this function:

◆ formatLine_()

QList< FormattedLine > AbstractCharacterBasedApplication::formatLine_ ( const Document::Line line,
int  tab_span,
int  anchor_a = -1,
int  anchor_b = -1 
) const
Here is the call graph for this function:

◆ hasSelection()

bool AbstractCharacterBasedApplication::hasSelection ( ) const
protected

◆ initEditor()

void AbstractCharacterBasedApplication::initEditor ( )
protected
Here is the call graph for this function:

◆ initEngine()

void AbstractCharacterBasedApplication::initEngine ( const std::shared_ptr< TextEditorContext > &  cx)
private
Here is the call graph for this function:

◆ insertSyntax()

void AbstractCharacterBasedApplication::insertSyntax ( QList< Document::CharAttr_ > *  list,
size_t  offset,
const Document::CharAttr_ a 
)
staticprivate
Here is the call graph for this function:

◆ internalParseLine()

int AbstractCharacterBasedApplication::internalParseLine ( const QByteArray &  parsed_line,
int  current_col,
std::vector< Char > *  vec,
int  increase_hint 
) const
private

桁位置を求める

Parameters
parsed_line
current_col
vec
increase_hint
Returns
Here is the call graph for this function:

◆ internalWrite()

void AbstractCharacterBasedApplication::internalWrite ( const ushort *  begin,
const ushort *  end 
)
private
Here is the call graph for this function:

◆ invalidateArea()

void AbstractCharacterBasedApplication::invalidateArea ( int  top_y = 0)
protected
Here is the call graph for this function:

◆ invalidateAreaBelowTheCurrentLine()

void AbstractCharacterBasedApplication::invalidateAreaBelowTheCurrentLine ( )
private
Here is the call graph for this function:

◆ isAutoLayout()

bool AbstractCharacterBasedApplication::isAutoLayout ( ) const
protected

◆ isBottom()

bool AbstractCharacterBasedApplication::isBottom ( ) const
Here is the call graph for this function:

◆ isChanged()

bool AbstractCharacterBasedApplication::isChanged ( ) const

◆ isControlModifierPressed()

bool AbstractCharacterBasedApplication::isControlModifierPressed ( ) const

◆ isCurrentLineWritable()

bool AbstractCharacterBasedApplication::isCurrentLineWritable ( ) const
private
Here is the call graph for this function:

◆ isCursorVisible()

bool AbstractCharacterBasedApplication::isCursorVisible ( )

◆ isDialogMode()

bool AbstractCharacterBasedApplication::isDialogMode ( )
protected

◆ isInsertMode()

bool AbstractCharacterBasedApplication::isInsertMode ( ) const
Here is the call graph for this function:

◆ isLineNumberVisible()

bool AbstractCharacterBasedApplication::isLineNumberVisible ( ) const

◆ isOverwriteMode()

bool AbstractCharacterBasedApplication::isOverwriteMode ( ) const
Here is the call graph for this function:

◆ isPaintingSuppressed()

bool AbstractCharacterBasedApplication::isPaintingSuppressed ( ) const
protected

◆ isReadOnly()

bool AbstractCharacterBasedApplication::isReadOnly ( ) const

◆ isShiftModifierPressed()

bool AbstractCharacterBasedApplication::isShiftModifierPressed ( ) const

◆ isSingleLineMode()

bool AbstractCharacterBasedApplication::isSingleLineMode ( ) const
protected
Here is the call graph for this function:

◆ isTerminalMode()

bool AbstractCharacterBasedApplication::isTerminalMode ( ) const

◆ isValidRowIndex()

bool AbstractCharacterBasedApplication::isValidRowIndex ( int  row_index) const
protected
Here is the call graph for this function:

◆ layoutEditor()

void AbstractCharacterBasedApplication::layoutEditor ( )
virtual

Reimplemented in TextEditorView.

Here is the call graph for this function:

◆ leftMargin_()

int AbstractCharacterBasedApplication::leftMargin_ ( ) const
protected

◆ line_flags()

std::vector< uint8_t > * AbstractCharacterBasedApplication::line_flags ( )
protected

◆ loadExampleFile()

void AbstractCharacterBasedApplication::loadExampleFile ( )
Here is the call graph for this function:

◆ logicalMoveToBottom()

void AbstractCharacterBasedApplication::logicalMoveToBottom ( )
Here is the call graph for this function:

◆ logicalMoveToBottom2()

void AbstractCharacterBasedApplication::logicalMoveToBottom2 ( )
Here is the call graph for this function:

◆ makeBuffer()

void AbstractCharacterBasedApplication::makeBuffer ( )
protected
Here is the call graph for this function:

◆ makeColumnPosList()

void AbstractCharacterBasedApplication::makeColumnPosList ( std::vector< int > *  out)
protected

現在行の桁座標リストを作成する

Parameters
out

◆ moveCursorDown()

void AbstractCharacterBasedApplication::moveCursorDown ( )
virtual
Here is the call graph for this function:

◆ moveCursorEnd()

void AbstractCharacterBasedApplication::moveCursorEnd ( )
Here is the call graph for this function:

◆ moveCursorHome()

void AbstractCharacterBasedApplication::moveCursorHome ( )
Here is the call graph for this function:

◆ moveCursorLeft()

void AbstractCharacterBasedApplication::moveCursorLeft ( )
Here is the call graph for this function:

◆ moveCursorOut()

void AbstractCharacterBasedApplication::moveCursorOut ( )
Here is the call graph for this function:

◆ moveCursorRight()

void AbstractCharacterBasedApplication::moveCursorRight ( )
Here is the call graph for this function:

◆ moveCursorUp()

void AbstractCharacterBasedApplication::moveCursorUp ( )
Here is the call graph for this function:

◆ movePageDown()

void AbstractCharacterBasedApplication::movePageDown ( )
Here is the call graph for this function:

◆ movePageUp()

void AbstractCharacterBasedApplication::movePageUp ( )
Here is the call graph for this function:

◆ moveToBottom()

void AbstractCharacterBasedApplication::moveToBottom ( )
Here is the call graph for this function:

◆ moveToTop()

void AbstractCharacterBasedApplication::moveToTop ( )
Here is the call graph for this function:

◆ nextTabStop()

int AbstractCharacterBasedApplication::nextTabStop ( int  x) const
protected
Here is the call graph for this function:

◆ onOpenFile()

void AbstractCharacterBasedApplication::onOpenFile ( )
private
Here is the call graph for this function:

◆ onQuit()

void AbstractCharacterBasedApplication::onQuit ( )
private
Here is the call graph for this function:

◆ onSaveFile()

void AbstractCharacterBasedApplication::onSaveFile ( )
private
Here is the call graph for this function:

◆ openFile()

void AbstractCharacterBasedApplication::openFile ( QString const &  path)
Here is the call graph for this function:

◆ paintLineNumbers()

void AbstractCharacterBasedApplication::paintLineNumbers ( std::function< void(int, QString const &, Document::Line const *)> const &  draw)
protected

◆ parseCurrentLine()

std::vector< AbstractCharacterBasedApplication::Char > * AbstractCharacterBasedApplication::parseCurrentLine ( std::vector< Char > *  vec,
int  increase_hint,
bool  force 
)
protected

行のレイアウトを解析

Parameters
vec
increase_hint
force
Here is the call graph for this function:

◆ parseLine()

void AbstractCharacterBasedApplication::parseLine ( int  row,
std::vector< Char > *  vec 
) const
protected

行の桁位置を求める

Parameters
row
vec
Here is the call graph for this function:

◆ preparePaintScreen()

void AbstractCharacterBasedApplication::preparePaintScreen ( )
protected
Here is the call graph for this function:

◆ pressEnter()

void AbstractCharacterBasedApplication::pressEnter ( )
Here is the call graph for this function:

◆ pressEscape()

void AbstractCharacterBasedApplication::pressEscape ( )
Here is the call graph for this function:

◆ pressLetterWithControl()

void AbstractCharacterBasedApplication::pressLetterWithControl ( int  c)
private
Here is the call graph for this function:

◆ print()

int AbstractCharacterBasedApplication::print ( int  x,
int  y,
QString const &  text,
Option const &  opt 
)
protectedvirtual
Here is the call graph for this function:

◆ printArea()

int AbstractCharacterBasedApplication::printArea ( const TextEditorContext cx,
SelectionAnchor const *  sel_a = nullptr,
SelectionAnchor const *  sel_b = nullptr 
)
protected
Here is the call graph for this function:

◆ printInvertedBar()

void AbstractCharacterBasedApplication::printInvertedBar ( int  x,
int  y,
char const *  text,
int  padchar 
)
private
Here is the call graph for this function:

◆ recentlyUsedPath()

QString AbstractCharacterBasedApplication::recentlyUsedPath ( )
protected

◆ restorePos()

void AbstractCharacterBasedApplication::restorePos ( )
protected

◆ retrieveLastText()

void AbstractCharacterBasedApplication::retrieveLastText ( std::vector< char > *  out,
int  maxlen 
) const
Here is the call graph for this function:

◆ saveFile()

void AbstractCharacterBasedApplication::saveFile ( QString const &  path)
Here is the call graph for this function:

◆ savePos()

void AbstractCharacterBasedApplication::savePos ( )
protected

◆ screenHeight()

int AbstractCharacterBasedApplication::screenHeight ( ) const

◆ screenWidth()

int AbstractCharacterBasedApplication::screenWidth ( ) const

◆ scrollBottomLimit()

int AbstractCharacterBasedApplication::scrollBottomLimit ( ) const
protected
Here is the call graph for this function:

◆ scrollBottomLimit2()

int AbstractCharacterBasedApplication::scrollBottomLimit2 ( ) const
protected
Here is the call graph for this function:

◆ scrollDown()

void AbstractCharacterBasedApplication::scrollDown ( )
Here is the call graph for this function:

◆ scrollToTop()

void AbstractCharacterBasedApplication::scrollToTop ( )
Here is the call graph for this function:

◆ scrollUp()

void AbstractCharacterBasedApplication::scrollUp ( )
Here is the call graph for this function:

◆ setAutoLayout()

void AbstractCharacterBasedApplication::setAutoLayout ( bool  f)
Here is the call graph for this function:

◆ setChanged()

void AbstractCharacterBasedApplication::setChanged ( bool  f)

◆ setCurrentCol()

void AbstractCharacterBasedApplication::setCurrentCol ( int  col)
protected
Here is the call graph for this function:

◆ setCurrentRow()

void AbstractCharacterBasedApplication::setCurrentRow ( int  row)
protected
Here is the call graph for this function:

◆ setCursorCol()

virtual void AbstractCharacterBasedApplication::setCursorCol ( int  col)
inlineprotectedvirtual

Reimplemented in TextEditorView.

Here is the call graph for this function:

◆ setCursorCol_()

void AbstractCharacterBasedApplication::setCursorCol_ ( int  col,
bool  auto_scroll = true,
bool  by_mouse = false 
)
private
Here is the call graph for this function:

◆ setCursorPos()

void AbstractCharacterBasedApplication::setCursorPos ( int  row,
int  col 
)
inlineprotected
Here is the call graph for this function:

◆ setCursorPosByMouse()

void AbstractCharacterBasedApplication::setCursorPosByMouse ( RowCol  pos,
QPoint  pt 
)
inlineprotected
Here is the call graph for this function:

◆ setCursorRow()

void AbstractCharacterBasedApplication::setCursorRow ( int  row,
bool  auto_scroll = true,
bool  by_mouse = false 
)
protectedvirtual

Reimplemented in TextEditorView.

Here is the call graph for this function:

◆ setCursorVisible()

void AbstractCharacterBasedApplication::setCursorVisible ( bool  show)

◆ setDialogMode()

void AbstractCharacterBasedApplication::setDialogMode ( bool  f)
protected
Here is the call graph for this function:

◆ setDialogOption()

void AbstractCharacterBasedApplication::setDialogOption ( QString const &  title,
QString const &  value,
const DialogHandler handler 
)
protected

◆ setDocument()

void AbstractCharacterBasedApplication::setDocument ( const QList< Document::Line > *  source)
Here is the call graph for this function:

◆ setLineMargin()

void AbstractCharacterBasedApplication::setLineMargin ( int  n)

◆ setModifierKeys()

void AbstractCharacterBasedApplication::setModifierKeys ( Qt::KeyboardModifiers  keymod)

◆ setNormalTextEditorMode()

void AbstractCharacterBasedApplication::setNormalTextEditorMode ( bool  f)
Here is the call graph for this function:

◆ setPaintingSuppressed()

void AbstractCharacterBasedApplication::setPaintingSuppressed ( bool  f)
protected

◆ setReadOnly()

void AbstractCharacterBasedApplication::setReadOnly ( bool  f)

◆ setRecentlyUsedPath()

void AbstractCharacterBasedApplication::setRecentlyUsedPath ( QString const &  path)
protected

◆ setScreenSize()

void AbstractCharacterBasedApplication::setScreenSize ( int  w,
int  h,
bool  update_layout 
)
Here is the call graph for this function:

◆ setSelectionAnchor()

void AbstractCharacterBasedApplication::setSelectionAnchor ( SelectionAnchor::Enabled  enabled,
bool  update_anchor,
bool  auto_scroll 
)
Here is the call graph for this function:

◆ setTerminalMode()

void AbstractCharacterBasedApplication::setTerminalMode ( bool  f)
Here is the call graph for this function:

◆ setTextCodec()

void AbstractCharacterBasedApplication::setTextCodec ( QTextCodec *  codec)
Here is the call graph for this function:

◆ setTextEditorEngine()

void AbstractCharacterBasedApplication::setTextEditorEngine ( const TextEditorEnginePtr e)
Here is the call graph for this function:

◆ setToggleSelectionAnchorEnabled()

void AbstractCharacterBasedApplication::setToggleSelectionAnchorEnabled ( bool  f)

◆ setWriteMode()

void AbstractCharacterBasedApplication::setWriteMode ( WriteMode  wm)

◆ showFooter()

void AbstractCharacterBasedApplication::showFooter ( bool  f)
Here is the call graph for this function:

◆ showHeader()

void AbstractCharacterBasedApplication::showHeader ( bool  f)
Here is the call graph for this function:

◆ showLineNumber()

void AbstractCharacterBasedApplication::showLineNumber ( bool  show,
int  left_margin = LEFT_MARGIN 
)

◆ state()

AbstractCharacterBasedApplication::State AbstractCharacterBasedApplication::state ( ) const

◆ statusLine()

QString AbstractCharacterBasedApplication::statusLine ( ) const
protected
Here is the call graph for this function:

◆ updateCursorPos()

void AbstractCharacterBasedApplication::updateCursorPos ( bool  auto_scroll)
protected
Here is the call graph for this function:

◆ updateSelectionAnchor1()

void AbstractCharacterBasedApplication::updateSelectionAnchor1 ( bool  auto_scroll)
protected
Here is the call graph for this function:

◆ updateSelectionAnchor2()

void AbstractCharacterBasedApplication::updateSelectionAnchor2 ( bool  auto_scroll)
protected
Here is the call graph for this function:

◆ updateVisibility()

virtual void AbstractCharacterBasedApplication::updateVisibility ( bool  ensure_current_line_visible,
bool  change_col,
bool  auto_scroll 
)
protectedpure virtual

Implemented in TextEditorView.

◆ write() [1/4]

void AbstractCharacterBasedApplication::write ( char const *  ptr,
int  len,
bool  by_keyboard 
)
Here is the call graph for this function:

◆ write() [2/4]

void AbstractCharacterBasedApplication::write ( QKeyEvent *  e)
Here is the call graph for this function:

◆ write() [3/4]

void AbstractCharacterBasedApplication::write ( std::string const &  text)
Here is the call graph for this function:

◆ write() [4/4]

void AbstractCharacterBasedApplication::write ( uint32_t  c,
bool  by_keyboard 
)
Here is the call graph for this function:

◆ write_() [1/2]

void AbstractCharacterBasedApplication::write_ ( char const *  ptr,
bool  by_keyboard 
)
protected
Here is the call graph for this function:

◆ write_() [2/2]

void AbstractCharacterBasedApplication::write_ ( QString const &  text,
bool  by_keyboard 
)
protected
Here is the call graph for this function:

◆ writeCR()

void AbstractCharacterBasedApplication::writeCR ( )
private
Here is the call graph for this function:

◆ writeNewLine()

void AbstractCharacterBasedApplication::writeNewLine ( )
protected
Here is the call graph for this function:

Member Data Documentation

◆ dialog_cx

std::shared_ptr<TextEditorContext> AbstractCharacterBasedApplication::dialog_cx
protected

◆ editor_cx

std::shared_ptr<TextEditorContext> AbstractCharacterBasedApplication::editor_cx
protected

◆ LEFT_MARGIN

const int AbstractCharacterBasedApplication::LEFT_MARGIN = 8
static

◆ m

Private* AbstractCharacterBasedApplication::m
private

◆ reference_char_width_

const int AbstractCharacterBasedApplication::reference_char_width_ = 1
protected

◆ RIGHT_MARGIN

const int AbstractCharacterBasedApplication::RIGHT_MARGIN = 10
static

◆ selection_end

SelectionAnchor AbstractCharacterBasedApplication::selection_end
protected

◆ selection_start

SelectionAnchor AbstractCharacterBasedApplication::selection_start
protected

The documentation for this class was generated from the following files: