Serves as a mediator/director for Builder, Grapher and Exporter. More...
#include <factory.h>
Signals | |
void | signal_plotCurve_addRequest (PlotCurve *) |
void | signal_plotCurve_removeRequest (PlotCurve *) |
Public Member Functions | |
Factory (QWidget *parent=0) | |
~Factory () |
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:
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...";
}