|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget for displaying or editing XNAT project properties. More...
#include <QmitkXnatProjectWidget.h>


Public Types | |
| enum | Mode { INFO , CREATE } |
| Operation mode for the project widget. More... | |
Public Member Functions | |
| QmitkXnatProjectWidget (QWidget *parent=nullptr) | |
| Construct the widget in INFO mode. More... | |
| QmitkXnatProjectWidget (Mode mode, QWidget *parent=nullptr) | |
| Construct the widget in the specified mode. More... | |
| ~QmitkXnatProjectWidget () override | |
| Destructor. More... | |
| void | SetProject (ctkXnatProject *project) |
| Populate the widget fields from the given project object. More... | |
| ctkXnatProject * | GetProject () const |
| Retrieve the project object, optionally updated with user-entered values. More... | |
Protected Attributes | |
| std::unique_ptr< Ui::QmitkXnatProjectWidgetControls > | m_Controls |
| UI controls generated from the .ui form. More... | |
Widget for displaying or editing XNAT project properties.
QmitkXnatProjectWidget provides a form-based user interface for viewing or creating XNAT projects. In INFO mode, the widget shows the project name, description, and principal investigator in read-only fields (the ID field is hidden). In CREATE mode, all fields including the project ID are visible and editable.
Definition at line 38 of file QmitkXnatProjectWidget.h.
Operation mode for the project widget.
| Enumerator | |
|---|---|
| INFO | Display project properties in read-only mode. |
| CREATE | Allow editing of project properties for creation. |
Definition at line 46 of file QmitkXnatProjectWidget.h.
| QmitkXnatProjectWidget::QmitkXnatProjectWidget | ( | QWidget * | parent = nullptr | ) |
Construct the widget in INFO mode.
| [in] | parent | Optional parent widget. |
| QmitkXnatProjectWidget::QmitkXnatProjectWidget | ( | Mode | mode, |
| QWidget * | parent = nullptr |
||
| ) |
Construct the widget in the specified mode.
| [in] | mode | The operation mode (INFO or CREATE). |
| [in] | parent | Optional parent widget. |
|
override |
Destructor.
| ctkXnatProject* QmitkXnatProjectWidget::GetProject | ( | ) | const |
Retrieve the project object, optionally updated with user-entered values.
In CREATE mode, the returned project has its ID, name, and description properties updated from the widget's input fields. In INFO mode, the project is returned unchanged.
| void QmitkXnatProjectWidget::SetProject | ( | ctkXnatProject * | project | ) |
Populate the widget fields from the given project object.
Sets the name, description, and principal investigator fields from the project's properties.
| [in] | project | The XNAT project whose properties should be displayed. |
project must not be nullptr.
|
protected |
UI controls generated from the .ui form.
Definition at line 94 of file QmitkXnatProjectWidget.h.