#include <editor.h>
|
| Editor (const std::vector< FileInfo > &_files) |
|
| ~Editor () |
|
void | setTitle (const std::string &ti) |
|
Buffer & | getBuff () |
|
const Buffer & | getBuff () const |
|
Buffer & | getBuff (const std::string &name, bool noUndoRedo, bool &newOne) |
|
Window & | getWindow () |
|
const Window & | getWindow () const |
|
Window & | getCmBarWindow () |
|
CmdMsgBar & | getCmBar () |
|
Buffer & | getMessagesBuff () |
|
std::string | prompt (const std::string &msg, KeyCmdMap *kcMap=nullptr, Choices *choices=nullptr, const std::string &defVal=std::string()) |
|
bool | promptYesNo (const std::string &msg) |
|
std::string | promptEnum (const std::string &msg, OptionMap &opts) |
|
void | load (const std::string &file, int line) |
|
void | runCmd (const std::string &cmd) |
|
const std::string | clipboard () const |
|
void | setClipboard (const std::string &in) |
|
int | sendChar (int x, int y, const AttrColor &fg, const AttrColor &bg, char c) |
|
int | sendString (int x, int y, const AttrColor &fg, const AttrColor &bg, const char *str, int len) |
|
int | sendStringf (int x, int y, const AttrColor &fg, const AttrColor &bg, const char *fmt,...) |
|
void | setColors (AttrColor fg, AttrColor bg) |
|
void | writeCursor (int x, int y) |
|
void | writeChar (uint32_t c, int x, int y) |
|
void | run () |
|
void | requestQuitEventLoop () |
|
void | requestQuitPromptLoop () |
|
void | requestCancelPromptLoop () |
|
void | incrementCurrBuff () |
|
void | decrementCurrBuff () |
|
void | switchToBuff (const std::string &name) |
|
void | killCurrBuff () |
|
void | killOtherBuffs () |
|
int | currBuffId () const |
|
int | buffSize () const |
|
void | createScratchBuff (bool switchToIt=false) |
|
void | createReadOnlyBuff (const std::string &name, const std::string &contents, bool switchToIt=false) |
|
void | selectCmBar () |
|
void | unselectCmBar () |
|
Strings | fileHistoryToString () const |
|
Strings | buffNamesToString () const |
|
void | saveBuffer (Buffer &buf) |
|
key_t | getKey () const |
|
bool | splitVertically () |
|
void | clearAllWindows () |
|
void | incrementCurrWin () |
|
void | refresh () |
|
◆ Editor()
teditor::Editor::Editor |
( |
const std::vector< FileInfo > & |
_files | ) |
|
◆ ~Editor()
teditor::Editor::~Editor |
( |
| ) |
|
◆ buffNamesToString()
Strings teditor::Editor::buffNamesToString |
( |
| ) |
const |
|
inline |
◆ buffSize()
int teditor::Editor::buffSize |
( |
| ) |
const |
|
inline |
◆ clearAllWindows()
void teditor::Editor::clearAllWindows |
( |
| ) |
|
|
inline |
◆ clipboard()
const std::string teditor::Editor::clipboard |
( |
| ) |
const |
◆ createReadOnlyBuff()
void teditor::Editor::createReadOnlyBuff |
( |
const std::string & |
name, |
|
|
const std::string & |
contents, |
|
|
bool |
switchToIt = false |
|
) |
| |
◆ createScratchBuff()
void teditor::Editor::createScratchBuff |
( |
bool |
switchToIt = false | ) |
|
◆ currBuffId()
int teditor::Editor::currBuffId |
( |
| ) |
const |
|
inline |
◆ decrementCurrBuff()
void teditor::Editor::decrementCurrBuff |
( |
| ) |
|
|
inline |
◆ fileHistoryToString()
Strings teditor::Editor::fileHistoryToString |
( |
| ) |
const |
|
inline |
◆ getBuff() [1/3]
Buffer& teditor::Editor::getBuff |
( |
| ) |
|
|
inline |
◆ getBuff() [2/3]
const Buffer& teditor::Editor::getBuff |
( |
| ) |
const |
|
inline |
◆ getBuff() [3/3]
Buffer & teditor::Editor::getBuff |
( |
const std::string & |
name, |
|
|
bool |
noUndoRedo, |
|
|
bool & |
newOne |
|
) |
| |
◆ getCmBar()
◆ getCmBarWindow()
Window& teditor::Editor::getCmBarWindow |
( |
| ) |
|
|
inline |
◆ getKey()
key_t teditor::Editor::getKey |
( |
| ) |
const |
◆ getMessagesBuff()
Buffer & teditor::Editor::getMessagesBuff |
( |
| ) |
|
◆ getWindow() [1/2]
Window& teditor::Editor::getWindow |
( |
| ) |
|
|
inline |
◆ getWindow() [2/2]
const Window& teditor::Editor::getWindow |
( |
| ) |
const |
|
inline |
◆ incrementCurrBuff()
void teditor::Editor::incrementCurrBuff |
( |
| ) |
|
|
inline |
◆ incrementCurrWin()
void teditor::Editor::incrementCurrWin |
( |
| ) |
|
|
inline |
◆ killCurrBuff()
void teditor::Editor::killCurrBuff |
( |
| ) |
|
◆ killOtherBuffs()
void teditor::Editor::killOtherBuffs |
( |
| ) |
|
◆ load()
void teditor::Editor::load |
( |
const std::string & |
file, |
|
|
int |
line |
|
) |
| |
◆ prompt()
std::string teditor::Editor::prompt |
( |
const std::string & |
msg, |
|
|
KeyCmdMap * |
kcMap = nullptr , |
|
|
Choices * |
choices = nullptr , |
|
|
const std::string & |
defVal = std::string() |
|
) |
| |
◆ promptEnum()
std::string teditor::Editor::promptEnum |
( |
const std::string & |
msg, |
|
|
OptionMap & |
opts |
|
) |
| |
◆ promptYesNo()
bool teditor::Editor::promptYesNo |
( |
const std::string & |
msg | ) |
|
◆ refresh()
void teditor::Editor::refresh |
( |
| ) |
|
|
inline |
◆ requestCancelPromptLoop()
void teditor::Editor::requestCancelPromptLoop |
( |
| ) |
|
|
inline |
◆ requestQuitEventLoop()
void teditor::Editor::requestQuitEventLoop |
( |
| ) |
|
|
inline |
◆ requestQuitPromptLoop()
void teditor::Editor::requestQuitPromptLoop |
( |
| ) |
|
|
inline |
◆ run()
void teditor::Editor::run |
( |
| ) |
|
◆ runCmd()
void teditor::Editor::runCmd |
( |
const std::string & |
cmd | ) |
|
◆ saveBuffer()
void teditor::Editor::saveBuffer |
( |
Buffer & |
buf | ) |
|
◆ selectCmBar()
void teditor::Editor::selectCmBar |
( |
| ) |
|
|
inline |
◆ sendChar()
int teditor::Editor::sendChar |
( |
int |
x, |
|
|
int |
y, |
|
|
const AttrColor & |
fg, |
|
|
const AttrColor & |
bg, |
|
|
char |
c |
|
) |
| |
◆ sendString()
int teditor::Editor::sendString |
( |
int |
x, |
|
|
int |
y, |
|
|
const AttrColor & |
fg, |
|
|
const AttrColor & |
bg, |
|
|
const char * |
str, |
|
|
int |
len |
|
) |
| |
◆ sendStringf()
int teditor::Editor::sendStringf |
( |
int |
x, |
|
|
int |
y, |
|
|
const AttrColor & |
fg, |
|
|
const AttrColor & |
bg, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ setClipboard()
void teditor::Editor::setClipboard |
( |
const std::string & |
in | ) |
|
◆ setColors()
◆ setTitle()
void teditor::Editor::setTitle |
( |
const std::string & |
ti | ) |
|
◆ splitVertically()
bool teditor::Editor::splitVertically |
( |
| ) |
|
|
inline |
◆ switchToBuff()
void teditor::Editor::switchToBuff |
( |
const std::string & |
name | ) |
|
◆ unselectCmBar()
void teditor::Editor::unselectCmBar |
( |
| ) |
|
|
inline |
◆ writeChar()
void teditor::Editor::writeChar |
( |
uint32_t |
c, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ writeCursor()
void teditor::Editor::writeCursor |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
The documentation for this class was generated from the following files: