60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
/*
|
|
* Copyright 2015 (c) Anna Schumaker.
|
|
*/
|
|
#include <gui/queue/label.h>
|
|
|
|
|
|
|
|
QueueLabel :: QueueLabel(BaseObjectType *cobject,
|
|
const Glib::RefPtr<Gtk::Builder> builder)
|
|
: Gtk::HBox(cobject), _builder(builder)
|
|
{
|
|
}
|
|
|
|
QueueLabel :: ~QueueLabel()
|
|
{
|
|
}
|
|
|
|
|
|
|
|
CollectionLabel :: CollectionLabel(BaseObjectType *cobject,
|
|
const Glib::RefPtr<Gtk::Builder> builder)
|
|
: QueueLabel(cobject, builder)
|
|
{
|
|
_builder->get_widget("collection_size", collection_size);
|
|
}
|
|
|
|
|
|
|
|
HistoryLabel :: HistoryLabel(BaseObjectType *cobject,
|
|
const Glib::RefPtr<Gtk::Builder> builder)
|
|
: QueueLabel(cobject, builder)
|
|
{
|
|
_builder->get_widget("history_size", history_size);
|
|
}
|
|
|
|
|
|
|
|
PlaylistLabel :: PlaylistLabel(BaseObjectType *cobject,
|
|
const Glib::RefPtr<Gtk::Builder> builder)
|
|
: QueueLabel(cobject, builder)
|
|
{
|
|
}
|
|
|
|
|
|
|
|
TempLabel :: TempLabel(BaseObjectType *cobject,
|
|
const Glib::RefPtr<Gtk::Builder> builder)
|
|
: QueueLabel(cobject, builder)
|
|
{
|
|
_builder->get_widget("temp_number", temp_number);
|
|
_builder->get_widget("temp_size", temp_size);
|
|
_builder->get_widget("temp_close", temp_close);
|
|
}
|
|
|
|
void TempLabel :: set_sensitive(bool sensitive)
|
|
{
|
|
temp_number->set_sensitive(sensitive);
|
|
temp_size->set_sensitive(sensitive);
|
|
}
|