00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 /**************************************************************************** 00017 ** ui.h extension file, included from the uic-generated form implementation. 00018 ** 00019 ** If you wish to add, delete or rename functions or slots use 00020 ** Qt Designer which will update this file, preserving your code. Create an 00021 ** init() function in place of a constructor, and a destroy() function in 00022 ** place of a destructor. 00023 *****************************************************************************/ 00024 00025 00026 void TGo4AdvancedUserWidget::init() 00027 { 00028 TGo4LockGuard glob; 00029 fxTGo4GUIRegistry = TGo4GUIRegistry::Instance(); 00030 fxTGo4AdvancedUserWidgetSlots = (TGo4AdvancedUserWidgetSlots *) fxTGo4GUIRegistry->GetSlotClass("TGo4AdvancedUserWidgetSlots"); 00031 if(fxTGo4AdvancedUserWidgetSlots !=0) { 00032 fxTGo4AdvancedUserWidgetSlots->SetGUI(this); 00033 }else{ 00034 fxTGo4AdvancedUserWidgetSlots = new TGo4AdvancedUserWidgetSlots ("TGo4AdvancedUserWidgetSlots", "Slots Class for Qt GUI", this); 00035 } 00036 fxTGo4AdvancedUserWidgetStatus= dynamic_cast <TGo4AdvancedUserWidgetStatus *> (fxTGo4AdvancedUserWidgetSlots->GetStatus()); 00037 } 00038 00039 void TGo4AdvancedUserWidget::destroy() 00040 { 00041 fxTGo4GUIRegistry->UnRegisterClass(fxTGo4AdvancedUserWidgetSlots,fxTGo4AdvancedUserWidgetSlots->GetStatus()); 00042 delete fxTGo4AdvancedUserWidgetSlots; 00043 /*if you do not want to destroy the slots when the widget is closed 00044 then comment these lines. This would make the information in the slot 00045 and status objects persistent even if the widget is deleted*/ 00046 } 00047 00048 void TGo4AdvancedUserWidget::closeEvent( QCloseEvent* ce ) 00049 { 00050 ce->accept(); 00051 delete this; 00052 } 00053 00054 00055 00056 void TGo4AdvancedUserWidget::ObjectListAction(const char *Name) 00057 { 00058 QListViewItem *Item = new QListViewItem(ObjectList, Name); 00059 } 00060 00061 void TGo4AdvancedUserWidget::GetObjectAction() 00062 { 00063 fxTGo4AdvancedUserWidgetSlots->GetObjectAction(ObjectName->text().data() ); 00064 } 00065 00066 //----------------------------END OF GO4 SOURCE FILE ---------------------