MMSMenuWidget Class Reference

With this class you can display a list of items. More...

#include <mmsmenuwidget.h>

Inheritance diagram for MMSMenuWidget:

List of all members.


Public Member Functions

 MMSMenuWidget (MMSWindow *root, string className, MMSTheme *theme=NULL)
 ~MMSMenuWidget ()
MMSWidgetcopyWidget ()
void setItemTemplate (MMSWidget *itemTemplate)
MMSWidgetgetItemTemplate ()
MMSWidgetnewItem (int item=-1, MMSWidget *widget=NULL)
 Create a new menu item and push it at a specific position of the list.
void deleteItem (unsigned int item)
 Delete a menu item.
void clear ()
 Clear the menu and deletes all items.
void setFocus (bool set, bool refresh=true, MMSInputEvent *inputevent=NULL)
bool setSelected (unsigned int item, bool refresh=true)
unsigned int getSelected ()
MMSWidgetgetItem (unsigned int item)
MMSWidgetgetSelectedItem ()
unsigned int getSize ()
unsigned int getVItems ()
unsigned int getHItems ()
bool scrollDown (unsigned int count=1, bool refresh=true, bool test=false, bool leave_selection=false)
bool scrollUp (unsigned int count=1, bool refresh=true, bool test=false, bool leave_selection=false)
bool scrollRight (unsigned int count=1, bool refresh=true, bool test=false, bool leave_selection=false)
bool scrollLeft (unsigned int count=1, bool refresh=true, bool test=false, bool leave_selection=false)
bool scrollTo (int posx, int posy, bool refresh=true, bool *changed=NULL, MMSWIDGET_SCROLL_MODE mode=MMSWIDGET_SCROLL_MODE_SETSELECTED, MMSFBRectangle *inputrect=NULL)
bool setSubMenuName (unsigned int item, const char *name)
bool setSubMenuName (unsigned int item, string &name)
bool setBackItem (unsigned int item)
MMSTaffFilegetTAFF ()
string getItemWidth ()
string getItemHeight ()
unsigned int getItemHMargin ()
unsigned int getItemVMargin ()
unsigned int getCols ()
unsigned int getDimItems ()
int getFixedPos ()
bool getHLoop ()
bool getVLoop ()
unsigned int getTransItems ()
unsigned int getDimTop ()
unsigned int getDimBottom ()
unsigned int getDimLeft ()
unsigned int getDimRight ()
unsigned int getTransTop ()
unsigned int getTransBottom ()
unsigned int getTransLeft ()
unsigned int getTransRight ()
string getZoomSelWidth ()
string getZoomSelHeight ()
string getZoomSelShiftX ()
string getZoomSelShiftY ()
MMSSEQUENCEMODE getSmoothScrolling ()
string getParentWindow ()
bool getSelImagePath (string &selimagepath)
bool getSelImageName (string &selimagename)
MMSSEQUENCEMODE getSmoothSelection ()
unsigned int getSmoothDelay ()
void setItemWidth (string itemwidth, bool refresh=true)
void setItemHeight (string itemheight, bool refresh=true)
void setItemHMargin (unsigned int itemhmargin, bool refresh=true)
void setItemVMargin (unsigned int itemvmargin, bool refresh=true)
void setCols (unsigned int cols, bool refresh=true)
void setDimItems (unsigned int dimitems, bool refresh=true)
void setFixedPos (int fixedpos, bool refresh=true)
void setHLoop (bool hloop)
void setVLoop (bool vloop)
void setTransItems (unsigned int transitems, bool refresh=true)
void setDimTop (unsigned int dimtop, bool refresh=true)
void setDimBottom (unsigned int dimbottom, bool refresh=true)
void setDimLeft (unsigned int dimleft, bool refresh=true)
void setDimRight (unsigned int dimright, bool refresh=true)
void setTransTop (unsigned int transtop, bool refresh=true)
void setTransBottom (unsigned int transbottom, bool refresh=true)
void setTransLeft (unsigned int transleft, bool refresh=true)
void setTransRight (unsigned int transright, bool refresh=true)
void setZoomSelWidth (string zoomselwidth, bool refresh=true)
void setZoomSelHeight (string zoomselheight, bool refresh=true)
void setZoomSelShiftX (string zoomselshiftx, bool refresh=true)
void setZoomSelShiftY (string zoomselshifty, bool refresh=true)
void setSmoothScrolling (MMSSEQUENCEMODE seq_mode)
void setParentWindow (string parentwindow)
void setSelImagePath (string selimagepath, bool load=true, bool refresh=true)
void setSelImageName (string selimagename, bool load=true, bool refresh=true)
void setSmoothSelection (MMSSEQUENCEMODE seq_mode)
void setSmoothDelay (unsigned int smoothdelay)
void updateFromThemeClass (MMSMenuWidgetClass *themeClass)

