~s-cecilio/lenmus/v5.3

« back to all changes in this revision

Viewing changes to packages/wxMidi/include/wxMidi.h

  • Committer: cecilios
  • Date: 2007-05-19 11:39:03 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:236

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// --------------------------------------------------------------------------------
4
4
//
5
5
// Author:      Cecilio Salmeron
6
 
// Copyright:   (c) 2005-2008 Cecilio Salmeron
 
6
// RCS-ID:      $Id: wxMidi.h,v 1.1.1.1 2005/09/03 16:16:29 cecilios Exp $
 
7
// Copyright:   (c) 2005-2006 Cecilio Salmeron
7
8
// Licence:     wxWidgets licence
8
9
//
9
10
// Changes:
10
 
// 1.5  2008/Sep/26
11
 
//              - Added optional parameter to wxMidiDatabaseGM::PopulateWithInstruments() to
12
 
//        select names format
13
 
//
14
 
// 1.4  2007/May/19
15
 
//              - No changes in source code.
16
 
//
17
 
// 1.3  2006/Nov/18
18
 
//              - No changes in source code.
19
 
//
20
 
// 1.2  2006/Aug/18
21
 
//              - For internationalization, strings can not be statically initialized.
22
 
//              - Initialization of strings added to wxMidiDatabaseGM constructor.
 
11
// 1.2  2006/Aug/18 For internationalization, strings can not be statically initialized.
 
12
//                  Initialization of strings added to wxMidiDatabaseGM constructor.
23
13
//=====================================================================================
24
14
#ifdef __GNUG__
25
15
// #pragma interface
28
18
#ifndef __WXMIDI_H__            //to avoid nested includes
29
19
#define __WXMIDI_H__
30
20
 
31
 
// For compilers that support precompilation, includes <wx/wx.h>.
32
 
#include <wx/wxprec.h>
 
21
// For compilers that support precompilation, includes "wx/wx.h".
 
22
#include "wx/wxprec.h"
33
23
 
34
24
#ifdef __BORLANDC__
35
25
#pragma hdrstop
36
26
#endif
37
27
 
38
28
#ifndef WX_PRECOMP
39
 
#include <wx/wx.h>
 
29
#include "wx/wx.h"
40
30
#endif
41
31
 
42
32
/*
46
36
*/
47
37
 
48
38
// MIDI support throgh Portmidi lib
49
 
#include <portmidi.h>
50
 
#include <porttime.h>
 
39
#include "portmidi.h"
 
40
#include "porttime.h"
51
41
 
52
42
 
53
43
//Constants
54
 
#define wxMIDI_VERSION          _T("1.5")
 
44
#define wxMIDI_VERSION          _T("1.3")
55
45
#define wxMidiDeviceID          PmDeviceID
56
46
#define wxMidiTimestamp         PmTimestamp
57
47
#define wxMidiPmMessage         PmMessage
337
327
 
338
328
        static wxMidiDatabaseGM* GetInstance();
339
329
 
340
 
        void     PopulateWithInstruments(wxControlWithItems* pCtrol, int nSection, int nInstr=0,
341
 
                                     bool fAddNumber=false);
 
330
        void     PopulateWithInstruments(wxControlWithItems* pCtrol, int nSection, int nInstr=0);
342
331
        void     PopulateWithPercusionInstr(wxControlWithItems* pCtrol, int iSel=0);
343
332
        int              PopulateWithSections(wxControlWithItems* pCtrol, int nSelInstr=-1);
344
333
        void     PopulateWithAllInstruments(wxControlWithItems* pCtrol, int nInstr=0);