#include <mmssliderwidget.h>
Public Member Functions | |
MMSSliderWidget (MMSWindow *root, string className, MMSTheme *theme=NULL) | |
~MMSSliderWidget () | |
MMSWidget * | copyWidget () |
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) |
string | getImagePath () |
string | getImageName () |
string | getSelImagePath () |
string | getSelImageName () |
string | getImagePath_p () |
string | getImageName_p () |
string | getSelImagePath_p () |
string | getSelImageName_p () |
string | getImagePath_i () |
string | getImageName_i () |
string | getSelImagePath_i () |
string | getSelImageName_i () |
unsigned int | getPosition () |
string | getBarImagePath () |
string | getBarImageName () |
string | getSelBarImagePath () |
string | getSelBarImageName () |
void | setImagePath (string imagepath, bool load=true, bool refresh=true) |
void | setImageName (string imagename, bool load=true, bool refresh=true) |
void | setImage (string imagepath, string imagename, bool load=true, bool refresh=true) |
void | setSelImagePath (string selimagepath, bool load=true, bool refresh=true) |
void | setSelImageName (string selimagename, bool load=true, bool refresh=true) |
void | setSelImage (string selimagepath, string selimagename, bool load=true, bool refresh=true) |
void | setImagePath_p (string imagepath_p, bool load=true, bool refresh=true) |
void | setImageName_p (string imagename_p, bool load=true, bool refresh=true) |
void | setImage_p (string imagepath_p, string imagename_p, bool load=true, bool refresh=true) |
void | setSelImagePath_p (string selimagepath_p, bool load=true, bool refresh=true) |
void | setSelImageName_p (string selimagename_p, bool load=true, bool refresh=true) |
void | setSelImage_p (string selimagepath_p, string selimagename_p, bool load=true, bool refresh=true) |
void | setImagePath_i (string imagepath_i, bool load=true, bool refresh=true) |
void | setImageName_i (string imagename_i, bool load=true, bool refresh=true) |
void | setImage_i (string imagepath_i, string imagename_i, bool load=true, bool refresh=true) |
void | setSelImagePath_i (string selimagepath_i, bool load=true, bool refresh=true) |
void | setSelImageName_i (string selimagename_i, bool load=true, bool refresh=true) |
void | setSelImage_i (string selimagepath_i, string selimagename_i, bool load=true, bool refresh=true) |
void | setPosition (unsigned int pos, bool refresh=true) |
void | setBarImagePath (string barimagepath, bool load=true, bool refresh=true) |
void | setBarImageName (string barimagename, bool load=true, bool refresh=true) |
void | setBarImage (string barimagepath, string barimagename, bool load=true, bool refresh=true) |
void | setSelBarImagePath (string selbarimagepath, bool load=true, bool refresh=true) |
void | setSelBarImageName (string selbarimagename, bool load=true, bool refresh=true) |
void | setSelBarImage (string selbarimagepath, string selbarimagename, bool load=true, bool refresh=true) |
void | updateFromThemeClass (MMSSliderWidgetClass *themeClass) |
Public Attributes | |
sigc::signal< bool, MMSWidget * > ::accumulated < neg_bool_accumulator > * | onSliderIncrement |
sigc::signal< bool, MMSWidget * > ::accumulated < neg_bool_accumulator > * | onSliderDecrement |
Private Member Functions | |
bool | create (MMSWindow *root, string className, MMSTheme *theme) |
bool | init () |
bool | release () |
void | getImage (MMSFBSurface **suf) |
void | getBarImage (MMSFBSurface **suf) |
void | calcPos (MMSFBSurface *suf, MMSFBRectangle *surfaceGeom, bool *vertical, MMSFBSurface *barsuf=NULL, MMSFBRectangle *src_barGeom=NULL, MMSFBRectangle *dst_barGeom=NULL) |
void | getForeground (MMSFBSurface **image, MMSFBSurface **barimage) |
bool | enableRefresh (bool enable=true) |
Internal method: (re-)enable refresh status. | |
bool | checkRefreshStatus () |
Internal method: check drawn background against new background and (re-)enable refresh status if needed. | |
bool | draw (bool *backgroundFilled=NULL) |
void | switchArrowWidgets () |
Private Attributes | |
string | className |
MMSSliderWidgetClass * | sliderWidgetClass |
MMSSliderWidgetClass | mySliderWidgetClass |
bool | imagepath_set |
bool | selimagepath_set |
bool | imagepath_p_set |
bool | selimagepath_p_set |
bool | imagepath_i_set |
bool | selimagepath_i_set |
bool | barimagepath_set |
bool | selbarimagepath_set |
MMSFBSurface * | image |
MMSFBSurface * | selimage |
MMSFBSurface * | image_p |
MMSFBSurface * | selimage_p |
MMSFBSurface * | image_i |
MMSFBSurface * | selimage_i |
MMSFBSurface * | barimage |
MMSFBSurface * | selbarimage |
bool | vertical |
bool | current_fgset |
current foreground values set? | |
MMSFBSurface * | current_fgimage |
current foreground image | |
MMSFBSurface * | current_fgbarimage |
current foreground bar image |
The slider consists of an image which will be positioned within the slider widget area. The slider widget cannot be focused.
Definition at line 44 of file mmssliderwidget.h.
Definition at line 35 of file mmssliderwidget.cpp.
MMSSliderWidget::~MMSSliderWidget | ( | ) |
Definition at line 39 of file mmssliderwidget.cpp.
Definition at line 45 of file mmssliderwidget.cpp.
bool MMSSliderWidget::init | ( | ) | [private, virtual] |
bool MMSSliderWidget::release | ( | ) | [private, virtual] |
void MMSSliderWidget::getImage | ( | MMSFBSurface ** | suf | ) | [private] |
Definition at line 184 of file mmssliderwidget.cpp.
void MMSSliderWidget::getBarImage | ( | MMSFBSurface ** | suf | ) | [private] |
Definition at line 212 of file mmssliderwidget.cpp.
void MMSSliderWidget::calcPos | ( | MMSFBSurface * | suf, | |
MMSFBRectangle * | surfaceGeom, | |||
bool * | vertical, | |||
MMSFBSurface * | barsuf = NULL , |
|||
MMSFBRectangle * | src_barGeom = NULL , |
|||
MMSFBRectangle * | dst_barGeom = NULL | |||
) | [private] |
Definition at line 222 of file mmssliderwidget.cpp.
void MMSSliderWidget::getForeground | ( | MMSFBSurface ** | image, | |
MMSFBSurface ** | barimage | |||
) | [private] |
Definition at line 292 of file mmssliderwidget.cpp.
bool MMSSliderWidget::enableRefresh | ( | bool | enable = true |
) | [private, virtual] |
Internal method: (re-)enable refresh status.
Reimplemented from MMSWidget.
Definition at line 298 of file mmssliderwidget.cpp.
bool MMSSliderWidget::checkRefreshStatus | ( | ) | [private, virtual] |
Internal method: check drawn background against new background and (re-)enable refresh status if needed.
Reimplemented from MMSWidget.
Definition at line 307 of file mmssliderwidget.cpp.
bool MMSSliderWidget::draw | ( | bool * | backgroundFilled = NULL |
) | [private, virtual] |
void MMSSliderWidget::switchArrowWidgets | ( | ) | [private, virtual] |
MMSWidget * MMSSliderWidget::copyWidget | ( | ) | [virtual] |
bool MMSSliderWidget::scrollTo | ( | int | posx, | |
int | posy, | |||
bool | refresh = true , |
|||
bool * | changed = NULL | |||
) |
Definition at line 519 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImagePath | ( | ) |
Definition at line 589 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImageName | ( | ) |
Definition at line 593 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImagePath | ( | ) |
Definition at line 597 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImageName | ( | ) |
Definition at line 601 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImagePath_p | ( | ) |
Definition at line 605 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImageName_p | ( | ) |
Definition at line 609 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImagePath_p | ( | ) |
Definition at line 613 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImageName_p | ( | ) |
Definition at line 617 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImagePath_i | ( | ) |
Definition at line 621 of file mmssliderwidget.cpp.
string MMSSliderWidget::getImageName_i | ( | ) |
Definition at line 625 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImagePath_i | ( | ) |
Definition at line 629 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelImageName_i | ( | ) |
Definition at line 633 of file mmssliderwidget.cpp.
unsigned int MMSSliderWidget::getPosition | ( | ) |
Definition at line 637 of file mmssliderwidget.cpp.
string MMSSliderWidget::getBarImagePath | ( | ) |
Definition at line 641 of file mmssliderwidget.cpp.
string MMSSliderWidget::getBarImageName | ( | ) |
Definition at line 645 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelBarImagePath | ( | ) |
Definition at line 649 of file mmssliderwidget.cpp.
string MMSSliderWidget::getSelBarImageName | ( | ) |
Definition at line 653 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImagePath | ( | string | imagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 662 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImageName | ( | string | imagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 678 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImage | ( | string | imagepath, | |
string | imagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 694 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImagePath | ( | string | selimagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 710 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImageName | ( | string | selimagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 727 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImage | ( | string | selimagepath, | |
string | selimagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 742 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImagePath_p | ( | string | imagepath_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 758 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImageName_p | ( | string | imagename_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 775 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImage_p | ( | string | imagepath_p, | |
string | imagename_p, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 790 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImagePath_p | ( | string | selimagepath_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 806 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImageName_p | ( | string | selimagename_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 823 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImage_p | ( | string | selimagepath_p, | |
string | selimagename_p, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 838 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImagePath_i | ( | string | imagepath_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 854 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImageName_i | ( | string | imagename_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 871 of file mmssliderwidget.cpp.
void MMSSliderWidget::setImage_i | ( | string | imagepath_i, | |
string | imagename_i, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 886 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImagePath_i | ( | string | selimagepath_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 902 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImageName_i | ( | string | selimagename_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 919 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelImage_i | ( | string | selimagepath_i, | |
string | selimagename_i, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 934 of file mmssliderwidget.cpp.
void MMSSliderWidget::setPosition | ( | unsigned int | pos, | |
bool | refresh = true | |||
) |
Definition at line 950 of file mmssliderwidget.cpp.
void MMSSliderWidget::setBarImagePath | ( | string | barimagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 972 of file mmssliderwidget.cpp.
void MMSSliderWidget::setBarImageName | ( | string | barimagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 988 of file mmssliderwidget.cpp.
void MMSSliderWidget::setBarImage | ( | string | barimagepath, | |
string | barimagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1004 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelBarImagePath | ( | string | selbarimagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1020 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelBarImageName | ( | string | selbarimagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1037 of file mmssliderwidget.cpp.
void MMSSliderWidget::setSelBarImage | ( | string | selbarimagepath, | |
string | selbarimagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1052 of file mmssliderwidget.cpp.
void MMSSliderWidget::updateFromThemeClass | ( | MMSSliderWidgetClass * | themeClass | ) |
Definition at line 1071 of file mmssliderwidget.cpp.
string MMSSliderWidget::className [private] |
Definition at line 46 of file mmssliderwidget.h.
Definition at line 47 of file mmssliderwidget.h.
Definition at line 48 of file mmssliderwidget.h.
bool MMSSliderWidget::imagepath_set [private] |
Definition at line 50 of file mmssliderwidget.h.
bool MMSSliderWidget::selimagepath_set [private] |
Definition at line 51 of file mmssliderwidget.h.
bool MMSSliderWidget::imagepath_p_set [private] |
Definition at line 53 of file mmssliderwidget.h.
bool MMSSliderWidget::selimagepath_p_set [private] |
Definition at line 54 of file mmssliderwidget.h.
bool MMSSliderWidget::imagepath_i_set [private] |
Definition at line 56 of file mmssliderwidget.h.
bool MMSSliderWidget::selimagepath_i_set [private] |
Definition at line 57 of file mmssliderwidget.h.
bool MMSSliderWidget::barimagepath_set [private] |
Definition at line 59 of file mmssliderwidget.h.
bool MMSSliderWidget::selbarimagepath_set [private] |
Definition at line 60 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::image [private] |
Definition at line 62 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::selimage [private] |
Definition at line 63 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::image_p [private] |
Definition at line 64 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::selimage_p [private] |
Definition at line 65 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::image_i [private] |
Definition at line 66 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::selimage_i [private] |
Definition at line 67 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::barimage [private] |
Definition at line 69 of file mmssliderwidget.h.
MMSFBSurface* MMSSliderWidget::selbarimage [private] |
Definition at line 70 of file mmssliderwidget.h.
bool MMSSliderWidget::vertical [private] |
Definition at line 72 of file mmssliderwidget.h.
bool MMSSliderWidget::current_fgset [private] |
MMSFBSurface* MMSSliderWidget::current_fgimage [private] |
MMSFBSurface* MMSSliderWidget::current_fgbarimage [private] |
sigc::signal<bool, MMSWidget*>::accumulated<neg_bool_accumulator>* MMSSliderWidget::onSliderIncrement |
Definition at line 113 of file mmssliderwidget.h.
sigc::signal<bool, MMSWidget*>::accumulated<neg_bool_accumulator>* MMSSliderWidget::onSliderDecrement |
Definition at line 114 of file mmssliderwidget.h.