From 8209f988394a0706a9f8834a325d687ec3555bd1 Mon Sep 17 00:00:00 2001 From: cervenansky Date: Fri, 5 Jul 2013 14:19:47 +0200 Subject: [PATCH] Settings dialog to add new dicom server --- vv/qt_ui/vvPacsSettingsDialog.ui | 132 +++++++++++++++++++++++++++++++ vv/vvPacsSettingsDialog.cxx | 19 +++++ vv/vvPacsSettingsDialog.h | 22 ++++++ 3 files changed, 173 insertions(+) create mode 100644 vv/qt_ui/vvPacsSettingsDialog.ui create mode 100644 vv/vvPacsSettingsDialog.cxx create mode 100644 vv/vvPacsSettingsDialog.h diff --git a/vv/qt_ui/vvPacsSettingsDialog.ui b/vv/qt_ui/vvPacsSettingsDialog.ui new file mode 100644 index 0000000..a64e15d --- /dev/null +++ b/vv/qt_ui/vvPacsSettingsDialog.ui @@ -0,0 +1,132 @@ + + + vvPacsSettingsDialog + + + + 0 + 0 + 400 + 201 + + + + PACS settings + + + + + 40 + 160 + 341 + 32 + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + 20 + 20 + 361 + 120 + + + + + + + false + + + Name + + + + + + + + + + + + + false + + + Adress + + + + + + + + + + false + + + Port + + + + + + + + + + false + + + AE Title + + + + + + + + + + buttonBox + accepted() + vvPacsSettingsDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + vvPacsSettingsDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/vv/vvPacsSettingsDialog.cxx b/vv/vvPacsSettingsDialog.cxx new file mode 100644 index 0000000..7cde608 --- /dev/null +++ b/vv/vvPacsSettingsDialog.cxx @@ -0,0 +1,19 @@ +#include "vvPacsSettingsDialog.h" +#include "vvQPacsConnection.h" +#include "vvUtils.h" + +vvPacsSettingsDialog::vvPacsSettingsDialog(QWidget *i_parent) + : QDialog(i_parent) + { + mparent = i_parent; + ui.setupUi(this); + update(); + } + +void vvPacsSettingsDialog::accept() +{ + + AddDicomServer(ui.NameEdit->text().toStdString(),ui.AETitleEdit->text().toStdString(),ui.AdressEdit->text().toStdString(), ui.PortEdit->text().toStdString()); +((vvQPacsConnection*)this->parent())->refreshNetworks(); + close(); +} \ No newline at end of file diff --git a/vv/vvPacsSettingsDialog.h b/vv/vvPacsSettingsDialog.h new file mode 100644 index 0000000..48f3f48 --- /dev/null +++ b/vv/vvPacsSettingsDialog.h @@ -0,0 +1,22 @@ +#ifndef __vvPacsSettingsDialog_H +#define __vvPacsSettingsDialog_H +#include "ui_vvPacsSettingsDialog.h" +#include +#include + + class vvPacsSettingsDialog : public QDialog + { + Q_OBJECT + public: + + vvPacsSettingsDialog(QWidget *parent=0); + + ~vvPacsSettingsDialog(){} + private: + QWidget *mparent; + Ui::vvPacsSettingsDialog ui; +private slots: + void accept(); + + }; +#endif //__vvPacsSettingsDialog_H \ No newline at end of file -- 2.47.1