teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Public Member Functions | Protected Attributes | List of all members
teditor::StringChoices Class Reference

#include <cmd_msg_bar.h>

+ Inheritance diagram for teditor::StringChoices:

Public Member Functions

 StringChoices (const Strings &arr, ChoicesFilter cf=strFind)
 
const std::string & at (int idx) const
 
std::string getFinalStr (int idx, const std::string &str) const
 
int size () const
 
- Public Member Functions inherited from teditor::Choices
 Choices (ChoicesFilter cf)
 
virtual ~Choices ()
 
virtual bool updateChoices (const std::string &str)
 
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
 

Protected Attributes

Strings options
 

Constructor & Destructor Documentation

◆ StringChoices()

teditor::StringChoices::StringChoices ( const Strings arr,
ChoicesFilter  cf = strFind 
)

Member Function Documentation

◆ at()

const std::string& teditor::StringChoices::at ( int  idx) const
inlinevirtual

Implements teditor::Choices.

◆ getFinalStr()

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

Implements teditor::Choices.

Reimplemented in teditor::editor::ops::FileChoices.

◆ size()

int teditor::StringChoices::size ( ) const
inlinevirtual

Implements teditor::Choices.

Member Data Documentation

◆ options

Strings teditor::StringChoices::options
protected

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