FactDev  0.1
Gui::Widgets::BrowseImageWidget Class Reference

The BrowseImageWidget class Widget to add a new BrowseImageWidget. More...

#include <browseimagewidget.h>

Inheritance diagram for Gui::Widgets::BrowseImageWidget:

Public Slots

void browseImagePath ()
 BrowseImageWidget::browseImagePath() Open a new window to define the workspace path of the user.
 

Public Member Functions

 BrowseImageWidget (QWidget *parent=0)
 BrowseImageWidget::BrowseImageWidget Cosntruct a BrowseImageWidget. More...
 
void setImageScaled (QString path, int width=128, int height=128)
 BrowseImageWidget::getImageScaled Modify the current image to a scaled image from the icon specified by it path. The image has a resolution of width*height (default 128*128) More...
 
QPixmap * getImage ()
 BrowseImageWidget::getIcon Return the icon selected. More...
 
void setImage (QPixmap *img)
 BrowseImageWidget::setImgage Change the current image by the new img More...
 
QString getExtension () const
 BrowseImageWidgetextension::getExtension Return extension of the image file. More...
 

Detailed Description

The BrowseImageWidget class Widget to add a new BrowseImageWidget.

Author
Florent Berbie

Constructor & Destructor Documentation

Gui::Widgets::BrowseImageWidget::BrowseImageWidget ( QWidget *  parent = 0)
explicit

BrowseImageWidget::BrowseImageWidget Cosntruct a BrowseImageWidget.

Parameters
parentQWidget parent

Member Function Documentation

QString Gui::Widgets::BrowseImageWidget::getExtension ( ) const

BrowseImageWidgetextension::getExtension Return extension of the image file.

Returns
Extension of image file
QPixmap * Gui::Widgets::BrowseImageWidget::getImage ( )

BrowseImageWidget::getIcon Return the icon selected.

Returns
image
void Gui::Widgets::BrowseImageWidget::setImage ( QPixmap *  img)

BrowseImageWidget::setImgage Change the current image by the new img

Parameters
imgNew image
void Gui::Widgets::BrowseImageWidget::setImageScaled ( QString  path,
int  width = 128,
int  height = 128 
)

BrowseImageWidget::getImageScaled Modify the current image to a scaled image from the icon specified by it path. The image has a resolution of width*height (default 128*128)

Parameters
pathIcon path
widthIcon width
heightIcon height

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