aboutsummaryrefslogblamecommitdiff
path: root/simple-visualization/qmpkeyboardwindow.hpp
blob: 563b6b43ecf50a5e48435771da0ce13c12b2d964 (plain) (tree)
1
2
3
4
5
6
7
8







                                       


                                      


                                       
                       





                                                                      

                                                                




                                                                  
#ifndef QMPKEYBOARDWINDOW_HPP
#define QMPKEYBOARDWINDOW_HPP

#include "../include/qmpcorepublic.hpp"
#include "qmppianowidget.hpp"

#include <QWidget>

class qmpKeyboardWindow:public QWidget
{
	Q_OBJECT
	private:
		qmpPianoWidget *pw[16];
		qmpPluginAPI *api;
		int eh;
	public:
		qmpKeyboardWindow(qmpPluginAPI *_api,QWidget *parent);
		~qmpKeyboardWindow();
		void resetAll();
	protected:
		void closeEvent(QCloseEvent *event);
	signals:
		void keystateupdated(int ch,int key,bool state);
	public slots:
		void onkeystatesupdate(int ch,int key,bool state);
};

#endif