2021-02-05 Fred Gleason <fredg@paravelsystems.com>

* Removed vestigal 'LibListview' class from rdairplay(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-02-05 15:58:14 -05:00
parent 301d192754
commit ca69b9e6e4
6 changed files with 3 additions and 103 deletions

View File

@ -21013,3 +21013,5 @@
* Added 'RDMacroCartModel'
* Refactored the macro cart editor dialog in rdlibrary(1) to use the
model-based API.
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
* Removed vestigal 'LibListview' class from rdairplay(1).

View File

@ -45,7 +45,6 @@ bin_PROGRAMS = rdairplay
dist_rdairplay_SOURCES = button_log.cpp button_log.h\
edit_event.cpp edit_event.h\
hourselector.cpp hourselector.h\
lib_listview.cpp lib_listview.h\
list_log.cpp list_log.h\
list_logs.cpp list_logs.h\
local_macros.cpp colors.h\
@ -63,7 +62,6 @@ dist_rdairplay_SOURCES = button_log.cpp button_log.h\
nodist_rdairplay_SOURCES = moc_button_log.cpp\
moc_edit_event.cpp\
moc_hourselector.cpp\
moc_lib_listview.cpp\
moc_list_log.cpp\
moc_list_logs.cpp\
moc_loglinebox.cpp\

View File

@ -1,55 +0,0 @@
// lib_listview.cpp
//
// The Log ListView widget for RDAirPlay's Full Log widget.
//
// (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
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <QDragEnterEvent>
#include <q3header.h>
#include <rd3cartdrag.h>
#include <lib_listview.h>
LibListView::LibListView(QWidget *parent)
: RDListView(parent)
{
setAcceptDrops(true);
}
void LibListView::dragEnterEvent(QDragEnterEvent *e)
{
e->accept(RD3CartDrag::canDecode(e));
}
void LibListView::dropEvent(QDropEvent *e)
{
RDLogLine ll;
int line=-1;
QPoint pos(e->pos().x(),e->pos().y()-header()->sectionRect(0).height());
if(RD3CartDrag::decode(e,&ll)) {
RDListViewItem *item=(RDListViewItem *)itemAt(pos);
if(item!=NULL) {
line=item->text(15).toInt();
}
emit cartDropped(line,&ll);
}
}

View File

@ -1,42 +0,0 @@
// lib_listview.h
//
// The Log ListView widget for RDAirPlay's Full Log widget.
//
// (C) Copyright 2002-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
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef LIB_LISTVIEW_H
#define LIB_LISTVIEW_H
#include <rdlistview.h>
#include <rdlog_line.h>
class LibListView : public RDListView
{
Q_OBJECT
public:
LibListView(QWidget *parent);
signals:
void cartDropped(int line,RDLogLine *ll);
protected:
void dragEnterEvent(QDragEnterEvent *e);
void dropEvent(QDropEvent *e);
};
#endif // LIB_LISTVIEW_H

View File

@ -26,7 +26,6 @@
#include "edit_event.h"
#include "hourselector.h"
#include "lib_listview.h"
#include "list_logs.h"
#include "logtableview.h"

View File

@ -2,7 +2,7 @@
#
# The QMake project file for RDAirPlay.
#
# (C) Copyright 2003-2005,2016 Fred Gleason <fredg@paravelsystems.com>
# (C) Copyright 2003-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
@ -23,7 +23,6 @@ x11 {
SOURCES += button_log.cpp
SOURCES += edit_event.cpp
SOURCES += hourselector.cpp
SOURCES += lib_listview.cpp
SOURCES += list_log.cpp
SOURCES += list_logs.cpp
SOURCES += local_macros.cpp
@ -43,7 +42,6 @@ x11 {
HEADERS += colors.h
HEADERS += edit_event.h
HEADERS += hourselector.h
HEADERS += lib_listview.h
HEADERS += list_log.h
HEADERS += list_logs.h
HEADERS += loglinebox.h