From: cervenansky Date: Fri, 5 Jul 2013 12:19:47 +0000 (+0200) Subject: Settings dialog to add new dicom server X-Git-Tag: v1.4.0~2^2~29 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=8209f988394a0706a9f8834a325d687ec3555bd1;p=clitk.git Settings dialog to add new dicom server --- 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