Public Attributes

sigc::signal< void, MMSWidget * > * onSelectItem
sigc::signal< void, MMSWidget * > * onBeforeScroll

Private Member Functions

bool create (MMSWindow *root, string className, MMSTheme *theme)
bool init ()
bool release ()
void lock ()
void unlock ()
bool draw (bool *backgroundFilled=NULL)
void add (MMSWidget *widget)
void adjustVirtualRect ()
bool getConfig (bool *firstTime=NULL)
void drawchildren (bool toRedrawOnly=false, bool *backgroundFilled=NULL, MMSFBRectangle *rect2update=NULL)
void recalculateChildren ()
void initParentWindow (void)
void setRootWindow (MMSWindow *root, MMSWindow *parentroot=NULL)
void switchArrowWidgets ()
void setSliders ()
bool setSelected (unsigned int item, bool refresh, bool *changed, bool joined)
void selectItem (MMSWidget *item, bool set, bool refresh=true, bool refreshall=false)
bool onBeforeAnimation (MMSPulser *pulser)
bool onAnimation (MMSPulser *pulser)
void onAfterAnimation (MMSPulser *pulser)
void startAnimation (MMSMENUWIDGET_PULSER_MODE pulser_mode, double anim_offset, int anim_jumpover)
bool scrollDownEx (unsigned int count, bool refresh, bool test, bool leave_selection)
bool scrollUpEx (unsigned int count, bool refresh, bool test, bool leave_selection)
bool scrollRightEx (unsigned int count, bool refresh, bool test, bool leave_selection)
bool scrollLeftEx (unsigned int count, bool refresh, bool test, bool leave_selection)
void emitOnReturnForParents (MMSMenuWidget *orw)
bool callOnReturn ()
bool switchToSubMenu ()
bool switchBackToParentMenu (MMSDIRECTION direction=MMSDIRECTION_NOTSET, bool closeall=false)

Private Attributes

string className
MMSMenuWidgetClassmenuWidgetClass
MMSMenuWidgetClass myMenuWidgetClass
MMSFBSurfaceselimage
MMSWidgetitemTemplate
int item_w
int item_h
int v_items
int h_items
int x
 x position of the selected item
int y
 y position of the selected item
int px
 scroll x-offset
int py
 scroll y-offset
bool firstFocus
bool firstSelection
bool zoomsel
unsigned int zoomselwidth
unsigned int zoomselheight
int zoomselshiftx
int zoomselshifty
MMSSEQUENCEMODE smooth_scrolling
 smooth scrolling mode
int scrolling_offset
MMSSEQUENCEMODE smooth_selection
 smooth selection mode
int selection_offset_x
int selection_offset_y
unsigned int frame_delay
unsigned int frame_delay_set
MMSPulser pulser
 Pulser for e.g. fade/move animations.
sigc::connection onBeforeAnimation_connection
 connection object for MMSPulser::onBeforeAnimation callback
sigc::connection onAnimation_connection
 connection object for MMSPulser::onAnimation callback
sigc::connection onAfterAnimation_connection
 connection object for MMSPulser::onAfterAnimation callback
MMSMENUWIDGET_PULSER_MODE pulser_mode
 current pulser mode
double anim_offset
 offset to calculate the animation
int anim_jumpover
 number of menu items to jump over during the animation
double anim_factor
 factor to calculate the animation
MMSFBRectangle virtualGeom
MMSWindowparent_window
 this will be used to show/hide the menu and its whole parent window(s) normally this is the same as widgets rootwindow, but it can also be the a parent from widgets rootwindow
vector< MMSMENUITEMINFOSiteminfos
 represents additional informations for each menu item
int curr_submenu
 if != -1 then currently activated submenu is set
MMSMenuWidgetparent_menu
 if a submenu does appear, we will save the parent menu here which will used to go back
int back_item
 if != -1 then the item with this id is set as go-back-item if the user enters this item, the parent menu (if does exist) will be shown

