Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 #include "cmtkQtWindowLevelDialog.h"
00034 
00035 #include <Qt/cmtkQtIcons.h>
00036 
00037 #include <qlayout.h>
00038 #include <qboxlayout.h>
00039 
00040 namespace
00041 cmtk
00042 {
00043 
00046 
00047 QtWindowLevelDialog::QtWindowLevelDialog
00048 ( QWidget* parent, bool modal, Qt::WFlags f )
00049   : QDialog( parent, f )
00050 {
00051   this->setModal( modal );
00052   this->setWindowIcon( QtIcons::WindowIcon() );
00053   this->setWindowTitle( "Window/Level Control" );
00054 
00055   QBoxLayout* layout = new QVBoxLayout( this );
00056 
00057   Controls = new QtWindowLevelControls( this );
00058   QObject::connect( Controls, SIGNAL( colormap( Study::SmartPtr& ) ), SIGNAL( colormapChanged( Study::SmartPtr& ) ) );
00059   layout->addWidget( Controls );
00060 }
00061 
00062 void
00063 QtWindowLevelDialog::slotSetStudy( Study::SmartPtr& study )
00064 {
00065   Controls->slotSetStudy( study );
00066 }
00067 
00068 }