| OpenTTD
    | 
The GUI for signs. More...
#include "stdafx.h"#include "company_gui.h"#include "company_func.h"#include "signs_base.h"#include "signs_func.h"#include "debug.h"#include "command_func.h"#include "strings_func.h"#include "window_func.h"#include "map_func.h"#include "viewport_func.h"#include "querystring_gui.h"#include "sortlist_type.h"#include "stringfilter_type.h"#include "string_func.h"#include "core/geometry_func.hpp"#include "hotkeys.h"#include "transparency.h"#include "widgets/sign_widget.h"#include "table/strings.h"#include "table/sprites.h"#include "safeguards.h"Go to the source code of this file.
| Data Structures | |
| struct | SignList | 
| struct | SignListWindow | 
| struct | SignWindow | 
| Enumerations | |
| enum | SignListHotkeys { SLHK_FOCUS_FILTER_BOX } | 
| Enum referring to the Hotkeys in the sign list window.  More... | |
| Functions | |
| static EventState | SignListGlobalHotkeys (int hotkey) | 
| Handler for global hotkeys of the SignListWindow. | |
| Window * | ShowSignList () | 
| Open the sign list window. | |
| static bool | RenameSign (SignID index, const char *text) | 
| Actually rename the sign. | |
| void | HandleClickOnSign (const Sign *si) | 
| Handle clicking on a sign. | |
| void | ShowRenameSignWindow (const Sign *si) | 
| Show the window to change the text of a sign. | |
| void | DeleteRenameSignWindow (SignID sign) | 
| Close the sign window associated with the given sign. | |
| Variables | |
| static Hotkey | signlist_hotkeys [] | 
| static const NWidgetPart | _nested_sign_list_widgets [] | 
| static WindowDesc | _sign_list_desc (WDP_AUTO,"list_signs", 358, 138, WC_SIGN_LIST, WC_NONE, 0, _nested_sign_list_widgets, lengthof(_nested_sign_list_widgets),&SignListWindow::hotkeys) | 
| static const NWidgetPart | _nested_query_sign_edit_widgets [] | 
| static WindowDesc | _query_sign_edit_desc (WDP_CENTER,"query_sign", 0, 0, WC_QUERY_STRING, WC_NONE, WDF_CONSTRUCTION, _nested_query_sign_edit_widgets, lengthof(_nested_query_sign_edit_widgets)) | 
The GUI for signs.
Definition in file signs_gui.cpp.
| enum SignListHotkeys | 
Enum referring to the Hotkeys in the sign list window.
Definition at line 145 of file signs_gui.cpp.
| void DeleteRenameSignWindow | ( | SignID | sign | ) | 
Close the sign window associated with the given sign.
| sign | The sign to close the window for. | 
Definition at line 580 of file signs_gui.cpp.
References FindWindowById(), WC_QUERY_STRING, and WN_QUERY_STRING_SIGN.
Referenced by Sign::~Sign().
| void HandleClickOnSign | ( | const Sign * | si | ) | 
Handle clicking on a sign.
| si | The sign that was clicked on. | 
Definition at line 555 of file signs_gui.cpp.
References _ctrl_pressed, _local_company, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, OWNER_DEITY, RenameSign(), and ShowRenameSignWindow().
| 
 | static | 
Actually rename the sign.
| index | the sign to rename. | 
| text | the new name. | 
Definition at line 414 of file signs_gui.cpp.
References CMD_MSG, CMD_RENAME_SIGN, DoCommandP(), and StrEmpty().
Referenced by HandleClickOnSign(), and SignWindow::OnClick().
| void ShowRenameSignWindow | ( | const Sign * | si | ) | 
Show the window to change the text of a sign.
| si | The sign to show the window for. | 
Definition at line 568 of file signs_gui.cpp.
References DeleteWindowByClass(), and WC_QUERY_STRING.
Referenced by CcPlaceSign(), and HandleClickOnSign().
| Window* ShowSignList | ( | ) | 
Open the sign list window.
Definition at line 403 of file signs_gui.cpp.
Referenced by MenuClickMap(), MainToolbarWindow::OnHotkey(), and SignListGlobalHotkeys().
| 
 | static | 
Handler for global hotkeys of the SignListWindow.
| hotkey | Hotkey | 
Definition at line 347 of file signs_gui.cpp.
References ES_NOT_HANDLED, Window::OnHotkey(), and ShowSignList().
| 
 | static | 
Definition at line 526 of file signs_gui.cpp.
| 
 | static | 
Definition at line 361 of file signs_gui.cpp.
| 
 | static | 
Definition at line 355 of file signs_gui.cpp.
 1.8.1.2
 1.8.1.2