MMSImageWidget Class Reference

With this class you can display pictures and animations. More...

#include <mmsimagewidget.h>

Inheritance diagram for MMSImageWidget:

List of all members.


Public Member Functions

 MMSImageWidget (MMSWindow *root, string className, MMSTheme *theme=NULL)
virtual ~MMSImageWidget ()
MMSWidgetcopyWidget ()
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
MMSImageWidgetClassimageWidgetClass
MMSImageWidgetClass myImageWidgetClass
bool imagepath_set
bool selimagepath_set
bool imagepath_p_set
bool selimagepath_p_set
bool imagepath_i_set
bool selimagepath_i_set
MMSFBSurfaceimage
MMSIM_DESC_SUFimage_suf
unsigned int image_curr_index
MMSFBSurfaceselimage
MMSIM_DESC_SUFselimage_suf
unsigned int selimage_curr_index
MMSFBSurfaceimage_p
MMSIM_DESC_SUFimage_p_suf
unsigned int image_p_curr_index
MMSFBSurfaceselimage_p
MMSIM_DESC_SUFselimage_p_suf
unsigned int selimage_p_curr_index
MMSFBSurfaceimage_i
MMSIM_DESC_SUFimage_i_suf
unsigned int image_i_curr_index
MMSFBSurfaceselimage_i
MMSIM_DESC_SUFselimage_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 MMSImageWidgetThreadimageThread
bool current_fgset
 current foreground values set?
MMSFBSurfacecurrent_fgimage
 current foreground image
MMSFBSurfacecurrent_fgimage2
 current foreground image2

Friends

class MMSImageWidgetThread

Detailed Description

With this class you can display pictures and animations.

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.

Author:
Jens Schneider

Definition at line 46 of file mmsimagewidget.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file mmsimagewidget.cpp.

MMSImageWidget::~MMSImageWidget (  )  [virtual]

Definition at line 44 of file mmsimagewidget.cpp.


Member Function Documentation

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

Definition at line 56 of file mmsimagewidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 240 of file mmsimagewidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 282 of file mmsimagewidget.cpp.

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]

Reimplemented from MMSWidget.

Definition at line 489 of file mmsimagewidget.cpp.

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]

Implements MMSWidget.

Definition at line 154 of file mmsimagewidget.cpp.

void MMSImageWidget::setVisible ( bool  visible,
bool  refresh = true 
) [virtual]

Reimplemented from MMSWidget.

Definition at line 602 of file mmsimagewidget.cpp.

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.


Friends And Related Function Documentation

friend class MMSImageWidgetThread [friend]

Definition at line 172 of file mmsimagewidget.h.


Member Data Documentation

string MMSImageWidget::className [private]

Definition at line 48 of file mmsimagewidget.h.

Definition at line 52 of file mmsimagewidget.h.

Definition at line 53 of file mmsimagewidget.h.

Definition at line 55 of file mmsimagewidget.h.

Definition at line 56 of file mmsimagewidget.h.

Definition at line 58 of file mmsimagewidget.h.

Definition at line 59 of file mmsimagewidget.h.

Definition at line 61 of file mmsimagewidget.h.

Definition at line 62 of file mmsimagewidget.h.

unsigned int MMSImageWidget::image_curr_index [private]

Definition at line 63 of file mmsimagewidget.h.

Definition at line 64 of file mmsimagewidget.h.

Definition at line 65 of file mmsimagewidget.h.

unsigned int MMSImageWidget::selimage_curr_index [private]

Definition at line 66 of file mmsimagewidget.h.

Definition at line 68 of file mmsimagewidget.h.

Definition at line 69 of file mmsimagewidget.h.

unsigned int MMSImageWidget::image_p_curr_index [private]

Definition at line 70 of file mmsimagewidget.h.

Definition at line 71 of file mmsimagewidget.h.

Definition at line 72 of file mmsimagewidget.h.

unsigned int MMSImageWidget::selimage_p_curr_index [private]

Definition at line 73 of file mmsimagewidget.h.

Definition at line 75 of file mmsimagewidget.h.

Definition at line 76 of file mmsimagewidget.h.

unsigned int MMSImageWidget::image_i_curr_index [private]

Definition at line 77 of file mmsimagewidget.h.

Definition at line 78 of file mmsimagewidget.h.

Definition at line 79 of file mmsimagewidget.h.

unsigned int MMSImageWidget::selimage_i_curr_index [private]

Definition at line 80 of file mmsimagewidget.h.

Definition at line 82 of file mmsimagewidget.h.

Definition at line 83 of file mmsimagewidget.h.

Definition at line 84 of file mmsimagewidget.h.

Definition at line 85 of file mmsimagewidget.h.

Definition at line 86 of file mmsimagewidget.h.

Definition at line 87 of file mmsimagewidget.h.

Definition at line 89 of file mmsimagewidget.h.

current foreground values set?

Definition at line 92 of file mmsimagewidget.h.

current foreground image

Definition at line 95 of file mmsimagewidget.h.

current foreground image2

Definition at line 98 of file mmsimagewidget.h.


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