Mercurial > mplayer.hg
comparison gui/ui/main.c @ 35762:6742a91ba28a
Cosmetic: Remove "Handle(r)" from function names.
author | ib |
---|---|
date | Thu, 24 Jan 2013 17:08:38 +0000 |
parents | afb55738b1b7 |
children | ce6de800ee29 |
comparison
equal
deleted
inserted
replaced
35761:fa2e5b53b2e3 | 35762:6742a91ba28a |
---|---|
417 mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[main] uiEventHandling: unknown event %d, param %.2f\n", msg, param ); | 417 mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[main] uiEventHandling: unknown event %d, param %.2f\n", msg, param ); |
418 break; | 418 break; |
419 } | 419 } |
420 } | 420 } |
421 | 421 |
422 void uiMainMouseHandle( int Button,int X,int Y,int RX,int RY ) | 422 void uiMainMouse( int Button,int X,int Y,int RX,int RY ) |
423 { | 423 { |
424 static int itemtype = 0; | 424 static int itemtype = 0; |
425 int i; | 425 int i; |
426 guiItem * item = NULL; | 426 guiItem * item = NULL; |
427 float value = 0.0f; | 427 float value = 0.0f; |
519 { | 519 { |
520 case itPLMButton: | 520 case itPLMButton: |
521 wsWindowMove( &guiApp.mainWindow,True,RX - abs( sx ),RY - abs( sy ) ); | 521 wsWindowMove( &guiApp.mainWindow,True,RX - abs( sx ),RY - abs( sy ) ); |
522 break; | 522 break; |
523 case itPRMButton: | 523 case itPRMButton: |
524 uiMenuMouseHandle( RX,RY ); | 524 uiMenuMouse( RX,RY ); |
525 break; | 525 break; |
526 case itPotmeter: | 526 case itPotmeter: |
527 item->value=(float)( X - item->x ) / item->width * 100.0f; | 527 item->value=(float)( X - item->x ) / item->width * 100.0f; |
528 goto potihandled; | 528 goto potihandled; |
529 case itVPotmeter: | 529 case itVPotmeter: |
539 } | 539 } |
540 break; | 540 break; |
541 } | 541 } |
542 } | 542 } |
543 | 543 |
544 void uiMainKeyHandle( int KeyCode,int Type,int Key ) | 544 void uiMainKey( int KeyCode,int Type,int Key ) |
545 { | 545 { |
546 int msg = evNone; | 546 int msg = evNone; |
547 | 547 |
548 if ( Type != wsKeyPressed ) return; | 548 if ( Type != wsKeyPressed ) return; |
549 | 549 |
586 } | 586 } |
587 if ( msg != evNone ) uiEventHandling( msg,0 ); | 587 if ( msg != evNone ) uiEventHandling( msg,0 ); |
588 } | 588 } |
589 | 589 |
590 /* this will be used to handle drag & drop files */ | 590 /* this will be used to handle drag & drop files */ |
591 void uiDNDHandler(int num,char** files) | 591 void uiDND(int num,char** files) |
592 { | 592 { |
593 struct stat buf; | 593 struct stat buf; |
594 int f = 0; | 594 int f = 0; |
595 | 595 |
596 char* subtitles = NULL; | 596 char* subtitles = NULL; |