root/branches/undo/gui/src/MetroBlinker.h @ 1604

Revision 1604, 1.7 KB (checked in by wolke, 3 years ago)

merge rev 1601:1603 from trunk

Line 
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 *
5 * http://www.hydrogen-music.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program 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 General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 *
21 */
22
23#ifndef METRO_BLINKER_H
24#define METRO_BLINKER_H
25
26#include "config.h"
27
28#include <QDialog>
29#include "ui_MetroBlinker_UI.h"
30#include <hydrogen/Object.h>
31#include <hydrogen/Preferences.h>
32#include <hydrogen/hydrogen.h>
33#include "EventListener.h"
34
35
36class MetroBlinker : public QDialog, public Ui_MetroBlinker_UI, public Object, public EventListener
37
38{
39        Q_OBJECT
40        public:
41               
42                MetroBlinker( QWidget* pParent );
43                ~MetroBlinker();
44
45                virtual void metronomeEvent( int nValue );     
46                virtual void paintEvent( QPaintEvent*);
47
48        private slots:
49
50                void updateMetronomBackground();
51                //void updateBackground();
52
53
54        private:
55                QTimer *timer;
56                QColor p_color;
57//              QPixmap *m_pBackground;
58                QPalette blinkerPalette;
59                int p_counter;
60                int p_fadealpha;
61                float p_bpm;
62                int p_bar;
63                int p_wechselblink;
64                QString TAG;
65                QString TAG2;
66                int tagbeat;
67                bool n_bsongload;
68
69
70};
71
72
73#endif
74
Note: See TracBrowser for help on using the browser.