[c934f0]: libkwave / src / markers.h Maximize Restore History

Download this file

markers.h    56 lines (50 with data), 1.5 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
#ifndef _KWAVE_MARKERS_H_
#define _KWAVE_MARKERS_H_ 1
#include <qlist.h>
#include "color.h"
class MarkerType
//Type Information for Markers mainly information concerning the outlook
//of the particular type
{
public:
MarkerType ();
MarkerType (const char *);
~MarkerType();
const char *getCommand ();
const char* name; //pointer to name
Color* color; //color
bool named; //boolean if named
bool selected;
private:
char *comstr;
};
//***********************************************************
class Marker
//Marker Class is for marking positions in the signal
{
public:
Marker (double,MarkerType *,const char *name=0);
Marker (const char *);
~Marker();
void setName (const char *);
const char *getCommand ();
inline const char *getName () {return name;};
inline MarkerType *getType () {return type;};
double pos; //position in ms
private:
char* name; //pointer to name
MarkerType *type; //pointer to type
char *comstr;
};
//***********************************************************
class MarkerList:public QListT<Marker>
//Class for list of Markers has to inherit from QList to implement own
//compareItems method for sorting
{
// Q_OBJECT
public:
MarkerList::MarkerList();
MarkerList::~MarkerList();
int MarkerList::compareItems (GCI,GCI);
};
#endif //_KWAVEMARKERS_H_