ocarina/gui/history.cpp
Anna Schumaker 95064e4537 Rename lib/ -> core/
I plan to introduce a new lib/ that sits between the gui and the backend
files (similar to how glibc sits between the kernel and userspace).
This gets the rename out of the way before I change my mind again.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-06-05 10:21:32 -04:00

39 lines
641 B
C++

/*
* Copyright 2014 (c) Anna Schumaker.
*/
#include <core/deck.h>
#include <gui/tabs.h>
class HistoryTab : public Tab {
public:
HistoryTab();
~HistoryTab();
};
HistoryTab :: HistoryTab()
: Tab(deck :: get_queue())
{
tab_search = get_widget<Gtk::SearchEntry>("o_history_entry");
tab_size = get_widget<Gtk::Label>("o_history_size");
tab_treeview = get_widget<Gtk::TreeView>("o_history_treeview");
tab_widget = get_widget<Gtk::Widget>("o_history_page");
tab_finish_init();
}
HistoryTab :: ~HistoryTab()
{
tab_unmap();
}
static HistoryTab *history_tab;
void init_history_tab()
{
history_tab = new HistoryTab;
}