mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-08-26 Fred Gleason <fredg@paravelsystems.com>
* Modified the 'Select Log' dialog in the voice tracker in rdairplay(1) so as to retain previous service selection across invocations. * Modified the 'Podcast Item List' dialog in rdcastmanager(1) so as to retain previous service selection across invocations. * Modified the 'Edit Log Chain' dialog in rdlogedit(1) so as to retain previous user group selection across invocations. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include <rdlist_logs.h>
|
||||
|
||||
#include "colors.h"
|
||||
#include "voicetracker.h"
|
||||
|
||||
VoiceTracker::VoiceTracker(QWidget *parent)
|
||||
: RDWidget(parent)
|
||||
{
|
||||
d_listlogs_dialog=new RDListLogs(RDLogFilter::StationFilter,"RDAirPlay",this);
|
||||
|
||||
d_tracker_widget=new RDTrackerWidget(&d_import_path,this);
|
||||
if(rda->airplayConf()->barAction()==RDAirPlayConf::StartNext) {
|
||||
d_tracker_widget->setFocusPolicy(Qt::NoFocus);
|
||||
@@ -57,16 +57,15 @@ void VoiceTracker::loadData()
|
||||
{
|
||||
QString logname;
|
||||
|
||||
RDListLogs *d=new RDListLogs(&logname,RDLogFilter::StationFilter,"RDAirPlay",
|
||||
this);
|
||||
if(d->exec()) {
|
||||
printf("HERE1\n");
|
||||
if(d_listlogs_dialog->exec(&logname)) {
|
||||
printf("HERE2: %s\n",logname.toUtf8().constData());
|
||||
if(d_tracker_widget->load(logname)) {
|
||||
d_load_button->disconnect();
|
||||
connect(d_load_button,SIGNAL(clicked()),this,SLOT(unloadData()));
|
||||
d_load_button->setText(tr("Unload\nLog"));
|
||||
}
|
||||
}
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
|
||||
#include <rdlist_logs.h>
|
||||
#include <rdtrackerwidget.h>
|
||||
#include <rdwidget.h>
|
||||
|
||||
@@ -43,6 +44,7 @@ class VoiceTracker : public RDWidget
|
||||
void paintEvent(QPaintEvent *e);
|
||||
|
||||
private:
|
||||
RDListLogs *d_listlogs_dialog;
|
||||
RDTrackerWidget *d_tracker_widget;
|
||||
QPushButton *d_load_button;
|
||||
QString d_import_path;
|
||||
|
Reference in New Issue
Block a user