forked from n5ac/mmsstv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClockAdj.h
More file actions
118 lines (99 loc) · 3.66 KB
/
ClockAdj.h
File metadata and controls
118 lines (99 loc) · 3.66 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
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
//Copyright+LGPL
//-----------------------------------------------------------------------------------------------------------------------------------------------
// Copyright 2000-2013 Makoto Mori, Nobuyuki Oba
//-----------------------------------------------------------------------------------------------------------------------------------------------
// This file is part of MMSSTV.
// MMSSTV 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.
// MMSSTV 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
//----------------------------------------------------------------------------
//ja7ude 0428
#include <System.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Graphics.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include "Comlib.h"
#include "sound.h"
//----------------------------------------------------------------------------
#define AGCAVG 4
//----------------------------------------------------------------------------
class TClockAdjDlg : public TForm
{
__published:
TButton *OKBtn;
TButton *CancelBtn;
TPanel *Panel;
TPaintBox *PaintBox;
TEdit *EditClock;
TLabel *Label1;
TTimer *Timer;
TComboBox *MarkFreq;
TLabel *Label2;
TLabel *LPPM;
TTrackBar *TBGAIN;
TUpDown *UDMark;
TSpeedButton *SBAGC;
TLabel *LG;
TUpDown *UDSamp;
void __fastcall TimerTimer(TObject *Sender);
void __fastcall PaintBoxPaint(TObject *Sender);
void __fastcall PaintBoxMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall MarkFreqChange(TObject *Sender);
void __fastcall TBGAINChange(TObject *Sender);
void __fastcall UDMarkClick(TObject *Sender, TUDBtnType Button);
void __fastcall SBAGCClick(TObject *Sender);
void __fastcall PaintBoxMouseMove(TObject *Sender, TShiftState Shift, int X,
int Y);
void __fastcall FormResize(TObject *Sender);
void __fastcall UDSampClick(TObject *Sender, TUDBtnType Button);
private:
CAlignList AlignList;
void __fastcall EntryAlignControl(void);
Graphics::TBitmap *pBitmap;
TSound *pSound;
CSSTVDEM *pDem;
CTICK *pTick;
int m_DisEvent;
double m_Samp;
int m_agcMin;
int m_agcMax;
int m_agcSumMax;
void __fastcall UpdateTB(void);
void __fastcall UpdatePPM(void);
void __fastcall PaintCursor(void);
int m_CursorX;
void __fastcall DrawMessage(LPCSTR p);
double __fastcall GetPointSamp(void);
int m_Point;
int m_PointX;
int m_PointY;
int m_PointX2;
int m_PointY2;
int m_MaxP;
double m_MaxD;
int m_rBase;
AnsiString m_Help;
public:
virtual __fastcall TClockAdjDlg(TComponent* AOwner);
__fastcall TClockAdjDlg::~TClockAdjDlg();
int __fastcall Execute(TSound *p, double &Samp);
};
//----------------------------------------------------------------------------
//extern TClockAdjDlg *ClockAdjDlg;
//----------------------------------------------------------------------------
#endif