home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / beaversweeper_v101.zip / src / instrEditor.h < prev    next >
C/C++ Source or Header  |  2003-01-06  |  4KB  |  141 lines

  1. #if !defined(AFX_INSTREDITOR_H__F162B004_A4C5_43EE_BC0C_C69CE7C61D62__INCLUDED_)
  2. #define AFX_INSTREDITOR_H__F162B004_A4C5_43EE_BC0C_C69CE7C61D62__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // instrEditor.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // instrEditor form view
  12.  
  13. #ifndef __AFXEXT_H__
  14. #include <afxext.h>
  15. #endif
  16.  
  17. #include "roundsliderctrl.h"
  18. #include "trackerdoc.h"
  19. #include "voicebasedlg.h"
  20. #include "MIDIReceptor.h"
  21. #include "ArpEditor.h"
  22.  
  23. class CInstrEditor : public CFormView, public MIDIReceptor
  24. {
  25.  
  26. protected:
  27.     // steffo testar midi-grejs
  28.     bool midiopen;
  29.     static UINT curdevice;
  30.     HMIDIIN handle;
  31.  
  32.  
  33. protected:
  34.     CInstrEditor();           // protected constructor used by dynamic creation
  35.     DECLARE_DYNCREATE(CInstrEditor)
  36.  
  37. // Form Data
  38. public:
  39.     //{{AFX_DATA(CInstrEditor)
  40.     enum { IDD = IDD_DIALOG_INSTREDIT };
  41.     CComboBox    m_vol1ModNr;
  42.     CComboBox    m_vol0ModNR;
  43.     CStatic    m_instrDistAmText;
  44.     CStatic    m_textPolyCount;
  45.     CStatic    m_textNRangeStart;
  46.     CStatic    m_textNRangeEnd;
  47.     CSliderCtrl    m_instrDistAmount;
  48.     CComboBox    m_instrDistType;
  49.     CSliderCtrl    m_noterangeend;
  50.     CSliderCtrl    m_noterangestart;
  51.     CListBox    m_voicelist;
  52.     CComboBox    m_instrlist;
  53.     CTabCtrl    m_subObects;
  54.     BOOL    m_useDist;
  55.     float    m_vol0ModAmount;
  56.     float    m_vol1ModAmount;
  57.     BOOL    m_enable_arp;
  58.     //}}AFX_DATA
  59.  
  60. // Attributes
  61. public:
  62.   CTrackerDoc* GetDocument();
  63.  
  64.   CArpEditor m_arpeditor;
  65.   
  66. // Operations
  67. public:
  68.     void GetVoiceData(void);
  69.     void SetVoiceData(void);
  70.     void UpdateCntrlText (void);
  71.     void FillVolModCombo();
  72.     int cursel_voice;
  73.     void UpdateCurrent ();
  74.     isSynth * GetSynth(void);
  75.     isVoice * GetVoice(void);
  76.     isInstrument *GetInstr();
  77.     void SetUpVoices (int instrnr);
  78.  
  79.     // <MIDI HANDLERS>
  80.     virtual void OnMIDIKeyDown( UINT key, UINT velocity );
  81.     virtual void OnMIDIKeyUp( UINT key, UINT velocity );
  82.     // </MIDI HANDLERS>
  83.  
  84. // Overrides
  85.     // ClassWizard generated virtual function overrides
  86.     //{{AFX_VIRTUAL(CInstrEditor)
  87.     public:
  88.     virtual void OnInitialUpdate();
  89.     protected:
  90.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  91.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  92.     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  93.     virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  94.     //}}AFX_VIRTUAL
  95.  
  96. // Implementation
  97. protected:
  98.     virtual ~CInstrEditor();
  99. #ifdef _DEBUG
  100.     virtual void AssertValid() const;
  101.     virtual void Dump(CDumpContext& dc) const;
  102. #endif
  103.   CVoiceBaseDlg *current;
  104.     // Generated message map functions
  105.     //{{AFX_MSG(CInstrEditor)
  106.     afx_msg void OnSelchangeTabSubobjects(NMHDR* pNMHDR, LRESULT* pResult);
  107.     afx_msg void OnButtonDelvoice();
  108.     afx_msg void OnSelchangeListVoice();
  109.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  110.     afx_msg void OnSelchangeComboInstrument();
  111.     afx_msg void OnDeltaposSpinNrpolyfoni(NMHDR* pNMHDR, LRESULT* pResult);
  112.     afx_msg void OnCheckUsedist();
  113.     afx_msg void OnSelchangeComboInstrDistType();
  114.     afx_msg void OnButtonInstrsave();
  115.     afx_msg void OnButtonInstrload();
  116.     afx_msg void OnSelchangeCombo();
  117.     afx_msg void OnMaxtextEditVolMod();
  118.     afx_msg void OnChangeEditVol0modamount();
  119.     afx_msg void OnChangeEditVol1modamount();
  120.     afx_msg void OnKillfocusEditVol0modamount();
  121.     afx_msg void OnKillfocusEditVol1modamount();
  122.     afx_msg void OnEditArpeggio();
  123.     afx_msg void OnButtonAddvoice();
  124.     afx_msg void OnEnablearp();
  125.     //}}AFX_MSG
  126.     DECLARE_MESSAGE_MAP()
  127. };
  128. /*
  129. #ifndef _DEBUG  // debug version in trackerView.cpp
  130. inline CTrackerDoc* CInstrEditor::GetDocument()
  131. { return (CTrackerDoc*)m_pDocument; }
  132. #endif
  133. */
  134.  
  135. /////////////////////////////////////////////////////////////////////////////
  136.  
  137. //{{AFX_INSERT_LOCATION}}
  138. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  139.  
  140. #endif // !defined(AFX_INSTREDITOR_H__F162B004_A4C5_43EE_BC0C_C69CE7C61D62__INCLUDED_)
  141.