added stock buttons support
[wxWidgets.git] / include / wx / stockitem.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/stockitem.h
3 // Purpose: wxStockItemID enum
4 // Author: Vaclav Slavik
5 // Modified by:
6 // Created: 2004-08-15
7 // RCS-ID: $Id$
8 // Copyright: (c) Vaclav Slavik, 2004
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STOCKITEM_H_
13 #define _WX_STOCKITEM_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stockitem.h"
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/string.h"
21
22 // ----------------------------------------------------------------------------
23 // Stock item IDs for use with wxButton, wxMenu and wxToolBar:
24 // ----------------------------------------------------------------------------
25
26 enum wxStockItemID
27 {
28 wxSTOCK_NONE = 0,
29 wxSTOCK_ADD,
30 wxSTOCK_APPLY,
31 wxSTOCK_BOLD,
32 wxSTOCK_CANCEL,
33 wxSTOCK_CLEAR,
34 wxSTOCK_CLOSE,
35 wxSTOCK_COPY,
36 wxSTOCK_CUT,
37 wxSTOCK_DELETE,
38 wxSTOCK_FIND,
39 wxSTOCK_FIND_AND_REPLACE,
40 wxSTOCK_GO_BACK,
41 wxSTOCK_GO_DOWN,
42 wxSTOCK_GO_FORWARD,
43 wxSTOCK_GO_UP,
44 wxSTOCK_HELP,
45 wxSTOCK_HOME,
46 wxSTOCK_INDENT,
47 wxSTOCK_INDEX,
48 wxSTOCK_ITALIC,
49 wxSTOCK_JUSTIFY_CENTER,
50 wxSTOCK_JUSTIFY_FILL,
51 wxSTOCK_JUSTIFY_LEFT,
52 wxSTOCK_JUSTIFY_RIGHT,
53 wxSTOCK_NEW,
54 wxSTOCK_NO,
55 wxSTOCK_OK,
56 wxSTOCK_OPEN,
57 wxSTOCK_PASTE,
58 wxSTOCK_PREFERENCES,
59 wxSTOCK_PRINT,
60 wxSTOCK_PRINT_PREVIEW,
61 wxSTOCK_PROPERTIES,
62 wxSTOCK_QUIT,
63 wxSTOCK_REDO,
64 wxSTOCK_REFRESH,
65 wxSTOCK_REMOVE,
66 wxSTOCK_REVERT_TO_SAVED,
67 wxSTOCK_SAVE,
68 wxSTOCK_SAVE_AS,
69 wxSTOCK_STOP,
70 wxSTOCK_UNDELETE,
71 wxSTOCK_UNDERLINE,
72 wxSTOCK_UNDO,
73 wxSTOCK_UNINDENT,
74 wxSTOCK_YES,
75 wxSTOCK_ZOOM_100,
76 wxSTOCK_ZOOM_FIT,
77 wxSTOCK_ZOOM_IN,
78 wxSTOCK_ZOOM_OUT
79 // NB: when you add new item here, add it to stockitem.cpp and
80 // documentation as well
81 };
82
83 // ----------------------------------------------------------------------------
84 // Helper functions:
85 // ----------------------------------------------------------------------------
86
87 // Returns label that should be used for given stock UI element (e.g. "&OK"
88 // for wxSTOCK_OK):
89 wxString wxGetStockItemLabel(wxStockItemID item);
90
91 #ifdef __WXGTK20__
92 // Translates stock ID to GTK+'s stock item string indentifier:
93 const char *wxStockItemToGTK(wxStockItemID item);
94 #endif
95
96 #endif // _WX_STOCKITEM_H_