libyui-qt  2.43.5
YQImage Class Reference

List of all members.

Public Member Functions

 YQImage (YWidget *parent, const std::string &imageFileName, bool animated=false)
virtual ~YQImage ()
virtual void setImage (const std::string &imageFileName, bool animated=false)
virtual void setAutoScale (bool autoScale=true)
virtual void setEnabled (bool enabled)
virtual int preferredWidth ()
virtual int preferredHeight ()
virtual void setSize (int newWidth, int newHeight)

Protected Attributes

int _pixmapWidth
int _pixmapHeight

Detailed Description

Definition at line 36 of file YQImage.h.


Constructor & Destructor Documentation

YQImage::YQImage ( YWidget *  parent,
const std::string &  imageFileName,
bool  animated = false 
)

Constructor.

'animated' indicates if 'imageFileName' is an animated image format (e.g., MNG).

Definition at line 39 of file YQImage.cc.

Here is the call graph for this function:

YQImage::~YQImage ( ) [virtual]

Destructor.

Definition at line 56 of file YQImage.cc.


Member Function Documentation

int YQImage::preferredHeight ( ) [virtual]

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 144 of file YQImage.cc.

int YQImage::preferredWidth ( ) [virtual]

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 122 of file YQImage.cc.

void YQImage::setAutoScale ( bool  autoScale = true) [virtual]

Make the image fit into the available space.

Reimplemented from YImage.

Definition at line 109 of file YQImage.cc.

Here is the call graph for this function:

void YQImage::setEnabled ( bool  enabled) [virtual]

if false, the image will be displayed in gray

Definition at line 171 of file YQImage.cc.

Here is the call graph for this function:

void YQImage::setImage ( const std::string &  imageFileName,
bool  animated = false 
) [virtual]

Set and display a new image.

Reimplemented from YImage.

Definition at line 63 of file YQImage.cc.

void YQImage::setSize ( int  newWidth,
int  newHeight 
) [virtual]

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 166 of file YQImage.cc.


The documentation for this class was generated from the following files:
 All Classes Functions Variables