// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #include "QRootWindow.h" #include "QRootWindowPlugin.h" #include QRootWindowPlugin::QRootWindowPlugin(QObject *parent) : QObject(parent) { initialized = false; } void QRootWindowPlugin::initialize(QDesignerFormEditorInterface * /* core */) { if (initialized) return; initialized = true; } bool QRootWindowPlugin::isInitialized() const { return initialized; } QWidget *QRootWindowPlugin::createWidget(QWidget *parent) { QRootWindow* widg=new QRootWindow(parent, 0, true); QPalette* npal= new QPalette(widg->palette()); npal->setBrush(QPalette::Window,QPixmap(":/root.png")); widg->setPalette(*npal); widg->setAutoFillBackground(true); return widg; } QString QRootWindowPlugin::name() const { return "QRootWindow"; } QString QRootWindowPlugin::group() const { return "Go4 Custom Widgets"; } QIcon QRootWindowPlugin::icon() const { return QIcon(":/go4logo2.png"); } QString QRootWindowPlugin::toolTip() const { return "Qwidget to embed a ROOT TGCompositeFrame"; } QString QRootWindowPlugin::whatsThis() const { return "ROOT TGFrame embedded into a QWidget "; } bool QRootWindowPlugin::isContainer() const { return false; } QString QRootWindowPlugin::domXml() const { return "\n" " \n" " \n" " 0\n" " 0\n" " 100\n" " 100\n" " \n" " \n" "\n"; } QString QRootWindowPlugin::includeFile() const { return "QRootWindow.h"; }