Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
swri_profiler_tools::ProfileTreeWidget Class Reference

#include <profile_tree_widget.h>

Inheritance diagram for swri_profiler_tools::ProfileTreeWidget:
Inheritance graph
[legend]

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_
 
ProfileDatabasedb_
 
std::unordered_map< DatabaseKey, QTreeWidgetItem * > items_
 
QTreeWidget * tree_widget_
 

Detailed Description

Definition at line 49 of file profile_tree_widget.h.

Constructor & Destructor Documentation

swri_profiler_tools::ProfileTreeWidget::ProfileTreeWidget ( QWidget *  parent = 0)

Definition at line 50 of file profile_tree_widget.cpp.

swri_profiler_tools::ProfileTreeWidget::~ProfileTreeWidget ( )

Definition at line 72 of file profile_tree_widget.cpp.

Member Function Documentation

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 
)
privateslot

Definition at line 205 of file profile_tree_widget.cpp.

void swri_profiler_tools::ProfileTreeWidget::handleNodesAdded ( int  profile_key)
privateslot

Definition at line 103 of file profile_tree_widget.cpp.

void swri_profiler_tools::ProfileTreeWidget::handleProfileAdded ( int  profile_key)
privateslot

Definition at line 97 of file profile_tree_widget.cpp.

void swri_profiler_tools::ProfileTreeWidget::handleTreeContextMenuRequest ( const QPoint &  pos)
privateslot

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.

void swri_profiler_tools::ProfileTreeWidget::setDatabase ( ProfileDatabase db)

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.

Member Data Documentation

DatabaseKey swri_profiler_tools::ProfileTreeWidget::active_key_
private

Definition at line 56 of file profile_tree_widget.h.

ProfileDatabase* swri_profiler_tools::ProfileTreeWidget::db_
private

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.


The documentation for this class was generated from the following files:


swri_profiler_tools
Author(s):
autogenerated on Fri Nov 27 2020 03:44:18