1 /***************************************************************************
2 trackpanelfunctionfactory - description
4 begin : Sun Dec 28 2003
5 copyright : (C) 2003 by Jason Wood
6 email : jasonwood@blueyonder.co.uk
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
17 #ifndef TRACKPANELFUNCTIONFACTORY_H
18 #define TRACKPANELFUNCTIONFACTORY_H
22 class TrackPanelFunction;
25 A factory containing all known trackpanel functions.
29 class TrackPanelFunctionFactory {
32 TrackPanelFunctionFactory();
34 ~TrackPanelFunctionFactory();
36 void registerFunction(const QString & name,
37 TrackPanelFunction * function);
38 TrackPanelFunction *function(const QString & name);
42 QMap < QString, TrackPanelFunction * >m_functionMap;