Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24744 → Rev 24745

/trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.cpp
15,6 → 15,10
#include "undotransaction.h"
 
HunspellDialog::HunspellDialog(QWidget *parent, ScribusDoc *doc, PageItem *item)
: QDialog(parent),
m_doc(doc),
m_item(item),
m_iText(&item->itemText)
{
setupUi( this );
setModal( true );
24,14 → 28,12
connect (changePushButton, SIGNAL(clicked()), this, SLOT(changeWord()));
connect (changeAllPushButton, SIGNAL(clicked()), this, SLOT(changeAllWords()));
connect (languagesComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(languageComboChanged(const QString &)));
 
m_doc = doc;
m_docChanged = false;
m_item = item;
m_iText = &m_item->itemText;
}
 
HunspellDialog::HunspellDialog(QWidget *parent, ScribusDoc *doc, StoryText *item)
HunspellDialog::HunspellDialog(QWidget *parent, ScribusDoc *doc, StoryText * itemText)
: QDialog(parent),
m_doc(doc),
m_iText(itemText)
{
setupUi( this );
setModal( true );
41,11 → 43,6
connect (changePushButton, SIGNAL(clicked()), this, SLOT(changeWord()));
connect (changeAllPushButton, SIGNAL(clicked()), this, SLOT(changeAllWords()));
connect (languagesComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SLOT(languageComboChanged(const QString &)));
 
m_doc = doc;
m_docChanged = false;
m_item = nullptr;
m_iText = &m_item->itemText;
}
 
void HunspellDialog::set(QMap<QString, QString>* dictionaryMap, QMap<QString, HunspellDict*> *hspellerMap, QList<WordsFound> *wfList)
/trunk/Scribus/scribus/plugins/tools/hunspellcheck/hunspelldialog.h
20,7 → 20,7
 
public:
HunspellDialog(QWidget* parent, ScribusDoc *doc, PageItem* item);
HunspellDialog(QWidget* parent, ScribusDoc *doc, StoryText* iText);
HunspellDialog(QWidget* parent, ScribusDoc *doc, StoryText* itemText);
~HunspellDialog() {};
 
void set(QMap<QString, QString>* dictionaryMap, QMap<QString, HunspellDict*> *hspellerMap, QList<WordsFound>* wfList);