session-player.cpp revision 5e1a030f60fc5f5753e30882711db9af56f763f5
/** @file
* @brief Whiteboard session playback control dialog - implementation
*/
/* Authors:
* David Yip <yipdw@rose-hulman.edu>
*
* Copyright (c) 2005 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <glibmm.h>
#include <gtk/gtkdialog.h>
#include <gtkmm.h>
#include "inkscape.h"
#include "path-prefix.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "document.h"
#include "jabber_whiteboard/node-tracker.h"
#include "jabber_whiteboard/session-manager.h"
#include "jabber_whiteboard/session-file-player.h"
#include "ui/dialog/session-player.h"
#include "util/ucompose.hpp"
namespace Inkscape {
namespace UI {
namespace Dialog {
{
return new SessionPlaybackDialogImpl();
}
{
this->_desktop = this->getDesktop();
this->_construct();
this->get_vbox()->show_all_children();
}
{
}
void
{
// Dialog organization
// Active session file display
// fixme: Does this mean the active file for the session, or the file for the active session?
// Please indicate which with a TRANSLATORS comment.
this->_openfile.set_editable(false);
// Attach callbacks
this->_close.signal_clicked().connect(sigc::bind< 0 >(sigc::mem_fun(*this, &SessionPlaybackDialogImpl::_respCallback), CLOSE_FILE));
this->_open.signal_clicked().connect(sigc::bind< 0 >(sigc::mem_fun(*this, &SessionPlaybackDialogImpl::_respCallback), OPEN_FILE));
this->_setdelay.signal_clicked().connect(sigc::bind< 0 >(sigc::mem_fun(*this, &SessionPlaybackDialogImpl::_respCallback), RESET_DELAY));
// Button box
// Message information box
this->_currentmsgview.set_editable(false);
this->_currentmsgview.set_cursor_visible(false);
// Delay setting
// parameters: initial lower upper single-incr page-incr
this->_delayentry.set_numeric(true);
// Playback controls
this->_playbackcontrols.set_show_arrow(false);
for(int i = 0; i < 5; i++) {
this->_playbackcontrols.append(this->_controls[i], sigc::bind< 0 >(sigc::mem_fun(*this, &SessionPlaybackDialogImpl::_respCallback), TOOLBAR_BASE + i));
}
// Pack widgets into frames
// Pack widgets into main vbox
}
void
{
switch(resp) {
case CLOSE_FILE:
break;
case OPEN_FILE: {
switch (result) {
case Gtk::RESPONSE_OK:
this->_sm->clearDocument();
/* TODO: annotate */ "session-player.cpp:186");
break;
default:
break;
}
break;
}
case RESET_DELAY:
break;
case REWIND:
}
break;
case STEP_REWIND:
break;
case PAUSE:
break;
case STEP_PLAY:
break;
case PLAY:
}
break;
default:
break;
}
}
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :