ALBA
|
#include <albaPics.h>
Public Member Functions | |
albaPictureFactory () | |
~albaPictureFactory () | |
void | Initialize () |
void | Add (wxString id, char **xpm) |
wxBitmap | GetBmp (wxString id) |
wxImage | GetImg (wxString id) |
wxIcon | GetIcon (wxString id) |
void | GetPicIds (std::vector< wxString > &v) |
void | AddVmePic (wxString id, char **xpm) |
wxBitmap | GetVmePic (wxString id) |
void | GetVmeNames (std::vector< wxString > &v) |
Static Public Member Functions | |
static albaPictureFactory * | GetPictureFactory () |
static bool | GetPicsInitialized () |
Protected Attributes | |
albaPictureFactory_Pimpl * | m_PictureMaps |
This class is normally instantiated as the "albaPics" singleton.
icons available by default:
-FILE_NEW,FILE_OPEN,FILE_SAVE : standard file operation -OP_COPY,OP_CUT,OP_PASTE,OP_REDO,OP_UNDO : standard edit operation -TIME_END,TIME_NEXT,TIME_PLAY,TIME_PREV,TIME_STOP : time navigation -FLYTO,ZOOM,ZOOM_ALL,-ZOOM_SEL : standard camera movement
all of the above are normally used in the program toolbar
-PIC_BACK,PIC_BOTTOM,PIC_FRONT,PIC_LEFT,PIC_RIGHT,PIC_TOP,TIME_BEGIN : set of camera orientations
-APP_ICON16x16,APP_ICON32x32 : these two picture are combined in one wxIconBundle and assigned to the MDIFrameWindow (the small is visible in the frame and in the taskbar, the big is visible when pressing CTRL-TAB to switch among applications). Note: it is not possible to set in this way the Application Icon. The application icon must be inserted in the resource file - see app.rc and app.ico
-MDICHILD_ICON : icon assigned to all MDIChild Windows
-CLOSE_SASH : used by albaNamedPanel
-NODE_YELLOW,NODE_GRAY,NODE_RED,NODE_BLUE : used by ListCtrl
NOTE:
Definition at line 66 of file albaPics.h.
albaPictureFactory::albaPictureFactory | ( | ) |
initialize the factory with the standard icons
albaPictureFactory::~albaPictureFactory | ( | ) |
void albaPictureFactory::Initialize | ( | ) |
void albaPictureFactory::Add | ( | wxString | id, |
char ** | xpm | ||
) |
add a picture to the factory – if id already exist it is overwritten
wxBitmap albaPictureFactory::GetBmp | ( | wxString | id | ) |
retrieve a picture from the Factory as a wxBitmap
wxImage albaPictureFactory::GetImg | ( | wxString | id | ) |
retrieve a picture from the Factory as a wxImage
wxIcon albaPictureFactory::GetIcon | ( | wxString | id | ) |
retrieve a picture from the Factory as a wxIcon
void albaPictureFactory::GetPicIds | ( | std::vector< wxString > & | v | ) |
Fills the given vectors with the available Pic Id's.
void albaPictureFactory::AddVmePic | ( | wxString | id, |
char ** | xpm | ||
) |
add a vme-picture to the factory.
id should be the ClassName. if id already exist it is overwritten.
wxBitmap albaPictureFactory::GetVmePic | ( | wxString | id | ) |
retrieve a vme-picture from the Factory as a wxBitmap.
void albaPictureFactory::GetVmeNames | ( | std::vector< wxString > & | v | ) |
retrieve the names of the registered vme-pics
|
static |
|
static |
|
protected |
Definition at line 112 of file albaPics.h.