lumiera_/src/gui/panels/viewer-panel.hpp

77 lines
1.9 KiB
C++
Raw Normal View History

/*
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 {
2008-10-20 19:50:37 +02:00
/**
* A panel to display the video output.
**/
class ViewerPanel : public Panel
{
public:
/**
* Contructor.
2009-01-17 17:12:11 +01:00
* @param workspace_window The window that owns this panel.
2008-10-20 19:50:37 +02:00
**/
2009-01-17 17:12:11 +01:00
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();
2009-04-04 19:53:09 +02:00
/**
* Get the stock id for this type panel.
* @return Returns a pointer to the string stock id of the panel.
**/
static const gchar* get_stock_id();
protected:
void on_frame(void *buffer);
2008-10-20 19:50:37 +02:00
protected:
/**
* The video display widget, which will display the video.
**/
2009-04-13 13:45:14 +02:00
widgets::VideoDisplayWidget display;
2008-10-20 19:50:37 +02:00
};
} // namespace panels
} // namespace gui
#endif // VIEWER_PANEL_HPP