mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDMainWindow' to rmlsend(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21951,3 +21951,5 @@
|
||||
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed the rddgimport(1) applet.
|
||||
* Removed vestigal bits of the rddiscimport(1) applet.
|
||||
2021-06-21 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added 'RDMainWindow' to rmlsend(1).
|
||||
|
@@ -39,7 +39,7 @@
|
||||
RDCmdSwitch *rdcmdswitch=NULL;
|
||||
|
||||
MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
: RDWidget(c,parent)
|
||||
: RDMainWindow("rmlsend",c)
|
||||
{
|
||||
//
|
||||
// Set Window Size
|
||||
@@ -114,7 +114,7 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
quit->setGeometry(sizeHint().width()-80,sizeHint().height()-50,70,40);
|
||||
quit->setFont(buttonFont());
|
||||
quit->setDefault(true);
|
||||
connect(quit,SIGNAL(clicked()),qApp,SLOT(quit()));
|
||||
connect(quit,SIGNAL(clicked()),this,SLOT(quitMainWidget()));
|
||||
|
||||
udp_command=new QUdpSocket(this);
|
||||
|
||||
@@ -150,6 +150,8 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
}
|
||||
}
|
||||
destChangedData(port_box->currentIndex());
|
||||
|
||||
loadSettings(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -165,6 +167,19 @@ QSizePolicy MainWidget::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
quitMainWidget();
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::quitMainWidget()
|
||||
{
|
||||
saveSettings();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
void MainWidget::sendCommand()
|
||||
{
|
||||
QString dcl_command;
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#include <QUdpSocket>
|
||||
|
||||
#include <rd.h>
|
||||
#include <rdwidget.h>
|
||||
#include <rdmainwindow.h>
|
||||
|
||||
//
|
||||
// Settings
|
||||
@@ -37,7 +37,7 @@
|
||||
#define RMLSEND_DEFAULT_ADDR "localhost"
|
||||
#define RMLSEND_DEFAULT_PORT 5859
|
||||
|
||||
class MainWidget : public RDWidget
|
||||
class MainWidget : public RDMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -45,8 +45,12 @@ class MainWidget : public RDWidget
|
||||
MainWidget(RDConfig *c,QWidget *parent=0);
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
private slots:
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *);
|
||||
|
||||
private slots:
|
||||
void quitMainWidget();
|
||||
void sendCommand();
|
||||
void readResponse();
|
||||
void destChangedData(int id);
|
||||
|
Reference in New Issue
Block a user