Forráskód Böngészése

Change defaults for first use of ctkDICOM

- add dicomserver.co.uk as a default example in the host
list.  This service is kindly provided by Medical
Connections and will be helpful for demonstrating
the ctkDICOM functionality.

- use the same AE title for calling and called AE - this will
allow promiscuous access to the dicomserver.co.uk site
provided that the user is running a listener on their localhost
(i.e. run "storescp 11112" to receive the query results).
Steve Pieper 13 éve
szülő
commit
11337a50e3
1 módosított fájl, 16 hozzáadás és 5 törlés
  1. 16 5
      Libs/DICOM/Widgets/ctkDICOMServerNodeWidget.cpp

+ 16 - 5
Libs/DICOM/Widgets/ctkDICOMServerNodeWidget.cpp

@@ -183,16 +183,27 @@ void ctkDICOMServerNodeWidget::readSettings()
       settings.value("ServerNodeCount").toInt() == 0)
       settings.value("ServerNodeCount").toInt() == 0)
     {
     {
     d->StorageAETitle->setText("CTKSTORE");
     d->StorageAETitle->setText("CTKSTORE");
-    d->StoragePort->setText("11113");
-    d->CallingAETitle->setText("FINDSCU");
+    d->StoragePort->setText("11112");
+    d->CallingAETitle->setText("CTKSTORE");
 
 
+    // a dummy example
     QMap<QString, QVariant> defaultServerNode;
     QMap<QString, QVariant> defaultServerNode;
     defaultServerNode["Name"] = QString("ExampleHost");
     defaultServerNode["Name"] = QString("ExampleHost");
-    defaultServerNode["CheckState"] = Qt::Checked;
-    defaultServerNode["AETitle"] = QString("ANY-SCP");
-    defaultServerNode["Address"] = QString("localhost");
+    defaultServerNode["CheckState"] = Qt::Unchecked;
+    defaultServerNode["AETitle"] = QString("AETITLE");
+    defaultServerNode["Address"] = QString("dicom.example.com");
     defaultServerNode["Port"] = QString("11112");
     defaultServerNode["Port"] = QString("11112");
     this->addServerNode(defaultServerNode);
     this->addServerNode(defaultServerNode);
+
+    // the uk example - see http://www.dicomserver.co.uk/ 
+    // and http://www.medicalconnections.co.uk/
+    defaultServerNode["Name"] = QString("MedicalConnections");
+    defaultServerNode["CheckState"] = Qt::Unchecked;
+    defaultServerNode["AETitle"] = QString("ANYAE");
+    defaultServerNode["Address"] = QString("dicomserver.co.uk");
+    defaultServerNode["Port"] = QString("11112");
+    this->addServerNode(defaultServerNode);
+
     return;
     return;
     }
     }