72 lines
1.1 KiB
C++
72 lines
1.1 KiB
C++
/*
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_H
|
|
#define OCARINA_H
|
|
|
|
#include <core/queue.h>
|
|
#include <gtkmm.h>
|
|
|
|
|
|
/* main.cpp */
|
|
namespace gui
|
|
{
|
|
extern Glib::RefPtr<Gtk::Builder> __O_BUILDER;
|
|
|
|
const std::string share_file(const std::string &);
|
|
|
|
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));
|
|
}
|
|
}
|
|
|
|
extern struct queue_ops collection_ops;
|
|
extern struct queue_ops history_ops;
|
|
extern struct queue_ops playlist_ops;
|
|
extern struct queue_ops tempq_ops;
|
|
|
|
void on_pq_created(queue *, unsigned int);
|
|
void post_init_queue_tabs();
|
|
|
|
|
|
/* gst.cpp */
|
|
namespace gst
|
|
{
|
|
void next();
|
|
void toggle();
|
|
void init_pre();
|
|
void init();
|
|
void quit();
|
|
}
|
|
|
|
|
|
/* manager.cpp */
|
|
namespace manager
|
|
{
|
|
void init();
|
|
}
|
|
|
|
|
|
/* playlist.cpp */
|
|
namespace plist
|
|
{
|
|
void track_loaded(struct track *track);
|
|
void init();
|
|
}
|
|
|
|
|
|
/* window.cpp */
|
|
Gtk::Window *window_init();
|
|
|
|
#endif /* OCARINA_H */
|