[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Camino-devel] camino/src/client ClientInterface.cpp
From: |
Pascal Audoux |
Subject: |
[Camino-devel] camino/src/client ClientInterface.cpp |
Date: |
Sat, 25 Jan 2003 12:27:38 -0500 |
CVSROOT: /cvsroot/camino
Module name: camino
Changes by: Pascal Audoux <address@hidden> 03/01/25 12:27:38
Modified files:
src/client : ClientInterface.cpp
Log message:
use of zoom
Patches:
Index: camino/src/client/ClientInterface.cpp
diff -u camino/src/client/ClientInterface.cpp:1.7
camino/src/client/ClientInterface.cpp:1.8
--- camino/src/client/ClientInterface.cpp:1.7 Sat Jan 25 05:04:24 2003
+++ camino/src/client/ClientInterface.cpp Sat Jan 25 12:27:37 2003
@@ -2,7 +2,7 @@
**
** Camino
**
-** Version : $Id: ClientInterface.cpp,v 1.7 2003/01/25 10:04:24 Audoux Exp $
+** Version : $Id: ClientInterface.cpp,v 1.8 2003/01/25 17:27:37 Audoux Exp $
**
** Author(s) : Philippe Fremy, Pascal Audoux
** Creation : 15/01/2003
@@ -51,6 +51,8 @@
_game = new Game( this );
setCentralWidget( _game );
+
+ zoom( 2 );
}
ClientInterface::~ClientInterface()
@@ -183,6 +185,20 @@
void ClientInterface::zoom( int level )
{
+ _actions[ACT_ZOOMSMALL]->setOn( false );
+ _actions[ACT_ZOOMMEDIUM]->setOn( false );
+ _actions[ACT_ZOOMLARGE]->setOn( false );
+ switch( level ) {
+ case 1:
+ _actions[ACT_ZOOMSMALL]->setOn( true );
+ break;
+ case 2:
+ _actions[ACT_ZOOMMEDIUM]->setOn( true );
+ break;
+ case 3:
+ _actions[ACT_ZOOMLARGE]->setOn( true );
+ break;
+ }
theme.setZoomLevel( level );
//_game->reupdate();
}