The pre-3.1.4 definitions of the constants were just string literals, while the type were wxString typedefs. To avoid implicit conversion these were converted to actual wxStrings. While the interface now matched the implementation, this has several drawbacks: - every use of the "constant" now is a string construction at runtime - the constant now is an rvalue, i.e. it is impossible to take its address. The latter breaks its use from wxPython. The IDs are moved to a separate file which can be included multiple times, once from the header to have the declarations in place, and once to instantiate the wxStrings. Using a common file avoids the declaration and definition going out of sync.
97 lines
3.0 KiB
C
97 lines
3.0 KiB
C
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/artids.h
|
|
// Purpose: wxArtProvider client and art IDs
|
|
// Author: Stefan Brüns
|
|
// Modified by:
|
|
// Created: 2020-07-31 (extracted from artprov.h)
|
|
// Copyright: (c) Stefan Brüns
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// This file deliberately omits include guards so it can
|
|
// be included and processed multiple times
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// Art clients
|
|
// ----------------------------------------------------------------------------
|
|
|
|
wxART_MAKE_CLIENT_ID(wxART_TOOLBAR)
|
|
wxART_MAKE_CLIENT_ID(wxART_MENU)
|
|
wxART_MAKE_CLIENT_ID(wxART_FRAME_ICON)
|
|
|
|
wxART_MAKE_CLIENT_ID(wxART_CMN_DIALOG)
|
|
wxART_MAKE_CLIENT_ID(wxART_HELP_BROWSER)
|
|
wxART_MAKE_CLIENT_ID(wxART_MESSAGE_BOX)
|
|
wxART_MAKE_CLIENT_ID(wxART_BUTTON)
|
|
wxART_MAKE_CLIENT_ID(wxART_LIST)
|
|
|
|
wxART_MAKE_CLIENT_ID(wxART_OTHER)
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// Art IDs
|
|
// ----------------------------------------------------------------------------
|
|
|
|
wxART_MAKE_ART_ID(wxART_ADD_BOOKMARK)
|
|
wxART_MAKE_ART_ID(wxART_DEL_BOOKMARK)
|
|
wxART_MAKE_ART_ID(wxART_HELP_SIDE_PANEL)
|
|
wxART_MAKE_ART_ID(wxART_HELP_SETTINGS)
|
|
wxART_MAKE_ART_ID(wxART_HELP_BOOK)
|
|
wxART_MAKE_ART_ID(wxART_HELP_FOLDER)
|
|
wxART_MAKE_ART_ID(wxART_HELP_PAGE)
|
|
wxART_MAKE_ART_ID(wxART_GO_BACK)
|
|
wxART_MAKE_ART_ID(wxART_GO_FORWARD)
|
|
wxART_MAKE_ART_ID(wxART_GO_UP)
|
|
wxART_MAKE_ART_ID(wxART_GO_DOWN)
|
|
wxART_MAKE_ART_ID(wxART_GO_TO_PARENT)
|
|
wxART_MAKE_ART_ID(wxART_GO_HOME)
|
|
wxART_MAKE_ART_ID(wxART_GOTO_FIRST)
|
|
wxART_MAKE_ART_ID(wxART_GOTO_LAST)
|
|
wxART_MAKE_ART_ID(wxART_FILE_OPEN)
|
|
wxART_MAKE_ART_ID(wxART_FILE_SAVE)
|
|
wxART_MAKE_ART_ID(wxART_FILE_SAVE_AS)
|
|
wxART_MAKE_ART_ID(wxART_PRINT)
|
|
wxART_MAKE_ART_ID(wxART_HELP)
|
|
wxART_MAKE_ART_ID(wxART_TIP)
|
|
wxART_MAKE_ART_ID(wxART_REPORT_VIEW)
|
|
wxART_MAKE_ART_ID(wxART_LIST_VIEW)
|
|
wxART_MAKE_ART_ID(wxART_NEW_DIR)
|
|
wxART_MAKE_ART_ID(wxART_HARDDISK)
|
|
wxART_MAKE_ART_ID(wxART_FLOPPY)
|
|
wxART_MAKE_ART_ID(wxART_CDROM)
|
|
wxART_MAKE_ART_ID(wxART_REMOVABLE)
|
|
wxART_MAKE_ART_ID(wxART_FOLDER)
|
|
wxART_MAKE_ART_ID(wxART_FOLDER_OPEN)
|
|
wxART_MAKE_ART_ID(wxART_GO_DIR_UP)
|
|
wxART_MAKE_ART_ID(wxART_EXECUTABLE_FILE)
|
|
wxART_MAKE_ART_ID(wxART_NORMAL_FILE)
|
|
wxART_MAKE_ART_ID(wxART_TICK_MARK)
|
|
wxART_MAKE_ART_ID(wxART_CROSS_MARK)
|
|
wxART_MAKE_ART_ID(wxART_ERROR)
|
|
wxART_MAKE_ART_ID(wxART_QUESTION)
|
|
wxART_MAKE_ART_ID(wxART_WARNING)
|
|
wxART_MAKE_ART_ID(wxART_INFORMATION)
|
|
wxART_MAKE_ART_ID(wxART_MISSING_IMAGE)
|
|
|
|
wxART_MAKE_ART_ID(wxART_COPY)
|
|
wxART_MAKE_ART_ID(wxART_CUT)
|
|
wxART_MAKE_ART_ID(wxART_PASTE)
|
|
wxART_MAKE_ART_ID(wxART_DELETE)
|
|
wxART_MAKE_ART_ID(wxART_NEW)
|
|
|
|
wxART_MAKE_ART_ID(wxART_UNDO)
|
|
wxART_MAKE_ART_ID(wxART_REDO)
|
|
|
|
wxART_MAKE_ART_ID(wxART_PLUS)
|
|
wxART_MAKE_ART_ID(wxART_MINUS)
|
|
|
|
wxART_MAKE_ART_ID(wxART_CLOSE)
|
|
wxART_MAKE_ART_ID(wxART_QUIT)
|
|
|
|
wxART_MAKE_ART_ID(wxART_FIND)
|
|
wxART_MAKE_ART_ID(wxART_FIND_AND_REPLACE)
|
|
|
|
wxART_MAKE_ART_ID(wxART_FULL_SCREEN)
|
|
|
|
wxART_MAKE_ART_ID(wxART_EDIT)
|
|
|