Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UMode Class Reference

Objects' modes. More...

#include <umode.hpp>

Inheritance diagram for UMode:

UBrick UViewStyle List of all members.

Public Types

enum  BMODES {
  CAN_DEL = 1<<0, UCONST = 1<<1, DESTRUCTING = 1<<2, DESTRUCTED = 1<<3,
  DONT_PROPAGATE = CAN_DEL | DESTRUCTED | DESTRUCTING | UCONST, NO_AUTO_UPDATE = 1<<4, IN_TEXTSEL = 1<<5, IS_VERTICAL = 1<<6,
  IGNORE_EVENTS = 1<<9, DESTRUCT_CB = 1<<10, CHANGE_CB = 1<<11, CONTAINER_CB = 1<<12,
  CHILD_CHANGE_CB = 1<<13, VIEW_PAINT_CB = 1<<15, VIEW_CHANGE_CB = 1<<16, KEY_CB = 1<<17,
  MOUSE_CB = 1<<18, MOUSE_CLICK_CB = 1<<19, MOUSE_CROSS_CB = 1<<20, MOUSE_DRAG_CB = 1<<21,
  MOUSE_MOVE_CB = 1<<22, UMESSAGE_CB = 1<<27, PRE_CHILD_EVENT_CB = 1<<28, RAW_EVENT_CB = 1<<29,
  NOTIFY_EVENT_CB = 1<<30, CALLBACKS
}
enum  CMODES {
  GROUP = 1<<0, BOX = 1<<1, SOFTWIN = 1<<2, HARDWIN = 1<<3,
  INCRUST = 1<<4, FLOATING = 1<<5, MENU = 1<<6, FAKE_PARENT = 1<<7,
  BORDER_LIST = 1<<8, SOFTWIN_LIST = 1<<9, CAN_SHOW = 1<<10, DOUBLE_BUFFER = 1<<11,
  MODAL = 1<<12, SELECTED = 1<<13, CAN_SELECT = 1<<14, CAN_SELECT_CHILDREN = 1<<15,
  CAN_SELECT_TEXT = 1<<16, CAN_EDIT_TEXT = 1<<17, CAN_BROWSE_CHILDREN = 1<<19, CAN_DRAG1 = 1<<20,
  CAN_DRAG2 = 1<<21, CAN_DROP = 1<<22, CAN_ARM = 1<<23, ACTION_HIGHLIGHT = 1<<24,
  ENTER_HIGHLIGHT = 1<<25, HAS_RENDERER = 1<<26, HAS_CURSOR = 1<<27, HAS_CLOSE_MENU_MODE = 1<<28,
  CLOSE_MENU_MODE = 1<<29, WIN_MAPPED = 1<<30, WIN_AUTO_OPEN_MODE = 1<<31
}

Public Member Functions

 UMode (u_modes bmodes, u_modes cmodes, bool on_off)
 UMode (u_modes bmodes=0)
virtual void setParentModes (UCtrl *parent) const
virtual void addingTo (class ULink *selflink, UGroup *parent)
virtual void removingFrom (class ULink *selflink, UGroup *parent)
 NOTE that this function require a specific destructor.

Static Public Attributes

static UMode selected
 selects the parents (if applicable, see: isSelectable())
static UMode unselected
 unselects the parents (if applicable, see: isSelectable())
static UMode canSelect
 parents can be selected (see isSelectable())
static UMode canArm
 parents can be armed
static UMode enterHighlight
 parents are highlighted when entered
static UMode enterHighborder
 parents are highlighted when entered
static UMode actionHighlight
 parents are highlighted when activated
static UMode actionHighborder
 parents are highlighted when activated
static UMode canDrag1
 parents can start a drag and drop action with button 1
static UMode canDrag2
 parents can start a drag and drop action with button 2 (or equivalent)
static UMode canDrop
 parents can receive a drag and drop action
static UMode ignoreEvents
 parents will ignore events

Protected Attributes

u_modes cmodes
u_modes bmask
u_modes cmask

Friends

class UCtrl

Detailed Description

Objects' modes.

this class is implementation dependant. only its static fields should be used by clients.


Member Enumeration Documentation

enum UMode::BMODES
 

Enumeration values:
CAN_DEL  this object was created by 'new' and can be destroyed by 'delete'
UCONST  this object is constant
DONT_PROPAGATE  these modes should not be propagated to parents
NO_AUTO_UPDATE  update() is NOT invoked when set(), add() or remove() are called
IN_TEXTSEL  this object is part of a text selection
IS_VERTICAL  this object has a vertical orientation (horizontal otherwise)
IGNORE_EVENTS  this object ignores events (its parent will get them)

enum UMode::CMODES
 

Enumeration values:
GROUP  logical grouping container
BOX  container that manage views
SOFTWIN  simulated "soft" window (NB: softwin => floating)
HARDWIN  "hard" (native) window
INCRUST  incrusted hard window (see UIncrust)
FLOATING  untiled box or softwin: its position is controlled by an UPos
MENU  this object is a Menu (or a subclass)
FAKE_PARENT  not taken into account when auto_deleting children
BORDER_LIST  list of border frame elements
SOFTWIN_LIST  list of softwins controlled by a hardwin
CAN_SHOW  refer to isShowable() and isShown() methods for details.
DOUBLE_BUFFER  object and chidren painted in double buffer mode
MODAL  this object is modal when shown
SELECTED  this object is in the selected mode
CAN_SELECT  can be selected (in the same way as a checkbox)
CAN_SELECT_CHILDREN  can select its ARMable children (in the same way as a listbox)
CAN_SELECT_TEXT  can select included text
CAN_EDIT_TEXT  can edit included text (ie. the group contains a UEdit brick)
CAN_BROWSE_CHILDREN  can browse children (for lists and menus)
CAN_DRAG1  can be dragged (with button 1 or button2) or dropped
CAN_ARM  can be armed (meaning it will be repaint on Uon::arm conditions and that corresponding object's callbacks will be called)
HAS_RENDERER  this object has a specific renderer (= a UViewStyle object)
HAS_CURSOR  this object has a specific cursor
HAS_CLOSE_MENU_MODE  if HAS_CLOSE_MENU_MODE is true, CLOSE_MENU_MODE defines this behavior (which is then dynamically inherited)
WIN_MAPPED  this win is mapped on the screen
WIN_AUTO_OPEN_MODE  this win is automatically opened if its parent is ARMable


Member Function Documentation

void UMode::addingTo class ULink *  selflink,
UGroup parent
[virtual]
 

... inutile pour les UCONST!!!;

Reimplemented from UBrick.

Reimplemented in UViewStyle.


The documentation for this class was generated from the following files:
Generated on Fri Jun 3 03:30:17 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2