]> git.sesse.net Git - kdenlive/blob - src/trackpanelfunctionfactory.h
f57dbb6a9f3f11caf1e45256699275245ffa4057
[kdenlive] / src / trackpanelfunctionfactory.h
1 /***************************************************************************
2                           trackpanelfunctionfactory  -  description
3                              -------------------
4     begin                : Sun Dec 28 2003
5     copyright            : (C) 2003 by Jason Wood
6     email                : jasonwood@blueyonder.co.uk
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
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.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 #ifndef TRACKPANELFUNCTIONFACTORY_H
18 #define TRACKPANELFUNCTIONFACTORY_H
19
20 #include <qmap.h>
21
22 class TrackPanelFunction;
23
24 /**
25 A factory containing all known trackpanel functions.
26
27 @author Jason Wood
28 */
29 class TrackPanelFunctionFactory {
30   public:
31
32     TrackPanelFunctionFactory();
33
34     ~TrackPanelFunctionFactory();
35
36     void registerFunction(const QString & name,
37         TrackPanelFunction * function);
38     TrackPanelFunction *function(const QString & name);
39     void clearFactory();
40
41   private:
42      QMap < QString, TrackPanelFunction * >m_functionMap;
43 };
44
45 #endif