From deba1e63304a526367a20486f1a9d8bc4090a18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 17 Jul 2003 08:19:05 +0000 Subject: [PATCH] Removed old files. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4005 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/media/images/devices.tga | Bin 838 -> 0 bytes src/prefs/media/images/mixer.tga | Bin 838 -> 0 bytes src/prefs/media/images/tv.tga | Bin 838 -> 0 bytes src/prefs/media/old/MediaPrefsApp.cpp | 22 -------- src/prefs/media/old/MediaPrefsApp.h | 12 ----- src/prefs/media/old/MediaPrefsSlider.cpp | 9 ---- src/prefs/media/old/MediaPrefsSlider.h | 10 ---- src/prefs/media/old/MediaPrefsView.cpp | 7 --- src/prefs/media/old/MediaPrefsView.h | 8 --- src/prefs/media/old/MediaPrefsWindow.cpp | 65 ----------------------- src/prefs/media/old/MediaPrefsWindow.h | 17 ------ 11 files changed, 150 deletions(-) delete mode 100644 src/prefs/media/images/devices.tga delete mode 100644 src/prefs/media/images/mixer.tga delete mode 100644 src/prefs/media/images/tv.tga delete mode 100644 src/prefs/media/old/MediaPrefsApp.cpp delete mode 100644 src/prefs/media/old/MediaPrefsApp.h delete mode 100644 src/prefs/media/old/MediaPrefsSlider.cpp delete mode 100644 src/prefs/media/old/MediaPrefsSlider.h delete mode 100644 src/prefs/media/old/MediaPrefsView.cpp delete mode 100644 src/prefs/media/old/MediaPrefsView.h delete mode 100644 src/prefs/media/old/MediaPrefsWindow.cpp delete mode 100644 src/prefs/media/old/MediaPrefsWindow.h diff --git a/src/prefs/media/images/devices.tga b/src/prefs/media/images/devices.tga deleted file mode 100644 index ac96241efa13462d56bc146ea49ebebd2a9fbd33..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmbu8F;9a)9K~OpJ9Km@>Eu)$x?zb-HGvXMs-BS0)yb(uVIwj03m68%;^d?QVRGxz zeusXCegy~LLAyXv5-*n{Tz>EU-~TQL9AQ7Y=;FBl{f{v^AN7o$bMLhDAV2)-V1bq@ z^4NrOuJtym9Y27SaQ#bF@~TttpGBeVQfe0vLU^86=}Yo!U47J%=)^kjbFONlix-jS z`NW(Y;5VUVaW3%@o=g*Iz6o8|jpLYZ2Y80T%Cg>=p@ey2K@dbyROfl}z#K?0=!41G zaxPWm(=@H~GCx+pLz!QeDEe*UOLIlJP)ubfVb`xi@>!PE{Y!JE@}GRiai~&eGv0L* zUumBz|JmoJZQJzMG_3+O{j!#6nyk_U{Ib7)4b9)%>D^cuH^%kVseNf!<1_pK3>ptt diff --git a/src/prefs/media/images/mixer.tga b/src/prefs/media/images/mixer.tga deleted file mode 100644 index 09e2d555c24bbc76bde9ffe03da23ac01d15457a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 838 zcmZQzU}As)0R{mE357q@0FmL5#2XVE6FYnMY+qkrVswENubkbpuV>e;U44Ch-rnAL zbO9BgJb7}@o;^K13;Ozw=jZ3IU%$Sns0gcF$R-1|06|Ab$M)^pm6Vij-@e_`(}S!F ztH}!%EQpJXTeN7Ai;D};M?i*_mKHD^@S6}H@ch++c+ zgNlj@i1|P*Xu5!g19d?Z107>xVp3LCR$f|eZDkEt3DyL)Yw_a65H}+$h9?qCT{$^9 zKo4S7j8&JJnHf+q(1SoX1Dyd^gUNu{1vDS%W}xEI;!Qbfd3g|(c+>+G-??+=-o1M*EiE%< z%mA_r3JPRpWg+GR4FMv!T|jg0-@pI(@nfKRAOI=`YMC`_RvH*UEQKouGJqm0R;<{+ ze?OWo4-b!;nwqGnC^Uyb)MsU7O_?&~;K74%T}DPm6%`dOE-qNrhlGS&?dX_VQ-iGQ z`Sa&fr%uJC{{O~}|M%^?J!{tNrY4}Sy?ggAUc4A+1wQqsPXl#5oiSreM#kmKmnTe^ zfKNS8F+_cR{pqwc{OVV)Uj6dr%m1G~0iE;|RlU8veRX9uJV;|>Vx63v8X6i_ty%>P zRiLg4BRM45E&Xj^^fOxE7%H#Kc4&AD_CqI=C)8>LD7DbzKb$Td9=^@h{MP zWW(XMpy>(;nG96#;NXBqF@_Y| diff --git a/src/prefs/media/old/MediaPrefsApp.cpp b/src/prefs/media/old/MediaPrefsApp.cpp deleted file mode 100644 index 7b65fd2887..0000000000 --- a/src/prefs/media/old/MediaPrefsApp.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "MediaPrefsApp.h" - - -MediaPrefsApp::MediaPrefsApp() - : BApplication( "application/x-vnd.OBeOS.Media" ) -{ - BRect r; - - r.Set( 100, 100, 200, 300 ); - window = new MediaPrefsWindow( r ); - window->Show(); -} - - -int -main( int argc, char **argv ) -{ - MediaPrefsApp app; - - app.Run(); - return 0; -} diff --git a/src/prefs/media/old/MediaPrefsApp.h b/src/prefs/media/old/MediaPrefsApp.h deleted file mode 100644 index 756433ab4d..0000000000 --- a/src/prefs/media/old/MediaPrefsApp.h +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#include "MediaPrefsWindow.h" - -class MediaPrefsApp : public BApplication { - - public: - MediaPrefsApp(); - - private: - MediaPrefsWindow *window; -}; diff --git a/src/prefs/media/old/MediaPrefsSlider.cpp b/src/prefs/media/old/MediaPrefsSlider.cpp deleted file mode 100644 index 1e63e013d8..0000000000 --- a/src/prefs/media/old/MediaPrefsSlider.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "MediaPrefsSlider.h" -//#include "VolumeControl.h" - - -MediaPrefsSlider::MediaPrefsSlider( BRect r, const char *name, const char *label, BMessage *model, - int32 channels, uint32 resize, uint32 flags ) - : BChannelSlider( r, name, label, model, B_VERTICAL, channels, resize, flags ) -{ -} diff --git a/src/prefs/media/old/MediaPrefsSlider.h b/src/prefs/media/old/MediaPrefsSlider.h deleted file mode 100644 index 6ddcd8fec6..0000000000 --- a/src/prefs/media/old/MediaPrefsSlider.h +++ /dev/null @@ -1,10 +0,0 @@ -#include - -#define vI2F (float)(9.999 / 100) - -class MediaPrefsSlider : public BChannelSlider { - - public: - MediaPrefsSlider( BRect r, const char *name, const char *label, BMessage *model, - int32 channels, uint32 resize, uint32 flags ); -}; diff --git a/src/prefs/media/old/MediaPrefsView.cpp b/src/prefs/media/old/MediaPrefsView.cpp deleted file mode 100644 index 1b81e3e3e9..0000000000 --- a/src/prefs/media/old/MediaPrefsView.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "MediaPrefsView.h" - - -MediaPrefsView::MediaPrefsView( BRect r, char *name ) - : BView( r, name, B_FOLLOW_ALL_SIDES, B_WILL_DRAW ) -{ -} diff --git a/src/prefs/media/old/MediaPrefsView.h b/src/prefs/media/old/MediaPrefsView.h deleted file mode 100644 index 54dbfc0e9c..0000000000 --- a/src/prefs/media/old/MediaPrefsView.h +++ /dev/null @@ -1,8 +0,0 @@ -#include - -class MediaPrefsView : public BView { - - public: - MediaPrefsView( BRect r, char *name ); - -}; diff --git a/src/prefs/media/old/MediaPrefsWindow.cpp b/src/prefs/media/old/MediaPrefsWindow.cpp deleted file mode 100644 index a8cc6d2ff3..0000000000 --- a/src/prefs/media/old/MediaPrefsWindow.cpp +++ /dev/null @@ -1,65 +0,0 @@ -#include "MediaPrefsApp.h" -//#include "VolumeControl.h" - - -MediaPrefsWindow::MediaPrefsWindow( BRect wRect ) - : BWindow( wRect, "Media", B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS ) -{ - float fLeft, fRight; - int32 iLeft, iRight; - - wRect.OffsetTo( B_ORIGIN ); - view = new MediaPrefsView( wRect, "MainView" ); - view->SetViewColor( ui_color( B_PANEL_BACKGROUND_COLOR ) ); - - this->AddChild( view ); - - slider = new MediaPrefsSlider( wRect, "MasterVol", "Master", - new BMessage( 'mVol' ), 2, - B_FOLLOW_LEFT|B_FOLLOW_TOP, B_WILL_DRAW ); - slider->SetLimits( 0, 100 ); - slider->SetLimitLabels( "0", "100" ); - - view->AddChild( slider ); - - // use private API -// if ( MediaKitPrivate::GetMasterVolume( &fLeft, &fRight ) == B_OK ) { -// // left,right range is 0..9.999 -// iLeft = (int32)( fLeft / vI2F ); -// iRight = (int32)( fRight / vI2F ); -// } else { - iLeft = 0; - iRight = 0; -// } - - slider->SetValueFor( 0, iLeft ); - slider->SetValueFor( 1, iRight ); -} - - -bool MediaPrefsWindow::QuitRequested() -{ - be_app->PostMessage( B_QUIT_REQUESTED ); - return true; -} - - -void MediaPrefsWindow::MessageReceived( BMessage *msg ) -{ - switch ( msg->what ) { - case 'mVol': - { - int32 iLeft = slider->ValueFor( 0 ); - int32 iRight = slider->ValueFor( 1 ); - - float fLeft = float( iLeft ) * vI2F; - float fRight = float( iRight ) * vI2F; - -// MediaKitPrivate::SetMasterVolume( fLeft, fRight ); - } - break; - - default: - BWindow::MessageReceived( msg ); - } -} diff --git a/src/prefs/media/old/MediaPrefsWindow.h b/src/prefs/media/old/MediaPrefsWindow.h deleted file mode 100644 index d6d6af255a..0000000000 --- a/src/prefs/media/old/MediaPrefsWindow.h +++ /dev/null @@ -1,17 +0,0 @@ -#include - -#include "MediaPrefsView.h" -#include "MediaPrefsSlider.h" - - -class MediaPrefsWindow : public BWindow { - - public: - MediaPrefsWindow( BRect wRect ); - virtual bool QuitRequested(); - virtual void MessageReceived( BMessage *msg ); - - private: - MediaPrefsView *view; - MediaPrefsSlider *slider; -};