develop.uap-core.de/git
/
uwplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ucx update
[uwplayer.git]
/
application
/
window.h
diff --git
a/application/window.h
b/application/window.h
index
7230515
..
deb8fe8
100644
(file)
--- a/
application/window.h
+++ b/
application/window.h
@@
-27,6
+27,8
@@
#include <Xm/XmAll.h>
#include <stdbool.h>
#include <unistd.h>
#include <Xm/XmAll.h>
#include <stdbool.h>
#include <unistd.h>
+#include <cx/list.h>
+#include <cx/linked_list.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-46,25
+48,50
@@
typedef struct Player {
int height;
int osd_height;
} Player;
int height;
int osd_height;
} Player;
+
+typedef struct {
+ CxList *tracks;
+ int current_track;
+ Boolean repeatTrack;
+ Boolean repeatList;
+ Boolean autoplayFolder;
+ Boolean random;
+} PlayList;
+
typedef struct MainWindow {
Widget window;
Widget menubar;
Widget player_widget;
typedef struct MainWindow {
Widget window;
Widget menubar;
Widget player_widget;
+ Widget sidebar_scrolledwindow;
+ Widget sidebar;
char *file;
Player *player;
bool fullscreen;
bool mbvisible;
char *file;
Player *player;
bool fullscreen;
bool mbvisible;
+ bool sidebarvisible;
bool cursorhidden;
bool buttongrab;
bool cursorhidden;
bool buttongrab;
+ bool pwbuttonpressed;
+
+ Widget playRepeatTrackButton;
+ Widget playRepeatListButton;
+ Widget playAutoPlayButton;
+ Widget playRandom;
+ Widget viewSidebarButton;
+ Widget viewAdjustWindowSize;
+
+ PlayList playlist;
+
+ bool adjustWindowSize;
Time player_event_time;
Time button_press_time;
double motion_playback_time;
int mouse_x;
int mouse_y;
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;
+
+
} MainWindow;
MainWindow* WindowCreate(Display *dp);
} MainWindow;
MainWindow* WindowCreate(Display *dp);
@@
-77,8
+104,6
@@
void WindowFullscreen(MainWindow *win, bool enableFullscreen);
void WindowMenubarSetVisible(MainWindow *win, bool visible);
void WindowMenubarSetVisible(MainWindow *win, bool visible);
-void WindowSetFile(MainWindow *win, char *file);
-
void WindowAdjustAspectRatio(MainWindow *win);
void WindowClosePlayer(MainWindow *win);
void WindowAdjustAspectRatio(MainWindow *win);
void WindowClosePlayer(MainWindow *win);
@@
-88,6
+113,11
@@
void WindowShowPlayerCursor(MainWindow *win);
void WindowHandlePlayerEvent(MainWindow *win, XEvent *event);
void WindowHandlePlayerEvent(MainWindow *win, XEvent *event);
+void WindowShowSidebar(MainWindow *win, bool visible);
+
+void WindowUpdate(MainWindow *win);
+
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif