77 lines
2 KiB
C++
77 lines
2 KiB
C++
|
|
/*
|
||
|
|
header-container.hpp - Declaration of the header container widget
|
||
|
|
|
||
|
|
Copyright (C) Lumiera.org
|
||
|
|
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
|
||
|
|
|
||
|
|
This program is free software; you can redistribute it and/or
|
||
|
|
modify it under the terms of the GNU General Public License as
|
||
|
|
published by the Free Software Foundation; either version 2 of the
|
||
|
|
License, or (at your option) any later version.
|
||
|
|
|
||
|
|
This program is distributed in the hope that it will be useful,
|
||
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
|
GNU General Public License for more details.
|
||
|
|
|
||
|
|
You should have received a copy of the GNU General Public License
|
||
|
|
along with this program; if not, write to the Free Software
|
||
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
|
|
||
|
|
*/
|
||
|
|
/** @file header-container.hpp
|
||
|
|
** This file contains the definition of the header container
|
||
|
|
** widget
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef HEADER_CONTAINER_HPP
|
||
|
|
#define HEADER_CONTAINER_HPP
|
||
|
|
|
||
|
|
#include <gtkmm.h>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace lumiera {
|
||
|
|
namespace gui {
|
||
|
|
namespace widgets {
|
||
|
|
|
||
|
|
class TimelineWidget;
|
||
|
|
|
||
|
|
namespace timeline {
|
||
|
|
|
||
|
|
class HeaderContainer : public Gtk::Container
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
HeaderContainer(lumiera::gui::widgets::TimelineWidget *timeline_widget);
|
||
|
|
|
||
|
|
void update_headers();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void on_realize();
|
||
|
|
void on_unrealize();
|
||
|
|
|
||
|
|
void on_size_allocate (Gtk::Allocation& allocation);
|
||
|
|
void on_size_request (Gtk::Requisition* requisition);
|
||
|
|
|
||
|
|
void forall_vfunc(gboolean include_internals, GtkCallback callback,
|
||
|
|
gpointer callback_data);
|
||
|
|
|
||
|
|
void on_scroll();
|
||
|
|
|
||
|
|
/* ===== Internals ===== */
|
||
|
|
private:
|
||
|
|
void layout_headers();
|
||
|
|
|
||
|
|
private:
|
||
|
|
lumiera::gui::widgets::TimelineWidget *timelineWidget;
|
||
|
|
|
||
|
|
Glib::RefPtr<Gdk::Window> gdkWindow;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace timeline
|
||
|
|
} // namespace widgets
|
||
|
|
} // namespace gui
|
||
|
|
} // namespace lumiera
|
||
|
|
|
||
|
|
#endif // HEADER_CONTAINER_HPP
|
||
|
|
|