A simple implementation of the QImageBrowserBase, which takes the images from a provided
array of image paths (must be absolute paths). It has a method that you can use to load
all the images from a directory. By default it aassumes that the captions are saved in the same
directory in files with an additional ".txt" extension.
Methods summary
public
|
|
public
|
#
ImageCount( )
Return the total number of the images in this image browser
Return the total number of the images in this image browser
|
public
|
#
ImagePath( $intIdx )
Return the absolute path of the corresponding image.
Return the absolute path of the corresponding image.
Parameters
- $intIdx
- of the image (between 0 and ImageCount()-1)
|
public
|
#
ThumbnailImagePath( $intIdx )
Return the absolute path of the corresponding thumbnail image.
This could be the same as the image, and the browser will scale it to the size of the thumbnail.
Return the absolute path of the corresponding thumbnail image.
This could be the same as the image, and the browser will scale it to the size of the thumbnail.
Parameters
- $intIdx
- of the image (between 0 and ImageCount()-1)
|
protected
|
|
protected
|
#
loadCaption( $intIdx )
Return the corresponding image caption
Return the corresponding image caption
Parameters
- $intIdx
- of the image (between 0 and ImageCount()-1)
|
protected
|
#
saveCaption( $intIdx, $strCaption )
Parameters
- $intIdx
- of the image (between 0 and ImageCount()-1)
- $strCaption
- to save
|
public
mixed
|
#
__get( string $strName )
PHP __get magic method implementation
PHP __get magic method implementation
Parameters
- $strName
- Name of the property
Returns
mixed
Throws
Overrides
|
public
mixed
|
#
__set( string $strName, string $mixValue )
PHP __set magic method implementation
PHP __set magic method implementation
Parameters
- $strName
- Property Name
- $mixValue
- Property Value
Returns
mixed
Throws
Overrides
|