teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | List of all members
teditor::Choices Class Referenceabstract

#include <cmd_msg_bar.h>

+ Inheritance diagram for teditor::Choices:

Public Member Functions

 Choices (ChoicesFilter cf)
 
virtual ~Choices ()
 
virtual const std::string & at (int idx) const =0
 
virtual int size () const =0
 
virtual bool updateChoices (const std::string &str)
 
virtual std::string getFinalStr (int idx, const std::string &str) const =0
 
virtual void updateMainBuffer (CmdMsgBar &cmBar)
 
virtual void resetLocations (CmdMsgBar &cmBar)
 
bool match (const std::string &line, const std::string &str) const
 
bool match (int idx, const std::string &str) const
 
void setChoiceIdx (int idx)
 
int getChoiceIdx () const
 

Constructor & Destructor Documentation

◆ Choices()

teditor::Choices::Choices ( ChoicesFilter  cf)
inline

◆ ~Choices()

virtual teditor::Choices::~Choices ( )
inlinevirtual

Member Function Documentation

◆ at()

virtual const std::string& teditor::Choices::at ( int  idx) const
pure virtual

◆ getChoiceIdx()

int teditor::Choices::getChoiceIdx ( ) const
inline

◆ getFinalStr()

virtual std::string teditor::Choices::getFinalStr ( int  idx,
const std::string &  str 
) const
pure virtual

◆ match() [1/2]

bool teditor::Choices::match ( const std::string &  line,
const std::string &  str 
) const

◆ match() [2/2]

bool teditor::Choices::match ( int  idx,
const std::string &  str 
) const

◆ resetLocations()

void teditor::Choices::resetLocations ( CmdMsgBar cmBar)
virtual

Reimplemented in teditor::ISearch.

◆ setChoiceIdx()

void teditor::Choices::setChoiceIdx ( int  idx)
inline

◆ size()

virtual int teditor::Choices::size ( ) const
pure virtual

◆ updateChoices()

virtual bool teditor::Choices::updateChoices ( const std::string &  str)
inlinevirtual

◆ updateMainBuffer()

virtual void teditor::Choices::updateMainBuffer ( CmdMsgBar cmBar)
inlinevirtual

Reimplemented in teditor::ISearch.


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