1 // Copyright 2005 "Gilles Degottex"
3 // This file is part of "Music"
5 // "Music" is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation; either version 2.1 of the License, or
8 // (at your option) any later version.
10 // "Music" is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include <qpopupmenu.h>
27 #include <qsettings.h>
33 static list<View*> s_views;
38 Title(const QString& text, QWidget* parent) : QLabel(text, parent)
39 {setAlignment(QLabel::AlignCenter);}
44 QPopupMenu m_popup_menu;
46 View(const QString& name, QWidget* parent);
47 virtual void mouseReleaseEvent(QMouseEvent* e);
52 static QSettings* s_settings;
53 const QString& getName() {return m_name;}
55 int getNbView() const {return s_views.size();}
58 QAction* setting_show;
61 virtual void clearSettings(){}
63 static void saveAll();
64 static void loadAll();
65 static void clearAllSettings();
68 //class LabeledSpinBox : QWidget
71 // LabeledSpinBox(int min, int max, int step, QWidget* parent);