Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ModeName Class Reference

Simple interface for setting the name of the current "mode" which is displayed in the top left corner of the jot window. More...

#include <mode_name.H>

Collaboration diagram for ModeName:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static str_ptr get_name ()
 Name currently displayed.
static void push_name (Cstr_ptr &n)
 set a new name.
static void pop_name ()
 Remove the last name set, restore the one before it.

Static Protected Member Functions

static void init ()
static TEXT2Dptr name ()
static void set_name (Cstr_ptr &n)

Static Protected Attributes

static TEXT2Dptr _mode_name
static LIST< str_ptr_names

Detailed Description

Simple interface for setting the name of the current "mode" which is displayed in the top left corner of the jot window.

Todo:
Rewrite as singleton class.

Definition at line 22 of file mode_name.H.


Member Function Documentation

static str_ptr ModeName::get_name  )  [inline, static]
 

Name currently displayed.

Definition at line 27 of file mode_name.H.

References name().

void ModeName::init  )  [static, protected]
 

Definition at line 73 of file mode_name.C.

References _mode_name, NETWORK, NO_COLOR_MOD, NO_COPY, NO_DISP_MOD, NO_XFORM_MOD, and hashvar< T >::set().

Referenced by name().

static TEXT2Dptr ModeName::name  )  [inline, static, protected]
 

Definition at line 41 of file mode_name.H.

References _mode_name, and init().

Referenced by get_name(), and set_name().

void ModeName::pop_name  )  [static]
 

Remove the last name set, restore the one before it.

Definition at line 95 of file mode_name.C.

References _names, ARRAY< T >::empty(), ARRAY< T >::last(), NULL_STR, ARRAY< T >::pop(), and set_name().

Referenced by Pen::deactivate(), and DrawWidget::deactivate().

void ModeName::push_name Cstr_ptr &  n  )  [static]
 

set a new name.

Definition at line 88 of file mode_name.C.

References _names, and set_name().

Referenced by Pen::activate(), and DrawWidget::activate().

static void ModeName::set_name Cstr_ptr &  n  )  [inline, static, protected]
 

Definition at line 42 of file mode_name.H.

References name().

Referenced by pop_name(), and push_name().


Member Data Documentation

TEXT2Dptr ModeName::_mode_name [static, protected]
 

Definition at line 37 of file mode_name.H.

Referenced by init(), and name().

LIST< str_ptr > ModeName::_names [static, protected]
 

Definition at line 38 of file mode_name.H.

Referenced by pop_name(), and push_name().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:41 2006 for jot by  doxygen 1.4.4