mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 16:20:14 +01:00
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:
@@ -21,7 +21,9 @@
|
||||
#ifndef ADD_CLOCK_H
|
||||
#define ADD_CLOCK_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
|
||||
#include <rdclock.h>
|
||||
#include <rddialog.h>
|
||||
@@ -30,23 +32,34 @@ class AddClock : public RDDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
AddClock(QString *logname,QWidget *parent=0);
|
||||
AddClock(QWidget *parent=0);
|
||||
~AddClock();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
public slots:
|
||||
int exec(QString *clk_name,QString *clk_code);
|
||||
|
||||
private slots:
|
||||
void clockNameChangedData(const QString &str);
|
||||
void textChangedData(const QString &str);
|
||||
void okData();
|
||||
void cancelData();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *e);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
QLabel *clock_name_label;
|
||||
QLineEdit *clock_name_edit;
|
||||
QLabel *clock_code_label;
|
||||
QLineEdit *clock_code_edit;
|
||||
QString *clock_name;
|
||||
QString *clock_code;
|
||||
QPushButton *clock_ok_button;
|
||||
QPushButton *clock_cancel_button;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#endif // ADD_CLOCK_H
|
||||
|
||||
Reference in New Issue
Block a user