~ubuntu-branches/ubuntu/karmic/italc/karmic-updates

« back to all changes in this revision

Viewing changes to ima/src/classroom_manager.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Graber
  • Date: 2008-02-11 23:40:20 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20080211234020-o9fixmzxpa1ybhlq
Tags: upstream-1.0.6
Import upstream version 1.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * classroom_manager.cpp - implementation of classroom-manager
3
3
 *
4
 
 * Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users/dot/sf/dot/net>
 
4
 * Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users/dot/sf/dot/net>
5
5
 *
6
6
 * This file is part of iTALC - http://italc.sourceforge.net
7
7
 *
215
215
                                        "write-access to your home-directory "
216
216
                                        "and to %1 (if already existing)."
217
217
                                        ).arg( ITALC_CONFIG_PATH
218
 
                                                ).toAscii().constData() );
 
218
                                                ).toUtf8().constData() );
219
219
        }*/
220
220
 
221
221
        QFile( m_globalClientConfiguration + ".bak" ).remove();
290
290
                                        "directory and to %1 (if already "
291
291
                                        "existing)."
292
292
                                ).arg( localSystem::personalConfigDir()
293
 
                                                ).toAscii().constData() );
 
293
                                                ).toUtf8().constData() );
294
294
        }
295
295
 
296
296
        QFile( m_personalConfiguration + ".bak" ).remove();
299
299
        QFile outfile( m_personalConfiguration );
300
300
        outfile.open( QFile::WriteOnly | QFile::Truncate );
301
301
 
302
 
        outfile.write( xml.toAscii() );
 
302
        outfile.write( xml.toUtf8() );
303
303
        outfile.close();
304
304
}
305
305
 
1391
1391
                foreach( classRoomItem * cri, si )
1392
1392
                {
1393
1393
                        cri->getClient()->hide();
 
1394
                        m_view->setItemHidden( cri, TRUE );
1394
1395
                        m_clientsToRemove.push_back( cri->getClient() );
1395
 
                        m_view->setItemHidden( cri, TRUE );
1396
1396
                }
1397
1397
        }
1398
1398
}
1697
1697
                        this_classroom_submenu =
1698
1698
                                this_classroom_submenu->addMenu( QPixmap(
1699
1699
                                        ":/resources/client_settings.png" ),
1700
 
                                                        tr( "Administation" ) );
 
1700
                                                tr( "Administration" ) );
1701
1701
 
1702
1702
                        connect( this_classroom_submenu,
1703
1703
                                        SIGNAL( triggered( QAction * ) ),