2019-04-23 Fred Gleason <fredg@paravelsystems.com>

* Added a 'STACK_SCHED_CODES' table to the database.
	* Dropped the 'STACK_LINES.SCHED_CODES' field from the database.
	* Incremented the database version to 308.
	* Renamed the 'SchedCartList' class to 'RDSchedCartList' and
	refactored it to be idiomatic Qt.
	* Renamed the 'SchedRulesList' class to 'RDSchedRulesList'.
This commit is contained in:
Fred Gleason
2019-04-23 18:30:30 -04:00
parent 9f95fec5e1
commit 5589d3fc97
27 changed files with 452 additions and 324 deletions

View File

@@ -240,7 +240,7 @@ EditClock::EditClock(QString clockname,bool new_clock,
//
// Populate Data
//
sched_rules_list = new SchedRulesList(clockname,rda->config());
sched_rules_list = new RDSchedRulesList(clockname,rda->config());
edit_clock=new RDClock(rda->station());
edit_clock->setName(clockname);
edit_clock->load();

View File

@@ -31,7 +31,7 @@
#include <q3textedit.h>
#include <rdclock.h>
#include <schedruleslist.h>
#include <rdschedruleslist.h>
#include "clock_listview.h"
@@ -93,7 +93,7 @@ class EditClock : public QDialog
QString edit_name;
bool edit_new_clock;
std::vector<QString> *edit_new_clocks;
SchedRulesList* sched_rules_list;
RDSchedRulesList* sched_rules_list;
Q3TextEdit *edit_remarks_edit;
};

View File

@@ -31,12 +31,11 @@
#include <qcombobox.h>
#include <rd.h>
#include <schedruleslist.h>
#include "edit_schedcoderules.h"
editSchedCodeRules::editSchedCodeRules(Q3ListViewItem *item,
SchedRulesList *sched_rules_list,
RDSchedRulesList *sched_rules_list,
QWidget* parent)
: QDialog(parent)
{

View File

@@ -3,7 +3,7 @@
// Change rules for scheduler codes dialog
//
// (C) Copyright Stefan Gabriel <stg@st-gabriel.de>
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2019 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
@@ -28,7 +28,7 @@
#include <qcombobox.h>
#include <qvariant.h>
#include <schedruleslist.h>
#include <rdschedruleslist.h>
#include "clock_listview.h"
@@ -38,7 +38,7 @@ class editSchedCodeRules : public QDialog
{
Q_OBJECT
public:
editSchedCodeRules(Q3ListViewItem *item, SchedRulesList *sched_rules_list,
editSchedCodeRules(Q3ListViewItem *item, RDSchedRulesList *sched_rules_list,
QWidget *parent=0);
~editSchedCodeRules();
QSize sizeHint() const;

View File

@@ -37,9 +37,8 @@
#include "edit_schedcoderules.h"
#include "globals.h"
#include "list_clocks.h"
#include "schedruleslist.h"
EditSchedRules::EditSchedRules(QString clock,unsigned *artistsep,SchedRulesList *schedruleslist,bool *rules_modified,QWidget *parent)
EditSchedRules::EditSchedRules(QString clock,unsigned *artistsep,RDSchedRulesList *schedruleslist,bool *rules_modified,QWidget *parent)
: QDialog(parent)
{
setModal(true);
@@ -231,7 +230,7 @@ void EditSchedRules::importData()
return;
}
delete listclocks;
SchedRulesList *import_list=new SchedRulesList(clockname,rda->config());
RDSchedRulesList *import_list=new RDSchedRulesList(clockname,rda->config());
list_schedCodes_view->clear();
for (int i=0; i<import_list->getNumberOfItems(); i++)

View File

@@ -29,7 +29,7 @@
#include <qvariant.h>
#include <rdlistview.h>
#include <schedruleslist.h>
#include <rdschedruleslist.h>
class QSpinBox;
@@ -38,7 +38,7 @@ class EditSchedRules : public QDialog
Q_OBJECT
public:
EditSchedRules(QString clock,unsigned *artistsep,
SchedRulesList *schedruleslist,bool *rules_modified,
RDSchedRulesList *schedruleslist,bool *rules_modified,
QWidget *parent=0);
~EditSchedRules();
QSize sizeHint() const;
@@ -63,7 +63,7 @@ class EditSchedRules : public QDialog
QString clockname;
unsigned* edit_artistsep;
bool* edit_rules_modified;
SchedRulesList* sched_rules_list;
RDSchedRulesList* sched_rules_list;
bool edit_modified;
};