mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
feat: make initialize ui more human-friendly
This commit is contained in:
parent
9c1a77a3f8
commit
90b89acac0
BIN
icons/splash.png
Normal file
BIN
icons/splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 204 KiB |
|
@ -89,5 +89,6 @@
|
||||||
<file>icons/old-arrow.png</file>
|
<file>icons/old-arrow.png</file>
|
||||||
<file>icons/old-downarrow.png</file>
|
<file>icons/old-downarrow.png</file>
|
||||||
<file>icons/custom_trans.svg</file>
|
<file>icons/custom_trans.svg</file>
|
||||||
|
<file>icons/splash.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( parent )
|
Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( parent )
|
||||||
{
|
{
|
||||||
ui.setupUi( this );
|
ui.setupUi( this );
|
||||||
|
|
||||||
setWindowFlags( Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
|
setWindowFlags( Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint |
|
||||||
Qt::WindowMinimizeButtonHint );
|
Qt::WindowMinimizeButtonHint );
|
||||||
|
|
||||||
|
@ -28,7 +29,7 @@ Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( par
|
||||||
|
|
||||||
void Initializing::indexing( QString const & dictionaryName )
|
void Initializing::indexing( QString const & dictionaryName )
|
||||||
{
|
{
|
||||||
ui.operation->setText( tr( "Please wait while indexing dictionary" ) );
|
ui.operation->setText( tr( "Indexing..." ) );
|
||||||
ui.dictionary->setText( dictionaryName );
|
ui.dictionary->setText( dictionaryName );
|
||||||
ui.dictionary->show();
|
ui.dictionary->show();
|
||||||
ui.progressBar->show();
|
ui.progressBar->show();
|
||||||
|
|
|
@ -1,65 +1,133 @@
|
||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>Initializing</class>
|
<class>Initializing</class>
|
||||||
<widget class="QDialog" name="Initializing" >
|
<widget class="QDialog" name="Initializing">
|
||||||
<property name="windowModality" >
|
<property name="windowModality">
|
||||||
<enum>Qt::ApplicationModal</enum>
|
<enum>Qt::ApplicationModal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>326</width>
|
<width>680</width>
|
||||||
<height>84</height>
|
<height>422</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>326</width>
|
<width>680</width>
|
||||||
<height>0</height>
|
<height>422</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>680</width>
|
||||||
|
<height>422</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
<string>GoldenDict-ng - Initializing</string>
|
<string>GoldenDict-ng - Initializing</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="operation" >
|
<widget class="QLabel" name="splashImage">
|
||||||
<property name="text" >
|
<property name="sizePolicy">
|
||||||
<string>Please wait while indexing dictionary</string>
|
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment" >
|
<property name="maximumSize">
|
||||||
<set>Qt::AlignCenter</set>
|
<size>
|
||||||
|
<width>680</width>
|
||||||
|
<height>382</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="autoFillBackground">
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="dictionary" >
|
|
||||||
<property name="font" >
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Dictionary Name</string>
|
|
||||||
</property>
|
|
||||||
<property name="scaledContents" >
|
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment" >
|
<property name="text">
|
||||||
<set>Qt::AlignCenter</set>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="pixmap">
|
||||||
|
<pixmap resource="../../resources.qrc">:/icons/splash.png</pixmap>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QProgressBar" name="progressBar" >
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="maximum" >
|
<item>
|
||||||
|
<widget class="QLabel" name="operation">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Indexing...</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="dictionary">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Dictionary Name</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QProgressBar" name="progressBar">
|
||||||
|
<property name="maximum">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="value" >
|
<property name="value">
|
||||||
<number>-1</number>
|
<number>-1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
|
@ -69,6 +137,8 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources>
|
||||||
|
<include location="../../resources.qrc"/>
|
||||||
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Reference in a new issue