2015-12-29 09:11:51 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2015 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_GUI_SIDEBAR_H
|
|
|
|
#define OCARINA_GUI_SIDEBAR_H
|
|
|
|
|
2016-01-13 17:09:04 -05:00
|
|
|
#include <gui/queue.h>
|
2016-01-07 09:37:00 -05:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2016-01-04 08:27:30 -05:00
|
|
|
enum sidebar_selection_t {
|
|
|
|
SB_PLAYLIST,
|
2016-01-07 09:10:51 -05:00
|
|
|
SB_SIDEBAR,
|
2016-01-04 08:27:30 -05:00
|
|
|
};
|
|
|
|
|
2015-12-29 09:11:51 -05:00
|
|
|
/* Called to initialize the sidebar. */
|
|
|
|
void gui_sidebar_init();
|
|
|
|
|
2016-01-05 08:51:59 -05:00
|
|
|
/* Called when a row in the sidebar is selected. */
|
|
|
|
gboolean gui_sidebar_on_select(GtkTreeSelection *, GtkTreeModel *,
|
|
|
|
GtkTreePath *path, gboolean, gpointer);
|
|
|
|
|
2016-01-04 08:27:30 -05:00
|
|
|
/* Called to tell the sidebar that the selection has changed. */
|
2016-01-14 08:59:26 -05:00
|
|
|
void gui_sidebar_selected(enum sidebar_selection_t, struct gui_queue *);
|
2016-01-04 08:27:30 -05:00
|
|
|
|
2016-01-07 09:59:15 -05:00
|
|
|
/* Called to add a queue to the sidebar. */
|
2016-01-13 17:09:04 -05:00
|
|
|
void gui_sidebar_add(struct gui_queue *);
|
2016-01-07 09:59:15 -05:00
|
|
|
|
2016-01-07 10:14:33 -05:00
|
|
|
/* Called to remove a queue from the sidebar. */
|
2016-01-13 17:09:04 -05:00
|
|
|
void gui_sidebar_remove(struct gui_queue *);
|
2016-01-07 10:14:33 -05:00
|
|
|
|
2016-01-07 09:37:00 -05:00
|
|
|
/* Called to set the size of sidebar entries. */
|
2016-01-13 17:09:04 -05:00
|
|
|
void gui_sidebar_set_size(struct gui_queue *);
|
2016-01-07 09:37:00 -05:00
|
|
|
|
2015-12-29 09:11:51 -05:00
|
|
|
#endif /* OCARINA_GUI_SIDEBAR_H */
|