Skip to content

Commit 6570010

Browse files
committed
Massive update
* Switching in and out of Meter mode is a preference * Moved overlays to their own classes * Moved common use between these into utility class
1 parent 5f2f8df commit 6570010

File tree

11 files changed

+1573
-1395
lines changed

11 files changed

+1573
-1395
lines changed

Source/jmde/csurf/CSurf_US2400_stripoverlay.cpp

Lines changed: 482 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#pragma once
2+
#include "csurf.h"
3+
#include "csurf_utils.h"
4+
5+
class CSurf_US2400_stripoverlay
6+
{
7+
private:
8+
HWND stp_hwnd;
9+
WNDCLASSEX stp_class;
10+
11+
bool stp_repaint;
12+
int stp_width;
13+
int stp_height;
14+
int stp_x;
15+
int stp_y;
16+
int stp_open;
17+
18+
WDL_String stp_strings[49];
19+
int stp_colors[24];
20+
unsigned long stp_enc_touch;
21+
unsigned long stp_enc_touch_prev;
22+
unsigned long stp_fdr_touch;
23+
unsigned long stp_fdr_touch_prev;
24+
unsigned long stp_sel;
25+
unsigned long stp_rec;
26+
unsigned long stp_mute;
27+
bool stp_chan;
28+
bool stp_flip;
29+
30+
31+
public:
32+
CSurf_US2400_stripoverlay();
33+
void UpdateDisplay(int chan_fx, int chan_par_offs, int s_touch_fdr, int s_touch_enc[24], int s_ch_offset, MediaTrack* chan_rpr_tk, bool m_chan, bool m_flip);
34+
void Stp_CloseWindow();
35+
void Stp_OpenWindow(int chan_fx, int chan_par_offs, int s_touch_fdr, int s_touch_enc[24], int s_ch_offset, MediaTrack* chan_rpr_tk, bool m_chan, bool m_flip);
36+
void Stp_Paint(HWND hwnd);
37+
void Stp_RetrieveCoords();
38+
void Stp_SaveCoords();
39+
void Stp_StoreWinCoords(HWND hwnd);
40+
void Stp_Update(int ch, int chan_fx, int chan_par_offs, int s_touch_fdr, int s_touch_enc[24], int s_ch_offset, MediaTrack* chan_rpr_tk, bool m_flip, bool m_chan);
41+
void SetRepaint();
42+
bool ShouldReopen();
43+
void ToggleWindow(int chan_fx, int chan_par_offs, int s_touch_fdr, int s_touch_enc[24], int s_ch_offset, MediaTrack* chan_rpr_tk, bool m_chan, bool m_flip);
44+
45+
46+
};
47+

0 commit comments

Comments
 (0)