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

◆ ProfileTreeWidget()

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

Definition at line 50 of file profile_tree_widget.cpp.

◆ ~ProfileTreeWidget()

swri_profiler_tools::ProfileTreeWidget::~ProfileTreeWidget ( )

Definition at line 72 of file profile_tree_widget.cpp.

Member Function Documentation

◆ activeNodeChanged

void swri_profiler_tools::ProfileTreeWidget::activeNodeChanged ( int  profile_key,
int  node_key 
)
signal

◆ addNode()

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.

◆ addProfile()

void swri_profiler_tools::ProfileTreeWidget::addProfile ( int  profile_key)
private

Definition at line 124 of file profile_tree_widget.cpp.

◆ handleItemActivated

void swri_profiler_tools::ProfileTreeWidget::handleItemActivated ( QTreeWidgetItem *  item,
int  column 
)
privateslot

Definition at line 205 of file profile_tree_widget.cpp.

◆ handleNodesAdded

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

Definition at line 103 of file profile_tree_widget.cpp.

◆ handleProfileAdded

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

Definition at line 97 of file profile_tree_widget.cpp.

◆ handleTreeContextMenuRequest

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

Definition at line 178 of file profile_tree_widget.cpp.

◆ markItemActive()

void swri_profiler_tools::ProfileTreeWidget::markItemActive ( const DatabaseKey key)
private

Definition at line 228 of file profile_tree_widget.cpp.

◆ markItemInactive()

void swri_profiler_tools::ProfileTreeWidget::markItemInactive ( const DatabaseKey key)
private

Definition at line 237 of file profile_tree_widget.cpp.

◆ nameForKey()

QString swri_profiler_tools::ProfileTreeWidget::nameForKey ( const DatabaseKey key) const
private

Definition at line 214 of file profile_tree_widget.cpp.

◆ setActiveNode

void swri_profiler_tools::ProfileTreeWidget::setActiveNode ( int  profile_key,
int  node_key 
)
slot

Definition at line 246 of file profile_tree_widget.cpp.

◆ setDatabase()

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

Definition at line 76 of file profile_tree_widget.cpp.

◆ synchronizeWidget()

void swri_profiler_tools::ProfileTreeWidget::synchronizeWidget ( )
private

Definition at line 109 of file profile_tree_widget.cpp.

Member Data Documentation

◆ active_key_

DatabaseKey swri_profiler_tools::ProfileTreeWidget::active_key_
private

Definition at line 56 of file profile_tree_widget.h.

◆ db_

ProfileDatabase* swri_profiler_tools::ProfileTreeWidget::db_
private

Definition at line 51 of file profile_tree_widget.h.

◆ items_

std::unordered_map<DatabaseKey, QTreeWidgetItem*> swri_profiler_tools::ProfileTreeWidget::items_
private

Definition at line 57 of file profile_tree_widget.h.

◆ tree_widget_

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 Wed Mar 2 2022 01:06:28