Mercurial > hg > hv
comparison EditorPanelUnit.h @ 0:a6a46af64546
first upload
author | wenx <xue.wen@eecs.qmul.ac.uk> |
---|---|
date | Wed, 10 Aug 2011 14:55:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a6a46af64546 |
---|---|
1 /* | |
2 Harmonic Visualiser | |
3 | |
4 An audio file viewer and editor. | |
5 Centre for Digital Music, Queen Mary, University of London. | |
6 This file copyright 2011 Wen Xue. | |
7 | |
8 This program is free software; you can redistribute it and/or | |
9 modify it under the terms of the GNU General Public License as | |
10 published by the Free Software Foundation; either version 2 of the | |
11 License, or (at your option) any later version. | |
12 */ | |
13 //--------------------------------------------------------------------------- | |
14 | |
15 #ifndef EditorPanelUnitH | |
16 #define EditorPanelUnitH | |
17 //--------------------------------------------------------------------------- | |
18 /* | |
19 EditorPanelUnit.cpp implements the Editor panel GUI of HV. | |
20 */ | |
21 | |
22 #include <Classes.hpp> | |
23 #include <Controls.hpp> | |
24 #include <StdCtrls.hpp> | |
25 #include <Forms.hpp> | |
26 #include <Buttons.hpp> | |
27 #include <ComCtrls.hpp> | |
28 #include <ExtCtrls.hpp> | |
29 #include "EventBoxUnit.h" | |
30 #include <Dialogs.hpp> | |
31 //--------------------------------------------------------------------------- | |
32 class TEditorPanel : public TForm | |
33 { | |
34 __published: // IDE-managed Components | |
35 TPanel *Panel1; | |
36 TSpeedButton *SpeedButton1; | |
37 TSpeedButton *SpeedButton2; | |
38 TPanel *Panel2; | |
39 TPageControl *PageControl1; | |
40 TTabSheet *AmplifySheet; | |
41 TLabel *Label1; | |
42 TEdit *AmpEdit1; | |
43 TEdit *AmpDBEdit1; | |
44 TTabSheet *PitchSheet; | |
45 TEdit *PitchEdit1; | |
46 TCheckBox *PitchCheck1; | |
47 TTabSheet *AMSheet; | |
48 TEdit *AMAEdit1; | |
49 TEdit *AMFEdit1; | |
50 TTabSheet *FMSheet; | |
51 TLabel *Label2; | |
52 TEdit *FMAEdit1; | |
53 TEdit *FMFEdit1; | |
54 TTabSheet *DeFMSheet; | |
55 TLabel *Label3; | |
56 TLabel *Label4; | |
57 TEdit *DeFMEdit1; | |
58 TEdit *DeFMEdit2; | |
59 TLabel *Label5; | |
60 TLabel *Label6; | |
61 TLabel *Label7; | |
62 TLabel *Label8; | |
63 TLabel *Label9; | |
64 TLabel *Label10; | |
65 TEdit *AMPhEdit1; | |
66 TLabel *Label11; | |
67 TLabel *Label12; | |
68 TEdit *FMPhEdit1; | |
69 TLabel *Label13; | |
70 TOpenDialog *OpenDialog1; | |
71 TSpeedButton *SpeedButton4; | |
72 void __fastcall AmpEdit1MouseMove(TObject *Sender, TShiftState Shift, | |
73 int X, int Y); | |
74 void __fastcall AmpEdit1KeyPress(TObject *Sender, char &Key); | |
75 void __fastcall FormClose(TObject *Sender, TCloseAction &Action); | |
76 void __fastcall SpeedButton1Click(TObject *Sender); | |
77 void __fastcall SpeedButton2Click(TObject *Sender); | |
78 void __fastcall SpeedButton4Click(TObject *Sender); | |
79 private: // User declarations | |
80 public: // User declarations | |
81 int From; | |
82 int To; | |
83 int FromAfter; | |
84 int ToAfter; | |
85 int Channel; | |
86 int targettype; | |
87 __int16* Before; | |
88 double* target; | |
89 int dst; | |
90 int den; | |
91 __fastcall TEditorPanel(TComponent* Owner); | |
92 __fastcall ~TEditorPanel(); | |
93 | |
94 void __fastcall WMMouseWheel(TWMMouseWheel Message); | |
95 void __fastcall AmpEdit1MouseWheel(int); | |
96 void __fastcall AMAEdit1MouseWheel(int); | |
97 void __fastcall DeFMEdit1MouseWheel(int); | |
98 void __fastcall FMAEdit1MouseWheel(int); | |
99 void __fastcall FMFEdit1MouseWheel(int); | |
100 | |
101 void __fastcall EditAmplify(double a); | |
102 void __fastcall EditPitchShifting(double ps); | |
103 void __fastcall EditAM(double dep, double fre, double ph); | |
104 void __fastcall EditFM(double dep, double fre, double ph); | |
105 void __fastcall EditReFM(double a, double r); | |
106 THS* HS; | |
107 | |
108 BEGIN_MESSAGE_MAP | |
109 MESSAGE_HANDLER(WM_MOUSEWHEEL, TWMMouseWheel, WMMouseWheel) | |
110 END_MESSAGE_MAP(TComponent) | |
111 }; | |
112 //--------------------------------------------------------------------------- | |
113 extern PACKAGE TEditorPanel *EditorPanel; | |
114 //--------------------------------------------------------------------------- | |
115 | |
116 #endif |