]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stockitem.h
Blind wxTinderbox fix.
[wxWidgets.git] / include / wx / stockitem.h
CommitLineData
401e3b6e
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/stockitem.h
5f7bcb48 3// Purpose: stock items helpers (privateh header)
401e3b6e
VS
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
401e3b6e 15#include "wx/defs.h"
634629fa 16#include "wx/wxchar.h"
401e3b6e
VS
17#include "wx/string.h"
18
19// ----------------------------------------------------------------------------
5f7bcb48 20// Helper functions for stock items handling:
401e3b6e
VS
21// ----------------------------------------------------------------------------
22
5f7bcb48 23// Returns true if the ID is in the list of recognized stock actions
abdd2c01 24WXDLLEXPORT bool wxIsStockID(wxWindowID id);
401e3b6e 25
5f7bcb48
VS
26// Returns true of the label is empty or label of a stock button with
27// given ID
abdd2c01 28WXDLLEXPORT bool wxIsStockLabel(wxWindowID id, const wxString& label);
401e3b6e
VS
29
30// Returns label that should be used for given stock UI element (e.g. "&OK"
31// for wxSTOCK_OK):
634629fa
WS
32WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
33 bool withCodes = true,
fbfb8bcc 34 const wxString& accelerator = wxEmptyString);
401e3b6e
VS
35
36#ifdef __WXGTK20__
37// Translates stock ID to GTK+'s stock item string indentifier:
abdd2c01 38WXDLLEXPORT const char *wxGetStockGtkID(wxWindowID id);
401e3b6e
VS
39#endif
40
41#endif // _WX_STOCKITEM_H_