teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Classes | Public Member Functions | Static Public Member Functions | List of all members
teditor::watch::WatchMode Class Reference

#include <mode.h>

+ Inheritance diagram for teditor::watch::WatchMode:

Public Member Functions

 WatchMode ()
 
 ~WatchMode ()
 
Strings cmdNames () const
 
void start (Buffer *buf, const std::string &cmd, int sleepLenMs=0)
 
void stop ()
 
void restart ()
 
int sleepTimeMs () const
 
- Public Member Functions inherited from teditor::readonly::ReadOnlyMode
 ReadOnlyMode (const std::string &n="ro", const std::string &w="abcdefghijklmnopqrstuvwxyzABCDEGGHIJKLMNO" "PQRSTUVWXYZ0123456789_")
 
int indent (Buffer &buf, int line)
 
KeyCmdMapgetKeyCmdMap ()
 
ColorMapgetColorMap ()
 
void getColorFor (AttrColor &fg, AttrColor &bg, int lineNum, int pos, const Buffer &b, bool isHighlighted)
 
- Public Member Functions inherited from teditor::Mode
 Mode (const std::string &n, const std::string &w)
 ctor More...
 
virtual ~Mode ()
 
virtual const std::string & name () const
 
virtual const std::string & word () const
 

Static Public Member Functions

static Modecreate ()
 
static bool modeCheck (const std::string &file)
 
- Static Public Member Functions inherited from teditor::readonly::ReadOnlyMode
static Modecreate ()
 
static bool modeCheck (const std::string &file)
 
- Static Public Member Functions inherited from teditor::Mode
static ModePtr createMode (const std::string &mode)
 Helper to create mode object of the named mode. More...
 
static std::string inferMode (const std::string &file, bool isDir)
 Helper to infer mode name from the file. More...
 

Detailed Description

watch mode

Constructor & Destructor Documentation

◆ WatchMode()

teditor::watch::WatchMode::WatchMode ( )

◆ ~WatchMode()

teditor::watch::WatchMode::~WatchMode ( )
inline

Member Function Documentation

◆ cmdNames()

Strings teditor::watch::WatchMode::cmdNames ( ) const
virtual

list of all command names that are registered under this mode

Reimplemented from teditor::Mode.

◆ create()

static Mode* teditor::watch::WatchMode::create ( )
inlinestatic

◆ modeCheck()

static bool teditor::watch::WatchMode::modeCheck ( const std::string &  file)
inlinestatic

◆ restart()

void teditor::watch::WatchMode::restart ( )
inline

◆ sleepTimeMs()

int teditor::watch::WatchMode::sleepTimeMs ( ) const
inline

◆ start()

void teditor::watch::WatchMode::start ( Buffer buf,
const std::string &  cmd,
int  sleepLenMs = 0 
)

◆ stop()

void teditor::watch::WatchMode::stop ( )

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