mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 16:41:18 +02:00
2014-10-07 Fred Gleason <fredg@paravelsystems.com>
* Added a 'GPIO_EVENTS' table to the database. * Incremented the database version to 240. * Implemented GPIO event logging in 'ripcd/local_macros.cpp' and 'ripcd/ripcd.h'. * Added an 'Events Log' area to RDGpiMon(1) in 'utils/rdgpimon/rdgpimon.cpp' and 'utils/rdgpimon/rdgpimon.h'. * Added code in rdmaint(1) to purge logged GPIO events in 'utils/rdmaint/rdmaint.cpp' and 'utils/rdmaint/rdmaint.h'.
This commit is contained in:
@@ -35,7 +35,10 @@
|
||||
#include <qsqldatabase.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qdatetimeedit.h>
|
||||
#include <qtimer.h>
|
||||
|
||||
#include <rdlistview.h>
|
||||
#include <rdmatrix.h>
|
||||
#include <rdconfig.h>
|
||||
#include <rdripc.h>
|
||||
@@ -62,6 +65,9 @@ class MainWidget : public QWidget
|
||||
void userData();
|
||||
void typeActivatedData(int index);
|
||||
void matrixActivatedData(int index);
|
||||
void eventsDateChangedData(const QDate &date);
|
||||
void eventsStateChangedData(int n);
|
||||
void eventsScrollData();
|
||||
void gpiStateChangedData(int matrix,int line,bool state);
|
||||
void gpoStateChangedData(int matrix,int line,bool state);
|
||||
void gpiMaskChangedData(int matrix,int line,bool state);
|
||||
@@ -76,6 +82,8 @@ class MainWidget : public QWidget
|
||||
private:
|
||||
void UpdateLabelsUp(int last_line);
|
||||
void UpdateLabelsDown(int first_line);
|
||||
void RefreshEventsList();
|
||||
void AddEventsItem(int line,bool state);
|
||||
RDConfig *gpi_config;
|
||||
QSqlDatabase *gpi_db;
|
||||
RDRipc *gpi_ripc;
|
||||
@@ -90,7 +98,16 @@ class MainWidget : public QWidget
|
||||
RDTransportButton *gpi_down_button;
|
||||
int gpi_first_line;
|
||||
int gpi_last_line;
|
||||
QLabel *gpi_events_date_label;
|
||||
QDateEdit *gpi_events_date_edit;
|
||||
QLabel *gpi_events_state_label;
|
||||
QComboBox *gpi_events_state_box;
|
||||
QPushButton *gpi_events_scroll_button;
|
||||
RDListView *gpi_events_list;
|
||||
QTimer *gpi_events_startup_timer;
|
||||
bool gpi_scroll_mode;
|
||||
QPalette gpi_scroll_color;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif // MAIN_WIDGET_H
|
||||
|
Reference in New Issue
Block a user