Previous version were updated by error sorry.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1958 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
jerl1 2002-11-16 16:42:26 +00:00
parent f9493271b8
commit 75660c7bca
2 changed files with 12 additions and 12 deletions

View File

@ -3,7 +3,7 @@ Author: Jerome LEVEQUE
Email: jerl1@caramail.com Email: jerl1@caramail.com
*/ */
#include "MidiPlayerView.h" #include "MidiPlayerView.h"
//#include "Scope.h" #include "Scope.h"
#include "Activity.h" #include "Activity.h"
#include <StringView.h> #include <StringView.h>
@ -154,12 +154,12 @@ Activity *view = NULL;
RemoveAll(fViewBox); RemoveAll(fViewBox);
break; break;
//-------------- //--------------
/* case VIEW_CHANGE_TO_SCOPE : case VIEW_CHANGE_TO_SCOPE :
RemoveAll(fViewBox); RemoveAll(fViewBox);
fViewBox->AddChild(new Scope(BRect(10, 25, 340, 340))); fViewBox->AddChild(new Scope(BRect(10, 25, 340, 340)));
break; break;
//-------------- //--------------
*/ case VIEW_CHANGE_TO_ACTIVITY : case VIEW_CHANGE_TO_ACTIVITY :
RemoveAll(fViewBox); RemoveAll(fViewBox);
msg->FindPointer("View", (void**)&view); msg->FindPointer("View", (void**)&view);
fViewBox->AddChild(view); fViewBox->AddChild(view);
@ -229,7 +229,7 @@ BMessage *msg = NULL;
BMenuItem *item = NULL; BMenuItem *item = NULL;
int32 temp = 0; int32 temp = 0;
/* Menu = new BPopUpMenu("Sample Rate"); Menu = new BPopUpMenu("Sample Rate");
temp = be_synth->SamplingRate(); temp = be_synth->SamplingRate();
msg = new BMessage(CHANGE_SAMPLE_RATE_SYNTH); msg = new BMessage(CHANGE_SAMPLE_RATE_SYNTH);
Menu->AddItem(item = new BMenuItem("11025 Hz", msg)); Menu->AddItem(item = new BMenuItem("11025 Hz", msg));
@ -303,7 +303,7 @@ BSlider *slider = new BSlider(BRect(5, 100, 275, 130), NULL, "Volume",
slider->SetValue(temp); slider->SetValue(temp);
slider->SetLimitLabels("Min", "Max"); slider->SetLimitLabels("Min", "Max");
aView->AddChild(slider); aView->AddChild(slider);
*/} }
//---------------------------------------------------------- //----------------------------------------------------------
//---------------------------------------------------------- //----------------------------------------------------------

View File

@ -17,7 +17,7 @@ Email: jerl1@caramail.com
#include <File.h> #include <File.h>
#include <MidiStore.h> #include <MidiStore.h>
#include <MidiPort.h> #include <MidiPort.h>
//#include <MidiSynth.h> #include <MidiSynth.h>
#include <MidiSynthFile.h> #include <MidiSynthFile.h>
//---------------------------------------------------------- //----------------------------------------------------------
@ -210,7 +210,7 @@ entry_ref ref;
PostMessage(msg, fStandartView); PostMessage(msg, fStandartView);
break; break;
//-------------- //--------------
/* case OUTPUT_CHANGE_TO_BEOS_SYNTH : case OUTPUT_CHANGE_TO_BEOS_SYNTH :
if (fOutputType == BEOS_SYNTH) if (fOutputType == BEOS_SYNTH)
break; break;
fOutputType = BEOS_SYNTH; fOutputType = BEOS_SYNTH;
@ -244,7 +244,7 @@ entry_ref ref;
PostMessage(msg, fStandartView); PostMessage(msg, fStandartView);
break; break;
//-------------- //--------------
*/ case OUTPUT_CHANGE_TO_MIDIPORT : case OUTPUT_CHANGE_TO_MIDIPORT :
if (fOutputType == MIDIPORT) if (fOutputType == MIDIPORT)
break; break;
fOutputType = MIDIPORT; fOutputType = MIDIPORT;
@ -280,14 +280,14 @@ entry_ref ref;
PostMessage(msg, fStandartView); PostMessage(msg, fStandartView);
break; break;
//-------------- //--------------
/* case VIEW_CHANGE_TO_SCOPE : case VIEW_CHANGE_TO_SCOPE :
if (fDisplayType == SCOPE) if (fDisplayType == SCOPE)
break; break;
fDisplayType = SCOPE; fDisplayType = SCOPE;
PostMessage(msg, fStandartView); PostMessage(msg, fStandartView);
break; break;
//-------------- //--------------
*/ case VIEW_CHANGE_TO_ACTIVITY : case VIEW_CHANGE_TO_ACTIVITY :
if (fDisplayType == ACTIVITY) if (fDisplayType == ACTIVITY)
break; break;
fDisplayType = ACTIVITY; fDisplayType = ACTIVITY;
@ -422,7 +422,7 @@ entry_ref ref;
//-------------- //--------------
//Message from the BeOS Synth //Message from the BeOS Synth
//-------------- //--------------
/* case CHANGE_BEOS_SYNTH_FILE: case CHANGE_BEOS_SYNTH_FILE:
if (fOutputFilePanel) if (fOutputFilePanel)
{ {
msg->FindRef("refs", &fOutputFile); msg->FindRef("refs", &fOutputFile);
@ -545,7 +545,7 @@ entry_ref ref;
//-------------- //--------------
//For the drag and drop function //For the drag and drop function
//-------------- //--------------
*/ case B_SIMPLE_DATA : //A file had been dropped into application case B_SIMPLE_DATA : //A file had been dropped into application
if (msg->FindRef("refs", &ref) == B_OK) if (msg->FindRef("refs", &ref) == B_OK)
{ {
message = BMessage(INPUT_CHANGE_TO_FILE); message = BMessage(INPUT_CHANGE_TO_FILE);