mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
Typos have been fixed
This commit is contained in:
parent
1377a8b252
commit
9f00119fbc
@ -11,7 +11,7 @@ DesignerSettingManager::~DesignerSettingManager()
|
|||||||
delete m_setting;
|
delete m_setting;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DesignerSettingManager::getAviableLanguages(QList<QLocale::Language>* languages)
|
void DesignerSettingManager::getAvailableLanguages(QList<QLocale::Language>* languages)
|
||||||
{
|
{
|
||||||
languages->append(QLocale::Russian);
|
languages->append(QLocale::Russian);
|
||||||
languages->append(QLocale::English);
|
languages->append(QLocale::English);
|
||||||
@ -33,7 +33,7 @@ QLocale::Language DesignerSettingManager::getCurrentDefaultLanguage()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DesignerSettingManager::currentDefaulLanguageChanged(QLocale::Language language)
|
void DesignerSettingManager::currentDefaultLanguageChanged(QLocale::Language language)
|
||||||
{
|
{
|
||||||
QMessageBox::information(0, tr("Warning") , tr("The language will change after the application is restarted"));
|
QMessageBox::information(0, tr("Warning") , tr("The language will change after the application is restarted"));
|
||||||
m_setting->beginGroup("ReportDesigner");
|
m_setting->beginGroup("ReportDesigner");
|
||||||
|
@ -14,9 +14,9 @@ public:
|
|||||||
~DesignerSettingManager();
|
~DesignerSettingManager();
|
||||||
void setApplicationInstance(QApplication* application);
|
void setApplicationInstance(QApplication* application);
|
||||||
public slots:
|
public slots:
|
||||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||||
QLocale::Language getCurrentDefaultLanguage();
|
QLocale::Language getCurrentDefaultLanguage();
|
||||||
void currentDefaulLanguageChanged(QLocale::Language language);
|
void currentDefaultLanguageChanged(QLocale::Language language);
|
||||||
private:
|
private:
|
||||||
QApplication* m_app;
|
QApplication* m_app;
|
||||||
QSettings* m_setting;
|
QSettings* m_setting;
|
||||||
|
@ -38,14 +38,14 @@ int main(int argc, char *argv[])
|
|||||||
if (a.arguments().count()>1){
|
if (a.arguments().count()>1){
|
||||||
report.loadFromFile(a.arguments().at(1));
|
report.loadFromFile(a.arguments().at(1));
|
||||||
}
|
}
|
||||||
QObject::connect(&report, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)),
|
QObject::connect(&report, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)),
|
||||||
&manager, SLOT(getAviableLanguages(QList<QLocale::Language>*)));
|
&manager, SLOT(getAvailableLanguages(QList<QLocale::Language>*)));
|
||||||
|
|
||||||
QObject::connect(&report, SIGNAL(getCurrentDefaultLanguage()),
|
QObject::connect(&report, SIGNAL(getCurrentDefaultLanguage()),
|
||||||
&manager, SLOT(getCurrentDefaultLanguage()));
|
&manager, SLOT(getCurrentDefaultLanguage()));
|
||||||
|
|
||||||
QObject::connect(&report, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)),
|
QObject::connect(&report, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)),
|
||||||
&manager, SLOT(currentDefaulLanguageChanged(QLocale::Language)));
|
&manager, SLOT(currentDefaultLanguageChanged(QLocale::Language)));
|
||||||
|
|
||||||
report.designReport();
|
report.designReport();
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
@ -191,8 +191,8 @@ public:
|
|||||||
void setPrintVisible(bool value);
|
void setPrintVisible(bool value);
|
||||||
bool printIsVisible();
|
bool printIsVisible();
|
||||||
bool isBusy();
|
bool isBusy();
|
||||||
void setPassPharse(QString& passPharse);
|
void setPassPhrase(QString& passPhrase);
|
||||||
QList<QLocale::Language> aviableLanguages();
|
QList<QLocale::Language> availableLanguages();
|
||||||
bool setReportLanguage(QLocale::Language language);
|
bool setReportLanguage(QLocale::Language language);
|
||||||
Qt::LayoutDirection previewLayoutDirection();
|
Qt::LayoutDirection previewLayoutDirection();
|
||||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||||
@ -220,8 +220,8 @@ signals:
|
|||||||
void loadFinished();
|
void loadFinished();
|
||||||
void printedToPDF(QString fileName);
|
void printedToPDF(QString fileName);
|
||||||
|
|
||||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||||
void currentDefaulLanguageChanged(QLocale::Language);
|
void currentDefaultLanguageChanged(QLocale::Language);
|
||||||
QLocale::Language getCurrentDefaultLanguage();
|
QLocale::Language getCurrentDefaultLanguage();
|
||||||
|
|
||||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||||
|
@ -1080,7 +1080,7 @@ QList<QLocale::Language> ReportEnginePrivate::designerLanguages()
|
|||||||
{
|
{
|
||||||
|
|
||||||
QList<QLocale::Language> result;
|
QList<QLocale::Language> result;
|
||||||
emit getAviableLanguages(&result);
|
emit getAvailableLanguages(&result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1093,7 +1093,7 @@ QLocale::Language ReportEnginePrivate::currentDesignerLanguage()
|
|||||||
void ReportEnginePrivate::setCurrentDesignerLanguage(QLocale::Language language)
|
void ReportEnginePrivate::setCurrentDesignerLanguage(QLocale::Language language)
|
||||||
{
|
{
|
||||||
m_currentDesignerLanguage = language;
|
m_currentDesignerLanguage = language;
|
||||||
emit currentDefaulLanguageChanged(language);
|
emit currentDefaultLanguageChanged(language);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ReportEnginePrivate::styleSheet() const
|
QString ReportEnginePrivate::styleSheet() const
|
||||||
@ -1387,10 +1387,10 @@ ReportEngine::ReportEngine(QObject *parent)
|
|||||||
connect(d, SIGNAL(cleared()), this, SIGNAL(cleared()));
|
connect(d, SIGNAL(cleared()), this, SIGNAL(cleared()));
|
||||||
connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString)));
|
connect(d, SIGNAL(printedToPDF(QString)), this, SIGNAL(printedToPDF(QString)));
|
||||||
|
|
||||||
connect(d, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)),
|
connect(d, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)),
|
||||||
this, SIGNAL(getAviableLanguages(QList<QLocale::Language>*)));
|
this, SIGNAL(getAvailableLanguages(QList<QLocale::Language>*)));
|
||||||
connect(d, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)),
|
connect(d, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)),
|
||||||
this, SIGNAL(currentDefaulLanguageChanged(QLocale::Language)));
|
this, SIGNAL(currentDefaultLanguageChanged(QLocale::Language)));
|
||||||
connect(d, SIGNAL(getCurrentDefaultLanguage()),
|
connect(d, SIGNAL(getCurrentDefaultLanguage()),
|
||||||
this, SIGNAL(getCurrentDefaultLanguage()));
|
this, SIGNAL(getCurrentDefaultLanguage()));
|
||||||
|
|
||||||
@ -1548,13 +1548,13 @@ bool ReportEngine::isBusy()
|
|||||||
return d->isBusy();
|
return d->isBusy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReportEngine::setPassPharse(QString &passPharse)
|
void ReportEngine::setPassPhrase(QString &passPhrase)
|
||||||
{
|
{
|
||||||
Q_D(ReportEngine);
|
Q_D(ReportEngine);
|
||||||
d->setPassPhrase(passPharse);
|
d->setPassPhrase(passPhrase);
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<QLocale::Language> ReportEngine::aviableLanguages()
|
QList<QLocale::Language> ReportEngine::availableLanguages()
|
||||||
{
|
{
|
||||||
Q_D(ReportEngine);
|
Q_D(ReportEngine);
|
||||||
return d->aviableLanguages();
|
return d->aviableLanguages();
|
||||||
|
@ -191,8 +191,8 @@ public:
|
|||||||
void setPrintVisible(bool value);
|
void setPrintVisible(bool value);
|
||||||
bool printIsVisible();
|
bool printIsVisible();
|
||||||
bool isBusy();
|
bool isBusy();
|
||||||
void setPassPharse(QString& passPharse);
|
void setPassPhrase(QString& passPhrase);
|
||||||
QList<QLocale::Language> aviableLanguages();
|
QList<QLocale::Language> availableLanguages();
|
||||||
bool setReportLanguage(QLocale::Language language);
|
bool setReportLanguage(QLocale::Language language);
|
||||||
Qt::LayoutDirection previewLayoutDirection();
|
Qt::LayoutDirection previewLayoutDirection();
|
||||||
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
void setPreviewLayoutDirection(const Qt::LayoutDirection& previewLayoutDirection);
|
||||||
@ -220,8 +220,8 @@ signals:
|
|||||||
void loadFinished();
|
void loadFinished();
|
||||||
void printedToPDF(QString fileName);
|
void printedToPDF(QString fileName);
|
||||||
|
|
||||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||||
void currentDefaulLanguageChanged(QLocale::Language);
|
void currentDefaultLanguageChanged(QLocale::Language);
|
||||||
QLocale::Language getCurrentDefaultLanguage();
|
QLocale::Language getCurrentDefaultLanguage();
|
||||||
|
|
||||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||||
|
@ -263,8 +263,8 @@ signals:
|
|||||||
void loadFinished();
|
void loadFinished();
|
||||||
void printedToPDF(QString fileName);
|
void printedToPDF(QString fileName);
|
||||||
|
|
||||||
void getAviableLanguages(QList<QLocale::Language>* languages);
|
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
||||||
void currentDefaulLanguageChanged(QLocale::Language);
|
void currentDefaultLanguageChanged(QLocale::Language);
|
||||||
QLocale::Language getCurrentDefaultLanguage();
|
QLocale::Language getCurrentDefaultLanguage();
|
||||||
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
void externalPaint(const QString& objectName, QPainter* painter, const QStyleOptionGraphicsItem*);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user