73 lines
1.1 KiB
C++
73 lines
1.1 KiB
C++
/*
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_H
|
|
#define OCARINA_H
|
|
|
|
#include <core/queue.h>
|
|
#include <lib/lib.h>
|
|
|
|
|
|
/* main.cpp */
|
|
namespace gui
|
|
{
|
|
extern Glib::RefPtr<Gtk::Builder> __O_BUILDER;
|
|
|
|
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));
|
|
}
|
|
}
|
|
|
|
Gtk::Window *ocarina_init(int *, char ***);
|
|
|
|
|
|
void on_pq_created(Queue *, unsigned int);
|
|
void post_init_queue_tabs();
|
|
|
|
|
|
/* gst.cpp */
|
|
namespace gst
|
|
{
|
|
void next();
|
|
void toggle();
|
|
void init(int *, char ***);
|
|
void quit();
|
|
}
|
|
|
|
|
|
/* manager.cpp */
|
|
namespace manager
|
|
{
|
|
void init();
|
|
}
|
|
|
|
|
|
/* playlist.cpp */
|
|
namespace plist
|
|
{
|
|
void track_loaded(Track *track);
|
|
void init();
|
|
}
|
|
|
|
|
|
/* window.cpp */
|
|
Gtk::Window *window_init();
|
|
|
|
|
|
#ifdef CONFIG_TEST
|
|
void do_collection_delete();
|
|
void on_collection_toggled(const Glib::ustring &);
|
|
#endif /* CONFIG_TEST */
|
|
|
|
#endif /* OCARINA_H */
|