/** * This file is a part of Promoe, an XMMS2 Client. * * Copyright (C) 2005-2008 XMMS2 Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "XMMSHandler.h" #include "equalizerwindow.h" #include "QWidget" #include #include #include "mainwindow.h" #include "equalizerwidget.h" EqualizerWindow::EqualizerWindow (QWidget *parent) : BaseWindow (parent) { m_mw = dynamic_cast(parent); setWindowFlags (Qt::Dialog | Qt::FramelessWindowHint); setAttribute (Qt::WA_DeleteOnClose); m_equalizer = new EqualizerWidget (this); m_equalizer->show(); setCentralWidget (m_equalizer); setFixedSize (275, 116); } void EqualizerWindow::hideEvent (QHideEvent *event) { QSettings s; s.setValue ("equalizer/visible", false); emit visibilityChanged (false); } void EqualizerWindow::showEvent (QShowEvent *event) { QSettings s; s.setValue ("equalizer/visible", true); m_mw->attachWidgets (); emit visibilityChanged (true); } void EqualizerWindow::setEnabled (void) { qDebug ("test"); } void EqualizerWindow::moveEvent (QMoveEvent *event) { QSettings s; s.setValue ("equalizer/pos", pos ()); }