Signals | Public Member Functions

Factory Class Reference

Serves as a mediator/director for Builder, Grapher and Exporter. More...

#include <factory.h>

Inheritance diagram for Factory:
Inheritance graph
[legend]
Collaboration diagram for Factory:
Collaboration graph
[legend]

List of all members.

Signals

void signal_plotCurve_addRequest (PlotCurve *)
void signal_plotCurve_removeRequest (PlotCurve *)

Public Member Functions

 Factory (QWidget *parent=0)
 ~Factory ()

Detailed Description

Serves as a mediator/director for Builder, Grapher and Exporter.

Factory is the main class used for data manipulation. It consists of three stacked windows:


Constructor & Destructor Documentation

Factory::Factory ( QWidget parent = 0  ) 

                                          : QTabWidget(parent)
{
    setObjectName("Factory");
    qDebug() << "Constructing Factory...";
    base = new BaseQueryModel(this);

    queryView = new Builder(base, this);
    base->setBuilderView(queryView->builderView());
    addTab(queryView, "Table");

    grapher = new Grapher(base, this);
    addTab(grapher, "Graph");

    exporter = new Exporter(base, this);
    addTab(exporter, "Export");

    connect(queryView->builderView()->dataHeader()->viewPort(), SIGNAL(signal_curve_requested(DataHeaderSection*, bool)),
            this, SLOT(slot_curve_requested(DataHeaderSection*, bool)));
    connect(this, SIGNAL(signal_plotCurve_addRequest(PlotCurve*)),
            grapher, SLOT(addCurve(PlotCurve*)));
    connect(this, SIGNAL(signal_plotCurve_removeRequest(PlotCurve*)),
            grapher, SLOT(removeCurve(PlotCurve*)));
    connect(queryView, SIGNAL(queryExecPending(bool)),
            this, SLOT(onBusySignal(bool)));
    connect(exporter, SIGNAL(busy(bool)),
            this, SLOT(onBusySignal(bool)));
}

Factory::~Factory (  ) 

{
    qDebug() << "Destructing Factory...";
}


Member Function Documentation

void Factory::signal_plotCurve_addRequest ( PlotCurve  )  [signal]

Referenced by Factory().

void Factory::signal_plotCurve_removeRequest ( PlotCurve  )  [signal]

Referenced by Factory().


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