2004-08-15 15:56:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/stockitem.h
|
2004-08-30 14:42:51 +00:00
|
|
|
// Purpose: stock items helpers (privateh header)
|
2004-08-15 15:56:56 +00:00
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2004-08-15
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Vaclav Slavik, 2004
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STOCKITEM_H_
|
|
|
|
#define _WX_STOCKITEM_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "stockitem.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/string.h"
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2004-08-30 14:42:51 +00:00
|
|
|
// Helper functions for stock items handling:
|
2004-08-15 15:56:56 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2004-08-30 14:42:51 +00:00
|
|
|
// Returns true if the ID is in the list of recognized stock actions
|
2004-09-04 18:45:02 +00:00
|
|
|
WXDLLEXPORT bool wxIsStockID(wxWindowID id);
|
2004-08-15 15:56:56 +00:00
|
|
|
|
2004-08-30 14:42:51 +00:00
|
|
|
// Returns true of the label is empty or label of a stock button with
|
|
|
|
// given ID
|
2004-09-04 18:45:02 +00:00
|
|
|
WXDLLEXPORT bool wxIsStockLabel(wxWindowID id, const wxString& label);
|
2004-08-15 15:56:56 +00:00
|
|
|
|
|
|
|
// Returns label that should be used for given stock UI element (e.g. "&OK"
|
|
|
|
// for wxSTOCK_OK):
|
2004-09-04 18:45:02 +00:00
|
|
|
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id);
|
2004-08-15 15:56:56 +00:00
|
|
|
|
|
|
|
#ifdef __WXGTK20__
|
|
|
|
// Translates stock ID to GTK+'s stock item string indentifier:
|
2004-09-04 18:45:02 +00:00
|
|
|
WXDLLEXPORT const char *wxGetStockGtkID(wxWindowID id);
|
2004-08-15 15:56:56 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // _WX_STOCKITEM_H_
|