summaryrefslogblamecommitdiff
path: root/qmpchannelswindow.hpp
blob: a3ce6676dfb4ab1a4307de9b3808b071076a819b (plain) (tree)
1
2
3
4
5
6
7
8
9


                           
                 
                      

                      
                              
                               

              
                                

 













                                                                                                       













                                                                                                               
                                      



                

                                                                





                                                    
                                                
                                                       




                                           
                


                                            


                             
#ifndef QMPCHANNELSWINDOW_H
#define QMPCHANNELSWINDOW_H

#include <QLabel>
#include <QPushButton>
#include <QDialog>
#include <QCloseEvent>
#include "qmppresetselect.hpp"
#include "qmpchanneleditor.hpp"

namespace Ui {
	class qmpChannelsWindow;
}

class QDCLabel:public QLabel
{
	Q_OBJECT
	using QLabel::QLabel;
	private:
		int id;
	protected:
		void mouseDoubleClickEvent(QMouseEvent *event){event->accept();emit onDoubleClick(id);}
	public:
		void setID(int _id){id=_id;}
	signals:
		void onDoubleClick(int id);
};

class QDCPushButton:public QPushButton
{
	Q_OBJECT
	using QPushButton::QPushButton;
	private:
		int id;
	protected:
		void mousePressEvent(QMouseEvent *event){QPushButton::mousePressEvent(event);emit onClick(id);}
	public:
		void setID(int _id){id=_id;}
	signals:
		void onClick(int id);
};

class qmpChannelsWindow:public QDialog
{
	Q_OBJECT

	public:
		explicit qmpChannelsWindow(QWidget *parent = 0);
		~qmpChannelsWindow();
		void closeEvent(QCloseEvent *event);
	signals:
		void dialogClosing();
	public slots:
		void channelWindowsUpdate();
		void channelMSChanged();
		void showPresetWindow(int chid);
		void showChannelEditorWindow(int chid);
	private slots:
		void on_pbUnmute_clicked();

		void on_pbUnsolo_clicked();

	private:
		Ui::qmpChannelsWindow *ui;
		qmpPresetSelector *pselectw;
		qmpChannelEditor *ceditw;
};

#endif // QMPCHANNELSWINDOW_H