Mixxx

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

Go to the documentation of this file.
00001 /***************************************************************************
00002                           mixxxkeyboard.h  -  description
00003                              -------------------
00004     begin                : Wed Dec 2 2003
00005     copyright            : (C) 2003 by Tue Haste Andersen
00006     email                :
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 MIXXXKEYBOARD_H
00019 #define MIXXXKEYBOARD_H
00020 
00021 #include <qobject.h>
00022 #include <qevent.h>
00023 #include <qkeysequence.h>
00024 //Added by qt3to4:
00025 #include <QKeyEvent>
00026 #include "configobject.h"
00027 
00032 class ControlObject;
00033 
00034 class MixxxKeyboard : public QObject
00035 {
00036     Q_OBJECT
00037 public:
00038     MixxxKeyboard(ConfigObject<ConfigValueKbd> *pKbdConfigObject, QObject *parent=0, const char *name=0);
00039     ~MixxxKeyboard();
00041     bool eventFilter(QObject *obj, QEvent *e);
00042 
00043     ConfigObject<ConfigValueKbd>* getKeyboardConfig();
00044 
00045 private:
00046     bool kbdPress(QKeySequence k, bool release, bool autoRepeat);
00048     QKeySequence getKeySeq(QKeyEvent *e);
00050     QList<int> m_qActiveKeyList;
00052     ConfigObject<ConfigValueKbd> *m_pKbdConfigObject;
00053 };
00054 
00055 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines