add repeat list and autoplay menu items
[uwplayer.git] / application / window.h
index 66db8ae..b0f9c64 100644 (file)
@@ -39,10 +39,12 @@ typedef struct Player {
     int ipc;
     int status;
     bool isactive;
-    
+    bool isstarted;
+    Window window;
     double playback_time;
     int width;
     int height;
+    int osd_height;
 } Player;
     
 typedef struct MainWindow {
@@ -53,16 +55,47 @@ typedef struct MainWindow {
     Player *player;
     bool fullscreen;
     bool mbvisible;
+    bool cursorhidden;
+    bool buttongrab;
+    
+    Widget playRepeatTrackButton;
+    Widget playRepeatListButton;
+    Widget playAutoPlayButton;
+    
+    Time player_event_time;
+    Time button_press_time;
+    double motion_playback_time;
+    int mouse_x;
+    int mouse_y;
+    int mouse_x_orig;
+    int mouse_y_orig;
+    
+    Boolean repeatTrack;
+    Boolean repeatList;
+    Boolean autoplayFolder;
 } MainWindow;
 
 MainWindow* WindowCreate(Display *dp);
 
+MainWindow* GetMainWindow(void);
+
 void WindowShow(MainWindow *win);
 
 void WindowFullscreen(MainWindow *win, bool enableFullscreen);
 
 void WindowMenubarSetVisible(MainWindow *win, bool visible);
 
+void WindowSetFile(MainWindow *win, char *file);
+
+void WindowAdjustAspectRatio(MainWindow *win);
+
+void WindowClosePlayer(MainWindow *win);
+
+void WindowHidePlayerCursor(MainWindow *win);
+void WindowShowPlayerCursor(MainWindow *win);
+
+void WindowHandlePlayerEvent(MainWindow *win, XEvent *event);
+
 #ifdef __cplusplus
 }
 #endif