mirror of
				https://github.com/python-LimeReport/LimeReport.git
				synced 2025-10-30 13:37:12 +03:00 
			
		
		
		
	Designer updated
This commit is contained in:
		| @@ -8,6 +8,9 @@ contains(CONFIG,release) { | |||||||
| } | } | ||||||
| TEMPLATE = app | TEMPLATE = app | ||||||
|  |  | ||||||
|  | HEADERS += \ | ||||||
|  |     designersettingmanager.h | ||||||
|  |  | ||||||
| SOURCES += main.cpp \ | SOURCES += main.cpp \ | ||||||
|     designersettingmanager.cpp |     designersettingmanager.cpp | ||||||
|  |  | ||||||
| @@ -62,6 +65,5 @@ win32 { | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
| HEADERS += \ |  | ||||||
|     designersettingmanager.h |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,5 @@ | |||||||
| #include "designersettingmanager.h" | #include "designersettingmanager.h" | ||||||
|  | #include <QMessageBox> | ||||||
|  |  | ||||||
| DesignerSettingManager::DesignerSettingManager(QObject *parent) : QObject(parent) | DesignerSettingManager::DesignerSettingManager(QObject *parent) : QObject(parent) | ||||||
| { | { | ||||||
| @@ -33,6 +34,7 @@ QLocale::Language DesignerSettingManager::getCurrentDefaultLanguage() | |||||||
|  |  | ||||||
| void DesignerSettingManager::currentDefaulLanguageChanged(QLocale::Language language) | void DesignerSettingManager::currentDefaulLanguageChanged(QLocale::Language language) | ||||||
| { | { | ||||||
|  |     QMessageBox::information(0, tr("Warning") , tr("The language will change after the application is restarted")); | ||||||
|     m_setting->beginGroup("ReportDesigner"); |     m_setting->beginGroup("ReportDesigner"); | ||||||
|     m_setting->setValue("DesignerLanguage", (int)language); |     m_setting->setValue("DesignerLanguage", (int)language); | ||||||
|     m_setting->endGroup(); |     m_setting->endGroup(); | ||||||
|   | |||||||
| @@ -13,8 +13,6 @@ public: | |||||||
|     explicit DesignerSettingManager(QObject *parent = 0); |     explicit DesignerSettingManager(QObject *parent = 0); | ||||||
|     ~DesignerSettingManager(); |     ~DesignerSettingManager(); | ||||||
|     void setApplicationInstance(QApplication* application); |     void setApplicationInstance(QApplication* application); | ||||||
| signals: |  | ||||||
|  |  | ||||||
| public slots: | public slots: | ||||||
|     void getAviableLanguages(QList<QLocale::Language>* languages); |     void getAviableLanguages(QList<QLocale::Language>* languages); | ||||||
|     QLocale::Language getCurrentDefaultLanguage(); |     QLocale::Language getCurrentDefaultLanguage(); | ||||||
|   | |||||||
| @@ -9,8 +9,6 @@ int main(int argc, char *argv[]) | |||||||
|     QApplication a(argc, argv); |     QApplication a(argc, argv); | ||||||
|     DesignerSettingManager manager; |     DesignerSettingManager manager; | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|     QTranslator limeReportTranslator; |     QTranslator limeReportTranslator; | ||||||
|     QTranslator qtTranslator; |     QTranslator qtTranslator; | ||||||
|     QString translationPath = QApplication::applicationDirPath(); |     QString translationPath = QApplication::applicationDirPath(); | ||||||
|   | |||||||
| @@ -467,7 +467,7 @@ bool ReportDesignWidget::loadFromFile(const QString &fileName) | |||||||
| //        m_scriptEditor->restoreState(editorState); | //        m_scriptEditor->restoreState(editorState); | ||||||
| //        emit loaded(); | //        emit loaded(); | ||||||
| //        m_dialogChanged = false; | //        m_dialogChanged = false; | ||||||
| //        return true; |         return true; | ||||||
|     } else { |     } else { | ||||||
|         QMessageBox::critical(this,tr("Error"),tr("Wrong file format")); |         QMessageBox::critical(this,tr("Error"),tr("Wrong file format")); | ||||||
|         return false; |         return false; | ||||||
|   | |||||||
| @@ -981,7 +981,6 @@ QLocale::Language ReportEnginePrivate::currentDesignerLanguage() | |||||||
| void ReportEnginePrivate::setCurrentDesignerLanguage(QLocale::Language language) | void ReportEnginePrivate::setCurrentDesignerLanguage(QLocale::Language language) | ||||||
| { | { | ||||||
|     m_currentDesignerLanguage = language; |     m_currentDesignerLanguage = language; | ||||||
|     QMessageBox::information(m_designerWindow, tr("Warning") ,tr("The language will change after the application is restarted")); |  | ||||||
|     emit currentDefaulLanguageChanged(language); |     emit currentDefaulLanguageChanged(language); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -150,7 +150,7 @@ void QObjectPropertyModel::translatePropertyName() | |||||||
|     tr("watermark"); |     tr("watermark"); | ||||||
|     tr("keepTopSpace"); |     tr("keepTopSpace"); | ||||||
|     tr("printable"); |     tr("printable"); | ||||||
|     tr("AllLines"); |     tr("variable"); | ||||||
| } | } | ||||||
|  |  | ||||||
| void QObjectPropertyModel::clearObjectsList() | void QObjectPropertyModel::clearObjectsList() | ||||||
|   | |||||||
| @@ -122,6 +122,7 @@ void FlagsPropItem::translateFlagsItem() | |||||||
|     tr("BottomLine"); |     tr("BottomLine"); | ||||||
|     tr("LeftLine"); |     tr("LeftLine"); | ||||||
|     tr("RightLine"); |     tr("RightLine"); | ||||||
|  |     tr("AllLines"); | ||||||
| } | } | ||||||
|  |  | ||||||
| FlagPropItem::FlagPropItem(QObject* object, ObjectsList* objects, const QString &propName, const QString &displayName, const QVariant &value, ObjectPropItem* parent, bool readonly) | FlagPropItem::FlagPropItem(QObject* object, ObjectsList* objects, const QString &propName, const QString &displayName, const QVariant &value, ObjectPropItem* parent, bool readonly) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user