Add go to first/last and plus/minus art provider icons.
These icons will be used in the upcoming new implementation of the print preview frame and as they are also natively supported by GTK+ it makes sense to have support for them in wx itself. Notice that the existing bookmark add/remove icons are already mapped to the icons which look like plus and minus signs respectively in wxGTK but we need plus/minus in print preview in the other ports too so add these icons under explicit names. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
19be42b760
commit
a7cfad3ad6
22
art/first.xpm
Normal file
22
art/first.xpm
Normal file
@ -0,0 +1,22 @@
|
||||
/* XPM */
|
||||
static const char *const first_xpm[] = {
|
||||
"16 16 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
"... . ",
|
||||
"... .. ",
|
||||
"... .X. ",
|
||||
"... .XX........ ",
|
||||
"....XXXXXXXXXX. ",
|
||||
"...XXXXXXXXXXX. ",
|
||||
"...XXXXXXXXXXX. ",
|
||||
"....XXXXXXXXXX. ",
|
||||
"... .XX........ ",
|
||||
"... .X. ",
|
||||
"... .. ",
|
||||
"... . ",
|
||||
" ",
|
||||
" "};
|
22
art/last.xpm
Normal file
22
art/last.xpm
Normal file
@ -0,0 +1,22 @@
|
||||
/* XPM */
|
||||
static const char *const last_xpm[] = {
|
||||
"16 16 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
" . ...",
|
||||
" .. ...",
|
||||
" .X. ...",
|
||||
" ........XX. ...",
|
||||
" .XXXXXXXXXX....",
|
||||
" .XXXXXXXXXXX...",
|
||||
" .XXXXXXXXXXX...",
|
||||
" .XXXXXXXXXX....",
|
||||
" ........XX. ...",
|
||||
" .X. ...",
|
||||
" .. ...",
|
||||
" . ...",
|
||||
" ",
|
||||
" "};
|
22
art/minus.xpm
Normal file
22
art/minus.xpm
Normal file
@ -0,0 +1,22 @@
|
||||
/* XPM */
|
||||
static const char *const minus_xpm[] = {
|
||||
"16 16 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" .............. ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" .............. ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
22
art/plus.xpm
Normal file
22
art/plus.xpm
Normal file
@ -0,0 +1,22 @@
|
||||
/* XPM */
|
||||
static const char *const plus_xpm[] = {
|
||||
"16 16 3 1",
|
||||
" c None",
|
||||
". c Black",
|
||||
"X c Gray100",
|
||||
" ",
|
||||
" ",
|
||||
" .... ",
|
||||
" .XX. ",
|
||||
" .XX. ",
|
||||
" .XX. ",
|
||||
" ......XX...... ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" .XXXXXXXXXXXX. ",
|
||||
" ......XX...... ",
|
||||
" .XX. ",
|
||||
" .XX. ",
|
||||
" .XX. ",
|
||||
" .... ",
|
||||
" ",
|
||||
" "};
|
@ -66,6 +66,8 @@ typedef wxString wxArtID;
|
||||
#define wxART_GO_DOWN wxART_MAKE_ART_ID(wxART_GO_DOWN)
|
||||
#define wxART_GO_TO_PARENT wxART_MAKE_ART_ID(wxART_GO_TO_PARENT)
|
||||
#define wxART_GO_HOME wxART_MAKE_ART_ID(wxART_GO_HOME)
|
||||
#define wxART_GOTO_FIRST wxART_MAKE_ART_ID(wxART_GOTO_FIRST)
|
||||
#define wxART_GOTO_LAST wxART_MAKE_ART_ID(wxART_GOTO_LAST)
|
||||
#define wxART_FILE_OPEN wxART_MAKE_ART_ID(wxART_FILE_OPEN)
|
||||
#define wxART_FILE_SAVE wxART_MAKE_ART_ID(wxART_FILE_SAVE)
|
||||
#define wxART_FILE_SAVE_AS wxART_MAKE_ART_ID(wxART_FILE_SAVE_AS)
|
||||
@ -101,6 +103,9 @@ typedef wxString wxArtID;
|
||||
#define wxART_UNDO wxART_MAKE_ART_ID(wxART_UNDO)
|
||||
#define wxART_REDO wxART_MAKE_ART_ID(wxART_REDO)
|
||||
|
||||
#define wxART_PLUS wxART_MAKE_ART_ID(wxART_PLUS)
|
||||
#define wxART_MINUS wxART_MAKE_ART_ID(wxART_MINUS)
|
||||
|
||||
#define wxART_CLOSE wxART_MAKE_ART_ID(wxART_CLOSE)
|
||||
#define wxART_QUIT wxART_MAKE_ART_ID(wxART_QUIT)
|
||||
|
||||
|
@ -79,10 +79,12 @@ typedef class wxString wxArtID;
|
||||
@li wxART_GO_BACK
|
||||
@li wxART_GO_FORWARD
|
||||
@li wxART_GO_UP
|
||||
</td><td>
|
||||
@li wxART_GO_DOWN
|
||||
@li wxART_GO_TO_PARENT
|
||||
@li wxART_GO_HOME
|
||||
@li wxART_GOTO_FIRST (since 2.9.2)
|
||||
</td><td>
|
||||
@li wxART_GOTO_LAST (since 2.9.2)
|
||||
@li wxART_PRINT
|
||||
@li wxART_HELP
|
||||
@li wxART_TIP
|
||||
@ -96,11 +98,11 @@ typedef class wxString wxArtID;
|
||||
@li wxART_NORMAL_FILE
|
||||
@li wxART_TICK_MARK
|
||||
@li wxART_CROSS_MARK
|
||||
</td><td>
|
||||
@li wxART_MISSING_IMAGE
|
||||
@li wxART_NEW
|
||||
@li wxART_FILE_OPEN
|
||||
@li wxART_FILE_SAVE
|
||||
</td><td>
|
||||
@li wxART_FILE_SAVE_AS
|
||||
@li wxART_DELETE
|
||||
@li wxART_COPY
|
||||
@ -108,6 +110,8 @@ typedef class wxString wxArtID;
|
||||
@li wxART_PASTE
|
||||
@li wxART_UNDO
|
||||
@li wxART_REDO
|
||||
@li wxART_PLUS (since 2.9.2)
|
||||
@li wxART_MINUS (since 2.9.2)
|
||||
@li wxART_CLOSE
|
||||
@li wxART_QUIT
|
||||
@li wxART_FIND
|
||||
|
@ -80,6 +80,8 @@ static void FillBitmaps(wxImageList *images, wxListCtrl *list,
|
||||
ART_ICON(wxART_GO_DOWN)
|
||||
ART_ICON(wxART_GO_TO_PARENT)
|
||||
ART_ICON(wxART_GO_HOME)
|
||||
ART_ICON(wxART_GOTO_FIRST)
|
||||
ART_ICON(wxART_GOTO_LAST)
|
||||
ART_ICON(wxART_PRINT)
|
||||
ART_ICON(wxART_HELP)
|
||||
ART_ICON(wxART_TIP)
|
||||
@ -104,6 +106,8 @@ static void FillBitmaps(wxImageList *images, wxListCtrl *list,
|
||||
ART_ICON(wxART_PASTE)
|
||||
ART_ICON(wxART_UNDO)
|
||||
ART_ICON(wxART_REDO)
|
||||
ART_ICON(wxART_PLUS)
|
||||
ART_ICON(wxART_MINUS)
|
||||
ART_ICON(wxART_QUIT)
|
||||
ART_ICON(wxART_FIND)
|
||||
ART_ICON(wxART_FIND_AND_REPLACE)
|
||||
|
@ -93,6 +93,8 @@ protected:
|
||||
#include "../../art/helpicon.xpm"
|
||||
#include "../../art/tipicon.xpm"
|
||||
#include "../../art/home.xpm"
|
||||
#include "../../art/first.xpm"
|
||||
#include "../../art/last.xpm"
|
||||
#include "../../art/repview.xpm"
|
||||
#include "../../art/listview.xpm"
|
||||
#include "../../art/new_dir.xpm"
|
||||
@ -117,6 +119,8 @@ protected:
|
||||
#include "../../art/new.xpm"
|
||||
#include "../../art/undo.xpm"
|
||||
#include "../../art/redo.xpm"
|
||||
#include "../../art/plus.xpm"
|
||||
#include "../../art/minus.xpm"
|
||||
#include "../../art/close.xpm"
|
||||
#include "../../art/quit.xpm"
|
||||
#include "../../art/find.xpm"
|
||||
@ -149,6 +153,8 @@ wxBitmap wxDefaultArtProvider_CreateBitmap(const wxArtID& id)
|
||||
ART(wxART_GO_DOWN, down)
|
||||
ART(wxART_GO_TO_PARENT, toparent)
|
||||
ART(wxART_GO_HOME, home)
|
||||
ART(wxART_GOTO_FIRST, first)
|
||||
ART(wxART_GOTO_LAST, last)
|
||||
ART(wxART_FILE_OPEN, fileopen)
|
||||
ART(wxART_PRINT, print)
|
||||
ART(wxART_HELP, helpicon)
|
||||
@ -176,6 +182,8 @@ wxBitmap wxDefaultArtProvider_CreateBitmap(const wxArtID& id)
|
||||
ART(wxART_DELETE, delete)
|
||||
ART(wxART_UNDO, undo)
|
||||
ART(wxART_REDO, redo)
|
||||
ART(wxART_PLUS, plus)
|
||||
ART(wxART_MINUS, minus)
|
||||
ART(wxART_CLOSE, close)
|
||||
ART(wxART_QUIT, quit)
|
||||
ART(wxART_FIND, find)
|
||||
|
@ -81,6 +81,8 @@ wxString wxArtIDToStock(const wxArtID& id)
|
||||
ART(wxART_GO_DOWN, GTK_STOCK_GO_DOWN)
|
||||
ART(wxART_GO_TO_PARENT, GTK_STOCK_GO_UP)
|
||||
ART(wxART_GO_HOME, GTK_STOCK_HOME)
|
||||
ART(wxART_GOTO_FIRST, GTK_STOCK_GOTO_FIRST)
|
||||
ART(wxART_GOTO_LAST, GTK_STOCK_GOTO_LAST)
|
||||
ART(wxART_FILE_OPEN, GTK_STOCK_OPEN)
|
||||
ART(wxART_PRINT, GTK_STOCK_PRINT)
|
||||
ART(wxART_HELP, GTK_STOCK_HELP)
|
||||
@ -113,6 +115,9 @@ wxString wxArtIDToStock(const wxArtID& id)
|
||||
ART(wxART_UNDO, GTK_STOCK_UNDO)
|
||||
ART(wxART_REDO, GTK_STOCK_REDO)
|
||||
|
||||
ART(wxART_PLUS, GTK_STOCK_ADD)
|
||||
ART(wxART_MINUS, GTK_STOCK_REMOVE)
|
||||
|
||||
ART(wxART_CLOSE, GTK_STOCK_CLOSE)
|
||||
ART(wxART_QUIT, GTK_STOCK_QUIT)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user