-
Notifications
You must be signed in to change notification settings - Fork 5
/
ClockAdj.h
123 lines (105 loc) · 4.29 KB
/
ClockAdj.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
//Copyright+LGPL
//-----------------------------------------------------------------------------------------------------------------------------------------------
// Copyright 2000-2013 Makoto Mori, Nobuyuki Oba
//-----------------------------------------------------------------------------------------------------------------------------------------------
// This file is part of MMVARI.
// MMVARI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// MMVARI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public License along with MMTTY. If not, see
// <http://www.gnu.org/licenses/>.
//-----------------------------------------------------------------------------------------------------------------------------------------------
//---------------------------------------------------------------------------
#ifndef ClockAdjH
#define ClockAdjH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
#include "ComLib.h"
#include "dsp.h"
//---------------------------------------------------------------------------
class TClockAdjDlg : public TForm
{
__published: // IDE 管理のコンポーネント
TPanel *PCFFT;
TPanel *PCT;
TLabel *L1;
TEdit *EditClock;
TLabel *L2;
TUpDown *UdClock;
TSpeedButton *SBClose;
TPaintBox *PBoxFFT;
TPaintBox *PBoxT;
TPanel *PCC;
TSplitter *Splitter;
TSpeedButton *SBSet;
TComboBox *CBTone;
TLabel *L3;
TLabel *L4;
TLabel *LPPM;
void __fastcall SBCloseClick(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormResize(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall PBoxTPaint(TObject *Sender);
void __fastcall PBoxFFTPaint(TObject *Sender);
void __fastcall PCFFTResize(TObject *Sender);
void __fastcall PCTResize(TObject *Sender);
void __fastcall SBSetClick(TObject *Sender);
void __fastcall UdClockClick(TObject *Sender, TUDBtnType Button);
void __fastcall PBoxTMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall PBoxTMouseMove(TObject *Sender, TShiftState Shift, int X,
int Y);
void __fastcall CBToneChange(TObject *Sender);
void __fastcall PBoxFFTMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall PBoxFFTMouseMove(TObject *Sender, TShiftState Shift,
int X, int Y);
void __fastcall PBoxFFTMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
private: // ユーザー宣言
int m_fDisEvent;
double m_SampFreq;
double m_ToneFreq;
CClock m_Clock;
TColor m_tWaterColors[256];
Graphics::TBitmap *m_pBitmapT;
FFTSTG m_StgT;
int m_CursorX;
int m_Point;
int m_PointX, m_PointY;
int m_PointX2, m_PointY2;
int m_PointRX;
int m_fftXW, m_fftYW;
Graphics::TBitmap *m_pBitmapFFT;
int m_FFTWindow;
int m_MouseDown;
private:
void __fastcall UpdatePPM(void);
void __fastcall CreateWaterColors(void);
void __fastcall DrawMsg(void);
void __fastcall InitWater(void);
void __fastcall DrawFFT(BOOL fClear);
double __fastcall GetPointSamp(void);
void __fastcall DrawMessage(LPCSTR p);
void __fastcall DrawCursor(void);
void __fastcall SetToneFreq(int f);
public: // ユーザー宣言
__fastcall TClockAdjDlg(TComponent* Owner);
void __fastcall Execute(void);
void __fastcall Do(short ds);
void __fastcall UpdateFFT(void);
};
//---------------------------------------------------------------------------
//extern PACKAGE TClockAdjDlg *ClockAdjDlg;
//---------------------------------------------------------------------------
#endif