Added two more forms into the program and hooked them up. There is no graphing yet but the form is there. The details pane that was in the graphing screen in GVRET-PC is now its own form and being fleshed out still.
This commit is contained in:
@@ -36,11 +36,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
rx_state = IDLE;
|
||||
rx_step = 0;
|
||||
|
||||
graphingWindow = NULL;
|
||||
frameInfoWindow = NULL;
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete ui;
|
||||
if (graphingWindow) delete graphingWindow;
|
||||
}
|
||||
|
||||
void MainWindow::addFrameToDisplay(CANFrame &frame, bool autoRefresh = false)
|
||||
@@ -239,6 +243,19 @@ void MainWindow::connButtonPress()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::showGraphingWindow()
|
||||
{
|
||||
if (!graphingWindow) graphingWindow = new GraphingWindow();
|
||||
graphingWindow->show();
|
||||
}
|
||||
|
||||
void MainWindow::showFrameDataAnalysis()
|
||||
{
|
||||
//only create an instance of the object if we dont have one. Otherwise just display the existing one.
|
||||
if (!frameInfoWindow) frameInfoWindow = new FrameInfoWindow(model->getListReference());
|
||||
frameInfoWindow->show();
|
||||
}
|
||||
|
||||
void MainWindow::readSerialData()
|
||||
{
|
||||
QByteArray data = port->readAll();
|
||||
|
||||
Reference in New Issue
Block a user