MainWindow Class Reference

Implementation of the ui_form. More...

#include <mainWindow.h>

Collaboration diagram for MainWindow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

QwtPlot * addPlot (const QString &)
 Add a plot to the main window.
QWidget * addTab (const QString &name="New", QWidget *widget=0)
 Add a tab to the main window.
 MainWindow (QWidget *parent=0)
 Custom constructor.

Friends

class PreferencesObserver

Classes

class  PreferencesObserver
 Implementation of the an observer.


Detailed Description

Implementation of the ui_form.

This class implements the main window using the ui_form generated by QtDesigner.


Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0  ) 

Custom constructor.

The parent of the main window is usually null.

Parameters:
parent pointer to the parent of the main window widget.


Member Function Documentation

QwtPlot * MainWindow::addPlot ( const QString &  name  ) 

Add a plot to the main window.

This method creates a new plot using the addPlot2DTab(const QString&) method. It also returns a pointer to the newly created plot widget.

Parameters:
name of the new plot tab
Returns:
QwtPlot* pointer to the plot canvas

QWidget * MainWindow::addTab ( const QString &  name = "New",
QWidget *  widget = 0 
)

Add a tab to the main window.

This method will add a new tab to the main window

Parameters:
name of the new tab
widget child widget


Generated on Mon Feb 23 16:42:00 2009 for Dragon Wings by  doxygen 1.5.5