#include <BitmapResourceTool.h>
Inheritance diagram for BitmapResourceTool:
Public Slots | |
void | handleBitmapDirectoryChanged (const QString newBitmapDirectory) |
Signals | |
void | bitmapChanged (const QImage *newBitmapImage) |
Public Methods | |
RESOURCETOOL_API | BitmapResourceTool (const QString bitmapDirectory, const BitmapUserData::BitmapProperties bitmapProperties) |
virtual RESOURCETOOL_API | ~BitmapResourceTool () |
RESOURCETOOL_API QString | getBitmapDirectory () const |
RESOURCETOOL_API void | setBitmapProperties (const BitmapUserData::BitmapProperties newBitmapProperties) |
RESOURCETOOL_API BitmapUserData::BitmapProperties | getBitmapProperties () const |
RESOURCETOOL_API uint | getNofBitmaps () const |
RESOURCETOOL_API void | setBitmapSelected (uint id) |
RESOURCETOOL_API const QImage * | getSelectedBitmap () const |
RESOURCETOOL_API uint | getSelectedBitmapID () const |
RESOURCETOOL_API QToolButton * | addButtonToToolBar (QToolBar *toolBar) |
RESOURCETOOL_API void | addMenuToPushButton (QPushButton *pushButton) |
Static Public Attributes | |
const uint | NO_BITMAPS |
Private Slots | |
void | handleBitmapSelected (int id) |
Private Methods | |
void | updateBitmaps () |
Private Attributes | |
QToolButton * | bitmapButton |
QString | bitmapDirectory |
BitmapUserData::BitmapProperties | bitmapProperties |
const QImage * | currentBitmap |
uint | currentBitmapID |
QVector< QImage > | registry |
QPopupMenu | popupMenu |
BMP
, PNG
or JPG
.
|
Creates this
|
|
|
|
Creates a tool button and adds it to the
Implements ResourceToolInterface. |
|
If this
Implements ResourceToolInterface. |
|
Emitted whenever a new bitmap has been selected. The
|
|
Returns the bitmap directory of the available bitmaps.
|
|
Returns the
|
|
Returns the number of bitmaps this
|
|
Returns the currently selected bitmap. The returned
|
|
Returns the currently selected bitmap ID. A valid ID is in 0 <= ID < n, where n is the number of bitmaps this
|
|
Sets the Signals:
|
|
|
|
Specifies the new Signals:
|
|
Makes the bitmap with ID Signals:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|