| 1 | #ifndef _GTKMM_STOCK_H |
| 2 | #define _GTKMM_STOCK_H |
| 3 | |
| 4 | #include <gtkmmconfig.h> |
| 5 | #ifndef GTKMM_DISABLE_DEPRECATED // This whole file is deprecated. |
| 6 | |
| 7 | /* Copyright (C) 2002 The gtkmm Development Team |
| 8 | * |
| 9 | * This library is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU Lesser General Public |
| 11 | * License as published by the Free Software Foundation; either |
| 12 | * version 2.1 of the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Lesser General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public |
| 20 | * License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 21 | */ |
| 22 | |
| 23 | #include <gtkmm/stockitem.h> |
| 24 | #include <gtkmm/stockid.h> |
| 25 | #include <gtkmm/iconset.h> |
| 26 | #include <gtkmm/image.h> |
| 27 | |
| 28 | /* Shadow DELETE macro (from winnt.h). |
| 29 | */ |
| 30 | #if defined(DELETE) && !defined(GTKMM_MACRO_SHADOW_DELETE) |
| 31 | enum { GTKMM_MACRO_DEFINITION_DELETE = DELETE }; |
| 32 | #undef DELETE |
| 33 | enum { DELETE = GTKMM_MACRO_DEFINITION_DELETE }; |
| 34 | #define DELETE DELETE |
| 35 | #define GTKMM_MACRO_SHADOW_DELETE 1 |
| 36 | #endif |
| 37 | |
| 38 | |
| 39 | namespace Gtk |
| 40 | { |
| 41 | |
| 42 | // Created like so: |
| 43 | // const BuiltinStockID DIALOG_INFO = { GTK_STOCK_DIALOG_INFO } |
| 44 | |
| 45 | /** See the list of pre-defined stock items, in the Stock namespace. |
| 46 | * @deprecated Use icon names or labels instead of StockItem, StockID and BuiltinStockID. |
| 47 | */ |
| 48 | struct BuiltinStockID |
| 49 | { |
| 50 | /** |
| 51 | * The text representation of the stock id, usually something like "gtk-about". |
| 52 | */ |
| 53 | const char* id; |
| 54 | }; |
| 55 | |
| 56 | namespace Stock |
| 57 | { |
| 58 | |
| 59 | extern GTKMM_API const Gtk::BuiltinStockID DIALOG_AUTHENTICATION; /*!< @image html gtk-dialog-authentication.png |
| 60 | * @deprecated Use named icon "dialog-password". */ |
| 61 | |
| 62 | extern GTKMM_API const Gtk::BuiltinStockID DIALOG_INFO; /*!< @image html gtk-dialog-info.png |
| 63 | * @deprecated Use named icon "dialog-information". */ |
| 64 | extern GTKMM_API const Gtk::BuiltinStockID DIALOG_WARNING; /*!< @image html gtk-dialog-warning.png |
| 65 | * @deprecated Use named icon "dialog-warning". */ |
| 66 | extern GTKMM_API const Gtk::BuiltinStockID DIALOG_ERROR; /*!< @image html gtk-dialog-error.png |
| 67 | * @deprecated Use named icon "dialog-error". */ |
| 68 | extern GTKMM_API const Gtk::BuiltinStockID DIALOG_QUESTION; /*!< @image html gtk-dialog-question.png |
| 69 | * @deprecated Use named icon "dialog-question". */ |
| 70 | |
| 71 | // These aren't real stock items, because they provide only an icon. |
| 72 | extern GTKMM_API const Gtk::BuiltinStockID DND; /*!< @image html gtk-dnd.png |
| 73 | * @deprecated No replacement available. */ |
| 74 | extern GTKMM_API const Gtk::BuiltinStockID DND_MULTIPLE; /*!< @image html gtk-dnd-multiple.png |
| 75 | * @deprecated No replacement available. */ |
| 76 | |
| 77 | extern GTKMM_API const Gtk::BuiltinStockID ABOUT; /*!< @image html gtk-about.png |
| 78 | * @deprecated Use named icon "help-about" or the label "_About". */ |
| 79 | extern GTKMM_API const Gtk::BuiltinStockID ADD; /*!< @image html gtk-add.png |
| 80 | * @deprecated Use named icon "list-add" or the label "_Add". */ |
| 81 | extern GTKMM_API const Gtk::BuiltinStockID APPLY; /*!< @image html gtk-apply.png |
| 82 | * @deprecated Do not use an icon. Use label "_Apply". */ |
| 83 | extern GTKMM_API const Gtk::BuiltinStockID BOLD; /*!< @image html gtk-bold.png |
| 84 | * @deprecated Use named icon "format-text-bold". */ |
| 85 | extern GTKMM_API const Gtk::BuiltinStockID CANCEL; /*!< @image html gtk-cancel.png |
| 86 | * @deprecated Do not use an icon. Use label "_Cancel". */ |
| 87 | extern GTKMM_API const Gtk::BuiltinStockID CAPS_LOCK_WARNING; /*!< @image html gtk-caps-lock-warning.png |
| 88 | * @deprecated Use named icon "dialog-warning-symbolic". */ |
| 89 | extern GTKMM_API const Gtk::BuiltinStockID CDROM; /*!< @image html gtk-cdrom.png |
| 90 | * @deprecated Use named icon "media-optical". */ |
| 91 | extern GTKMM_API const Gtk::BuiltinStockID CLEAR; /*!< @image html gtk-clear.png |
| 92 | * @deprecated Use named icon "edit-clear". */ |
| 93 | extern GTKMM_API const Gtk::BuiltinStockID CLOSE; /*!< @image html gtk-close.png |
| 94 | * @deprecated Use named icon "window-close" or the label "_Close". */ |
| 95 | extern GTKMM_API const Gtk::BuiltinStockID COLOR_PICKER; /*!< @image html gtk-color-picker.png |
| 96 | * @deprecated No replacement available. */ |
| 97 | extern GTKMM_API const Gtk::BuiltinStockID CONVERT; /*!< @image html gtk-convert.png |
| 98 | * @deprecated No replacement available. */ |
| 99 | extern GTKMM_API const Gtk::BuiltinStockID CONNECT; /*!< @image html gtk-connect.png |
| 100 | * @deprecated No replacement available. */ |
| 101 | extern GTKMM_API const Gtk::BuiltinStockID COPY; /*!< @image html gtk-copy.png |
| 102 | * @deprecated Use the named icon edit-copy or the label "_Copy". */ |
| 103 | extern GTKMM_API const Gtk::BuiltinStockID CUT; /*!< @image html gtk-cut.png |
| 104 | * @deprecated Use the named icon edit-cut or the label "Cu_t". */ |
| 105 | extern GTKMM_API const Gtk::BuiltinStockID DELETE; /*!< @image html gtk-delete.png |
| 106 | * @deprecated Use the named icon edit-delete or the label "_Delete". */ |
| 107 | extern GTKMM_API const Gtk::BuiltinStockID DIRECTORY; /*!< @image html gtk-directory.png |
| 108 | * @deprecated Use named icon "folder". */ |
| 109 | extern GTKMM_API const Gtk::BuiltinStockID DISCARD; /*!< @image html gtk-discard.png |
| 110 | * @deprecated No replacement available. */ |
| 111 | extern GTKMM_API const Gtk::BuiltinStockID DISCONNECT; /*!< @image html gtk-disconnect.png |
| 112 | * @deprecated No replacement available. */ |
| 113 | extern GTKMM_API const Gtk::BuiltinStockID EDIT; /*!< @image html gtk-edit.png |
| 114 | * @deprecated No replacement available. */ |
| 115 | extern GTKMM_API const Gtk::BuiltinStockID EXECUTE; /*!< @image html gtk-execute.png |
| 116 | * @deprecated Use named icon "system-run". */ |
| 117 | extern GTKMM_API const Gtk::BuiltinStockID FILE; /*!< @image html gtk-file.png |
| 118 | * @deprecated Use named icon "text-x-generic". */ |
| 119 | extern GTKMM_API const Gtk::BuiltinStockID FIND; /*!< @image html gtk-find.png |
| 120 | * @deprecated Use named icon "edit-find". */ |
| 121 | extern GTKMM_API const Gtk::BuiltinStockID FIND_AND_REPLACE; /*!< @image html gtk-find-and-replace.png |
| 122 | * @deprecated Use named icon "edit-find-replace". */ |
| 123 | extern GTKMM_API const Gtk::BuiltinStockID FLOPPY; /*!< @image html gtk-floppy.png |
| 124 | * @deprecated No replacement available. */ |
| 125 | extern GTKMM_API const Gtk::BuiltinStockID FULLSCREEN; /*!< @image html gtk-fullscreen.png |
| 126 | * @deprecated Use named icon "view-fullscreen". */ |
| 127 | extern GTKMM_API const Gtk::BuiltinStockID LEAVE_FULLSCREEN; /*!< @image html gtk-leave-fullscreen.png |
| 128 | * @deprecated Use named icon "view-restore". */ |
| 129 | extern GTKMM_API const Gtk::BuiltinStockID GOTO_BOTTOM; /*!< @image html gtk-goto-bottom.png |
| 130 | * @deprecated Use named icon "go-bottom". */ |
| 131 | extern GTKMM_API const Gtk::BuiltinStockID GOTO_FIRST; /*!< left-to-right languages: @image html gtk-goto-first-ltr.png |
| 132 | * right-to-left languages: @image html gtk-goto-first-rtl.png |
| 133 | * @deprecated Use named icon "go-first". */ |
| 134 | extern GTKMM_API const Gtk::BuiltinStockID GOTO_LAST; /*!< left-to-right languages: @image html gtk-goto-last-ltr.png |
| 135 | * right-to-left languages: @image html gtk-goto-last-rtl.png |
| 136 | * @deprecated Use named icon "go-last". */ |
| 137 | extern GTKMM_API const Gtk::BuiltinStockID GOTO_TOP; /*!< @image html gtk-goto-top.png |
| 138 | * @deprecated Use named icon "go-top". */ |
| 139 | extern GTKMM_API const Gtk::BuiltinStockID GO_BACK; /*!< left-to-right languages: @image html gtk-go-back-ltr.png |
| 140 | * right-to-left languages: @image html gtk-go-back-rtl.png |
| 141 | * @deprecated Use named icon "go-previous". */ |
| 142 | extern GTKMM_API const Gtk::BuiltinStockID GO_DOWN; /*!< @image html gtk-go-down.png |
| 143 | * @deprecated Use named icon "go-down". */ |
| 144 | extern GTKMM_API const Gtk::BuiltinStockID GO_FORWARD; /*!< left-to-right languages: @image html gtk-go-forward-ltr.png |
| 145 | right-to-left languages: @image html gtk-go-forward-rtl.png |
| 146 | * @deprecated Use named icon "go-next". */ |
| 147 | extern GTKMM_API const Gtk::BuiltinStockID GO_UP; /*!< @image html gtk-go-up.png |
| 148 | * @deprecated Use named icon "go-up". */ |
| 149 | extern GTKMM_API const Gtk::BuiltinStockID HARDDISK; /*!< @image html gtk-harddisk.png |
| 150 | * @deprecated Use named icon "drive-harddisk". */ |
| 151 | extern GTKMM_API const Gtk::BuiltinStockID HELP; /*!< @image html gtk-help.png |
| 152 | * @deprecated Use named icon "help-browser". */ |
| 153 | extern GTKMM_API const Gtk::BuiltinStockID HOME; /*!< @image html gtk-home.png |
| 154 | * @deprecated Use named icon "go-home". */ |
| 155 | extern GTKMM_API const Gtk::BuiltinStockID INDEX; /*!< @image html gtk-index.png |
| 156 | * @deprecated No replacement available. */ |
| 157 | extern GTKMM_API const Gtk::BuiltinStockID INFO; /*!< @image html gtk-info.png |
| 158 | * @deprecated Use named icon "dialog-information". */ |
| 159 | extern GTKMM_API const Gtk::BuiltinStockID INDENT; /*!< left-to-right languages: @image html gtk-indent-ltr.png |
| 160 | * right-to-left languages: @image html gtk-indent-rtl.png |
| 161 | * @deprecated Use named icon "format-indent-more". */ |
| 162 | extern GTKMM_API const Gtk::BuiltinStockID UNINDENT; /*!< left-to-right languages: @image html gtk-unindent-ltr.png |
| 163 | * right-to-left languages: @image html gtk-unindent-rtl.png |
| 164 | * @deprecated Use named icon "format-indent-less". */ |
| 165 | extern GTKMM_API const Gtk::BuiltinStockID ITALIC; /*!< @image html gtk-italic.png |
| 166 | * @deprecated Use named icon "format-text-italic". */ |
| 167 | extern GTKMM_API const Gtk::BuiltinStockID JUMP_TO; /*!< left-to-right languages: @image html gtk-jump-to-ltr.png |
| 168 | * right-to-left languages: @image html gtk-jump-to-rtl.png |
| 169 | * @deprecated Use named icon "go-jump". */ |
| 170 | extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_CENTER; /*!< @image html gtk-justify-center.png |
| 171 | * @deprecated Use named icon "format-justify-center". */ |
| 172 | extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_FILL; /*!< @image html gtk-justify-fill.png |
| 173 | * @deprecated Use named icon "format-justify-fill". */ |
| 174 | extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_LEFT; /*!< @image html gtk-justify-left.png |
| 175 | * @deprecated Use named icon "format-justify-left". */ |
| 176 | extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_RIGHT; /*!< @image html gtk-justify-right.png |
| 177 | * @deprecated Use named icon "format-justify-right". */ |
| 178 | extern GTKMM_API const Gtk::BuiltinStockID MISSING_IMAGE; /*!< @image html gtk-missing-image.png |
| 179 | * @deprecated Use named icon "image-missing". */ |
| 180 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_FORWARD; /*!< left-to-right languages: @image html gtk-media-forward-ltr.png |
| 181 | * right-to-left languages: @image html gtk-media-forward-rtl.png |
| 182 | * @deprecated Use named icon "media-seek-forward" or the label "_Forward". */ |
| 183 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_NEXT; /*!< left-to-right languages: @image html gtk-media-next-ltr.png |
| 184 | * right-to-left languages: @image html gtk-media-next-rtl.png |
| 185 | * @deprecated Use named icon "media-skip-forward" or the label "_Next". */ |
| 186 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PAUSE; /*!< @image html gtk-media-pause.png |
| 187 | * @deprecated Use named icon "media-playback-pause" or the label "P_ause". */ |
| 188 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PLAY; /*!< left-to-right languages: @image html gtk-media-play-ltr.png |
| 189 | * right-to-left languages: @image html gtk-media-play-rtl.png |
| 190 | * @deprecated Use named icon "media-playback-start" or the label "_Play". */ |
| 191 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PREVIOUS; /*!< left-to-right languages: @image html gtk-media-previous-ltr.png |
| 192 | * right-to-left languages: @image html gtk-media-previous-rtl.png |
| 193 | * @deprecated Use named icon "media-skip-backward" or the label "Pre_vious". */ |
| 194 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_RECORD; /*!< @image html gtk-media-record.png |
| 195 | * @deprecated Use named icon "media-record" or the label "_Record". */ |
| 196 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_REWIND; /*!< left-to-right languages: @image html gtk-media-rewind-ltr.png |
| 197 | * right-to-left languages: @image html gtk-media-rewind-rtl.png |
| 198 | * @deprecated Use named icon "media-seek-backward" or the label "R_ewind". */ |
| 199 | extern GTKMM_API const Gtk::BuiltinStockID MEDIA_STOP; /*!< @image html gtk-media-stop.png |
| 200 | * @deprecated Use named icon "media-playback-stop" or the label "_Stop". */ |
| 201 | extern GTKMM_API const Gtk::BuiltinStockID NETWORK; /*!< @image html gtk-network.png |
| 202 | * @deprecated Use named icon "network-workgroup". */ |
| 203 | extern GTKMM_API const Gtk::BuiltinStockID NEW; /*!< @image html gtk-new.png |
| 204 | * @deprecated Use named icon "document-new" or the label "_New". */ |
| 205 | extern GTKMM_API const Gtk::BuiltinStockID NO; /*!< @image html gtk-no.png |
| 206 | * @deprecated No replacement available. */ |
| 207 | extern GTKMM_API const Gtk::BuiltinStockID OK; /*!< @image html gtk-ok.png |
| 208 | * @deprecated Do not use an icon. Use label "_OK". */ |
| 209 | extern GTKMM_API const Gtk::BuiltinStockID OPEN; /*!< @image html gtk-open.png |
| 210 | * @deprecated Use named icon "document-open" or the label "_Open". */ |
| 211 | extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_PORTRAIT; /*!< @image html gtk-orientation-portrait.png |
| 212 | * @deprecated No replacement available. */ |
| 213 | extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_LANDSCAPE; /*!< @image html gtk-orientation-landscape.png |
| 214 | * @deprecated No replacement available. */ |
| 215 | extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_LANDSCAPE; /*!< @image html gtk-orientation-reverse-landscape.png |
| 216 | * @deprecated No replacement available. */ |
| 217 | extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_PORTRAIT; /*!< @image html gtk-orientation-reverse-portrait.png |
| 218 | * @deprecated No replacement available. */ |
| 219 | extern GTKMM_API const Gtk::BuiltinStockID PASTE; /*!< @image html gtk-paste.png |
| 220 | * @deprecated Use the named icon edit-paste or the label "_Paste". */ |
| 221 | extern GTKMM_API const Gtk::BuiltinStockID PREFERENCES; /*!< @image html gtk-preferences.png |
| 222 | * @deprecated Use named icon "preferences-system" or the label "_Preferences". */ |
| 223 | extern GTKMM_API const Gtk::BuiltinStockID PAGE_SETUP; /*!< @image html gtk-page-setup.png |
| 224 | * @deprecated Use named icon "document-page-setup" or the label "Page Set_up". */ |
| 225 | extern GTKMM_API const Gtk::BuiltinStockID PRINT; /*!< @image html gtk-print.png |
| 226 | * @deprecated Use named icon "document-print" or the label "_Print". */ |
| 227 | extern GTKMM_API const Gtk::BuiltinStockID PRINT_ERROR; /*!< @image html gtk-print-error.png |
| 228 | * @deprecated Use named icon "printer-error". */ |
| 229 | extern GTKMM_API const Gtk::BuiltinStockID PRINT_PREVIEW; /*!< @image html gtk-print-preview.png |
| 230 | * @deprecated Use label "Pre_view". */ |
| 231 | extern GTKMM_API const Gtk::BuiltinStockID PRINT_REPORT; /*!< @image html gtk-print-report.png |
| 232 | * @deprecated No replacement available. */ |
| 233 | extern GTKMM_API const Gtk::BuiltinStockID PRINT_WARNING; /*!< @image html gtk-print-warning.png |
| 234 | * @deprecated No replacement available. */ |
| 235 | extern GTKMM_API const Gtk::BuiltinStockID PROPERTIES; /*!< @image html gtk-properties.png |
| 236 | * @deprecated Use named icon "document-properties" or the label "_Properties". */ |
| 237 | extern GTKMM_API const Gtk::BuiltinStockID QUIT; /*!< @image html gtk-quit.png |
| 238 | * @deprecated Use named icon "application-exit" or the label "_Quit". */ |
| 239 | extern GTKMM_API const Gtk::BuiltinStockID REDO; /*!< left-to-right languages: @image html gtk-redo-ltr.png |
| 240 | * right-to-left languages: @image html gtk-redo-rtl.png |
| 241 | * @deprecated Use named icon "edit-redo" or the label "_Redo". */ |
| 242 | extern GTKMM_API const Gtk::BuiltinStockID REFRESH; /*!< @image html gtk-refresh.png |
| 243 | * @deprecated Use named icon "view-refresh" or the label "_Refresh". */ |
| 244 | extern GTKMM_API const Gtk::BuiltinStockID REMOVE; /*!< @image html gtk-remove.png |
| 245 | * @deprecated Use named icon "list-remove" or the label "_Remove". */ |
| 246 | extern GTKMM_API const Gtk::BuiltinStockID REVERT_TO_SAVED; /*!< left-to-right languages: @image html gtk-revert-to-saved-ltr.png |
| 247 | * right-to-left languages: @image html gtk-revert-to-saved-rtl.png |
| 248 | * @deprecated Use named icon "document-revert" or the label "_Revert". */ |
| 249 | extern GTKMM_API const Gtk::BuiltinStockID SAVE; /*!< @image html gtk-save.png |
| 250 | * @deprecated Use named icon "document-save" or the label "_Save". */ |
| 251 | extern GTKMM_API const Gtk::BuiltinStockID SAVE_AS; /*!< @image html gtk-save-as.png |
| 252 | * @deprecated Use named icon "document-save-as" or the label "Save _As". */ |
| 253 | extern GTKMM_API const Gtk::BuiltinStockID SELECT_ALL; /*!< @image html gtk-select-all.png |
| 254 | * @deprecated Use named icon "edit-select-all" or the label "Select _All". */ |
| 255 | extern GTKMM_API const Gtk::BuiltinStockID SELECT_COLOR; /*!< @image html gtk-select-color.png |
| 256 | * @deprecated No replacement available. */ |
| 257 | extern GTKMM_API const Gtk::BuiltinStockID SELECT_FONT; /*!< @image html gtk-select-font.png |
| 258 | * @deprecated No replacement available. */ |
| 259 | extern GTKMM_API const Gtk::BuiltinStockID SORT_ASCENDING; /*!< @image html gtk-sort-ascending.png |
| 260 | * @deprecated Use named icon "view-sort-ascending". */ |
| 261 | extern GTKMM_API const Gtk::BuiltinStockID SORT_DESCENDING; /*!< @image html gtk-sort-descending.png |
| 262 | * @deprecated Use named icon "view-sort-descending". */ |
| 263 | extern GTKMM_API const Gtk::BuiltinStockID SPELL_CHECK; /*!< @image html gtk-spell-check.png |
| 264 | * @deprecated Use named icon "tools-check-spelling". */ |
| 265 | extern GTKMM_API const Gtk::BuiltinStockID STOP; /*!< @image html gtk-stop.png |
| 266 | * @deprecated Use named icon "process-stop" or the label "_Stop". */ |
| 267 | extern GTKMM_API const Gtk::BuiltinStockID STRIKETHROUGH; /*!< @image html gtk-strikethrough.png |
| 268 | * @deprecated Use named icon "format-text-strikethrough" or the label "_Strikethrough". */ |
| 269 | extern GTKMM_API const Gtk::BuiltinStockID UNDELETE; /*!< left-to-right languages: @image html gtk-undelete-ltr.png |
| 270 | * right-to-left languages: @image html gtk-undelete-rtl.png |
| 271 | * @deprecated No replacement available. */ |
| 272 | extern GTKMM_API const Gtk::BuiltinStockID UNDERLINE; /*!< @image html gtk-underline.png |
| 273 | * @deprecated Use named icon "format-text-underline" or the label "_Underline". */ |
| 274 | extern GTKMM_API const Gtk::BuiltinStockID UNDO; /*!< left-to-right languages: @image html gtk-undo-ltr.png |
| 275 | * right-to-left languages: @image html gtk-undo-rtl.png |
| 276 | * @deprecated Use named icon "edit-undo" or the label "_Undo". */ |
| 277 | extern GTKMM_API const Gtk::BuiltinStockID YES; /*!< @image html gtk-yes.png |
| 278 | * @deprecated No replacement available. */ |
| 279 | extern GTKMM_API const Gtk::BuiltinStockID ZOOM_100; /*!< @image html gtk-zoom-100.png |
| 280 | * @deprecated Use named icon "zoom-original" or the label "_Normal Size". */ |
| 281 | extern GTKMM_API const Gtk::BuiltinStockID ZOOM_FIT; /*!< @image html gtk-zoom-fit.png |
| 282 | * @deprecated Use named icon "zoom-fit-best" or the label "Best _Fit". */ |
| 283 | extern GTKMM_API const Gtk::BuiltinStockID ZOOM_IN; /*!< @image html gtk-zoom-in.png |
| 284 | * @deprecated Use named icon "zoom-in" or the label "Zoom _In". */ |
| 285 | extern GTKMM_API const Gtk::BuiltinStockID ZOOM_OUT; /*!< @image html gtk-zoom-out.png |
| 286 | * @deprecated Use named icon "zoom-out" or the label "Zoom _Out". */ |
| 287 | |
| 288 | /** Add a stock item to the list of registered stock items. |
| 289 | * @param item StockItem to register. If an item already exists with the same |
| 290 | * stock ID the old item gets replaced. |
| 291 | * @deprecated Use icon names instead of StockItem, StockID and BuiltinStockID. |
| 292 | */ |
| 293 | GTKMM_API |
| 294 | void add(const Gtk::StockItem& item); |
| 295 | |
| 296 | /** Fills item with the registered values for stock_id. |
| 297 | * @param stock_id StockID to search for. |
| 298 | * @param item item to fill in case stockid was found. |
| 299 | * |
| 300 | * @return <tt>true</tt> if the item was found - <tt>false</tt> otherwise. |
| 301 | * @deprecated Use icon names instead of StockItem, StockID and BuiltinStockID. |
| 302 | */ |
| 303 | GTKMM_API |
| 304 | bool lookup(const Gtk::StockID& stock_id, Gtk::StockItem& item); |
| 305 | |
| 306 | /** See IconSet::lookup_default() |
| 307 | * @param stock_id StockID to search for. |
| 308 | * @param iconset to fill. |
| 309 | * |
| 310 | * @return <tt>true</tt> if the item was found - <tt>false</tt> otherwise. |
| 311 | * @deprecated Use icon names instead of StockItem, StockID and BuiltinStockID. |
| 312 | */ |
| 313 | GTKMM_API |
| 314 | bool lookup(const Gtk::StockID& stock_id, Glib::RefPtr<Gtk::IconSet>& iconset); |
| 315 | |
| 316 | /** Receive an Image of the registered stock id with the correct size. |
| 317 | * @param stock_id StockID to search for. |
| 318 | * @param size: IconSize of the desired Image. |
| 319 | * @param image: Image to fill. |
| 320 | * |
| 321 | * @return <tt>true</tt> if the item was found - <tt>false</tt> otherwise |
| 322 | * @deprecated Use icon names instead of StockItem, StockID and BuiltinStockID. |
| 323 | */ |
| 324 | GTKMM_API |
| 325 | bool lookup(const Gtk::StockID& stock_id, Gtk::IconSize size, Gtk::Image& image); |
| 326 | |
| 327 | /** Retrieves a list of all known stock IDs added to an IconFactory or registered with Stock::add(). |
| 328 | * |
| 329 | * @return list of all known stock IDs. |
| 330 | * @deprecated Use icon names instead of StockItem, StockID and BuiltinStockID. |
| 331 | */ |
| 332 | GTKMM_API |
| 333 | std::vector<Gtk::StockID> get_ids(); |
| 334 | |
| 335 | } // namespace Stock |
| 336 | |
| 337 | } // namespace Gtk |
| 338 | |
| 339 | #endif // GTKMM_DISABLE_DEPRECATED |
| 340 | |
| 341 | #endif /* _GTKMM_STOCK_H */ |