Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 12478 → Rev 12479

/trunk/Scribus/scribus/plugins/tools/spellcheck/aspellpluginimpl.cpp
98,7 → 98,6
faddWordBtn->setEnabled( true );
ftextLabel1->setEnabled( true );
ftextLabel2->setEnabled( true );
ftextLabel3->setEnabled( true );
ftextLabel4->setEnabled( true );
fmisSpelling->setEnabled( true );
flistDicts->setEnabled( true );
117,7 → 116,6
faddWordBtn->setEnabled( false );
ftextLabel1->setEnabled( false );
ftextLabel2->setEnabled( false );
ftextLabel3->setEnabled( false );
ftextLabel4->setEnabled( false );
fmisSpelling->setEnabled( false );
flistDicts->setEnabled( false );
214,7 → 212,8
{
// Called once all words in the current text, i.e., in 'fcontent'
// have been spell-checked. Pops up an information dialog.
QMessageBox::information(fdoc->scMW(), tr("Spell-Checker"), tr("Spell-checking completed."));
QString completeMsg(tr("Spelling check complete"));
QMessageBox::information(fdoc->scMW(), tr("Spell Checker"), completeMsg);
if( fFrame && fFrame->asTextFrame() )
fFrame->asTextFrame()->invalidateLayout();
if( fnchanges.fntot > 0 )
225,7 → 224,7
fdoc->view()->DrawNew();
QApplication::changeOverrideCursor(Qt::ArrowCursor);
// QApplication::restoreOverrideCursor();
fdoc->scMW()->setStatusBarInfoText(tr("Spell-checking done." ));
fdoc->scMW()->setStatusBarInfoText(completeMsg);
fdoc->scMW()->mainWindowProgressBar->reset();
close();
}
/trunk/Scribus/scribus/plugins/tools/spellcheck/aspellpluginbase.ui
5,355 → 5,374
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<height>312</height>
<width>538</width>
<height>321</height>
</rect>
</property>
<property name="windowTitle" >
<string>Spell Check</string>
</property>
<layout class="QVBoxLayout" >
<item>
<layout class="QHBoxLayout" >
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<layout class="QVBoxLayout" >
<item>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="ftextLabel1" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font" >
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text" >
<string>Mis-spelling:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QLabel" name="fmisSpelling" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>300</width>
<height>35</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2" >
<widget class="QLabel" name="ftextLabel2" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>Replacement:</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QLineEdit" name="fcurrWord" />
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="flistReplacements" />
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="ftextLabel4" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font" >
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text" >
<string>Active dictionary: </string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="flistDicts" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<widget class="QLabel" name="ftextLabel1" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font" >
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text" >
<string>Not in Dictionary:</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<widget class="QLabel" name="fmisSpelling" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>300</width>
<height>35</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Word that was not found in the active dictionary</string>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1" >
<spacer name="horizontalSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>109</width>
<height>17</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
<widget class="QLabel" name="ftextLabel2" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>Replacement:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="fcurrWord" >
<property name="toolTip" >
<string>Replacement text for the current word that was not found in the dictionary</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" >
<spacer name="horizontalSpacer_2" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>109</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" >
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QListWidget" name="flistReplacements" />
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<layout class="QVBoxLayout" >
<item>
<widget class="QLabel" name="ftextLabel3" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>139</width>
<height>35</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>139</width>
<height>35</height>
</size>
</property>
<property name="text" >
<string>Personal
Dictionary</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="faddWordBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>&amp;Add Word</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<item>
<widget class="QPushButton" name="fchangeBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>&amp;Change</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fchangeAllBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>C&amp;hange All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fskipBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>&amp;Skip</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fskipAllBtn" >
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>S&amp;kip All</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
<widget class="QLabel" name="ftextLabel4" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeHint" >
<property name="minimumSize" >
<size>
<width>20</width>
<height>40</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font" >
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text" >
<string>Active Dictionary: </string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="flistDicts" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>The currently active dictionary. Scribus uses aspell for dictionary support.&lt;br />If you require updated or more dictionaries, you should install them via your system's installation system or package manager.</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item row="2" column="1" >
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
<widget class="QPushButton" name="fskipBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeHint" >
<property name="minimumSize" >
<size>
<width>40</width>
<height>20</height>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Ignore the current text not found in the active dictionary</string>
</property>
<property name="text" >
<string>&amp;Ignore</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fcloseBtn" >
<widget class="QPushButton" name="fskipAllBtn" >
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Ignore all occurrences of the current text not found in the active dictionary</string>
</property>
<property name="text" >
<string>&amp;Exit</string>
<string>I&amp;gnore All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="faddWordBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Add the current word to the your personal spelling dictionary for future use</string>
</property>
<property name="text" >
<string>&amp;Add Word</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fchangeBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Change the current word that was not found to that shown in the replacement entry field</string>
</property>
<property name="text" >
<string>&amp;Change</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fchangeAllBtn" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>Change all occurrences of the current word in the text that was not found to that shown in the replacement entry field</string>
</property>
<property name="text" >
<string>Change A&amp;ll</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>103</width>
<height>29</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="3" column="0" >
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>29</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1" >
<widget class="QPushButton" name="fcloseBtn" >
<property name="text" >
<string>Close</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>