- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::ULineEdit Class Reference

A widget for single line input fields. More...

#include <ulineedit.hpp>

Inheritance diagram for ufo::ULineEdit:

ufo::UTextEdit ufo::UTextWidget ufo::UScrollableWidget ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 ULineEdit (const std::string &text)
void setValidator (const UValidator *val)
const UValidatorgetValidator () const
int getInt () const
double getDouble () const
void setPrototype (const std::string &text)
USignal1< UActionEvent * > & sigActivated ()

Protected Member Functions

virtual void processKeyEvent (UKeyEvent *e)
virtual UDimension getContentsSize (const UDimension &maxSize) const

Detailed Description

A widget for single line input fields.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::ULineEdit::ULineEdit const std::string &  text  ) 
 

Creates a text widget with initial text

Parameters:
text The initial text


Member Function Documentation

virtual void ufo::ULineEdit::processKeyEvent UKeyEvent e  )  [protected, virtual]
 

Processes key events. Primarily, it is used to notify listeners.

Reimplemented from ufo::UTextEdit.

void ufo::ULineEdit::setPrototype const std::string &  text  ) 
 

If text is not empty, the text size is used as preferred size.

USignal1< UActionEvent * > & ufo::ULineEdit::sigActivated  )  [inline]
 

This signal is fired when the user pressed Enter or Return.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt