QtDcmPreferencesDialog.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 
21 #include <QtDcmPreferences.h>
22 #include <QtDcmPreferencesDialog.h>
23 #include "QtDcm.h"
24 
26  : QDialog(parent)
27 {
28  setupUi ( this );
29  this->setModal ( true );
30  this->setParent ( parent, Qt::Dialog );
31 }
32 
34 {
35 }
36 
38 {
39  return prefsWidget;
40 }
41 
43 {
44  prefsWidget->readPreferences();
45  dcm2niiWidget->readPreferences();
46 }
47 
49 {
50  prefsWidget->updatePreferences();
51  dcm2niiWidget->updatePreferences();
52 
54 }
static QtDcmPreferences * instance()
void writeSettings()
Store current settings in the ini file.
QtDcmPreferencesDialog(QWidget *parent=0)
QtDcmPreferencesWidget * preferencesWidget()