Ejemplo n.º 1
0
// CreateBitmap function
wxBitmap CMyArtProvider::CreateBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size)
{
	// Icons:
	if (id == wxART_MAKE_ART_ID(IMG_MRPT_LOGO)) return wxBitmap(mrpt_logo_xpm);
	if (id == wxART_MAKE_ART_ID(MAIN_ICON)) return wxBitmap(main_icon_xpm);

	// toolbar buttons:
	if (id == wxART_MAKE_ART_ID(ICON_RESET)) return wxBitmap(icon_reset_xpm);
	if (id == wxART_MAKE_ART_ID(ICON_LOG)) return wxBitmap(icon_log_xpm);

	if (id == wxART_MAKE_ART_ID(ICON_LOAD)) return wxBitmap(icon_load_xpm);
	if (id == wxART_MAKE_ART_ID(ICON_SAVE)) return wxBitmap(icon_save_xpm);

	if (id == wxART_MAKE_ART_ID(ICON_PLAY)) return wxBitmap(icon_step_xpm);
	if (id == wxART_MAKE_ART_ID(ICON_STOP)) return wxBitmap(icon_stop_xpm);

	if (id == wxART_MAKE_ART_ID(ICON_ABOUT)) return wxBitmap(icon_about_xpm);

	if (id == wxART_MAKE_ART_ID(ICON_QUIT)) return wxBitmap(icon_exit_xpm);



    // Any wxWidgets icons not implemented here
    // will be provided by the default art provider.
    return wxNullBitmap;
}
Ejemplo n.º 2
0
// CreateBitmap function
wxBitmap MyArtProvider::CreateBitmap(
	const wxArtID& id, const wxArtClient& client, const wxSize& size)
{
	RETURN_BITMAP(wxART_FOLDER, Folderdownloads_xpm);
	RETURN_BITMAP(wxART_FILE_SAVE_AS, file_save_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(ICON_MOTION), Sports_Car_2_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(ICON_ABOUT), Qmark_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(ICON_QUIT), ArrowLeft2_xpm);
	RETURN_BITMAP(wxART_COPY, Applications_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(ICON_RAWMAP), Exec_xpm);
	RETURN_BITMAP(wxART_TIP, icon_play_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(ICON_ICP), icon_icp_xpm);
	RETURN_BITMAP(
		wxART_MAKE_ART_ID(ICON_ANIMATE_SCANS), icon_animate_scans_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(MAIN_ICON), MAIN_ICON_xpm);
	RETURN_BITMAP(wxART_MAKE_ART_ID(IMG_MRPT_LOGO), mrpt_logo_xpm);

	// Any wxWidgets icons not implemented here
	// will be provided by the default art provider.
	return wxNullBitmap;
}