Ardour  9.0-pre0-384-ga76afae0e9
stock.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 #ifndef _GTKMM_STOCK_H
3 #define _GTKMM_STOCK_H
4 
5 /* $Id$ */
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, write to the Free
21  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23 
24 #include <gtkmm/iconset.h>
25 #include <gtkmm/stockitem.h>
26 #include <gtkmm/stockid.h>
27 #include <gtkmm/image.h>
28 
29 /* Shadow DELETE macro (from winnt.h).
30  */
31 #if defined(DELETE) && !defined(GTKMM_MACRO_SHADOW_DELETE)
32 enum { GTKMM_MACRO_DEFINITION_DELETE = DELETE };
33 #undef DELETE
34 enum { DELETE = GTKMM_MACRO_DEFINITION_DELETE };
35 #define DELETE DELETE
36 #define GTKMM_MACRO_SHADOW_DELETE 1
37 #endif
38 
39 
40 namespace Gtk
41 {
42 
43 // Created like so:
44 // const BuiltinStockID DIALOG_INFO = { GTK_STOCK_DIALOG_INFO }
45 
49 {
53  const char* id;
54 };
55 
56 namespace Stock
57 {
58 
59 extern GTKMM_API const Gtk::BuiltinStockID DIALOG_AUTHENTICATION;
61 extern GTKMM_API const Gtk::BuiltinStockID DIALOG_INFO;
62 extern GTKMM_API const Gtk::BuiltinStockID DIALOG_WARNING;
63 extern GTKMM_API const Gtk::BuiltinStockID DIALOG_ERROR;
64 extern GTKMM_API const Gtk::BuiltinStockID DIALOG_QUESTION;
66 // These aren't real stock items, because they provide only an icon.
67 extern GTKMM_API const Gtk::BuiltinStockID DND;
68 extern GTKMM_API const Gtk::BuiltinStockID DND_MULTIPLE;
70 extern GTKMM_API const Gtk::BuiltinStockID ABOUT;
71 extern GTKMM_API const Gtk::BuiltinStockID ADD;
72 extern GTKMM_API const Gtk::BuiltinStockID APPLY;
73 extern GTKMM_API const Gtk::BuiltinStockID BOLD;
74 extern GTKMM_API const Gtk::BuiltinStockID CANCEL;
75 extern GTKMM_API const Gtk::BuiltinStockID CAPS_LOCK_WARNING;
76 extern GTKMM_API const Gtk::BuiltinStockID CDROM;
77 extern GTKMM_API const Gtk::BuiltinStockID CLEAR;
78 extern GTKMM_API const Gtk::BuiltinStockID CLOSE;
79 extern GTKMM_API const Gtk::BuiltinStockID COLOR_PICKER;
80 extern GTKMM_API const Gtk::BuiltinStockID CONVERT;
81 extern GTKMM_API const Gtk::BuiltinStockID CONNECT;
82 extern GTKMM_API const Gtk::BuiltinStockID COPY;
83 extern GTKMM_API const Gtk::BuiltinStockID CUT;
84 extern GTKMM_API const Gtk::BuiltinStockID DELETE;
85 extern GTKMM_API const Gtk::BuiltinStockID DIRECTORY;
86 extern GTKMM_API const Gtk::BuiltinStockID DISCARD;
87 extern GTKMM_API const Gtk::BuiltinStockID DISCONNECT;
88 extern GTKMM_API const Gtk::BuiltinStockID EDIT;
89 extern GTKMM_API const Gtk::BuiltinStockID EXECUTE;
90 extern GTKMM_API const Gtk::BuiltinStockID FILE;
91 extern GTKMM_API const Gtk::BuiltinStockID FIND;
92 extern GTKMM_API const Gtk::BuiltinStockID FIND_AND_REPLACE;
93 extern GTKMM_API const Gtk::BuiltinStockID FLOPPY;
94 extern GTKMM_API const Gtk::BuiltinStockID FULLSCREEN;
95 extern GTKMM_API const Gtk::BuiltinStockID LEAVE_FULLSCREEN;
96 extern GTKMM_API const Gtk::BuiltinStockID GOTO_BOTTOM;
97 extern GTKMM_API const Gtk::BuiltinStockID GOTO_FIRST;
99 extern GTKMM_API const Gtk::BuiltinStockID GOTO_LAST;
101 extern GTKMM_API const Gtk::BuiltinStockID GOTO_TOP;
102 extern GTKMM_API const Gtk::BuiltinStockID GO_BACK;
104 extern GTKMM_API const Gtk::BuiltinStockID GO_DOWN;
105 extern GTKMM_API const Gtk::BuiltinStockID GO_FORWARD;
107 extern GTKMM_API const Gtk::BuiltinStockID GO_UP;
108 extern GTKMM_API const Gtk::BuiltinStockID HARDDISK;
109 extern GTKMM_API const Gtk::BuiltinStockID HELP;
110 extern GTKMM_API const Gtk::BuiltinStockID HOME;
111 extern GTKMM_API const Gtk::BuiltinStockID INDEX;
112 extern GTKMM_API const Gtk::BuiltinStockID INFO;
113 extern GTKMM_API const Gtk::BuiltinStockID INDENT;
115 extern GTKMM_API const Gtk::BuiltinStockID UNINDENT;
117 extern GTKMM_API const Gtk::BuiltinStockID ITALIC;
118 extern GTKMM_API const Gtk::BuiltinStockID JUMP_TO;
120 extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_CENTER;
121 extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_FILL;
122 extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_LEFT;
123 extern GTKMM_API const Gtk::BuiltinStockID JUSTIFY_RIGHT;
124 extern GTKMM_API const Gtk::BuiltinStockID MISSING_IMAGE;
125 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_FORWARD;
127 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_NEXT;
129 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PAUSE;
130 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PLAY;
132 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_PREVIOUS;
134 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_RECORD;
135 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_REWIND;
137 extern GTKMM_API const Gtk::BuiltinStockID MEDIA_STOP;
138 extern GTKMM_API const Gtk::BuiltinStockID NETWORK;
139 extern GTKMM_API const Gtk::BuiltinStockID NEW;
140 extern GTKMM_API const Gtk::BuiltinStockID NO;
141 extern GTKMM_API const Gtk::BuiltinStockID OK;
142 extern GTKMM_API const Gtk::BuiltinStockID OPEN;
143 extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_PORTRAIT;
144 extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_LANDSCAPE;
145 extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_LANDSCAPE;
146 extern GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_PORTRAIT;
147 extern GTKMM_API const Gtk::BuiltinStockID PASTE;
148 extern GTKMM_API const Gtk::BuiltinStockID PREFERENCES;
149 extern GTKMM_API const Gtk::BuiltinStockID PAGE_SETUP;
150 extern GTKMM_API const Gtk::BuiltinStockID PRINT;
151 extern GTKMM_API const Gtk::BuiltinStockID PRINT_ERROR;
152 extern GTKMM_API const Gtk::BuiltinStockID PRINT_PREVIEW;
153 extern GTKMM_API const Gtk::BuiltinStockID PRINT_REPORT;
154 extern GTKMM_API const Gtk::BuiltinStockID PRINT_WARNING;
155 extern GTKMM_API const Gtk::BuiltinStockID PROPERTIES;
156 extern GTKMM_API const Gtk::BuiltinStockID QUIT;
157 extern GTKMM_API const Gtk::BuiltinStockID REDO;
159 extern GTKMM_API const Gtk::BuiltinStockID REFRESH;
160 extern GTKMM_API const Gtk::BuiltinStockID REMOVE;
161 extern GTKMM_API const Gtk::BuiltinStockID REVERT_TO_SAVED;
163 extern GTKMM_API const Gtk::BuiltinStockID SAVE;
164 extern GTKMM_API const Gtk::BuiltinStockID SAVE_AS;
165 extern GTKMM_API const Gtk::BuiltinStockID SELECT_ALL;
166 extern GTKMM_API const Gtk::BuiltinStockID SELECT_COLOR;
167 extern GTKMM_API const Gtk::BuiltinStockID SELECT_FONT;
168 extern GTKMM_API const Gtk::BuiltinStockID SORT_ASCENDING;
169 extern GTKMM_API const Gtk::BuiltinStockID SORT_DESCENDING;
170 extern GTKMM_API const Gtk::BuiltinStockID SPELL_CHECK;
171 extern GTKMM_API const Gtk::BuiltinStockID STOP;
172 extern GTKMM_API const Gtk::BuiltinStockID STRIKETHROUGH;
173 extern GTKMM_API const Gtk::BuiltinStockID UNDELETE;
175 extern GTKMM_API const Gtk::BuiltinStockID UNDERLINE;
176 extern GTKMM_API const Gtk::BuiltinStockID UNDO;
178 extern GTKMM_API const Gtk::BuiltinStockID YES;
179 extern GTKMM_API const Gtk::BuiltinStockID ZOOM_100;
180 extern GTKMM_API const Gtk::BuiltinStockID ZOOM_FIT;
181 extern GTKMM_API const Gtk::BuiltinStockID ZOOM_IN;
182 extern GTKMM_API const Gtk::BuiltinStockID ZOOM_OUT;
189 void add(const Gtk::StockItem& item);
190 
197 bool lookup(const Gtk::StockID& stock_id, Gtk::StockItem& item);
198 
205 bool lookup(const Gtk::StockID& stock_id, Gtk::IconSet& iconset);
206 
214 bool lookup(const Gtk::StockID& stock_id, Gtk::IconSize size, Gtk::Image& image);
215 
220 Glib::SListHandle<Gtk::StockID,Gtk::StockID_Traits> get_ids();
221 
222 } // namespace Stock
223 
224 } // namespace Gtk
225 
226 
227 #endif /* _GTKMM_STOCK_H */
GtkImageImageData image
Definition: gtkimage.h:1
GTKMM_API const Gtk::BuiltinStockID PREFERENCES
GTKMM_API const Gtk::BuiltinStockID ZOOM_FIT
GTKMM_API const Gtk::BuiltinStockID LEAVE_FULLSCREEN
GTKMM_API const Gtk::BuiltinStockID UNDELETE
GTKMM_API const Gtk::BuiltinStockID EDIT
GTKMM_API const Gtk::BuiltinStockID DIALOG_ERROR
GTKMM_API const Gtk::BuiltinStockID ZOOM_OUT
GTKMM_API const Gtk::BuiltinStockID FLOPPY
GTKMM_API const Gtk::BuiltinStockID DND
GTKMM_API const Gtk::BuiltinStockID INFO
GTKMM_API const Gtk::BuiltinStockID ITALIC
GTKMM_API const Gtk::BuiltinStockID JUMP_TO
GTKMM_API const Gtk::BuiltinStockID PRINT_PREVIEW
GTKMM_API const Gtk::BuiltinStockID COLOR_PICKER
GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_PORTRAIT
GTKMM_API const Gtk::BuiltinStockID DND_MULTIPLE
GTKMM_API const Gtk::BuiltinStockID MEDIA_PLAY
GTKMM_API const Gtk::BuiltinStockID DIRECTORY
GTKMM_API const Gtk::BuiltinStockID FIND_AND_REPLACE
bool lookup(const Gtk::StockID &stock_id, Gtk::StockItem &item)
GTKMM_API const Gtk::BuiltinStockID NETWORK
GTKMM_API const Gtk::BuiltinStockID NEW
GTKMM_API const Gtk::BuiltinStockID SELECT_FONT
GTKMM_API const Gtk::BuiltinStockID SORT_DESCENDING
GTKMM_API const Gtk::BuiltinStockID HELP
GTKMM_API const Gtk::BuiltinStockID UNINDENT
GTKMM_API const Gtk::BuiltinStockID GOTO_LAST
GTKMM_API const Gtk::BuiltinStockID MEDIA_PREVIOUS
GTKMM_API const Gtk::BuiltinStockID PASTE
GTKMM_API const Gtk::BuiltinStockID YES
GTKMM_API const Gtk::BuiltinStockID SORT_ASCENDING
GTKMM_API const Gtk::BuiltinStockID JUSTIFY_CENTER
GTKMM_API const Gtk::BuiltinStockID SELECT_ALL
GTKMM_API const Gtk::BuiltinStockID GOTO_TOP
GTKMM_API const Gtk::BuiltinStockID COPY
GTKMM_API const Gtk::BuiltinStockID MEDIA_FORWARD
GTKMM_API const Gtk::BuiltinStockID JUSTIFY_FILL
GTKMM_API const Gtk::BuiltinStockID DIALOG_WARNING
GTKMM_API const Gtk::BuiltinStockID HOME
GTKMM_API const Gtk::BuiltinStockID CANCEL
GTKMM_API const Gtk::BuiltinStockID FULLSCREEN
GTKMM_API const Gtk::BuiltinStockID HARDDISK
GTKMM_API const Gtk::BuiltinStockID MEDIA_PAUSE
GTKMM_API const Gtk::BuiltinStockID PRINT_REPORT
GTKMM_API const Gtk::BuiltinStockID MISSING_IMAGE
GTKMM_API const Gtk::BuiltinStockID MEDIA_RECORD
GTKMM_API const Gtk::BuiltinStockID APPLY
GTKMM_API const Gtk::BuiltinStockID MEDIA_NEXT
GTKMM_API const Gtk::BuiltinStockID PAGE_SETUP
GTKMM_API const Gtk::BuiltinStockID QUIT
GTKMM_API const Gtk::BuiltinStockID UNDERLINE
GTKMM_API const Gtk::BuiltinStockID REDO
GTKMM_API const Gtk::BuiltinStockID CLOSE
GTKMM_API const Gtk::BuiltinStockID INDENT
GTKMM_API const Gtk::BuiltinStockID GO_FORWARD
GTKMM_API const Gtk::BuiltinStockID SAVE_AS
GTKMM_API const Gtk::BuiltinStockID JUSTIFY_LEFT
GTKMM_API const Gtk::BuiltinStockID PRINT_ERROR
GTKMM_API const Gtk::BuiltinStockID INDEX
GTKMM_API const Gtk::BuiltinStockID STRIKETHROUGH
GTKMM_API const Gtk::BuiltinStockID CUT
GTKMM_API const Gtk::BuiltinStockID REVERT_TO_SAVED
GTKMM_API const Gtk::BuiltinStockID OK
GTKMM_API const Gtk::BuiltinStockID OPEN
GTKMM_API const Gtk::BuiltinStockID BOLD
GTKMM_API const Gtk::BuiltinStockID MEDIA_STOP
GTKMM_API const Gtk::BuiltinStockID CAPS_LOCK_WARNING
GTKMM_API const Gtk::BuiltinStockID DIALOG_QUESTION
GTKMM_API const Gtk::BuiltinStockID ORIENTATION_PORTRAIT
GTKMM_API const Gtk::BuiltinStockID JUSTIFY_RIGHT
GTKMM_API const Gtk::BuiltinStockID FILE
GTKMM_API const Gtk::BuiltinStockID GOTO_BOTTOM
GTKMM_API const Gtk::BuiltinStockID REFRESH
GTKMM_API const Gtk::BuiltinStockID DIALOG_INFO
GTKMM_API const Gtk::BuiltinStockID UNDO
GTKMM_API const Gtk::BuiltinStockID DIALOG_AUTHENTICATION
GTKMM_API const Gtk::BuiltinStockID ABOUT
GTKMM_API const Gtk::BuiltinStockID CLEAR
GTKMM_API const Gtk::BuiltinStockID ADD
GTKMM_API const Gtk::BuiltinStockID CONNECT
GTKMM_API const Gtk::BuiltinStockID SPELL_CHECK
GTKMM_API const Gtk::BuiltinStockID PRINT
GTKMM_API const Gtk::BuiltinStockID FIND
Glib::SListHandle< Gtk::StockID, Gtk::StockID_Traits > get_ids()
GTKMM_API const Gtk::BuiltinStockID EXECUTE
GTKMM_API const Gtk::BuiltinStockID CDROM
GTKMM_API const Gtk::BuiltinStockID GO_UP
GTKMM_API const Gtk::BuiltinStockID GO_BACK
GTKMM_API const Gtk::BuiltinStockID MEDIA_REWIND
GTKMM_API const Gtk::BuiltinStockID GOTO_FIRST
GTKMM_API const Gtk::BuiltinStockID CONVERT
GTKMM_API const Gtk::BuiltinStockID ZOOM_IN
GTKMM_API const Gtk::BuiltinStockID ZOOM_100
GTKMM_API const Gtk::BuiltinStockID REMOVE
GTKMM_API const Gtk::BuiltinStockID DISCONNECT
GTKMM_API const Gtk::BuiltinStockID GO_DOWN
GTKMM_API const Gtk::BuiltinStockID NO
GTKMM_API const Gtk::BuiltinStockID ORIENTATION_REVERSE_LANDSCAPE
GTKMM_API const Gtk::BuiltinStockID SAVE
GTKMM_API const Gtk::BuiltinStockID PROPERTIES
GTKMM_API const Gtk::BuiltinStockID ORIENTATION_LANDSCAPE
GTKMM_API const Gtk::BuiltinStockID DELETE
void add(const Gtk::StockItem &item)
GTKMM_API const Gtk::BuiltinStockID DISCARD
GTKMM_API const Gtk::BuiltinStockID PRINT_WARNING
GTKMM_API const Gtk::BuiltinStockID STOP
GTKMM_API const Gtk::BuiltinStockID SELECT_COLOR
Definition: ardour_ui.h:187
const char * id
Definition: stock.h:53