mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2021-01-27 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDMatrix::id()' method. * Added 'RDIconEngine::Switcher', 'RDIconEngine::Record', 'RDIconEngine::Download' and 'RDIconEngine::Upload' icons to 'RDIconEngine. * Added 'RDMatrixListModel'. * Refactored the 'Rivendell Switcher List' 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 Rivendell Matrices
|
||||
//
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-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,14 +21,14 @@
|
||||
#ifndef LIST_MATRICES_H
|
||||
#define LIST_MATRICES_H
|
||||
|
||||
#include <q3listview.h>
|
||||
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
|
||||
#include <rd.h>
|
||||
#include <rddialog.h>
|
||||
#include <rdmatrix.h>
|
||||
#include <rdmatrixlistmodel.h>
|
||||
#include <rdtableview.h>
|
||||
|
||||
class ListMatrices : public RDDialog
|
||||
{
|
||||
@@ -43,19 +43,18 @@ class ListMatrices : public RDDialog
|
||||
void addData();
|
||||
void editData();
|
||||
void deleteData();
|
||||
void doubleClickedData(Q3ListViewItem *item,const QPoint &pt,int col);
|
||||
void doubleClickedData(const QModelIndex &);
|
||||
void closeData();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
void DeleteMatrix(int matrix);
|
||||
void RefreshList();
|
||||
void DeleteMatrix(RDMatrix *mtx);
|
||||
void AddList(int matrix_num);
|
||||
void RefreshRecord(Q3ListViewItem *item);
|
||||
QLabel *list_title_label;
|
||||
Q3ListView *list_view;
|
||||
RDTableView *list_view;
|
||||
RDMatrixListModel *list_model;
|
||||
QPushButton *list_add_button;
|
||||
QPushButton *list_edit_button;
|
||||
QPushButton *list_delete_button;
|
||||
@@ -65,5 +64,4 @@ class ListMatrices : public RDDialog
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#endif // LIST_MATRICES_H
|
||||
|
Reference in New Issue
Block a user