2021-10-27 Fred Gleason <fredg@paravelsystems.com>

* Refactored the 'Add Clock' dialog in rdlogmanager(1) to allow
	specification of the clock code as well as name.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-10-27 15:06:39 -04:00
parent 4a98b80c28
commit 0ae01975b9
7 changed files with 154 additions and 85 deletions

View File

@@ -21,6 +21,7 @@
#ifndef EDIT_CLOCK_H
#define EDIT_CLOCK_H
#include <QStringList>
#include <QTextEdit>
#include <rdclockmodel.h>
@@ -40,7 +41,7 @@ class EditClock : public RDDialog
{
Q_OBJECT
public:
EditClock(QString clockname,bool new_clock,std::vector<QString> *new_clocks,
EditClock(QString clockname,bool new_clock,QStringList *new_clocks,
QWidget *parent=0);
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
@@ -88,7 +89,7 @@ class EditClock : public RDDialog
bool edit_modified;
QString edit_name;
bool edit_new_clock;
std::vector<QString> *edit_new_clocks;
QStringList *edit_new_clocks;
RDSchedRulesList* sched_rules_list;
QTextEdit *edit_remarks_edit;
};