Classes

struct  MMSMENUITEMINFOS

Detailed Description

With this class you can display a list of items.

The menu widget is focusable. So the user can scroll in it. Menu items are normal widgets. But the root widget of an menu item has to be a focusable widget. The root widget is normally a MMSButton widget. Please note that you can nesting all other widgets under the root widget of the menu item. So you can build complex menu items. But think about the performance if you work with menus with an high number of items.

Author:
Jens Schneider

Definition at line 68 of file mmsmenuwidget.h.


Constructor & Destructor Documentation

MMSMenuWidget::MMSMenuWidget ( MMSWindow root,
string  className,
MMSTheme theme = NULL 
)

Definition at line 40 of file mmsmenuwidget.cpp.

MMSMenuWidget::~MMSMenuWidget (  ) 

Definition at line 53 of file mmsmenuwidget.cpp.


Member Function Documentation

bool MMSMenuWidget::create ( MMSWindow root,
string  className,
MMSTheme theme 
) [private]

Definition at line 67 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::init (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 190 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::release (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 204 of file mmsmenuwidget.cpp.

void MMSMenuWidget::lock (  )  [private]

Definition at line 217 of file mmsmenuwidget.cpp.

void MMSMenuWidget::unlock (  )  [private]

Definition at line 222 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::draw ( bool *  backgroundFilled = NULL  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 229 of file mmsmenuwidget.cpp.

void MMSMenuWidget::add ( MMSWidget widget  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 260 of file mmsmenuwidget.cpp.

void MMSMenuWidget::adjustVirtualRect (  )  [private]

Definition at line 266 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::getConfig ( bool *  firstTime = NULL  )  [private]

Definition at line 303 of file mmsmenuwidget.cpp.

void MMSMenuWidget::drawchildren ( bool  toRedrawOnly = false,
bool *  backgroundFilled = NULL,
MMSFBRectangle rect2update = NULL 
) [private, virtual]

Reimplemented from MMSWidget.

Definition at line 413 of file mmsmenuwidget.cpp.

void MMSMenuWidget::recalculateChildren (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 453 of file mmsmenuwidget.cpp.

void MMSMenuWidget::initParentWindow ( void   )  [private]

Definition at line 1103 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setRootWindow ( MMSWindow root,
MMSWindow parentroot = NULL 
) [private, virtual]

Reimplemented from MMSWidget.

Definition at line 1118 of file mmsmenuwidget.cpp.

void MMSMenuWidget::switchArrowWidgets (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 1124 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSliders (  )  [private]

Definition at line 1292 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::setSelected ( unsigned int  item,
bool  refresh,
bool *  changed,
bool  joined 
) [private]

Definition at line 2849 of file mmsmenuwidget.cpp.

void MMSMenuWidget::selectItem ( MMSWidget item,
bool  set,
bool  refresh = true,
bool  refreshall = false 
) [private]

Definition at line 1322 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::onBeforeAnimation ( MMSPulser pulser  )  [private]

Definition at line 1378 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::onAnimation ( MMSPulser pulser  )  [private]

Definition at line 1411 of file mmsmenuwidget.cpp.

void MMSMenuWidget::onAfterAnimation ( MMSPulser pulser  )  [private]

Definition at line 1455 of file mmsmenuwidget.cpp.

void MMSMenuWidget::startAnimation ( MMSMENUWIDGET_PULSER_MODE  pulser_mode,
double  anim_offset,
int  anim_jumpover 
) [private]

Definition at line 1480 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollDownEx ( unsigned int  count,
bool  refresh,
bool  test,
bool  leave_selection 
) [private]

Definition at line 1525 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollUpEx ( unsigned int  count,
bool  refresh,
bool  test,
bool  leave_selection 
) [private]

Definition at line 1736 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollRightEx ( unsigned int  count,
bool  refresh,
bool  test,
bool  leave_selection 
) [private]

Definition at line 1920 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollLeftEx ( unsigned int  count,
bool  refresh,
bool  test,
bool  leave_selection 
) [private]

Definition at line 2174 of file mmsmenuwidget.cpp.

void MMSMenuWidget::emitOnReturnForParents ( MMSMenuWidget orw  )  [private]

Definition at line 1192 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::callOnReturn (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 1200 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::switchToSubMenu (  )  [private]

Definition at line 1218 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::switchBackToParentMenu ( MMSDIRECTION  direction = MMSDIRECTION_NOTSET,
bool  closeall = false 
) [private]

Definition at line 1257 of file mmsmenuwidget.cpp.

MMSWidget * MMSMenuWidget::copyWidget (  )  [virtual]

x position of the selected item

y position of the selected item

scroll x-offset

scroll y-offset

Implements MMSWidget.

Definition at line 116 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setItemTemplate ( MMSWidget itemTemplate  ) 

Definition at line 2639 of file mmsmenuwidget.cpp.

MMSWidget * MMSMenuWidget::getItemTemplate (  ) 

Definition at line 2665 of file mmsmenuwidget.cpp.

MMSWidget * MMSMenuWidget::newItem ( int  item = -1,
MMSWidget widget = NULL 
)

Create a new menu item and push it at a specific position of the list.

Parameters:
item position of the new item in the list, default -1 means end of list
itemWidget if NULL : the style of the new item is based on the itemTemplate if not NULL: the already allocated widget will be used as the new item and should not deleted
Returns:
pointer of the new item widget

Definition at line 2669 of file mmsmenuwidget.cpp.

void MMSMenuWidget::deleteItem ( unsigned int  item  ) 

Delete a menu item.

Parameters:
item position of the item which is to be deleted

Definition at line 2727 of file mmsmenuwidget.cpp.

void MMSMenuWidget::clear (  ) 

Clear the menu and deletes all items.

Definition at line 2775 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setFocus ( bool  set,
bool  refresh = true,
MMSInputEvent inputevent = NULL 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2803 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::setSelected ( unsigned int  item,
bool  refresh = true 
)

Definition at line 2936 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getSelected (  ) 

Definition at line 2940 of file mmsmenuwidget.cpp.

MMSWidget * MMSMenuWidget::getItem ( unsigned int  item  ) 

Definition at line 2944 of file mmsmenuwidget.cpp.

MMSWidget * MMSMenuWidget::getSelectedItem (  ) 

Definition at line 2950 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getSize (  ) 

Definition at line 2954 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getVItems (  ) 

Definition at line 2958 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getHItems (  ) 

Definition at line 2962 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollDown ( unsigned int  count = 1,
bool  refresh = true,
bool  test = false,
bool  leave_selection = false 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2385 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollUp ( unsigned int  count = 1,
bool  refresh = true,
bool  test = false,
bool  leave_selection = false 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2453 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollRight ( unsigned int  count = 1,
bool  refresh = true,
bool  test = false,
bool  leave_selection = false 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2495 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollLeft ( unsigned int  count = 1,
bool  refresh = true,
bool  test = false,
bool  leave_selection = false 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2559 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::scrollTo ( int  posx,
int  posy,
bool  refresh = true,
bool *  changed = NULL,
MMSWIDGET_SCROLL_MODE  mode = MMSWIDGET_SCROLL_MODE_SETSELECTED,
MMSFBRectangle inputrect = NULL 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 2601 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::setSubMenuName ( unsigned int  item,
const char *  name 
)

Definition at line 2968 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::setSubMenuName ( unsigned int  item,
string &  name 
)

Definition at line 2975 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::setBackItem ( unsigned int  item  ) 

Definition at line 2979 of file mmsmenuwidget.cpp.

MMSTaffFile * MMSMenuWidget::getTAFF (  ) 

Definition at line 3001 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getItemWidth (  ) 

Definition at line 3010 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getItemHeight (  ) 

Definition at line 3014 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getItemHMargin (  ) 

Definition at line 3018 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getItemVMargin (  ) 

Definition at line 3022 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getCols (  ) 

Definition at line 3026 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getDimItems (  ) 

Definition at line 3038 of file mmsmenuwidget.cpp.

int MMSMenuWidget::getFixedPos (  ) 

Definition at line 3042 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::getHLoop (  ) 

Definition at line 3046 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::getVLoop (  ) 

Definition at line 3050 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getTransItems (  ) 

Definition at line 3054 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getDimTop (  ) 

Definition at line 3058 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getDimBottom (  ) 

Definition at line 3062 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getDimLeft (  ) 

Definition at line 3066 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getDimRight (  ) 

Definition at line 3070 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getTransTop (  ) 

Definition at line 3074 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getTransBottom (  ) 

Definition at line 3078 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getTransLeft (  ) 

Definition at line 3082 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getTransRight (  ) 

Definition at line 3086 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getZoomSelWidth (  ) 

Definition at line 3090 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getZoomSelHeight (  ) 

Definition at line 3094 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getZoomSelShiftX (  ) 

Definition at line 3098 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getZoomSelShiftY (  ) 

Definition at line 3102 of file mmsmenuwidget.cpp.

MMSSEQUENCEMODE MMSMenuWidget::getSmoothScrolling (  ) 

Definition at line 3106 of file mmsmenuwidget.cpp.

string MMSMenuWidget::getParentWindow (  ) 

Definition at line 3110 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::getSelImagePath ( string &  selimagepath  ) 

Definition at line 3114 of file mmsmenuwidget.cpp.

bool MMSMenuWidget::getSelImageName ( string &  selimagename  ) 

Definition at line 3118 of file mmsmenuwidget.cpp.

MMSSEQUENCEMODE MMSMenuWidget::getSmoothSelection (  ) 

Definition at line 3122 of file mmsmenuwidget.cpp.

unsigned int MMSMenuWidget::getSmoothDelay (  ) 

Definition at line 3126 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setItemWidth ( string  itemwidth,
bool  refresh = true 
)

Definition at line 3134 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setItemHeight ( string  itemheight,
bool  refresh = true 
)

Definition at line 3144 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setItemHMargin ( unsigned int  itemhmargin,
bool  refresh = true 
)

Definition at line 3154 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setItemVMargin ( unsigned int  itemvmargin,
bool  refresh = true 
)

Definition at line 3164 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setCols ( unsigned int  cols,
bool  refresh = true 
)

Definition at line 3174 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setDimItems ( unsigned int  dimitems,
bool  refresh = true 
)

Definition at line 3184 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setFixedPos ( int  fixedpos,
bool  refresh = true 
)

Definition at line 3194 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setHLoop ( bool  hloop  ) 

Definition at line 3204 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setVLoop ( bool  vloop  ) 

Definition at line 3208 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setTransItems ( unsigned int  transitems,
bool  refresh = true 
)

Definition at line 3212 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setDimTop ( unsigned int  dimtop,
bool  refresh = true 
)

Definition at line 3222 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setDimBottom ( unsigned int  dimbottom,
bool  refresh = true 
)

Definition at line 3232 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setDimLeft ( unsigned int  dimleft,
bool  refresh = true 
)

Definition at line 3242 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setDimRight ( unsigned int  dimright,
bool  refresh = true 
)

Definition at line 3252 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setTransTop ( unsigned int  transtop,
bool  refresh = true 
)

Definition at line 3262 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setTransBottom ( unsigned int  transbottom,
bool  refresh = true 
)

Definition at line 3272 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setTransLeft ( unsigned int  transleft,
bool  refresh = true 
)

Definition at line 3282 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setTransRight ( unsigned int  transright,
bool  refresh = true 
)

Definition at line 3292 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setZoomSelWidth ( string  zoomselwidth,
bool  refresh = true 
)

Definition at line 3302 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setZoomSelHeight ( string  zoomselheight,
bool  refresh = true 
)

Definition at line 3312 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setZoomSelShiftX ( string  zoomselshiftx,
bool  refresh = true 
)

Definition at line 3322 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setZoomSelShiftY ( string  zoomselshifty,
bool  refresh = true 
)

Definition at line 3332 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSmoothScrolling ( MMSSEQUENCEMODE  seq_mode  ) 

Definition at line 3342 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setParentWindow ( string  parentwindow  ) 

Definition at line 3347 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSelImagePath ( string  selimagepath,
bool  load = true,
bool  refresh = true 
)

Definition at line 3352 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSelImageName ( string  selimagename,
bool  load = true,
bool  refresh = true 
)

Definition at line 3371 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSmoothSelection ( MMSSEQUENCEMODE  seq_mode  ) 

Definition at line 3390 of file mmsmenuwidget.cpp.

void MMSMenuWidget::setSmoothDelay ( unsigned int  smoothdelay  ) 

Definition at line 3395 of file mmsmenuwidget.cpp.

void MMSMenuWidget::updateFromThemeClass ( MMSMenuWidgetClass themeClass  ) 

Definition at line 3402 of file mmsmenuwidget.cpp.


Member Data Documentation

string MMSMenuWidget::className [private]

Definition at line 76 of file mmsmenuwidget.h.

Definition at line 77 of file mmsmenuwidget.h.

Definition at line 81 of file mmsmenuwidget.h.

Definition at line 82 of file mmsmenuwidget.h.

int MMSMenuWidget::item_w [private]

Definition at line 84 of file mmsmenuwidget.h.

int MMSMenuWidget::item_h [private]

Definition at line 85 of file mmsmenuwidget.h.

int MMSMenuWidget::v_items [private]

Definition at line 86 of file mmsmenuwidget.h.

int MMSMenuWidget::h_items [private]

Definition at line 87 of file mmsmenuwidget.h.

int MMSMenuWidget::x [private]

x position of the selected item

Definition at line 90 of file mmsmenuwidget.h.

int MMSMenuWidget::y [private]

y position of the selected item

Definition at line 92 of file mmsmenuwidget.h.

int MMSMenuWidget::px [private]

scroll x-offset

Definition at line 94 of file mmsmenuwidget.h.

int MMSMenuWidget::py [private]

scroll y-offset

Definition at line 96 of file mmsmenuwidget.h.

bool MMSMenuWidget::firstFocus [private]

Definition at line 98 of file mmsmenuwidget.h.

Definition at line 99 of file mmsmenuwidget.h.

bool MMSMenuWidget::zoomsel [private]

Definition at line 101 of file mmsmenuwidget.h.

unsigned int MMSMenuWidget::zoomselwidth [private]

Definition at line 102 of file mmsmenuwidget.h.

unsigned int MMSMenuWidget::zoomselheight [private]

Definition at line 103 of file mmsmenuwidget.h.

Definition at line 104 of file mmsmenuwidget.h.

Definition at line 105 of file mmsmenuwidget.h.

smooth scrolling mode

Definition at line 108 of file mmsmenuwidget.h.

Definition at line 109 of file mmsmenuwidget.h.

smooth selection mode

Definition at line 112 of file mmsmenuwidget.h.

Definition at line 113 of file mmsmenuwidget.h.

Definition at line 114 of file mmsmenuwidget.h.

unsigned int MMSMenuWidget::frame_delay [private]

Definition at line 116 of file mmsmenuwidget.h.

unsigned int MMSMenuWidget::frame_delay_set [private]

Definition at line 117 of file mmsmenuwidget.h.

Pulser for e.g. fade/move animations.

Definition at line 120 of file mmsmenuwidget.h.

sigc::connection MMSMenuWidget::onBeforeAnimation_connection [private]

connection object for MMSPulser::onBeforeAnimation callback

Definition at line 123 of file mmsmenuwidget.h.

sigc::connection MMSMenuWidget::onAnimation_connection [private]

connection object for MMSPulser::onAnimation callback

Definition at line 126 of file mmsmenuwidget.h.

sigc::connection MMSMenuWidget::onAfterAnimation_connection [private]

connection object for MMSPulser::onAfterAnimation callback

Definition at line 129 of file mmsmenuwidget.h.

current pulser mode

Definition at line 132 of file mmsmenuwidget.h.

double MMSMenuWidget::anim_offset [private]

offset to calculate the animation

Definition at line 135 of file mmsmenuwidget.h.

number of menu items to jump over during the animation

Definition at line 138 of file mmsmenuwidget.h.

double MMSMenuWidget::anim_factor [private]

factor to calculate the animation

Definition at line 141 of file mmsmenuwidget.h.

Definition at line 145 of file mmsmenuwidget.h.

this will be used to show/hide the menu and its whole parent window(s) normally this is the same as widgets rootwindow, but it can also be the a parent from widgets rootwindow

Definition at line 149 of file mmsmenuwidget.h.

represents additional informations for each menu item

Definition at line 152 of file mmsmenuwidget.h.

if != -1 then currently activated submenu is set

Definition at line 155 of file mmsmenuwidget.h.

if a submenu does appear, we will save the parent menu here which will used to go back

Definition at line 158 of file mmsmenuwidget.h.

int MMSMenuWidget::back_item [private]

if != -1 then the item with this id is set as go-back-item if the user enters this item, the parent menu (if does exist) will be shown

Definition at line 162 of file mmsmenuwidget.h.

sigc::signal<void, MMSWidget*>* MMSMenuWidget::onSelectItem

Definition at line 262 of file mmsmenuwidget.h.

Definition at line 263 of file mmsmenuwidget.h.


The documentation for this class was generated from the following files: