#include <mmsimagewidget.h>
Public Member Functions | |
MMSImageWidget (MMSWindow *root, string className, MMSTheme *theme=NULL) | |
virtual | ~MMSImageWidget () |
MMSWidget * | copyWidget () |
void | setVisible (bool visible, bool refresh=true) |
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 () |
bool | getUseRatio () |
bool | getFitWidth () |
bool | getFitHeight () |
MMSALIGNMENT | getAlignment () |
unsigned int | getMirrorSize () |
bool | getGenTaff () |
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 | setUseRatio (bool useratio, bool refresh=true) |
void | setFitWidth (bool fitwidth, bool refresh=true) |
void | setFitHeight (bool fitheight, bool refresh=true) |
void | setAlignment (MMSALIGNMENT alignment, bool refresh=true) |
void | setMirrorSize (unsigned int mirrorsize, bool refresh=true) |
void | setGenTaff (bool gentaff, bool refresh=true) |
void | updateFromThemeClass (MMSImageWidgetClass *themeClass) |
Private Member Functions | |
bool | create (MMSWindow *root, string className, MMSTheme *theme) |
bool | init () |
bool | release () |
void | getForeground (MMSFBSurface **image, MMSFBSurface **image2) |
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 | loadMyImage (string path, string filename, MMSFBSurface **surface, MMSIM_DESC_SUF **surfdesc, unsigned int *index, unsigned int mirror_size, bool gen_taff) |
void | workWithRatio (MMSFBSurface *suf, MMSFBRectangle *surfaceGeom) |
Private Attributes | |
string | className |
MMSImageWidgetClass * | imageWidgetClass |
MMSImageWidgetClass | myImageWidgetClass |
bool | imagepath_set |
bool | selimagepath_set |
bool | imagepath_p_set |
bool | selimagepath_p_set |
bool | imagepath_i_set |
bool | selimagepath_i_set |
MMSFBSurface * | image |
MMSIM_DESC_SUF * | image_suf |
unsigned int | image_curr_index |
MMSFBSurface * | selimage |
MMSIM_DESC_SUF * | selimage_suf |
unsigned int | selimage_curr_index |
MMSFBSurface * | image_p |
MMSIM_DESC_SUF * | image_p_suf |
unsigned int | image_p_curr_index |
MMSFBSurface * | selimage_p |
MMSIM_DESC_SUF * | selimage_p_suf |
unsigned int | selimage_p_curr_index |
MMSFBSurface * | image_i |
MMSIM_DESC_SUF * | image_i_suf |
unsigned int | image_i_curr_index |
MMSFBSurface * | selimage_i |
MMSIM_DESC_SUF * | selimage_i_suf |
unsigned int | selimage_i_curr_index |
bool | image_loaded |
bool | image_p_loaded |
bool | image_i_loaded |
bool | selimage_loaded |
bool | selimage_p_loaded |
bool | selimage_i_loaded |
class MMSImageWidgetThread * | imageThread |
bool | current_fgset |
current foreground values set? | |
MMSFBSurface * | current_fgimage |
current foreground image | |
MMSFBSurface * | current_fgimage2 |
current foreground image2 | |
Friends | |
class | MMSImageWidgetThread |
All widgets derived from the base widget class can display pictures at its background. This image class additionally can display pictures over the background. As special feature the image class can play animations. Currently the GIF format will be supported. The image widget cannot be focused.
Definition at line 46 of file mmsimagewidget.h.
Definition at line 40 of file mmsimagewidget.cpp.
MMSImageWidget::~MMSImageWidget | ( | ) | [virtual] |
Definition at line 44 of file mmsimagewidget.cpp.
Definition at line 56 of file mmsimagewidget.cpp.
bool MMSImageWidget::init | ( | ) | [private, virtual] |
bool MMSImageWidget::release | ( | ) | [private, virtual] |
void MMSImageWidget::getForeground | ( | MMSFBSurface ** | image, | |
MMSFBSurface ** | image2 | |||
) | [private] |
Definition at line 418 of file mmsimagewidget.cpp.
bool MMSImageWidget::enableRefresh | ( | bool | enable = true |
) | [private, virtual] |
Internal method: (re-)enable refresh status.
Reimplemented from MMSWidget.
Definition at line 459 of file mmsimagewidget.cpp.
bool MMSImageWidget::checkRefreshStatus | ( | ) | [private, virtual] |
Internal method: check drawn background against new background and (re-)enable refresh status if needed.
Reimplemented from MMSWidget.
Definition at line 468 of file mmsimagewidget.cpp.
bool MMSImageWidget::draw | ( | bool * | backgroundFilled = NULL |
) | [private, virtual] |
void MMSImageWidget::loadMyImage | ( | string | path, | |
string | filename, | |||
MMSFBSurface ** | surface, | |||
MMSIM_DESC_SUF ** | surfdesc, | |||
unsigned int * | index, | |||
unsigned int | mirror_size, | |||
bool | gen_taff | |||
) | [private] |
Definition at line 115 of file mmsimagewidget.cpp.
void MMSImageWidget::workWithRatio | ( | MMSFBSurface * | suf, | |
MMSFBRectangle * | surfaceGeom | |||
) | [private] |
Definition at line 310 of file mmsimagewidget.cpp.
MMSWidget * MMSImageWidget::copyWidget | ( | ) | [virtual] |
void MMSImageWidget::setVisible | ( | bool | visible, | |
bool | refresh = true | |||
) | [virtual] |
string MMSImageWidget::getImagePath | ( | ) |
Definition at line 687 of file mmsimagewidget.cpp.
string MMSImageWidget::getImageName | ( | ) |
Definition at line 691 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImagePath | ( | ) |
Definition at line 695 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImageName | ( | ) |
Definition at line 699 of file mmsimagewidget.cpp.
string MMSImageWidget::getImagePath_p | ( | ) |
Definition at line 703 of file mmsimagewidget.cpp.
string MMSImageWidget::getImageName_p | ( | ) |
Definition at line 707 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImagePath_p | ( | ) |
Definition at line 711 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImageName_p | ( | ) |
Definition at line 715 of file mmsimagewidget.cpp.
string MMSImageWidget::getImagePath_i | ( | ) |
Definition at line 719 of file mmsimagewidget.cpp.
string MMSImageWidget::getImageName_i | ( | ) |
Definition at line 723 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImagePath_i | ( | ) |
Definition at line 727 of file mmsimagewidget.cpp.
string MMSImageWidget::getSelImageName_i | ( | ) |
Definition at line 731 of file mmsimagewidget.cpp.
bool MMSImageWidget::getUseRatio | ( | ) |
Definition at line 735 of file mmsimagewidget.cpp.
bool MMSImageWidget::getFitWidth | ( | ) |
Definition at line 739 of file mmsimagewidget.cpp.
bool MMSImageWidget::getFitHeight | ( | ) |
Definition at line 743 of file mmsimagewidget.cpp.
MMSALIGNMENT MMSImageWidget::getAlignment | ( | ) |
Definition at line 747 of file mmsimagewidget.cpp.
unsigned int MMSImageWidget::getMirrorSize | ( | ) |
Definition at line 751 of file mmsimagewidget.cpp.
bool MMSImageWidget::getGenTaff | ( | ) |
Definition at line 755 of file mmsimagewidget.cpp.
void MMSImageWidget::setImagePath | ( | string | imagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 764 of file mmsimagewidget.cpp.
void MMSImageWidget::setImageName | ( | string | imagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 787 of file mmsimagewidget.cpp.
void MMSImageWidget::setImage | ( | string | imagepath, | |
string | imagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 810 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImagePath | ( | string | selimagepath, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 833 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImageName | ( | string | selimagename, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 856 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImage | ( | string | selimagepath, | |
string | selimagename, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 879 of file mmsimagewidget.cpp.
void MMSImageWidget::setImagePath_p | ( | string | imagepath_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 904 of file mmsimagewidget.cpp.
void MMSImageWidget::setImageName_p | ( | string | imagename_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 927 of file mmsimagewidget.cpp.
void MMSImageWidget::setImage_p | ( | string | imagepath_p, | |
string | imagename_p, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 950 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImagePath_p | ( | string | selimagepath_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 973 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImageName_p | ( | string | selimagename_p, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 996 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImage_p | ( | string | selimagepath_p, | |
string | selimagename_p, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1019 of file mmsimagewidget.cpp.
void MMSImageWidget::setImagePath_i | ( | string | imagepath_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1044 of file mmsimagewidget.cpp.
void MMSImageWidget::setImageName_i | ( | string | imagename_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1067 of file mmsimagewidget.cpp.
void MMSImageWidget::setImage_i | ( | string | imagepath_i, | |
string | imagename_i, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1090 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImagePath_i | ( | string | selimagepath_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1113 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImageName_i | ( | string | selimagename_i, | |
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1136 of file mmsimagewidget.cpp.
void MMSImageWidget::setSelImage_i | ( | string | selimagepath_i, | |
string | selimagename_i, | |||
bool | load = true , |
|||
bool | refresh = true | |||
) |
Definition at line 1159 of file mmsimagewidget.cpp.
void MMSImageWidget::setUseRatio | ( | bool | useratio, | |
bool | refresh = true | |||
) |
Definition at line 1182 of file mmsimagewidget.cpp.
void MMSImageWidget::setFitWidth | ( | bool | fitwidth, | |
bool | refresh = true | |||
) |
Definition at line 1191 of file mmsimagewidget.cpp.
void MMSImageWidget::setFitHeight | ( | bool | fitheight, | |
bool | refresh = true | |||
) |
Definition at line 1200 of file mmsimagewidget.cpp.
void MMSImageWidget::setAlignment | ( | MMSALIGNMENT | alignment, | |
bool | refresh = true | |||
) |
Definition at line 1209 of file mmsimagewidget.cpp.
void MMSImageWidget::setMirrorSize | ( | unsigned int | mirrorsize, | |
bool | refresh = true | |||
) |
Definition at line 1218 of file mmsimagewidget.cpp.
void MMSImageWidget::setGenTaff | ( | bool | gentaff, | |
bool | refresh = true | |||
) |
Definition at line 1227 of file mmsimagewidget.cpp.
void MMSImageWidget::updateFromThemeClass | ( | MMSImageWidgetClass * | themeClass | ) |
Definition at line 1236 of file mmsimagewidget.cpp.
friend class MMSImageWidgetThread [friend] |
Definition at line 172 of file mmsimagewidget.h.
string MMSImageWidget::className [private] |
Definition at line 48 of file mmsimagewidget.h.
Definition at line 49 of file mmsimagewidget.h.
Definition at line 50 of file mmsimagewidget.h.
bool MMSImageWidget::imagepath_set [private] |
Definition at line 52 of file mmsimagewidget.h.
bool MMSImageWidget::selimagepath_set [private] |
Definition at line 53 of file mmsimagewidget.h.
bool MMSImageWidget::imagepath_p_set [private] |
Definition at line 55 of file mmsimagewidget.h.
bool MMSImageWidget::selimagepath_p_set [private] |
Definition at line 56 of file mmsimagewidget.h.
bool MMSImageWidget::imagepath_i_set [private] |
Definition at line 58 of file mmsimagewidget.h.
bool MMSImageWidget::selimagepath_i_set [private] |
Definition at line 59 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::image [private] |
Definition at line 61 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::image_suf [private] |
Definition at line 62 of file mmsimagewidget.h.
unsigned int MMSImageWidget::image_curr_index [private] |
Definition at line 63 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::selimage [private] |
Definition at line 64 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::selimage_suf [private] |
Definition at line 65 of file mmsimagewidget.h.
unsigned int MMSImageWidget::selimage_curr_index [private] |
Definition at line 66 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::image_p [private] |
Definition at line 68 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::image_p_suf [private] |
Definition at line 69 of file mmsimagewidget.h.
unsigned int MMSImageWidget::image_p_curr_index [private] |
Definition at line 70 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::selimage_p [private] |
Definition at line 71 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::selimage_p_suf [private] |
Definition at line 72 of file mmsimagewidget.h.
unsigned int MMSImageWidget::selimage_p_curr_index [private] |
Definition at line 73 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::image_i [private] |
Definition at line 75 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::image_i_suf [private] |
Definition at line 76 of file mmsimagewidget.h.
unsigned int MMSImageWidget::image_i_curr_index [private] |
Definition at line 77 of file mmsimagewidget.h.
MMSFBSurface* MMSImageWidget::selimage_i [private] |
Definition at line 78 of file mmsimagewidget.h.
MMSIM_DESC_SUF* MMSImageWidget::selimage_i_suf [private] |
Definition at line 79 of file mmsimagewidget.h.
unsigned int MMSImageWidget::selimage_i_curr_index [private] |
Definition at line 80 of file mmsimagewidget.h.
bool MMSImageWidget::image_loaded [private] |
Definition at line 82 of file mmsimagewidget.h.
bool MMSImageWidget::image_p_loaded [private] |
Definition at line 83 of file mmsimagewidget.h.
bool MMSImageWidget::image_i_loaded [private] |
Definition at line 84 of file mmsimagewidget.h.
bool MMSImageWidget::selimage_loaded [private] |
Definition at line 85 of file mmsimagewidget.h.
bool MMSImageWidget::selimage_p_loaded [private] |
Definition at line 86 of file mmsimagewidget.h.
bool MMSImageWidget::selimage_i_loaded [private] |
Definition at line 87 of file mmsimagewidget.h.
class MMSImageWidgetThread* MMSImageWidget::imageThread [private] |
Definition at line 89 of file mmsimagewidget.h.
bool MMSImageWidget::current_fgset [private] |
MMSFBSurface* MMSImageWidget::current_fgimage [private] |
MMSFBSurface* MMSImageWidget::current_fgimage2 [private] |