Controller Class Reference

Provides access to various parts of the application. More...

#include <controller.h>

List of all members.

Public Member Functions

 ~Controller ()
void setContentView (ContentView *contentview)
ContentViewgetContentView () const
WelcomeViewgetWelcomeView ()
TextEditgetTextEdit ()
RichTextEditgetRichTextEdit ()
AbstractDataStoregetDataStore ()
void setInfoSidebar (InfoSidebar *infosidebar)
InfoSidebargetInfoSidebar () const
void setSearchNodeSidebar (SearchNodeSidebar *searchnodesidebar)
SearchNodeSidebargetSearchNodeSidebar () const
void setTreeView (TreeView *treeview)
TreeViewgetTreeView () const
void setStatusBar (StatusBar *statusbar)
StatusBargetStatusBar () const
void setNodePropertyWidget (NodePropertyWidget *nodepropertywidget)
NodePropertyWidgetgetNodePropertyWidget () const
void setNavigationSidebar (NavigationSidebar *navigationsidebar)
NavigationSidebargetNavigationSidebar () const
void setEditMenu (EditMenu *editmenu)
EditMenugetEditMenu () const

Static Public Member Functions

static Controllercreate ()

Detailed Description

Provides access to various parts of the application.

The Controller provides access to objects needed in different parts of the application. It is a Singelton and can be created with the static create() function.

Some classes should have only one instance which is managed by the Controller. These classes are WelcomeView, TextEdit, DataStore and RichTextEdit. To use these classes you can use the get-methods of the Controller.

Author:
Manuel Unglaub

Constructor & Destructor Documentation

Controller::~Controller (  ) 

The destructor. Destroys the datastore.


Member Function Documentation

Controller * Controller::create (  )  [static]

This function creates a instance of the Controller if there is not alredy one.

Returns:
A instance of the Controller.
ContentView * Controller::getContentView (  )  const

Get a pointer of the ContentView.

Returns:
A pointer of the ContentView or 0 if it was not set.
AbstractDataStore * Controller::getDataStore (  ) 

Get a pointer to the datastore. The Controller will manage the datastore, that means it will create and destroy it. The datastore is the backend responsible for persisting the data. The following datastores are availlable: XmlDataStore

Returns:
A pointer to the AbstractDataStore.
EditMenu * Controller::getEditMenu (  )  const

Get a pointer to the EditMenu.

Returns:
A pointer to the EditMenu or 0 if it was not set.
InfoSidebar * Controller::getInfoSidebar (  )  const

Get a pointer to the InfoSidebar.

Returns:
A pointer to the InfoSidebar or 0 if it was not set.
NavigationSidebar * Controller::getNavigationSidebar (  )  const

Get a pointer to the NavigationSidebar.

Returns:
A pointer to the NavigationSidebar or 0 if it was not set.
NodePropertyWidget * Controller::getNodePropertyWidget (  )  const

Get a pointer to the NodePropertyWidget.

Returns:
A pointer to the NodePropertyWidget or 0 if it was not set.
RichTextEdit * Controller::getRichTextEdit (  ) 

Get a pointer to the RichTextEdit. The Controller will manage the RichTextEdit, that means it will create and destroy it.

Returns:
A pointer to the RichTextEdit.
SearchNodeSidebar * Controller::getSearchNodeSidebar (  )  const

Get a pointer to the SearchNodeSidebar.

Returns:
A pointer to the SearchNodeSidebar or 0 if it was not set.
StatusBar * Controller::getStatusBar (  )  const

Get a pointer to the StatusBar.

Returns:
A pointer to the StatusBar or 0 if it was not set.
TextEdit * Controller::getTextEdit (  ) 

Get a pointer to the TextEdit. The Controller will manage the TextEdit, that means it will create and destroy it.

Returns:
A pointer to the TextEdit.
TreeView * Controller::getTreeView (  )  const

Get a pointer to the TreeView.

Returns:
A pointer to the TreeView or 0 if it was not set.
WelcomeView * Controller::getWelcomeView (  ) 

Get a pointer to the WelcomeView. The Controller will manage the WelcomeView, that means it will create and destroy it.

Returns:
A pointer to the WelcomeView.
void Controller::setContentView ( ContentView contentview  ) 

This function provides the Controller with a pointer of the ContentView.

Parameters:
contentview A pointer to the ContentView.
void Controller::setEditMenu ( EditMenu editmenu  ) 

This function provides the Controller with a pointer to the EditMenu.

Parameters:
editmenu A pointer to the EditMenu.
void Controller::setInfoSidebar ( InfoSidebar infosidebar  ) 

This function provides the Controller with a pointer to the InfoSidebar.

Parameters:
infosidebar A pointer to the InfoSidebar
void Controller::setNavigationSidebar ( NavigationSidebar navigationsidebar  ) 

This function provides the Controller with a pointer to the NavigationSidebar.

Parameters:
navigationsidebar A pointer to the NavigationSidebar.
void Controller::setNodePropertyWidget ( NodePropertyWidget nodepropertywidget  ) 

This function provides the Controller with a pointer to the NodePropertyWidget.

Parameters:
nodepropertywidget A pointer to the NodePropertyWidget.
void Controller::setSearchNodeSidebar ( SearchNodeSidebar searchnodesidebar  ) 

This function provides the Controller with a pointer to the SearchNodeSidebar.

Parameters:
searchnodesidebar A pointer to the SearchNodeSidebar.
void Controller::setStatusBar ( StatusBar statusbar  ) 

This function provides the Controller with a pointer to the StatusBar.

Parameters:
statusbar A pointer to the StatusBar.
void Controller::setTreeView ( TreeView treeview  ) 

This function provides the Controller with a pointer to the TreeView.

Parameters:
treeview A pointer to the TreeView.

The documentation for this class was generated from the following files:
Generated on Fri May 14 19:12:51 2010 for Silence by  doxygen 1.6.3