Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerSettingsUserInformationPanel.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5 See COPYRIGHT.txt
6 or http://www.slicer.org/copyright/copyright.txt for details.
7
8=========================================================================auto=*/
9
10#ifndef qSlicerSettingsUserInformationPanel_h
11#define qSlicerSettingsUserInformationPanel_h
12
13// Qt includes
14#include <QWidget>
15
16// CTK includes
17#include <ctkSettingsPanel.h>
18#include <ctkVTKObject.h>
19
20// QtGUI includes
21#include "qSlicerBaseQTGUIExport.h"
22
23class qSlicerSettingsUserInformationPanelPrivate;
24class vtkPersonInformation;
25
26class Q_SLICER_BASE_QTGUI_EXPORT qSlicerSettingsUserInformationPanel : public ctkSettingsPanel
27{
28 Q_OBJECT
29 QVTK_OBJECT
30public:
32 typedef ctkSettingsPanel Superclass;
33
35 explicit qSlicerSettingsUserInformationPanel(QWidget* parent = nullptr);
36
39
40 Q_INVOKABLE virtual void setUserInformation(vtkPersonInformation* userInfo);
41
42public Q_SLOTS:
43 void resetSettings() override;
44 void applySettings() override;
45
49 void onEmailChanged(const QString& value);
53
54protected:
56
58 QScopedPointer<qSlicerSettingsUserInformationPanelPrivate> d_ptr;
59
60private:
61 Q_DECLARE_PRIVATE(qSlicerSettingsUserInformationPanel);
63};
64
65#endif
virtual Q_INVOKABLE void setUserInformation(vtkPersonInformation *userInfo)
qSlicerSettingsUserInformationPanel(QWidget *parent=nullptr)
Constructor.
QScopedPointer< qSlicerSettingsUserInformationPanelPrivate > d_ptr
void onEmailChanged(const QString &value)
~qSlicerSettingsUserInformationPanel() override
Destructor.