//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 // . //----------------------------------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------- #ifndef ClockAdjH #define ClockAdjH //---------------------------------------------------------------------------- //ja7ude 0428 #include #include #include #include #include #include #include #include #include #include #include #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