QtDcmLocalDicomSettingsWidget.cpp
Go to the documentation of this file.
1 /*
2  QtDcm is a C++ Qt based library for communication and conversion of Dicom images.
3  Copyright (C) 2011 Alexandre Abadie <Alexandre.Abadie@univ-rennes1.fr>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 
22 #include <QtDcmPreferences.h>
23 
25  : QWidget ( parent )
26 {
27  this->setupUi ( this );
28 }
29 
31 {
32 }
33 
35 {
36  localAetitleEdit->setText ( QtDcmPreferences::instance()->aetitle() );
37  localPortEdit->setText ( QtDcmPreferences::instance()->port() );
38  localHostnameEdit->setText ( QtDcmPreferences::instance()->hostname() );
39 }
40 
42 {
43  QtDcmPreferences::instance()->setAetitle ( localAetitleEdit->text() );
44  QtDcmPreferences::instance()->setPort ( localPortEdit->text() );
45  QtDcmPreferences::instance()->setHostname ( localHostnameEdit->text() );
46 }
47 
48 
static QtDcmPreferences * instance()
void setPort(const QString &port)
QtDcm local application TCP port setter.
void setAetitle(const QString &aetitle)
QtDcm local AETitle setter.
void setHostname(const QString &hostname)
QtDcm local AETitle setter.