Window with everything an AI prints via AILog. More...
Public Member Functions | |
| AIDebugWindow (const WindowDesc *desc, WindowNumber number) | |
| virtual void | UpdateWidgetSize (int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) |
| virtual void | OnPaint () |
| virtual void | SetStringParameters (int widget) const |
| virtual void | DrawWidget (const Rect &r, int widget) const |
| void | ChangeToAI (CompanyID show_ai) |
| virtual void | OnClick (Point pt, int widget, int click_count) |
| virtual void | OnTimeout () |
| virtual void | OnMouseLoop () |
| virtual EventState | OnKeyPress (uint16 key, uint16 keycode) |
| virtual void | OnInvalidateData (int data=0, bool gui_scope=true) |
| Some data on this window has become invalid. | |
| virtual void | OnResize () |
Data Fields | |
| int | redraw_timer |
| int | last_vscroll_pos |
| bool | autoscroll |
| bool | show_break_box |
| int | highlight_row |
| The output row that matches the given string, or -1. | |
| Scrollbar * | vscroll |
Static Public Attributes | |
| static const int | top_offset = WD_FRAMERECT_TOP + 2 |
| Offset of the text at the top of the AID_WIDGET_LOG_PANEL. | |
| static const int | bottom_offset = WD_FRAMERECT_BOTTOM |
| Offset of the text at the bottom of the AID_WIDGET_LOG_PANEL. | |
| static const unsigned int | MAX_BREAK_STR_STRING_LENGTH = 256 |
| static CompanyID | ai_debug_company = INVALID_COMPANY |
| The AI that is (was last) being debugged. | |
| static bool | break_check_enabled = true |
| Stop an AI when it prints a matching string. | |
| static char | break_string [MAX_BREAK_STR_STRING_LENGTH] = "" |
| The string to match to the AI output. | |
| static bool | case_sensitive_break_check = false |
| Is the matching done case-sensitive. | |
Window with everything an AI prints via AILog.
Definition at line 758 of file ai_gui.cpp.
| virtual void AIDebugWindow::OnInvalidateData | ( | int | data = 0, |
|
| bool | gui_scope = true | |||
| ) | [inline, virtual] |
Some data on this window has become invalid.
| data | Information about the changed data. | |
| gui_scope | Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See InvalidateWindowData() for details. |
Definition at line 1060 of file ai_gui.cpp.
References _current_company, _pause_mode, ai_debug_company, break_check_enabled, case_sensitive_break_check, CMD_PAUSE, Window::DisableWidget(), DoCommandP(), QueryStringBaseWindow::edit_str_buf, Window::EnableWidget(), AIObject::GetLogPointer(), highlight_row, AILog::LogData::lines, PM_PAUSED_NORMAL, PM_UNPAUSED, AILog::LogData::pos, Backup< T >::Restore(), Window::SetDirty(), Window::SetWidgetDirty(), StrEmpty(), and AI::Suspend().
1.7.1