X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/1e4681c09375d0a2aece4ebdcd4a3d5badee5fc6..HEAD:/application/window.h diff --git a/application/window.h b/application/window.h index 617ff71..a7a9c1c 100644 --- a/application/window.h +++ b/application/window.h @@ -27,7 +27,8 @@ #include #include #include -#include +#include +#include #ifdef __cplusplus extern "C" { @@ -49,18 +50,20 @@ typedef struct Player { } Player; typedef struct { - UcxList *tracks; + CxList *tracks; int current_track; Boolean repeatTrack; Boolean repeatList; Boolean autoplayFolder; + Boolean random; } PlayList; typedef struct MainWindow { Widget window; Widget menubar; Widget player_widget; + Widget sidebar_scrolledwindow; Widget sidebar; char *file; Player *player; @@ -74,10 +77,16 @@ typedef struct MainWindow { Widget playRepeatTrackButton; Widget playRepeatListButton; Widget playAutoPlayButton; + Widget playRandom; Widget viewSidebarButton; + Widget viewAdjustWindowSize; + Widget prefSingleInstanceButton; PlayList playlist; + bool adjustWindowSize; + bool singleInstance; + Time player_event_time; Time button_press_time; double motion_playback_time; @@ -106,8 +115,9 @@ void WindowShowPlayerCursor(MainWindow *win); void WindowHandlePlayerEvent(MainWindow *win, XEvent *event); -void WindowHideSidebar(MainWindow *win); -void WindowShowSidebar(MainWindow *win); +void WindowShowSidebar(MainWindow *win, bool visible); + +void WindowUpdate(MainWindow *win); #ifdef __cplusplus