2009-02-05 14:21:47 +00:00
|
|
|
/* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
|
2009-01-28 20:55:45 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#include "initializing.hh"
|
2009-02-08 20:55:28 +00:00
|
|
|
#include <QCloseEvent>
|
2009-01-28 20:55:45 +00:00
|
|
|
|
|
|
|
Initializing::Initializing( QWidget * parent ): QDialog( parent )
|
|
|
|
{
|
|
|
|
ui.setupUi( this );
|
2009-02-08 21:03:36 +00:00
|
|
|
setWindowFlags( Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
|
|
|
|
Qt::WindowMinimizeButtonHint );
|
2009-02-08 20:55:28 +00:00
|
|
|
|
|
|
|
setWindowIcon( QIcon( ":/icons/programicon.png" ) );
|
2009-01-28 20:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void Initializing::indexing( QString const & dictionaryName )
|
|
|
|
{
|
|
|
|
ui.operation->setText( tr( "Please wait while indexing dictionary" ) );
|
|
|
|
ui.dictionary->setText( dictionaryName );
|
|
|
|
show();
|
|
|
|
}
|
2009-02-08 20:55:28 +00:00
|
|
|
|
|
|
|
void Initializing::closeEvent( QCloseEvent * ev )
|
|
|
|
{
|
|
|
|
ev->ignore();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Initializing::reject()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|