Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

IdCtrls

 

class IdCtrls

IdCtrls utility class is useful in situation when there is some relation between widgets and text identifiers. IdCtrls is basically a simple mapping between identifiers and widgets.

 

Public Method List

 

void Reset()

Removes all entries from IdCtrls.

 


 

void Add(Id id, Ctrl& ctrl)

IdCtrls& operator()(Id id, Ctrl& ctrl)

Adds a new entry of widget reference and identifier.

 


 

int GetCount() const

Returns a number of entries.

 


 

Ctrl& operator[](int i)

const Ctrl& operator[](int iconst

Returns the widget of entry i. .

 


 

Id GetKey(int iconst

Id operator()(int iconst

Returns the identifier of entry i.

 


 

ValueMap Get() const

Creates a map, where keys are identifiers of entries and values are obtained from respective widgets using GetData method.

 


 

void Set(const ValueMap& m)

Sets value of widgets using SetData to values in map, using keys of map to identify the target widgets.

 

Last edit by cxl on 04/18/2017. Do you want to contribute?. T++