2014-01-05 22:10:02 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_H
|
|
|
|
#define OCARINA_H
|
|
|
|
|
2014-09-10 08:11:06 -04:00
|
|
|
#include <core/queue.h>
|
2015-01-21 08:38:00 -05:00
|
|
|
#include <gtkmm.h>
|
2014-01-20 20:14:22 -05:00
|
|
|
|
2014-02-17 15:47:19 -05:00
|
|
|
|
2014-01-20 20:14:22 -05:00
|
|
|
/* main.cpp */
|
2015-01-21 08:29:46 -05:00
|
|
|
namespace gui
|
|
|
|
{
|
|
|
|
extern Glib::RefPtr<Gtk::Builder> __O_BUILDER;
|
|
|
|
|
2015-01-21 08:38:00 -05:00
|
|
|
const std::string share_file(const std::string &);
|
|
|
|
|
2015-01-21 08:29:46 -05:00
|
|
|
template <class T>
|
|
|
|
static inline T *get_widget(const std::string &name)
|
|
|
|
{
|
|
|
|
T *widget;
|
|
|
|
__O_BUILDER->get_widget(name, widget);
|
|
|
|
return widget;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <class T>
|
|
|
|
static inline Glib::RefPtr<T> get_object(const std::string &name)
|
|
|
|
{
|
|
|
|
return Glib::RefPtr<T>::cast_static(__O_BUILDER->get_object(name));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-17 10:13:25 -05:00
|
|
|
|
2014-06-04 09:34:49 -04:00
|
|
|
void on_pq_created(Queue *, unsigned int);
|
|
|
|
void post_init_queue_tabs();
|
2014-02-17 10:13:25 -05:00
|
|
|
|
2014-09-10 08:43:11 -04:00
|
|
|
|
2014-12-19 14:19:18 -05:00
|
|
|
/* gst.cpp */
|
2015-01-17 09:59:25 -05:00
|
|
|
namespace gst
|
|
|
|
{
|
|
|
|
void next();
|
|
|
|
void toggle();
|
|
|
|
void init(int *, char ***);
|
|
|
|
void quit();
|
|
|
|
}
|
2014-12-19 14:19:18 -05:00
|
|
|
|
|
|
|
|
2015-01-17 12:12:07 -05:00
|
|
|
/* manager.cpp */
|
|
|
|
namespace manager
|
|
|
|
{
|
|
|
|
void init();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-17 11:14:46 -05:00
|
|
|
/* playlist.cpp */
|
|
|
|
namespace plist
|
|
|
|
{
|
2015-10-24 19:34:45 -04:00
|
|
|
void track_loaded(struct track *track);
|
2015-01-17 11:14:46 -05:00
|
|
|
void init();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-09-10 08:43:11 -04:00
|
|
|
/* window.cpp */
|
|
|
|
Gtk::Window *window_init();
|
|
|
|
|
2014-01-05 22:10:02 -05:00
|
|
|
#endif /* OCARINA_H */
|