1 /* 2 Copyright (C) 2008, 2009 Andres Cabrera 3 mantaraya36@gmail.com 4 5 This file is part of CsoundQt. 6 7 CsoundQt is free software; you can redistribute it 8 and/or modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 2.1 of the License, or (at your option) any later version. 11 12 CsoundQt is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU Lesser General Public License for more details. 16 17 You should have received a copy of the GNU Lesser General Public 18 License along with Csound; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 20 02111-1307 USA 21 */ 22 23 #include "qutedummy.h" 24 QuteDummy(QWidget * parent)25QuteDummy::QuteDummy(QWidget *parent) : QuteWidget(parent) 26 { 27 m_widget = new QFrame(this); 28 m_widget->setAutoFillBackground (true); 29 m_widget->setPalette(QPalette(Qt::gray)); 30 m_widget->setMouseTracking(true); // Necessary to pass mouse tracking to widget panel for _MouseX channels 31 } 32 ~QuteDummy()33QuteDummy::~QuteDummy() 34 { 35 } 36 37 getWidgetLine()38QString QuteDummy::getWidgetLine() 39 { 40 return QString(); 41 } 42 getWidgetXmlText()43QString QuteDummy::getWidgetXmlText() 44 { 45 // Just an empty place holder 46 xmlText = ""; 47 QXmlStreamWriter s(&xmlText); 48 createXmlWriter(s); 49 50 #ifdef USE_WIDGET_MUTEX 51 widgetLock.lockForRead(); 52 #endif 53 s.writeEndElement(); 54 #ifdef USE_WIDGET_MUTEX 55 widgetLock.unlock(); 56 #endif 57 return xmlText; 58 } 59 getWidgetType()60QString QuteDummy::getWidgetType() 61 { 62 return QString("BSBDummy"); 63 } 64