mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 14:20:11 +01:00
2021-01-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDPypadListModel'. * Refactored the 'Encoder 'PyPAD Instances' dialog in rdadmin(1) to use the model-based API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// List PyPAD Instances
|
||||
//
|
||||
// (C) Copyright 2018-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2021 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
|
||||
@@ -21,13 +21,12 @@
|
||||
#ifndef LIST_PYPADS_H
|
||||
#define LIST_PYPADS_H
|
||||
|
||||
#include <qpixmap.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qtimer.h>
|
||||
#include <QPushButton>
|
||||
#include <QTableView>
|
||||
|
||||
#include <rddialog.h>
|
||||
#include <rdlistview.h>
|
||||
#include <rdlistviewitem.h>
|
||||
#include <rdpypadlistmodel.h>
|
||||
#include <rdstation.h>
|
||||
|
||||
class ListPypads : public RDDialog
|
||||
@@ -43,26 +42,21 @@ class ListPypads : public RDDialog
|
||||
void editData();
|
||||
void deleteData();
|
||||
void errorData();
|
||||
void doubleClickedData(Q3ListViewItem *item,const QPoint &pt,int col);
|
||||
void doubleClickedData(const QModelIndex &index);
|
||||
void closeData();
|
||||
void updateData();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
void RefreshList();
|
||||
void RefreshItem(RDListViewItem *item);
|
||||
RDListView *list_list_view;
|
||||
QTableView *list_list_view;
|
||||
RDPypadListModel *list_list_model;
|
||||
QPushButton *list_add_button;
|
||||
QPushButton *list_edit_button;
|
||||
QPushButton *list_delete_button;
|
||||
QPushButton *list_error_button;
|
||||
QPushButton *list_close_button;
|
||||
QPixmap *list_greenball_pixmap;
|
||||
QPixmap *list_redball_pixmap;
|
||||
RDStation *list_station;
|
||||
QTimer *list_update_timer;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user