]> git.saurik.com Git - wxWidgets.git/commitdiff
Add go to first/last and plus/minus art provider icons.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 17:39:01 +0000 (17:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 17:39:01 +0000 (17:39 +0000)
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

art/first.xpm [new file with mode: 0644]
art/last.xpm [new file with mode: 0644]
art/minus.xpm [new file with mode: 0644]
art/plus.xpm [new file with mode: 0644]
include/wx/artprov.h
interface/wx/artprov.h
samples/artprov/artbrows.cpp
src/common/artstd.cpp
src/gtk/artgtk.cpp

diff --git a/art/first.xpm b/art/first.xpm
new file mode 100644 (file)
index 0000000..6660af4
--- /dev/null
@@ -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.        ",
+"...   ..        ",
+"...    .        ",
+"                ",
+"                "};
diff --git a/art/last.xpm b/art/last.xpm
new file mode 100644 (file)
index 0000000..66c3bd3
--- /dev/null
@@ -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.  ...",
+"        ..   ...",
+"        .    ...",
+"                ",
+"                "};
diff --git a/art/minus.xpm b/art/minus.xpm
new file mode 100644 (file)
index 0000000..d8cc34f
--- /dev/null
@@ -0,0 +1,22 @@
+/* XPM */
+static const char *const minus_xpm[] = {
+"16 16 3 1",
+"      c None",
+".     c Black",
+"X     c Gray100",
+"                ",
+"                ",
+"                ",
+"                ",
+"                ",
+"                ",
+" .............. ",
+" .XXXXXXXXXXXX. ",
+" .XXXXXXXXXXXX. ",
+" .............. ",
+"                ",
+"                ",
+"                ",
+"                ",
+"                ",
+"                "};
diff --git a/art/plus.xpm b/art/plus.xpm
new file mode 100644 (file)
index 0000000..25d299b
--- /dev/null
@@ -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.      ",
+"      ....      ",
+"                ",
+"                "};
index 2867b76ade1ea2ab56fc974c9df54832fbec8853..326fbf06cc0b5d5a6cfac5c1f59b98969f76a5a7 100644 (file)
@@ -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)
 
index a9f7c2b21b4e983bb02c7903825aa56bbb3b2232..0fa1b7039710b310a1feed678305e5162fbc2f5d 100644 (file)
@@ -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
index b528dbd45fd4338134e913678fda38808af6e365..596522bfdac88261fca7833536b76a384be411fa 100644 (file)
@@ -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)
index 716189ecfb4a7cab5db3d4733cd44485b7ba3144..c12a849c9df9bddf423ab7b5548ccafb298dd905 100644 (file)
@@ -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)
index d31eb8cd5f2a9e7d380fd3ce3c2262256d396fee..2b561c7723a36addc4be3b30b9d5c77822668ea3 100644 (file)
@@ -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)