logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

envDialog.h

00001 //
00002 //  SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation.        
00003 //
00004 //      Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net)
00005 //
00006 
00007 #ifndef __envDialog
00008 #define __envDialog
00009 
00010 #include "Synth.h"
00011 #include <iostream>
00012 #include "math.h"
00013 
00014 #include "WinForm.h"
00015 #include "menu.h"
00016 #include "AInput.h"
00017 #include <string>
00018 #include <vector>
00019 #include "envelope.h"
00020 
00021 using namespace SynthCore;
00022 using namespace GUIToolkit;
00023 
00024 namespace SynthGUI {
00025 
00026 class mod;
00027 
00029 class EnvDialog : public EventHandler {
00030         public:
00032                 EnvDialog(mod * md);
00033 
00035                 ~EnvDialog();
00036 
00038                 void drawEnv();
00039 
00041                 void MessageLoop();
00042 
00044                 void HandleEvents(event ev);
00045 
00047                 void EnvToScreen(float xx, float yy, int &x,int &y);
00048 
00050                 void ScreenToEnv(int x,int y,float &xx, float &yy );
00051 
00052         private:
00053                 EnvData * myEnvData;
00054                 WinForm * myWindow;
00055                 TextBox * myText2 ;
00056                 int lastChoosen;
00057                 mod * myMod;
00058                 POINT pt;
00059                 MCanvas * waveCanvas;
00060                 
00061                 // Combo Boxes
00062 
00063                 ComboBox * WavSel1DD; // User/Preset
00064                 ComboBox * interpolDD; // Interpolation method
00065                 ComboBox * outputDD; 
00066                 
00067                 
00068                 ComboBoxItem * WS1DD1; // Items : Preset / User
00069                 ComboBoxItem * WS1DD2;
00070                 ComboBoxItem * WS1DD3;
00071 
00072                 ComboBoxItem * outputDD1;
00073                 
00074                 ComboBoxItem * interpolDD1;
00075                 ComboBoxItem * interpolDD2;
00076                 ComboBoxItem * interpolDD3;
00077                 ComboBoxItem * interpolDD4;
00078 
00079                 // Labels
00080 
00081                 Label * label0; // headline
00082                 Label * label1; // Wave
00083                 Label * label2; // Show Key
00084                 Label * label3; // Show Key
00085 
00086                 Label * label5; // Show Key
00087                 
00088                 Label * label6; // Quality
00089                 Label * label7; // Interpolation
00090                 Label * label8; // SampleLength
00091                 Label * label9; // Oversampling
00092 
00093                 // Buttons
00094 
00095                 Button * EditButton;
00096                 Button * OKButton;
00097                 Button * CancelButton;
00098                 Button * button1;
00099                 Button * button2;
00100                 Button * button3;
00101 
00102 
00103                 // Dividers
00104                 divider * div1;
00105                 divider * div2;
00106                 
00107                 // Context popup menu
00108 
00109                 popupMenu * myPopup;
00110                 popupMenu * myPopup2;
00111                 menuItem * mItem11;
00112                 menuItem * mItem12;
00113                 menuItem * mItem13;
00114                 menuItem * mItem21;
00115 
00116                 // Extra Inputs
00117 
00118         //      AInput * freqInput;
00119         
00120 
00121                 // IN/OUT
00122 
00123                 //IOSelector * outputSel;
00124                 
00125                 // rest
00126                 
00127 };
00128 
00129 }; // end of namespace: SynthGUI
00130 
00131 #endif

Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen