#include <profile_tree_widget.h>
Public Slots | |
void | setActiveNode (int profile_key, int node_key) |
Signals | |
void | activeNodeChanged (int profile_key, int node_key) |
Public Member Functions | |
ProfileTreeWidget (QWidget *parent=0) | |
void | setDatabase (ProfileDatabase *db) |
~ProfileTreeWidget () | |
Private Slots | |
void | handleItemActivated (QTreeWidgetItem *item, int column) |
void | handleNodesAdded (int profile_key) |
void | handleProfileAdded (int profile_key) |
void | handleTreeContextMenuRequest (const QPoint &pos) |
Private Member Functions | |
void | addNode (QTreeWidgetItem *parent, const Profile &profile, const int node_key) |
void | addProfile (int profile_key) |
void | markItemActive (const DatabaseKey &key) |
void | markItemInactive (const DatabaseKey &key) |
QString | nameForKey (const DatabaseKey &key) const |
void | synchronizeWidget () |
Private Attributes | |
DatabaseKey | active_key_ |
ProfileDatabase * | db_ |
std::unordered_map < DatabaseKey, QTreeWidgetItem * > | items_ |
QTreeWidget * | tree_widget_ |
Definition at line 49 of file profile_tree_widget.h.
swri_profiler_tools::ProfileTreeWidget::ProfileTreeWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 50 of file profile_tree_widget.cpp.
Definition at line 72 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::activeNodeChanged | ( | int | profile_key, |
int | node_key | ||
) | [signal] |
void swri_profiler_tools::ProfileTreeWidget::addNode | ( | QTreeWidgetItem * | parent, |
const Profile & | profile, | ||
const int | node_key | ||
) | [private] |
Definition at line 156 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::addProfile | ( | int | profile_key | ) | [private] |
Definition at line 124 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::handleItemActivated | ( | QTreeWidgetItem * | item, |
int | column | ||
) | [private, slot] |
Definition at line 205 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::handleNodesAdded | ( | int | profile_key | ) | [private, slot] |
Definition at line 103 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::handleProfileAdded | ( | int | profile_key | ) | [private, slot] |
Definition at line 97 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::handleTreeContextMenuRequest | ( | const QPoint & | pos | ) | [private, slot] |
Definition at line 178 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::markItemActive | ( | const DatabaseKey & | key | ) | [private] |
Definition at line 228 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::markItemInactive | ( | const DatabaseKey & | key | ) | [private] |
Definition at line 237 of file profile_tree_widget.cpp.
QString swri_profiler_tools::ProfileTreeWidget::nameForKey | ( | const DatabaseKey & | key | ) | const [private] |
Definition at line 214 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::setActiveNode | ( | int | profile_key, |
int | node_key | ||
) | [slot] |
Definition at line 246 of file profile_tree_widget.cpp.
Definition at line 76 of file profile_tree_widget.cpp.
void swri_profiler_tools::ProfileTreeWidget::synchronizeWidget | ( | ) | [private] |
Definition at line 109 of file profile_tree_widget.cpp.
Definition at line 56 of file profile_tree_widget.h.
Definition at line 51 of file profile_tree_widget.h.
std::unordered_map<DatabaseKey, QTreeWidgetItem*> swri_profiler_tools::ProfileTreeWidget::items_ [private] |
Definition at line 57 of file profile_tree_widget.h.
QTreeWidget* swri_profiler_tools::ProfileTreeWidget::tree_widget_ [private] |
Definition at line 54 of file profile_tree_widget.h.