Common subdirectories: kaboodle/CVS and kaboodle-2/CVS
Common subdirectories: kaboodle/actions and kaboodle-2/actions
Common subdirectories: kaboodle/pics and kaboodle-2/pics
diff -u kaboodle/view.cpp kaboodle-2/view.cpp
--- kaboodle/view.cpp	2003-09-26 16:16:50.000000000 +0200
+++ kaboodle-2/view.cpp	2003-10-14 18:23:08.000000000 +0200
@@ -72,6 +72,8 @@
 	video = new KVideoWidget(player, box);
 	setVideoWidget(video);
 	connect(video, SIGNAL(adaptSize(int, int)), this, SLOT(calculateSize(int, int)));
+	connect(video, SIGNAL(mouseButtonPressed(const int, const QPoint&)), this, SLOT(slotButtonPressed(const int, const QPoint &) ) ) ;
+	connect(video, SIGNAL(mouseButtonDblClick(const QPoint&)), this, SLOT(slotDblClick(const QPoint &) ) ) ;
 
 	QWidget *sliderBox = new QWidget(box);
 	sliderBox->setFocusPolicy(QWidget::ClickFocus);
@@ -301,4 +303,20 @@
 
 }
 
+void Kaboodle::View::slotButtonPressed(const int type, const QPoint &)
+{
+			if((KMediaPlayer::Player::State)player->state() == KMediaPlayer::Player::Pause )
+				player->play();
+			else player->pause();
+}
+
+void Kaboodle::View::slotDblClick( const QPoint &)
+{
+	if ( video->isFullscreen() )
+		video->setWindowed();
+	else  video->setFullscreen(); 
+	
+	player->play(); // play() is called because the video is stopped when double-clicking ( slotButtonPressed is called )
+}
+
 #include "view.moc"
diff -u kaboodle/view.h kaboodle-2/view.h
--- kaboodle/view.h	2003-09-26 16:16:50.000000000 +0200
+++ kaboodle-2/view.h	2003-10-14 18:47:12.000000000 +0200
@@ -78,6 +78,8 @@
 
 private slots:
 	void updateLabel(const QString &text);
+	void slotButtonPressed( const int, const QPoint &);
+	void slotDblClick( const QPoint &);
 
 	void calculateSize(int width, int height);
 
@@ -87,6 +89,7 @@
 	Player *player;
 
 	void updateTicks(void);
+//	bool eventFilter( QObject *obj, QEvent *ev);
 
 	L33tSlider *slider;
 	QLabel *elapsedLabel;
