Password Class Reference

Same as String, except that the user never gets to see what he has typed in. More...

#include <cursorwindow.h>

Inheritance diagram for Password:
Inheritance graph
[legend]
Collaboration diagram for Password:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool compute_actual_width (viewport *v)
 Compute actual width of input area given window size limitations. The function return value indicates that the offset_ member changed -- this implies a need to repaint the text input region.
void draw_input_area (viewport *v, bool highlighted)
 paints [ ok ]
void handle_key (viewport *v, int key)
 ignores all keys
void handle_paging (viewport *v)
 Use horizontal paging if necessary to insure that the character in the string under col_ is actually visible.
 Password (std::string const &name, std::string const &label, std::string const &default_value, int input_width)
void setColumn (int col)
 Set the current input column.

Public Attributes

int input_width_
std::string label_
std::string name_
std::string value_

Protected Attributes

Dialogdialog_
bool password_
 this is a password string -- dont' echo its contents

Friends

class Dialog

Detailed Description

Same as String, except that the user never gets to see what he has typed in.

Definition at line 1315 of file cursorwindow.h.


Constructor & Destructor Documentation

Password ( std::string const &  name,
std::string const &  label,
std::string const &  default_value,
int  input_width 
)

Definition at line 1323 of file cursorwindow.h.


Member Function Documentation

bool compute_actual_width ( viewport v  )  [inherited]

Compute actual width of input area given window size limitations. The function return value indicates that the offset_ member changed -- this implies a need to repaint the text input region.

Definition at line 2236 of file cursorwindow.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_input_area ( viewport v,
bool  highlighted 
) [virtual, inherited]

paints [ ok ]

Implements Element.

Definition at line 2308 of file cursorwindow.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void handle_key ( viewport v,
int  key 
) [virtual, inherited]

ignores all keys

Implements Element.

Definition at line 2359 of file cursorwindow.cxx.

Here is the call graph for this function:

void handle_paging ( viewport v  )  [inherited]

Use horizontal paging if necessary to insure that the character in the string under col_ is actually visible.

Definition at line 2288 of file cursorwindow.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void setColumn ( int  col  )  [inherited]

Set the current input column.

Definition at line 2351 of file cursorwindow.cxx.

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class Dialog [friend, inherited]

Definition at line 1169 of file cursorwindow.h.


Member Data Documentation

Dialog* dialog_ [protected, inherited]

Definition at line 1166 of file cursorwindow.h.

int input_width_ [inherited]

Definition at line 1176 of file cursorwindow.h.

std::string label_ [inherited]

Definition at line 1174 of file cursorwindow.h.

std::string name_ [inherited]

Definition at line 1173 of file cursorwindow.h.

bool password_ [protected, inherited]

this is a password string -- dont' echo its contents

Definition at line 1273 of file cursorwindow.h.

std::string value_ [inherited]

Definition at line 1175 of file cursorwindow.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 29 22:53:42 2012 for CXXUtilities by  doxygen 1.6.3