Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/dlgmidilearning.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           dlgmidilearning.cpp  -  description
00003                              -------------------
00004     begin                : Mon March 2 2009
00005     copyright            : (C) 2009 by Albert Santoni
00006     email                : alberts at mixxx dot org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef DLGMIDILEARNING_H
00019 #define DLGMIDILEARNING_H
00020 
00021 #include <QtCore>
00022 #include <QtGui>
00023 #include <QPair>
00024 
00025 #include "ui_dlgmidilearning.h"
00026 #include "configobject.h"
00027 #include "mixxxcontrol.h"
00028 #include "midi/midimessage.h"
00029 
00030 class MidiMapping;
00031 
00036 class DlgMidiLearning : public QDialog, public Ui::DlgMidiLearning {
00037     Q_OBJECT
00038   public:
00039     DlgMidiLearning(QWidget *parent, MidiMapping* mapping);
00040     ~DlgMidiLearning();
00041   public slots:
00042     void begin();   
00043     void next();    
00044     void prev();    
00045     void controlMapped(MidiMessage); 
00046   private:
00047     void setupControl(QString group, QString control, QString helpText);
00048     void setupDeckControl(QString control, QString helpText);
00049     void setupSamplerControl(QString control, QString helpText);
00050     MidiMapping* m_pMidiMapping;
00051     QList<QPair<MixxxControl, QString> > m_controlsToBind;
00052     int iCurrentControl; 
00053     QShortcut* m_pSkipShortcut;
00054 };
00055 
00056 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines