Added wxART_CLOSE art id.

This id corresponds to the close button bitmap. Currently only wxGTK returns a
natively-looking button from here, MSW and OS X versions will be added later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-10-05 22:55:53 +00:00
parent 39f6b6ba78
commit b9727751aa
5 changed files with 21 additions and 0 deletions

16
art/close.xpm Normal file
View File

@ -0,0 +1,16 @@
/* XPM */
static const char * const close_xpm[] = {
"12 10 2 1",
" c None",
"X c black",
" ",
" XX XX ",
" XX XX ",
" XXXX ",
" XX ",
" XXXX ",
" XX XX ",
" XX XX ",
" ",
" "};

View File

@ -101,6 +101,7 @@ typedef wxString wxArtID;
#define wxART_UNDO wxART_MAKE_ART_ID(wxART_UNDO)
#define wxART_REDO wxART_MAKE_ART_ID(wxART_REDO)
#define wxART_CLOSE wxART_MAKE_ART_ID(wxART_CLOSE)
#define wxART_QUIT wxART_MAKE_ART_ID(wxART_QUIT)
#define wxART_FIND wxART_MAKE_ART_ID(wxART_FIND)

View File

@ -108,6 +108,7 @@ typedef wxString wxArtID;
@li wxART_PASTE
@li wxART_UNDO
@li wxART_REDO
@li wxART_CLOSE
@li wxART_QUIT
@li wxART_FIND
@li wxART_FIND_AND_REPLACE

View File

@ -117,6 +117,7 @@ protected:
#include "../../art/new.xpm"
#include "../../art/undo.xpm"
#include "../../art/redo.xpm"
#include "../../art/close.xpm"
#include "../../art/quit.xpm"
#include "../../art/find.xpm"
#include "../../art/findrepl.xpm"
@ -175,6 +176,7 @@ wxBitmap wxDefaultArtProvider_CreateBitmap(const wxArtID& id)
ART(wxART_DELETE, delete)
ART(wxART_UNDO, undo)
ART(wxART_REDO, redo)
ART(wxART_CLOSE, close)
ART(wxART_QUIT, quit)
ART(wxART_FIND, find)
ART(wxART_FIND_AND_REPLACE, findrepl)

View File

@ -113,6 +113,7 @@ wxString wxArtIDToStock(const wxArtID& id)
ART(wxART_UNDO, GTK_STOCK_UNDO)
ART(wxART_REDO, GTK_STOCK_REDO)
ART(wxART_CLOSE, GTK_STOCK_CLOSE)
ART(wxART_QUIT, GTK_STOCK_QUIT)
ART(wxART_FIND, GTK_STOCK_FIND)