ubit::UCtlmenu Class Reference

Control menu. More...

#include <uctlmenu.hpp>

Inheritance diagram for ubit::UCtlmenu:

ubit::UPiemenu ubit::UPopmenu ubit::UMenu ubit::UWin ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject ubit::UCtlmenu3d List of all members.

Public Member Functions

 UCtlmenu (const UArgs &=UArgs::none)

Static Public Member Functions

static UStylecreateStyle ()
 < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

Friends

UCtlmenuuctlmenu (const UArgs &args=UArgs::none)

Detailed Description

Control menu.

a control menu makes it possible to select an operation then to control one or two continous values in a single gesture. Control menus have to modes:

See also:
: UPiemenu class for inherited methods.
Event management:

   class Demo {
   public:
       void scrollMore(UMouseEvent& e);
       ....
   };

   Demo* d = new Demo();
   UCtlmenu* cmenu = new UCtlmenu();

   // scrollMore() is fired if item(0) has been selected and the mouse 
   // is being dragged (even if it is now outside of item(0))

   cmenu->item(0)->addlist(" Scroll More "
                            + UOn::mdrag / ucall(this, &Demo::scrollMore))

   // here we use the predefined UScrollAction class (that derives from 
   // UCtlAction) to perform the same kind of behavior in a simpler way

   UScrollAction* a = new UScrollAction(...);
   cmenu->item(4)->addlist(" Scroll Less " + *a)
 


Member Function Documentation

UStyle * ubit::UCtlmenu::createStyle (  )  [static]

< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

this macro defines the UClass that corresponds to this class and:

Reimplemented from ubit::UPiemenu.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:47 2007 for Ubit by  doxygen 1.4.7