2018-02-01 Fred Gleason <fredg@paravelsystems.com>

* Converted rdgpimon(1) to use RDApplication.
This commit is contained in:
Fred Gleason
2018-01-31 18:39:38 -05:00
parent a8b2ac6cd6
commit a5309b2448
10 changed files with 123 additions and 139 deletions

View File

@@ -2,7 +2,7 @@
//
// A Qt-based application for testing general purpose input (GPI) devices.
//
// (C) Copyright 2002-2005,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2005,2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -37,16 +37,14 @@
#include <rdlistview.h>
#include <rdmatrix.h>
#include <rdconfig.h>
#include <rdripc.h>
#include <rdstation.h>
#include <rdtransportbutton.h>
#include <gpi_label.h>
#include "gpi_label.h"
#define GPIMON_START_UP_DELAY 100
#define GPIMON_ROWS 4
#define GPIMON_COLS 8
#define RDGPIMON_USAGE "\n"
class MainWidget : public QWidget
{
@@ -81,10 +79,6 @@ class MainWidget : public QWidget
void UpdateLabelsDown(int first_line);
void RefreshEventsList();
void AddEventsItem(int line,bool state);
RDConfig *gpi_config;
QSqlDatabase *gpi_db;
RDRipc *gpi_ripc;
RDStation *gpi_station;
RDMatrix *gpi_matrix;
QComboBox *gpi_type_box;
QComboBox *gpi_matrix_box;
@@ -107,4 +101,4 @@ class MainWidget : public QWidget
};
#endif // MAIN_WIDGET_H
#endif // RDGPIMON_H