2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
2009-01-28 20:55:45 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#ifndef __INITIALIZING_HH_INCLUDED__
|
|
|
|
#define __INITIALIZING_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_initializing.h"
|
|
|
|
|
2019-03-20 14:49:39 +00:00
|
|
|
#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) ) && defined( Q_OS_WIN32 )
|
|
|
|
|
|
|
|
#include <QtWidgets/QStyleFactory>
|
|
|
|
|
|
|
|
class WindowsStyle {
|
|
|
|
public:
|
|
|
|
/// The class is a singleton.
|
|
|
|
static WindowsStyle & instance();
|
|
|
|
|
|
|
|
QStyle * getStyle()
|
|
|
|
{ return style; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
WindowsStyle();
|
|
|
|
|
|
|
|
QStyle * style;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2009-01-28 20:55:45 +00:00
|
|
|
class Initializing: public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2009-03-29 13:34:39 +00:00
|
|
|
Initializing( QWidget * parent, bool showOnStartup );
|
2013-09-27 13:04:57 +00:00
|
|
|
#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) ) && defined( Q_OS_WIN32 )
|
|
|
|
~Initializing();
|
|
|
|
#endif
|
2009-01-28 20:55:45 +00:00
|
|
|
|
2009-04-30 15:29:03 +00:00
|
|
|
public slots:
|
|
|
|
|
2009-01-28 20:55:45 +00:00
|
|
|
void indexing( QString const & dictionaryName );
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2009-02-08 20:55:28 +00:00
|
|
|
virtual void closeEvent( QCloseEvent * );
|
|
|
|
virtual void reject();
|
2013-09-27 13:04:57 +00:00
|
|
|
#if ( QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 ) ) && defined( Q_OS_WIN32 )
|
2019-03-20 14:49:39 +00:00
|
|
|
QStyle * oldBarStyle;
|
2013-09-27 13:04:57 +00:00
|
|
|
#endif
|
|
|
|
|
2009-01-28 20:55:45 +00:00
|
|
|
Ui::Initializing ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|