00001
00012
00013
00014
00015 #include <QVBoxLayout>
00016 #include <QLabel>
00017 #include <QFrame>
00018 #include <QGroupBox>
00019 #include <QHBoxLayout>
00020 #include <QComboBox>
00021
00022 #include "window_level_settings_widget.h"
00023 #include "custom_window_level_field.h"
00024
00025 namespace imedgine
00026 {
00027
00028
00029
00030 WindowLevelSettingsWidget::WindowLevelSettingsWidget(QWidget* parent)
00031 : QWidget(parent)
00032 {
00033 setupUi();
00034 }
00035
00036
00037
00038
00039 WindowLevelSettingsWidget::~WindowLevelSettingsWidget()
00040 {
00041 }
00042
00043
00044
00045 void WindowLevelSettingsWidget::applyChanges()
00046 {
00047
00048 }
00049
00050
00051
00052 void WindowLevelSettingsWidget::checkChanges()
00053 {
00054
00055 }
00056
00057
00058
00059 void WindowLevelSettingsWidget::setupUi()
00060 {
00061 QVBoxLayout* main_layout = new QVBoxLayout(this);
00062
00063 QLabel* page_name = new QLabel(this);
00064 QFont font;
00065 font.setBold(true);
00066 page_name->setFont(font);
00067 page_name->setText(tr("Window / Level"));
00068 main_layout->addWidget(page_name);
00069
00070 QFrame* line = new QFrame(this);
00071 line->setFrameShape(QFrame::HLine);
00072 main_layout->addWidget(line);
00073
00074 QGroupBox* custom_fields_group_box = new QGroupBox(this);
00075 custom_fields_group_box->setTitle(tr("Custom Fields"));
00076
00077 QVBoxLayout* custom_fields_layout = new QVBoxLayout(custom_fields_group_box);
00078
00079 QHBoxLayout* selection_layout = new QHBoxLayout();
00080
00081 QLabel* selection_label = new QLabel(custom_fields_group_box);
00082 selection_label->setText(tr("Selecte the number of custom fields:"));
00083 selection_layout->addWidget(selection_label);
00084
00085 QComboBox* custom_field_count_combo_box =
00086 new QComboBox(custom_fields_group_box);
00087
00088
00089 selection_layout->addWidget(custom_field_count_combo_box);
00090
00091 custom_fields_layout->addLayout(selection_layout);
00092
00093 CustomWindowLevelField* custom_field =
00094 new CustomWindowLevelField(custom_fields_group_box);
00095 custom_fields_layout->addWidget(custom_field);
00096
00097 main_layout->addWidget(custom_fields_group_box);
00098
00099 main_layout->addStretch();
00100 }
00101
00102
00103 }