lumiera_/src/gui/panels/viewer-panel.hpp
2009-04-06 23:08:50 +01:00

70 lines
1.7 KiB
C++

/*
viewer-panel.hpp - Definition of the viewer panel
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 viewer-panel.hpp
** This file contains the definition of the viewer panel
*/
#ifndef VIEWER_PANEL_HPP
#define VIEWER_PANEL_HPP
#include <gtkmm.h>
#include "panel.hpp"
#include "../widgets/video-display-widget.hpp"
namespace gui {
namespace panels {
/**
* A panel to display the video output.
**/
class ViewerPanel : public Panel
{
public:
/**
* Contructor.
* @param workspace_window The window that owns this panel.
**/
ViewerPanel(workspace::WorkspaceWindow &owner_window);
/**
* Get the title of the panel.
* @return Returns a pointer to the string title of the panel.
**/
static const char* get_title();
protected:
void on_frame(void *buffer);
protected:
/**
* The video display widget, which will display the video.
**/
gui::widgets::VideoDisplayWidget display;
};
} // namespace panels
} // namespace gui
#endif // VIEWER_PANEL_HPP