#include "vtkKWDICOMImporterPage1.h" #include "vtkObjectFactory.h" #include "vtkKWIcon.h" #include "vtkKWMessageWithLabel.h" #include "vtkKWLabel.h" #include "vtkKWMessage.h" #include #include #include //---------------------------------------------------------------------------- vtkStandardNewMacro( vtkKWDICOMImporterPage1 ); vtkCxxRevisionMacro(vtkKWDICOMImporterPage1, "$Revision: 1.3 $"); //---------------------------------------------------------------------------- vtkKWDICOMImporterPage1::vtkKWDICOMImporterPage1() { this->AttributesMessage = vtkKWMessageWithLabel::New(); this->AttributesText = "This wizard will help you to import a full DICOM exam into the datamanager. \nPlease click Next to proceed"; } //---------------------------------------------------------------------------- vtkKWDICOMImporterPage1::~vtkKWDICOMImporterPage1() { this->AttributesMessage->Delete(); } //---------------------------------------------------------------------------- void vtkKWDICOMImporterPage1::CreateWidget() { // Check if already created if (this->IsCreated()) { vtkErrorMacro("class already created"); return; } // Call the superclass to create the whole widget this->Superclass::CreateWidget(); this->CreateAttributes(); this->Pack(); } void vtkKWDICOMImporterPage1::CreateAttributes() { this->AttributesMessage->SetParent(this); this->AttributesMessage->Create(); this->AttributesMessage->SetWidth(300); this->AttributesMessage->GetLabel()->SetImageToPredefinedIcon(vtkKWIcon::IconInfoMini); this->AttributesMessage->GetWidget()->SetText(this->AttributesText.c_str()); this->AttributesMessage->SetBalloonHelpString("Information about how to import a DICOM exam. "); } void vtkKWDICOMImporterPage1::Pack() { if (this->AttributesMessage->IsCreated()) { this->Script( "pack %s -anchor nw -padx 10 -pady 5", this->AttributesMessage->GetWidgetName()); } }