mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2021-02-09 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDEmptyCart' widget. * Removed 'RD3EmptyCart' dependency from rdairplay(1). * Removed 'RD3EmptyCart' dependency from rdlogmanager(1). * Removed 'RD3EmptyCart' dependency from rdpanel(1). * Removed the 'RD3EmptyCart' widget. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -60,7 +60,6 @@ dist_librd_la_SOURCES = dbversion.h\
|
||||
export_textlog.cpp\
|
||||
rd.h\
|
||||
rd3cartdrag.cpp rd3cartdrag.h\
|
||||
rd3emptycart.cpp rd3emptycart.h\
|
||||
rdadd_cart.cpp rdadd_cart.h\
|
||||
rdadd_log.cpp rdadd_log.h\
|
||||
rdairplay_conf.cpp rdairplay_conf.h\
|
||||
@@ -128,6 +127,7 @@ dist_librd_la_SOURCES = dbversion.h\
|
||||
rddummylookup.cpp rddummylookup.h\
|
||||
rdedit_audio.cpp rdedit_audio.h\
|
||||
rdedit_panel_name.cpp rdedit_panel_name.h\
|
||||
rdemptycart.cpp rdemptycart.h\
|
||||
rdendpointlistmodel.cpp rdendpointlistmodel.h\
|
||||
rdescape_string.cpp rdescape_string.h\
|
||||
rdevent.cpp rdevent.h\
|
||||
@@ -286,8 +286,7 @@ dist_librd_la_SOURCES = dbversion.h\
|
||||
rdxport_interface.h
|
||||
|
||||
|
||||
nodist_librd_la_SOURCES = moc_rd3emptycart.cpp\
|
||||
moc_rdadd_cart.cpp\
|
||||
nodist_librd_la_SOURCES = moc_rdadd_cart.cpp\
|
||||
moc_rdadd_log.cpp\
|
||||
moc_rdapplication.cpp\
|
||||
moc_rdaudioconvert.cpp\
|
||||
@@ -327,6 +326,7 @@ nodist_librd_la_SOURCES = moc_rd3emptycart.cpp\
|
||||
moc_rddummylookup.cpp\
|
||||
moc_rdedit_audio.cpp\
|
||||
moc_rdedit_panel_name.cpp\
|
||||
moc_rdemptycart.cpp\
|
||||
moc_rdendpointlistmodel.cpp\
|
||||
moc_rdevent_player.cpp\
|
||||
moc_rdexport_settings_dialog.cpp\
|
||||
|
@@ -39,7 +39,6 @@ SOURCES += export_technical.cpp
|
||||
SOURCES += export_textlog.cpp
|
||||
SOURCES += html_gpl2.cpp
|
||||
SOURCES += rd3cartdrag.cpp
|
||||
SOURCES += rd3emptycart.cpp
|
||||
SOURCES += rdadd_log.cpp
|
||||
SOURCES += rdadd_cart.cpp
|
||||
SOURCES += rdairplay_conf.cpp
|
||||
@@ -95,6 +94,7 @@ SOURCES += rddropboxlistmodel.cpp
|
||||
SOURCES += rddummylookup.cpp
|
||||
SOURCES += rdedit_audio.cpp
|
||||
SOURCES += rdedit_panel_name.cpp
|
||||
SOURCES += rdemptycart.cpp
|
||||
SOURCES += rdendpointlistmodel.cpp
|
||||
SOURCES += rdescape_string.cpp
|
||||
SOURCES += rdevent.cpp
|
||||
@@ -215,7 +215,6 @@ HEADERS += schedcartlist.h
|
||||
HEADERS += schedruleslist.h
|
||||
HEADERS += rd.h
|
||||
HEADERS += rd3cartdrag.h
|
||||
HEADERS += rd3emptycart.h
|
||||
HEADERS += rdadd_cart.h
|
||||
HEADERS += rdadd_log.h
|
||||
HEADERS += rdairplay_conf.h
|
||||
@@ -271,6 +270,7 @@ HEADERS += rddropboxlistmodel.h
|
||||
HEADERS += rddummylookup.h
|
||||
HEADERS += rdedit_audio.h
|
||||
HEADERS += rdedit_panel_name.h
|
||||
HEADERS += rdemptycart.h
|
||||
HEADERS += rdendpointlistmodel.h
|
||||
HEADERS += rdescape_string.h
|
||||
HEADERS += rdevent.h
|
||||
|
@@ -32,6 +32,7 @@
|
||||
//
|
||||
#include "../icons/play.xpm"
|
||||
#include "../icons/rml5.xpm"
|
||||
#include "../icons/trashcan-32x32.xpm"
|
||||
#include "../icons/trashcan-16x16.xpm"
|
||||
|
||||
RD3CartDrag::RD3CartDrag(unsigned cartnum,const QPixmap *icon,const QColor &color,
|
||||
@@ -67,7 +68,7 @@ RD3CartDrag::RD3CartDrag(unsigned cartnum,const QString &title,
|
||||
{
|
||||
SetData(cartnum,color,title);
|
||||
if(cartnum==0) {
|
||||
setPixmap(QPixmap(trashcan_xpm));
|
||||
setPixmap(QPixmap(trashcan_32x32_xpm));
|
||||
}
|
||||
else {
|
||||
RDCart *cart=new RDCart(cartnum);
|
||||
|
@@ -18,47 +18,51 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include "rd3emptycart.h"
|
||||
#include "rdemptycart.h"
|
||||
|
||||
//
|
||||
// Icons
|
||||
//
|
||||
#include "../icons/trashcan-16x16.xpm"
|
||||
#include "../icons/trashcan-32x32.xpm"
|
||||
//Added by qt3to4:
|
||||
#include <QPixmap>
|
||||
|
||||
#include <QLabel>
|
||||
#include <QMouseEvent>
|
||||
#include <QPixmap>
|
||||
|
||||
RD3EmptyCart::RD3EmptyCart(QWidget *parent)
|
||||
RDEmptyCart::RDEmptyCart(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
empty_label=new QLabel(this);
|
||||
empty_label->setPixmap(QPixmap(trashcan_xpm));
|
||||
empty_label->setPixmap(QPixmap(trashcan_32x32_xpm));
|
||||
empty_label->setGeometry(0,0,32,32);
|
||||
}
|
||||
|
||||
|
||||
RD3EmptyCart::~RD3EmptyCart()
|
||||
RDEmptyCart::~RDEmptyCart()
|
||||
{
|
||||
delete empty_label;
|
||||
}
|
||||
|
||||
|
||||
QSize RD3EmptyCart::sizeHint() const
|
||||
QSize RDEmptyCart::sizeHint() const
|
||||
{
|
||||
return QSize(32,32);
|
||||
}
|
||||
|
||||
|
||||
QSizePolicy RD3EmptyCart::sizePolicy() const
|
||||
QSizePolicy RDEmptyCart::sizePolicy() const
|
||||
{
|
||||
return QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
|
||||
}
|
||||
|
||||
|
||||
void RD3EmptyCart::mousePressEvent(QMouseEvent *e)
|
||||
void RDEmptyCart::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
QWidget::mousePressEvent(e);
|
||||
RD3CartDrag *d=new RD3CartDrag(0,"",Qt::lightGray,this);
|
||||
d->dragCopy();
|
||||
QDrag *drag=new QDrag(this);
|
||||
RDCartDrag *cd=new RDCartDrag(0,"",Qt::lightGray);
|
||||
drag->setMimeData(cd);
|
||||
drag->setPixmap(QPixmap(trashcan_16x16_xpm));
|
||||
drag->exec();
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
// rd3emptycart.h
|
||||
// rdemptycart.h
|
||||
//
|
||||
// A drag source for an empty cart.
|
||||
//
|
||||
@@ -18,22 +18,21 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef RD3EMPTYCART_H
|
||||
#define RD3EMPTYCART_H
|
||||
#ifndef RDEMPTYCART_H
|
||||
#define RDEMPTYCART_H
|
||||
|
||||
#include <qlabel.h>
|
||||
#include <qwidget.h>
|
||||
//Added by qt3to4:
|
||||
#include <QLabel>
|
||||
#include <QMouseEvent>
|
||||
#include <QWidget>
|
||||
|
||||
#include <rd3cartdrag.h>
|
||||
#include <rdcartdrag.h>
|
||||
|
||||
class RD3EmptyCart : public QWidget
|
||||
class RDEmptyCart : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RD3EmptyCart(QWidget *parent=0);
|
||||
~RD3EmptyCart();
|
||||
RDEmptyCart(QWidget *parent=0);
|
||||
~RDEmptyCart();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
@@ -45,4 +44,4 @@ class RD3EmptyCart : public QWidget
|
||||
};
|
||||
|
||||
|
||||
#endif // RD3EMPTYCART_H
|
||||
#endif // RDEMPTYCART_H
|
Reference in New Issue
Block a user