SeExpr
Public Member Functions | Public Attributes | List of all members
NumberEditable Struct Reference

#include <Editable.h>

Inheritance diagram for NumberEditable:
Editable

Public Member Functions

 NumberEditable (const std::string &name, int startPos, int endPos, double val)
 
bool parseComment (const std::string &comment)
 parses a comment. if false is returned then delete the control from the editable More...
 
std::string str () const
 
void appendString (std::stringstream &stream) const
 
virtual bool controlsMatch (const Editable &other) const
 
- Public Member Functions inherited from Editable
 Editable (const std::string &name, int startPos, int endPos)
 
void updatePositions (const Editable &other)
 
virtual ~Editable ()
 

Public Attributes

double v
 
double min
 
double max
 
bool isInt
 
- Public Attributes inherited from Editable
std::string name
 
int startPos
 
int endPos
 

Detailed Description

Definition at line 66 of file Editable.h.

Constructor & Destructor Documentation

NumberEditable::NumberEditable ( const std::string &  name,
int  startPos,
int  endPos,
double  val 
)
inline

Definition at line 71 of file Editable.h.

Member Function Documentation

void NumberEditable::appendString ( std::stringstream &  stream) const
inlinevirtual

Implements Editable.

Definition at line 102 of file Editable.h.

References v.

virtual bool NumberEditable::controlsMatch ( const Editable other) const
inlinevirtual

Implements Editable.

Definition at line 104 of file Editable.h.

References isInt, max, min, Editable::name, and v.

bool NumberEditable::parseComment ( const std::string &  comment)
inlinevirtual

parses a comment. if false is returned then delete the control from the editable

Implements Editable.

Definition at line 75 of file Editable.h.

References isInt, max, and min.

std::string NumberEditable::str ( ) const
inlinevirtual

Reimplemented from Editable.

Definition at line 97 of file Editable.h.

References isInt, max, min, Editable::name, and v.

Member Data Documentation

bool NumberEditable::isInt
double NumberEditable::max

Definition at line 69 of file Editable.h.

Referenced by controlsMatch(), NumberControl::NumberControl(), parseComment(), and str().

double NumberEditable::min

Definition at line 69 of file Editable.h.

Referenced by controlsMatch(), NumberControl::NumberControl(), parseComment(), and str().

double NumberEditable::v

The documentation for this struct was generated from the following file: