2
* remote_control_widget.h - widget containing a VNC-view and controls for it
4
* Copyright (c) 2006-2007 Tobias Doerffel <tobydox/at/users/dot/sf/dot/net>
6
* This file is part of iTALC - http://italc.sourceforge.net
8
* This is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This software is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this software; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
25
#ifndef _REMOTE_CONTROL_WIDGET_H
26
#define _REMOTE_CONTROL_WIDGET_H
29
#include <QtCore/QTime>
30
#include <QtGui/QWidget>
32
#include "fast_qimage.h"
36
class remoteControlWidget;
41
class remoteControlWidgetToolBar : public QWidget
45
remoteControlWidgetToolBar( remoteControlWidget * _parent,
47
virtual ~remoteControlWidgetToolBar();
52
void disappear( void );
56
virtual void leaveEvent( QEvent * _e )
59
QWidget::leaveEvent( _e );
62
virtual void paintEvent( QPaintEvent * _pe );
66
void updatePosition( void );
67
void startConnection( void );
68
void connectionEstablished( void );
72
remoteControlWidget * m_parent;
76
fastQImage m_iconGray;
85
class remoteControlWidget : public QWidget
89
remoteControlWidget( const QString & _host, bool _view_only = FALSE,
90
mainWindow * _main_window = NULL );
91
virtual ~remoteControlWidget();
93
QString host( void ) const;
97
void lockStudent( bool );
98
void toggleFullScreen( bool );
99
void toggleViewOnly( bool );
100
void takeSnapshot( void );
104
void updateWindowTitle( void );
105
virtual void resizeEvent( QResizeEvent * );
109
void checkKeyEvent( Q_UINT32, bool );
114
remoteControlWidgetToolBar * m_toolBar;
115
mainWindow * m_mainWindow;
117
Qt::WindowStates m_extraStates;
119
friend class remoteControlWidgetToolBar;