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

* Removed the 'CatchListView' widget from rdcatch(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-14 12:17:57 -05:00
parent f084b17b06
commit c654e24a29
12 changed files with 8 additions and 177 deletions

View File

@@ -21113,3 +21113,5 @@
* Added a 'RDIconEngine::catchIcon()' method.
* Refactored the the main window in rdcatch(1) to use the model
based API.
2021-02-14 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'CatchListView' widget from rdcatch(1).

View File

@@ -44,7 +44,6 @@ bin_PROGRAMS = rdcatch
dist_rdcatch_SOURCES = add_recording.cpp add_recording.h\
catch_monitor.cpp catch_monitor.h\
catch_listview.cpp catch_listview.h\
catchtableview.cpp catchtableview.h\
colors.h\
deckmon.cpp deckmon.h\
@@ -61,7 +60,6 @@ dist_rdcatch_SOURCES = add_recording.cpp add_recording.h\
vbox.cpp vbox.h
nodist_rdcatch_SOURCES = moc_add_recording.cpp\
moc_catch_listview.cpp\
moc_catchtableview.cpp\
moc_deckmon.cpp\
moc_edit_cartevent.cpp\

View File

@@ -1,109 +0,0 @@
// catch_listview.cpp
//
// Events List Widget for RDCatch
//
// (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.
//
#include <q3header.h>
#include <Q3PopupMenu>
#include <QMouseEvent>
#include <rdapplication.h>
#include <rdcart.h>
#include <rdedit_audio.h>
#include <rdrecording.h>
#include "catch_listview.h"
#include "globals.h"
CatchListView::CatchListView(QWidget *parent)
: RDListView(parent)
{
catch_parent=parent;
//
// Right-Click Menu
//
catch_menu=new Q3PopupMenu(NULL);
connect(catch_menu,SIGNAL(aboutToShow()),this,SLOT(aboutToShowData()));
catch_menu->
insertItem(tr("Edit Cue Markers"),this,SLOT(editAudioMenuData()),0,0);
}
void CatchListView::aboutToShowData()
{
catch_menu->setItemEnabled(0,!catch_cutname.isEmpty());
}
void CatchListView::editAudioMenuData()
{
RDCart *rdcart=new RDCart(catch_cutname.left(6).toUInt());
RDEditAudio *edit=
new RDEditAudio(rdcart,catch_cutname,catch_audition_card,
catch_audition_port,1500,-400,this);
if(edit->exec()!=-1) {
rdcart->updateLength();
}
delete edit;
delete rdcart;
}
void CatchListView::contentsMousePressEvent(QMouseEvent *e)
{
Q3ListView::contentsMousePressEvent(e);
Q3ListView::contentsMousePressEvent(e);
catch_menu_item=selectedItem();
if(catch_menu_item==NULL) {
catch_cutname="";
}
else {
switch(catch_menu_item->text(28).toUInt()) {
case RDRecording::Recording:
case RDRecording::Playout:
case RDRecording::Upload:
case RDRecording::Download:
catch_cutname=catch_menu_item->text(25);
break;
case RDRecording::MacroEvent:
case RDRecording::SwitchEvent:
catch_cutname="";
break;
}
}
switch(e->button()) {
case Qt::RightButton:
catch_menu->setGeometry(e->globalX(),e->globalY(),
catch_menu->sizeHint().width(),
catch_menu->sizeHint().height());
catch_menu->exec();
break;
default:
e->ignore();
break;
}
}
void CatchListView::contentsMouseDoubleClickEvent(QMouseEvent *e)
{
Q3ListView::contentsMouseDoubleClickEvent(e);
}

View File

@@ -1,51 +0,0 @@
// catch_listview.h
//
// Events List Widget for RDCatch
//
// (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 CATCH_LISTVIEW_H
#define CATCH_LISTVIEW_H
#include <q3popupmenu.h>
#include <rdlistview.h>
class CatchListView : public RDListView
{
Q_OBJECT
public:
CatchListView(QWidget *parent);
private slots:
void aboutToShowData();
void editAudioMenuData();
protected:
void contentsMousePressEvent(QMouseEvent *e);
void contentsMouseDoubleClickEvent(QMouseEvent *e);
private:
Q3PopupMenu *catch_menu;
Q3ListViewItem *catch_menu_item;
QString catch_cutname;
QWidget *catch_parent;
};
#endif // CATCH_LISTVIEW_H

View File

@@ -21,7 +21,6 @@ TEMPLATE = app
x11 {
SOURCES += add_recording.cpp
SOURCES += catch_listview.cpp
SOURCES += catchtableview.cpp
SOURCES += deckmon.cpp
SOURCES += edit_cartevent.cpp
@@ -37,7 +36,6 @@ x11 {
x11 {
HEADERS += add_recording.h
HEADERS += catch_listview.h
HEADERS += catchtableview.h
HEADERS += deckmon.h
HEADERS += edit_cartevent.h

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>&amp;Upravit značky CUE</translation>
<translation type="obsolete">&amp;Upravit značky CUE</translation>
</message>
</context>
<context>

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>Cue Marker editieren</translation>
<translation type="obsolete">Cue Marker editieren</translation>
</message>
</context>
<context>

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>Editar marcadores Cue</translation>
<translation type="obsolete">Editar marcadores Cue</translation>
</message>
</context>
<context>

View File

@@ -36,13 +36,6 @@
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CatchTableView</name>
<message>

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>Rediger cue-markørar</translation>
<translation type="obsolete">Rediger cue-markørar</translation>
</message>
</context>
<context>

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>Rediger cue-markørar</translation>
<translation type="obsolete">Rediger cue-markørar</translation>
</message>
</context>
<context>

View File

@@ -40,7 +40,7 @@
<name>CatchListView</name>
<message>
<source>Edit Cue Markers</source>
<translation>Editar Marcadores</translation>
<translation type="obsolete">Editar Marcadores</translation>
</message>
</context>
<context>