]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/stockitem.h
Remove wxDataViewTextRendererAttr by merging it with wxDataViewTextRenderer.
[wxWidgets.git] / interface / wx / stockitem.h
CommitLineData
23324ae1 1/////////////////////////////////////////////////////////////////////////////
7c913512 2// Name: stockitem.h
e54c96f1 3// Purpose: interface of global functions
7c913512
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
34a9a024
VZ
9/**
10 Possible values for flags parameter of wxGetStockLabel().
11
12 The elements of this enum are bit masks and may be combined with each other
13 (except when specified otherwise).
14 */
15enum wxStockLabelQueryFlag
16{
17 /**
18 Indicates absence of wxSTOCK_WITH_MNEMONIC and wxSTOCK_WITH_ACCELERATOR.
19
20 Requests just the label (e.g. "Print...").
21 */
22 wxSTOCK_NOFLAGS = 0,
23
24 /**
25 Request the label with mnemonics character.
26
27 E.g. "&Print...".
28 */
29 wxSTOCK_WITH_MNEMONIC = 1,
30
31 /**
32 Return the label with accelerator following it after TAB.
33
34 E.g. "Print...\tCtrl-P". This can be combined with
35 wxSTOCK_WITH_MNEMONIC to get "&Print...\tCtrl-P".
36 */
e94ee791
VZ
37 wxSTOCK_WITH_ACCELERATOR = 2,
38
39 /**
40 Return the label appropriate for a button and not a menu item.
41
42 Currently the main difference is that the trailing ellipsis used in
43 some stock labels is never included in the returned label. Also, the
44 mnemonics is included if this flag is used. So the returned value for
45 wxID_PRINT when this flag is used is "&Print".
46
47 This flag can't be combined with wxSTOCK_WITH_ACCELERATOR.
48 */
49 wxSTOCK_FOR_BUTTON = 5
34a9a024
VZ
50};
51
b21126db 52/** @addtogroup group_funcmacro_misc */
7fa7088e
BP
53//@{
54
7c913512 55/**
7fa7088e
BP
56 Returns label that should be used for given @a id element.
57
58 @param id
59 Given id of the wxMenuItem, wxButton, wxToolBar tool, etc.
34a9a024
VZ
60 @param flags
61 Combination of the elements of wxStockLabelQueryFlag.
7c913512 62
7fa7088e 63 @header{wx/stockitem.h}
23324ae1 64*/
34a9a024 65wxString wxGetStockLabel(wxWindowID id, long flags = wxSTOCK_WITH_MNEMONIC);
23324ae1 66
7fa7088e 67//@}
23324ae1 68