-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathC700GUI.h
More file actions
75 lines (64 loc) · 1.99 KB
/
C700GUI.h
File metadata and controls
75 lines (64 loc) · 1.99 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
69
70
71
72
73
74
75
/*
* C700GUI.h
* C700
*
* Created by osoumen on 12/10/01.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#pragma once
#include <map>
#include "vstgui.h"
#include "C700defines.h"
#include "GUIUtils.h"
#include "EfxAccess.h"
#include "DummyCntl.h"
#include "MyKnob.h"
#include "MySlider.h"
#include "LabelOnOffButton.h"
#include "WaveView.h"
#include "SeparatorLine.h"
#include "MyParamDisplay.h"
#include "MyTextEdit.h"
#include "RecordingSettingsGUI.h"
#include "SPCFile.h"
#include "RawBRRFile.h"
#include "AudioFile.h"
#include "XIFile.h"
class C700GUI : public CViewContainer, public CControlListener
{
public:
C700GUI(const CRect &size, CFrame *pParent, CBitmap *pBackground = 0);
~C700GUI();
CControl* FindControlByTag( long tag );
void SetEfxAccess(EfxAccess* efxacc) {
efxAcc = efxacc;
if (recordWindow) {
recordWindow->SetEfxAccess(efxacc);
}
}
// CView‚æ‚è
virtual void valueChanged(CControl* control);
bool attached(CView* view);
bool removed(CView* parent);
CMessageResult notify(CBaseObject* sender, const char* message);
bool loadToCurrentProgram( const char *path );
CLASS_METHODS(C700GUI, CViewContainer)
private:
void copyFIRParamToClipBoard();
bool loadToCurrentProgramFromKhaos();
bool loadToCurrentProgramFromBRR( RawBRRFile *file );
bool loadToCurrentProgramFromPlistBRR( PlistBRRFile *file );
bool loadToCurrentProgramFromAudioFile( AudioFile *file );
bool loadToCurrentProgramFromSPC( SPCFile *file );
bool getLoadFile( char *path, int maxLen, const char *title );
bool getSaveFile( char *path, int maxLen, const char *defaultName, const char *title );
void saveFromCurrentProgram(const char *path);
void saveFromCurrentProgramToXI(const char *path);
void autocalcCurrentProgramSampleRate();
void autocalcCurrentProgramBaseKey();
bool IsPreemphasisOn();
std::map<long, CControl*> mCntl;
RecordingSettingsGUI *recordWindow;
EfxAccess *efxAcc;
};