All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Slots
Qtilities::CoreGui::ObjectHierarchyNavigator Class Reference

The ObjectHierarchyNavigator widget provides an indication of where you are in an observer-subject hierarchy. More...

#include <ObjectHierarchyNavigator.h>

List of all members.

Public Slots

void refreshHierarchy ()
 Refreshes the display.
void setCurrentObject (QObject *obj)
 Function to set the current object which is the item to the right most part of the hierarchy display.
void setNavigationStack (QStack< int > navigation_stack)
 Allows you to set the navigation stack of this widget.

Detailed Description

The ObjectHierarchyNavigator widget provides an indication of where you are in an observer-subject hierarchy.

This widget is appended to the top of the Qtilities::CoreGui::ObserverWidget widget when the observer context shown by the observer widget provides the correct hints and the observer widget uses the TableView mode.

Below is an example where the widget is added to the top of an observer widget.

observer_widget_doc_table_view_categorized.jpg
Observer Widget Using The Object Hierarhcy Navigator

Member Function Documentation

void Qtilities::CoreGui::ObjectHierarchyNavigator::setNavigationStack ( QStack< int >  navigation_stack)
slot

Allows you to set the navigation stack of this widget.

The front item in the stack is handled as the top most observer in the hierarchy (left in the display) and the last item is the observer parent of the current object (see setCurrentObject()).

Setting the stack will automatically refresh the hierarchy view using refreshHierarchy().



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé