[3e4acc]: plugins / newsignal / NewSignalPlugin.h Maximize Restore History

Download this file

NewSignalPlugin.h    69 lines (51 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
NewSignalPlugin.h - plugin for creating a new signal
-------------------
begin : Wed Jul 18 2001
copyright : (C) 2001 by Thomas Eschenbacher
email : Thomas.Eschenbacher@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _NEW_SIGNAL_PLUGIN_H_
#define _NEW_SIGNAL_PLUGIN_H_
#include "config.h"
#include <QObject>
#include "libkwave/KwavePlugin.h"
class QStringList;
class NewSignalPlugin: public Kwave::Plugin
{
Q_OBJECT
public:
/** Constructor */
NewSignalPlugin(const PluginContext &context);
/** virtual Destructor */
virtual ~NewSignalPlugin();
/**
* Shows a dialog for creating a new signal and emits sigCommand if
* OK has been pressed.
* @see Kwave::Plugin::setup
*/
virtual QStringList *setup(QStringList &previous_params);
protected:
/** Reads values from the parameter list */
int interpreteParameters(QStringList &params);
private:
/** number of samples */
unsigned int m_samples;
/** samples rate */
unsigned int m_rate;
/** bits per sample */
unsigned int m_bits;
/** number of tracks */
unsigned int m_tracks;
/** select by time or by samples */
bool m_bytime;
};
#endif /* _NEW_SIGNAL_PLUGIN_H_ */