00001 // $Id: TGo4DividePad.cpp 1134 2014-01-22 14:53:40Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "TGo4DividePad.h" 00015 00016 #include "TGo4MdiArea.h" 00017 #include "TGo4ViewPanel.h" 00018 00019 TGo4DividePad::TGo4DividePad( QWidget* parent, const char* name, Qt::WindowFlags fl ) : 00020 QWidget( parent, fl ) 00021 { 00022 setObjectName( name ? name : "Go4DividePad"); 00023 setupUi(this); 00024 } 00025 00026 void TGo4DividePad::DivideCanvas() 00027 { 00028 TGo4ViewPanel* panel = TGo4MdiArea::Instance()->GetActivePanel(); 00029 00030 if (panel!=0) 00031 panel->Divide(SpinBoxX->value(), SpinBoxY->value()); 00032 }