X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fremotecontrol.h;fp=cinelerra-5.0%2Fcinelerra%2Fremotecontrol.h;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=85a03c1f799e61a4bd40d115a9b64660baf2850c;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/remotecontrol.h b/cinelerra-5.0/cinelerra/remotecontrol.h deleted file mode 100644 index 85a03c1f..00000000 --- a/cinelerra-5.0/cinelerra/remotecontrol.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef _REMOTECONTROL_H_ -#define _REMOTECONTROL_H_ - -#include "bcpopup.h" -#include "bcwindow.h" -#include "mutex.h" -#include "mwindowgui.inc" -#include "thread.h" - -class RemoteControl; -class RemoteGUI; -class RemoteHandler; -class RemoteWindow; - -class RemoteGUI : public BC_Popup -{ -public: - RemoteControl *remote_control; - - void set_active(RemoteHandler *handler); - void set_inactive(); - void fill_color(int color); - void tile_windows(int config); - int button_press_event(); - int keypress_event(); - int process_key(int key); - - RemoteGUI(BC_WindowBase *wdw, RemoteControl *remote_control); - ~RemoteGUI(); -}; - -class RemoteWindow : public BC_Window -{ -public: - RemoteControl *remote_control; - - RemoteWindow(RemoteControl *remote_control); - ~RemoteWindow(); -}; - -class RemoteHandler -{ -public: - RemoteGUI *gui; - int color; - - void activate() { gui->set_active(this); } - virtual int remote_process_key(RemoteControl *remote_control, int key) { return -1; } - - RemoteHandler(RemoteGUI *gui, int color); - virtual ~RemoteHandler(); -}; - -class RemoteControl : Thread { -public: - MWindowGUI *mwindow_gui; - RemoteWindow *remote_window; - RemoteGUI *gui; - RemoteHandler *handler; - Mutex *active_lock; - - void run(); - void set_color(int color); - void fill_color(int color); - int remote_key(int key); - - int activate(RemoteHandler *handler=0); - int deactivate(); - bool is_active() { return handler != 0; } - - RemoteControl(MWindowGUI *gui); - ~RemoteControl(); -}; - -#endif