graph_analysis
Public Types | Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
graph_analysis::gui::GraphWidgetManager Class Reference

The GraphWidgetManager loads and connect all main graph widget components. More...

#include <GraphWidgetManager.hpp>

Inheritance diagram for graph_analysis::gui::GraphWidgetManager:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::gui::GraphWidgetManager:
Collaboration graph
[legend]

Public Types

enum  Mode { CONNECT_MODE, EDIT_MODE, MOVE_MODE }
 

Public Slots

void refresh ()
 triggers a refresh() in the currently displayed graph widget More...
 
void shuffle ()
 triggers shuffle() in the currently displayed graph widget More...
 
void addGraphWidget (GraphWidget *graphWidget)
 
void resetGraph (bool keepData=false)
 
void importGraph ()
 
void exportGraph ()
 
void tabChanged (int index)
 

Public Member Functions

 GraphWidgetManager ()
 
 ~GraphWidgetManager ()
 destructor - frees the main window (which recursively frees all other Qt components) More...
 
void helpSetup (std::stringstream &ss, const std::string &cmd=std::string("program"))
 prints verbose help message regarding usage of 'cmd' to string stream 'ss' More...
 
void updateStatus (const char *message, int timeout=0)
 
void updateStatus (const std::string &message, int timeout=0)
 setter method for updating the temporary text (i.e. for another 'timeout' miliseconds) currently being displayed on the Status Bar to the given 'message' More...
 
void updateStatus (const QString &message, int timeout=0)
 setter method for updating the temporary text (i.e. for another 'timeout' miliseconds) currently being displayed on the Status Bar to the given 'message' More...
 

Static Public Attributes

static const int TIMEOUT = 6900
 StatusBar standard timeout (in ms) More...
 

Protected Member Functions

void notifyModeChange (Mode mode)
 
void notifyAll ()
 

Protected Attributes

graph_analysis::BaseGraph::Ptr mpGraph
 conceptual underlying graph More...
 

Detailed Description

The GraphWidgetManager loads and connect all main graph widget components.

manages graph widgets under a common stack widget as well as the main window and the dockable properties dialog and other housekeeping e.g. GUI icons

this is the main-qobject in the hierarchy, which binds all higher-level editor/visualization widgets of graph_analysis::GraphWidget to the currently loaded instance of graph_analysis::BaseGraph. This class also handles importing and exporting from a file.

this thing also provides a statusbar-like mechanism, where proper widgets can display information for the user about the current state.

this class provides all actions, menus and other mode-elements

this class also provides the GraphFilter elements to allow restricting editing operations.

Member Enumeration Documentation

◆ Mode

Enumerator
CONNECT_MODE 
EDIT_MODE 
MOVE_MODE 

Constructor & Destructor Documentation

◆ GraphWidgetManager()

graph_analysis::gui::GraphWidgetManager::GraphWidgetManager ( )

◆ ~GraphWidgetManager()

graph_analysis::gui::GraphWidgetManager::~GraphWidgetManager ( )

destructor - frees the main window (which recursively frees all other Qt components)

Member Function Documentation

◆ addGraphWidget

void graph_analysis::gui::GraphWidgetManager::addGraphWidget ( GraphWidget *  graphWidget)
slot

◆ exportGraph

void graph_analysis::gui::GraphWidgetManager::exportGraph ( )
slot

◆ helpSetup()

void graph_analysis::gui::GraphWidgetManager::helpSetup ( std::stringstream &  ss,
const std::string &  cmd = std::string("program") 
)

prints verbose help message regarding usage of 'cmd' to string stream 'ss'

◆ importGraph

void graph_analysis::gui::GraphWidgetManager::importGraph ( )
slot

◆ notifyAll()

void graph_analysis::gui::GraphWidgetManager::notifyAll ( )
protected

◆ notifyModeChange()

void graph_analysis::gui::GraphWidgetManager::notifyModeChange ( Mode  mode)
protected

◆ refresh

void graph_analysis::gui::GraphWidgetManager::refresh ( )
slot

triggers a refresh() in the currently displayed graph widget

this will re-layout the whole graph

◆ resetGraph

void graph_analysis::gui::GraphWidgetManager::resetGraph ( bool  keepData = false)
slot

◆ shuffle

void graph_analysis::gui::GraphWidgetManager::shuffle ( )
slot

triggers shuffle() in the currently displayed graph widget

◆ tabChanged

void graph_analysis::gui::GraphWidgetManager::tabChanged ( int  index)
inlineslot

Handle tab changes

◆ updateStatus() [1/3]

void graph_analysis::gui::GraphWidgetManager::updateStatus ( const char *  message,
int  timeout = 0 
)
inline

◆ updateStatus() [2/3]

void graph_analysis::gui::GraphWidgetManager::updateStatus ( const QString &  message,
int  timeout = 0 
)
inline

setter method for updating the temporary text (i.e. for another 'timeout' miliseconds) currently being displayed on the Status Bar to the given 'message'

◆ updateStatus() [3/3]

void graph_analysis::gui::GraphWidgetManager::updateStatus ( const std::string &  message,
int  timeout = 0 
)
inline

setter method for updating the temporary text (i.e. for another 'timeout' miliseconds) currently being displayed on the Status Bar to the given 'message'

Member Data Documentation

◆ mpGraph

graph_analysis::BaseGraph::Ptr graph_analysis::gui::GraphWidgetManager::mpGraph
protected

conceptual underlying graph

◆ TIMEOUT

const int graph_analysis::gui::GraphWidgetManager::TIMEOUT = 6900
static

StatusBar standard timeout (in ms)


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