reason is, only files with a @file comment will be processed
with further documentation commands. For this reason, our Doxygen
documentation is lacking a lot of entries.
HOWTO:
find src -type f \( -name '*.cpp' -or -name '*.hpp' \) -not -exec egrep -q '\*.+@file' {} \; -print -exec sed -i -r -e'\_\*/_,$ { 1,+0 a\
\
\
/** @file §§§\
** TODO §§§\
*/
}' {} \;
79 lines
2.3 KiB
C++
79 lines
2.3 KiB
C++
/*
|
|
ViewerPanel - Dockable panel to hold the video display widgets and controls
|
|
|
|
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 §§§
|
|
** TODO §§§
|
|
*/
|
|
|
|
#include "gui/gtk-lumiera.hpp"
|
|
#include "gui/panel/viewer-panel.hpp"
|
|
|
|
#include "gui/workspace/workspace-window.hpp"
|
|
#include "gui/ui-bus.hpp" ///////////////////////////////////TODO why are we forced to include this after workspace-window.hpp ?? Ambiguity between std::ref and boost::reference_wrapper
|
|
#include "gui/ctrl/playback-controller.hpp"
|
|
#include "gui/display-service.hpp"
|
|
|
|
|
|
using namespace Gtk;
|
|
using namespace gui::widget;
|
|
using namespace gui::controller;
|
|
|
|
namespace gui {
|
|
namespace panel {
|
|
|
|
ViewerPanel::ViewerPanel (workspace::PanelManager& panelManager
|
|
,Gdl::DockItem& dockItem)
|
|
: Panel(panelManager, dockItem, getTitle(), getStockID())
|
|
{
|
|
//----- Pack in the Widgets -----//
|
|
pack_start(display_, PACK_EXPAND_WIDGET);
|
|
|
|
PlaybackController& playback(getController().get_playback_controller());
|
|
|
|
FrameDestination outputDestination (sigc::mem_fun(this, &ViewerPanel::on_frame));
|
|
playback.useDisplay (DisplayService::setUp (outputDestination));
|
|
}
|
|
|
|
const char*
|
|
ViewerPanel::getTitle()
|
|
{
|
|
return _("Viewer");
|
|
}
|
|
|
|
const gchar*
|
|
ViewerPanel::getStockID()
|
|
{
|
|
return "panel_viewer";
|
|
}
|
|
|
|
void
|
|
ViewerPanel::on_frame (void* buffer)
|
|
{
|
|
Displayer *displayer = display_.getDisplayer();
|
|
REQUIRE(displayer);
|
|
|
|
displayer->put(buffer);
|
|
}
|
|
|
|
|
|
}}// namespace gui::panel
|