Custom list control for displaying large numbers of constantly changing messages. More...
#include <rosout_list_control.h>
Public Member Functions | |
void | copySelectionToClipboard (bool message_only) |
const S_int32 & | getSelection () |
Get the index of the currently selected item. | |
wxString | getSeverityText (const rosgraph_msgs::LogConstPtr &message) const |
Get a text representation of the severity level of a message. | |
void | postItemChanges () |
void | preItemChanges () |
RosoutListControl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_ICON, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr) | |
Standard wxListCtrl constructor. | |
void | setModel (RosoutPanel *model) |
void | setSelection (const S_int32 &sel) |
virtual | ~RosoutListControl () |
Destructor. | |
Protected Member Functions | |
rosgraph_msgs::LogConstPtr | getSelectedMessage () |
void | onChar (wxKeyEvent &event) |
void | onCopy (wxCommandEvent &event) |
void | onCopyMessageOnly (wxCommandEvent &event) |
void | onExcludeLocation (wxCommandEvent &event) |
void | onExcludeLocationNewWindow (wxCommandEvent &event) |
void | onExcludeMessage (wxCommandEvent &event) |
void | onExcludeMessageNewWindow (wxCommandEvent &event) |
void | onExcludeNode (wxCommandEvent &event) |
void | onExcludeNodeNewWindow (wxCommandEvent &event) |
virtual wxListItemAttr * | OnGetItemAttr (long item) const |
virtual int | OnGetItemImage (long item) const |
virtual wxString | OnGetItemText (long item, long column) const |
void | onIncludeLocation (wxCommandEvent &event) |
void | onIncludeLocationNewWindow (wxCommandEvent &event) |
void | onIncludeMessage (wxCommandEvent &event) |
void | onIncludeMessageNewWindow (wxCommandEvent &event) |
void | onIncludeNode (wxCommandEvent &event) |
void | onIncludeNodeNewWindow (wxCommandEvent &event) |
void | onItemActivated (wxListEvent &event) |
void | onItemRightClick (wxListEvent &event) |
void | onItemSelected (wxListEvent &event) |
void | updateSelection () |
Protected Attributes | |
wxListItemAttr | attr_ |
int32_t | debug_image_id_ |
bool | disable_scroll_to_bottom_ |
int32_t | error_image_id_ |
int32_t | fatal_image_id_ |
int32_t | info_image_id_ |
int32_t | last_selection_ |
RosoutPanel * | model_ |
bool | scrollbar_at_bottom_ |
S_int32 | selection_ |
int32_t | warning_image_id_ |
Custom list control for displaying large numbers of constantly changing messages.
wxListCtrl provides a special "virtual" mode that allows it to work with as much data as you can handle. Virtual list controls must at least override the OnGetItemText function, which returns the text to display inside a specific cell. For more information, see http://docs.wxwidgets.org/stable/wx_wxlistctrl.html
Definition at line 70 of file rosout_list_control.h.
rxtools::RosoutListControl::RosoutListControl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxLC_ICON , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = wxListCtrlNameStr |
||
) |
Standard wxListCtrl constructor.
Definition at line 49 of file rosout_list_control.cpp.
rxtools::RosoutListControl::~RosoutListControl | ( | ) | [virtual] |
Destructor.
Definition at line 96 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::copySelectionToClipboard | ( | bool | message_only | ) |
Definition at line 520 of file rosout_list_control.cpp.
rosgraph_msgs::LogConstPtr rxtools::RosoutListControl::getSelectedMessage | ( | ) | [protected] |
Definition at line 406 of file rosout_list_control.cpp.
const S_int32& rxtools::RosoutListControl::getSelection | ( | ) | [inline] |
Get the index of the currently selected item.
Definition at line 95 of file rosout_list_control.h.
wxString rxtools::RosoutListControl::getSeverityText | ( | const rosgraph_msgs::LogConstPtr & | message | ) | const |
Get a text representation of the severity level of a message.
message | The message |
Definition at line 105 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onChar | ( | wxKeyEvent & | event | ) | [protected] |
Definition at line 567 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onCopy | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 557 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onCopyMessageOnly | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 562 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeLocation | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 416 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeLocationNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 442 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeMessage | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 434 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeMessageNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 460 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeNode | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 426 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onExcludeNodeNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 452 of file rosout_list_control.cpp.
wxListItemAttr * rxtools::RosoutListControl::OnGetItemAttr | ( | long | item | ) | const [protected, virtual] |
Definition at line 151 of file rosout_list_control.cpp.
int rxtools::RosoutListControl::OnGetItemImage | ( | long | item | ) | const [protected, virtual] |
Definition at line 124 of file rosout_list_control.cpp.
wxString rxtools::RosoutListControl::OnGetItemText | ( | long | item, |
long | column | ||
) | const [protected, virtual] |
Definition at line 183 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeLocation | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 468 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeLocationNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 494 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeMessage | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 486 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeMessageNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 512 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeNode | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 478 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onIncludeNodeNewWindow | ( | wxCommandEvent & | event | ) | [protected] |
Definition at line 504 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onItemActivated | ( | wxListEvent & | event | ) | [protected] |
Definition at line 303 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onItemRightClick | ( | wxListEvent & | event | ) | [protected] |
Definition at line 578 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::onItemSelected | ( | wxListEvent & | event | ) | [protected] |
Definition at line 666 of file rosout_list_control.cpp.
Definition at line 718 of file rosout_list_control.cpp.
Definition at line 685 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::setModel | ( | RosoutPanel * | model | ) |
Definition at line 100 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::setSelection | ( | const S_int32 & | sel | ) |
Definition at line 741 of file rosout_list_control.cpp.
void rxtools::RosoutListControl::updateSelection | ( | ) | [protected] |
Definition at line 649 of file rosout_list_control.cpp.
wxListItemAttr rxtools::RosoutListControl::attr_ [mutable, protected] |
Definition at line 139 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::debug_image_id_ [protected] |
Definition at line 147 of file rosout_list_control.h.
Definition at line 153 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::error_image_id_ [protected] |
Definition at line 143 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::fatal_image_id_ [protected] |
Definition at line 145 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::info_image_id_ [protected] |
Definition at line 146 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::last_selection_ [protected] |
Definition at line 150 of file rosout_list_control.h.
RosoutPanel* rxtools::RosoutListControl::model_ [protected] |
Definition at line 141 of file rosout_list_control.h.
bool rxtools::RosoutListControl::scrollbar_at_bottom_ [protected] |
Definition at line 152 of file rosout_list_control.h.
S_int32 rxtools::RosoutListControl::selection_ [protected] |
Definition at line 149 of file rosout_list_control.h.
int32_t rxtools::RosoutListControl::warning_image_id_ [protected] |
Definition at line 144 of file rosout_list_control.h.