00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #include <qlayout.h> 00019 #include <qpushbutton.h> 00020 00021 #include "QmitkPlotDialog.h" 00022 00023 QmitkPlotDialog::QmitkPlotDialog(const char* title, QWidget* parent, const char* /*name*/): QDialog(parent) 00024 { 00025 QVBoxLayout* boxLayout = new QVBoxLayout(this); 00026 m_Plot = new QmitkPlotWidget( this, title ) ; 00027 m_CloseDialogButton = new QPushButton("close plot window", this); 00028 boxLayout->addWidget( m_Plot ); 00029 boxLayout->addWidget( m_CloseDialogButton ); 00030 connect( m_CloseDialogButton, SIGNAL( clicked( ) ), this, SLOT( accept() ) ); 00031 } 00032 00033 QmitkPlotDialog::~QmitkPlotDialog() 00034 { 00035 delete m_Plot; 00036 } 00037 00038 QmitkPlotWidget* QmitkPlotDialog::GetPlot() 00039 { 00040 return m_Plot; 00041 } 00042 00043 QwtPlot* QmitkPlotDialog::GetQwtPlot() 00044 { 00045 return m_Plot->GetPlot(); 00046 }