Mercurial > hg > hv
view EditorPanelUnit.h @ 1:f3fd4e19cec0 tip
first binary upload
author | wenx <xue.wen@eecs.qmul.ac.uk> |
---|---|
date | Wed, 10 Aug 2011 14:56:28 +0100 |
parents | a6a46af64546 |
children |
line wrap: on
line source
/* Harmonic Visualiser An audio file viewer and editor. Centre for Digital Music, Queen Mary, University of London. This file copyright 2011 Wen Xue. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ //--------------------------------------------------------------------------- #ifndef EditorPanelUnitH #define EditorPanelUnitH //--------------------------------------------------------------------------- /* EditorPanelUnit.cpp implements the Editor panel GUI of HV. */ #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Buttons.hpp> #include <ComCtrls.hpp> #include <ExtCtrls.hpp> #include "EventBoxUnit.h" #include <Dialogs.hpp> //--------------------------------------------------------------------------- class TEditorPanel : public TForm { __published: // IDE-managed Components TPanel *Panel1; TSpeedButton *SpeedButton1; TSpeedButton *SpeedButton2; TPanel *Panel2; TPageControl *PageControl1; TTabSheet *AmplifySheet; TLabel *Label1; TEdit *AmpEdit1; TEdit *AmpDBEdit1; TTabSheet *PitchSheet; TEdit *PitchEdit1; TCheckBox *PitchCheck1; TTabSheet *AMSheet; TEdit *AMAEdit1; TEdit *AMFEdit1; TTabSheet *FMSheet; TLabel *Label2; TEdit *FMAEdit1; TEdit *FMFEdit1; TTabSheet *DeFMSheet; TLabel *Label3; TLabel *Label4; TEdit *DeFMEdit1; TEdit *DeFMEdit2; TLabel *Label5; TLabel *Label6; TLabel *Label7; TLabel *Label8; TLabel *Label9; TLabel *Label10; TEdit *AMPhEdit1; TLabel *Label11; TLabel *Label12; TEdit *FMPhEdit1; TLabel *Label13; TOpenDialog *OpenDialog1; TSpeedButton *SpeedButton4; void __fastcall AmpEdit1MouseMove(TObject *Sender, TShiftState Shift, int X, int Y); void __fastcall AmpEdit1KeyPress(TObject *Sender, char &Key); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall SpeedButton1Click(TObject *Sender); void __fastcall SpeedButton2Click(TObject *Sender); void __fastcall SpeedButton4Click(TObject *Sender); private: // User declarations public: // User declarations int From; int To; int FromAfter; int ToAfter; int Channel; int targettype; __int16* Before; double* target; int dst; int den; __fastcall TEditorPanel(TComponent* Owner); __fastcall ~TEditorPanel(); void __fastcall WMMouseWheel(TWMMouseWheel Message); void __fastcall AmpEdit1MouseWheel(int); void __fastcall AMAEdit1MouseWheel(int); void __fastcall DeFMEdit1MouseWheel(int); void __fastcall FMAEdit1MouseWheel(int); void __fastcall FMFEdit1MouseWheel(int); void __fastcall EditAmplify(double a); void __fastcall EditPitchShifting(double ps); void __fastcall EditAM(double dep, double fre, double ph); void __fastcall EditFM(double dep, double fre, double ph); void __fastcall EditReFM(double a, double r); THS* HS; BEGIN_MESSAGE_MAP MESSAGE_HANDLER(WM_MOUSEWHEEL, TWMMouseWheel, WMMouseWheel) END_MESSAGE_MAP(TComponent) }; //--------------------------------------------------------------------------- extern PACKAGE TEditorPanel *EditorPanel; //--------------------------------------------------------------------------- #endif