forked from boardhead/aged
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PWaveformWindow.h
41 lines (33 loc) · 1.27 KB
/
PWaveformWindow.h
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
//==============================================================================
// File: PWaveformWindow.h
//
// Description: Window to display waveform data
//
// Revisions: 2012/03/06 - PH Created
//
// Copyright (c) 2017, Phil Harvey, Queen's University
//==============================================================================
#ifndef __PWaveformWindow_h__
#define __PWaveformWindow_h__
#include <Xm/Xm.h>
#include "PImageWindow.h"
#include "PListener.h"
#include "PMenu.h"
#include "ImageData.h"
class PHistImage;
class PWaveformWindow : public PImageWindow, public PListener, public PMenuHandler {
public:
PWaveformWindow(ImageData *data);
virtual ~PWaveformWindow();
virtual void UpdateSelf();
virtual void Listen(int message, void *message_data);
virtual void DoMenuCommand(int anID);
virtual void ScrollValueChanged(EScrollBar bar, int value);
private:
void SetChannels(int chan_mask);
Widget mChannel[kMaxWaveformChannels]; // channel canvas widgets
PHistImage * mHist[kMaxWaveformChannels];
int mLastNum; // hit number of last display waveforms
int mChanMask; // channels shown
};
#endif // __PWaveformWindow_h__