mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2021-01-26 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDTableView' and 'RDTreeView' base viewer classes. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Edit a Rivendell Log
|
||||
//
|
||||
// (C) Copyright 2002-2020 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
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QStringList>
|
||||
#include <QTableView>
|
||||
|
||||
#include "list_reports.h"
|
||||
#include "logmodel.h"
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include "logmodel.h"
|
||||
|
||||
LogTableView::LogTableView(QWidget *parent)
|
||||
: QTableView(parent)
|
||||
: RDTableView(parent)
|
||||
{
|
||||
d_mouse_row=-1;
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// The Log TableView widget for RDLogEdit.
|
||||
//
|
||||
// (C) Copyright 2002-2020 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
|
||||
@@ -25,11 +25,11 @@
|
||||
#include <QDropEvent>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QMenu>
|
||||
#include <QTableView>
|
||||
|
||||
#include <rdlog_line.h>
|
||||
#include <rdtableview.h>
|
||||
|
||||
class LogTableView : public QTableView
|
||||
class LogTableView : public RDTableView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@@ -18,9 +18,9 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qtranslator.h>
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
#include <QTranslator>
|
||||
|
||||
#include <rdadd_log.h>
|
||||
#include <rdconf.h>
|
||||
@@ -113,12 +113,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
//
|
||||
// Log List
|
||||
//
|
||||
log_log_view=new QTableView(this);
|
||||
log_log_view->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
log_log_view=new RDTableView(this);
|
||||
log_log_view->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
log_log_view->setShowGrid(false);
|
||||
log_log_view->setSortingEnabled(false);
|
||||
log_log_view->setWordWrap(false);
|
||||
log_log_model=new RDLogListModel(this);
|
||||
log_log_model->setFont(defaultFont());
|
||||
log_log_model->setPalette(palette());
|
||||
|
@@ -22,12 +22,12 @@
|
||||
#define RDLOGEDIT_H
|
||||
|
||||
#include <QList>
|
||||
#include <QTableView>
|
||||
|
||||
#include <rdlog_line.h>
|
||||
#include <rdlogfilter.h>
|
||||
#include <rdloglistmodel.h>
|
||||
#include <rdnotification.h>
|
||||
#include <rdtableview.h>
|
||||
#include <rdwidget.h>
|
||||
|
||||
#define RDLOGEDIT_POSITION_FILENAME ".rdlogedit"
|
||||
@@ -74,7 +74,7 @@ class MainWidget : public RDWidget
|
||||
int log_card_no;
|
||||
int log_stream_no;
|
||||
RDLogFilter *log_filter_widget;
|
||||
QTableView *log_log_view;
|
||||
RDTableView *log_log_view;
|
||||
RDLogListModel *log_log_model;
|
||||
QList<RDLogLine> log_clipboard;
|
||||
QPushButton *log_add_button;
|
||||
|
Reference in New Issue
Block a user