Ingen  0.5.1
Public Types | Public Member Functions | List of all members
Ingen::GUI::WindowFactory Class Reference

Manager/Factory for all windows. More...

#include <WindowFactory.hpp>

Public Types

typedef Node::Properties Properties
 

Public Member Functions

 WindowFactory (App &app)
 
size_t num_open_graph_windows ()
 Returns the number of Graph windows currently visible.
 
GraphBoxgraph_box (SPtr< const Client::GraphModel > graph)
 
GraphWindowgraph_window (SPtr< const Client::GraphModel > graph)
 
GraphWindowparent_graph_window (SPtr< const Client::BlockModel > block)
 
void present_graph (SPtr< const Client::GraphModel > model, GraphWindow *preferred=NULL, SPtr< GraphView > view=SPtr< GraphView >())
 Present a GraphWindow for a Graph. More...
 
void present_load_plugin (SPtr< const Client::GraphModel > graph, Properties data=Properties())
 
void present_load_graph (SPtr< const Client::GraphModel > graph, Properties data=Properties())
 
void present_load_subgraph (SPtr< const Client::GraphModel > graph, Properties data=Properties())
 
void present_new_subgraph (SPtr< const Client::GraphModel > graph, Properties data=Properties())
 
void present_rename (SPtr< const Client::ObjectModel > object)
 
void present_properties (SPtr< const Client::ObjectModel > object)
 
bool remove_graph_window (GraphWindow *win, GdkEventAny *ignored=NULL)
 
void set_main_box (GraphBox *box)
 
void clear ()
 

Detailed Description

Manager/Factory for all windows.

This serves as a nice centralized spot for all window management issues, as well as an enumeration of all windows (the goal being to reduce that number as much as possible).

Member Function Documentation

§ present_graph()

void Ingen::GUI::WindowFactory::present_graph ( SPtr< const Client::GraphModel model,
GraphWindow preferred = NULL,
SPtr< GraphView view = SPtr<GraphView>() 
)

Present a GraphWindow for a Graph.

If preferred is not NULL, it will be set to display graph if the graph does not already have a visible window, otherwise that window will be presented and preferred left unmodified.

References Ingen::GUI::App::quit(), and Ingen::GUI::GraphBox::set_graph().


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