Finish 1.5.2

This commit is contained in:
Arin Alexander 2019-07-09 12:35:50 +03:00
commit ad8d7d90e6
8 changed files with 973 additions and 460 deletions

View File

@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 1
LIMEREPORT_VERSION_RELEASE = 2
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

View File

@ -15,10 +15,11 @@ void DesignerSettingManager::getAvailableLanguages(QList<QLocale::Language>* lan
{
languages->append(QLocale::Russian);
languages->append(QLocale::English);
languages->append(QLocale::Arabic);
// languages->append(QLocale::Arabic);
languages->append(QLocale::French);
languages->append(QLocale::Chinese);
languages->append(QLocale::Spanish);
languages->append(QLocale::Polish);
}
QLocale::Language DesignerSettingManager::getCurrentDefaultLanguage()

View File

@ -12,7 +12,6 @@ class DesignerSettingManager : public QObject
public:
explicit DesignerSettingManager(QObject *parent = 0);
~DesignerSettingManager();
void setApplicationInstance(QApplication* application);
public slots:
void getAvailableLanguages(QList<QLocale::Language>* languages);
QLocale::Language getCurrentDefaultLanguage();

View File

@ -176,7 +176,7 @@ public:
bool isOwned() const {return true;}
bool isEditable() const {return true;}
bool isRemovable() const {return true;}
void invalidate(IDataSource::DatasourceMode mode, bool dbWillBeClosed){ updateModel();}
void invalidate(IDataSource::DatasourceMode mode, bool /*dbWillBeClosed*/){ updateModel();}
void update(){ updateModel(); }
void clearErrors(){}
private:

View File

@ -189,6 +189,10 @@ void PreviewReportWindow::setMenuVisible(bool value)
void PreviewReportWindow::setHideResultEditButton(bool value)
{
ui->actionEdit_Mode->setVisible(value);
if (!value && ui->editModeTools) {
delete ui->editModeTools;
ui->editModeTools = 0;
}
}
void PreviewReportWindow::setHidePrintButton(bool value)
@ -292,7 +296,8 @@ void PreviewReportWindow::moveEvent(QMoveEvent* e)
void PreviewReportWindow::showEvent(QShowEvent *)
{
m_fontEditor->setVisible(ui->actionEdit_Mode->isChecked());
ui->editModeTools->setVisible(false);
if (ui->editModeTools)
ui->editModeTools->setVisible(false);
m_textAlignmentEditor->setVisible(ui->actionEdit_Mode->isChecked());
switch (m_previewScaleType) {
case FitWidth:
@ -500,7 +505,7 @@ void PreviewReportWindow::on_actionShow_Toolbar_triggered()
writeSetting();
}
void PreviewReportWindow::slotCurrentPageChanged(int page)
void PreviewReportWindow::slotCurrentPageChanged(int /*page*/)
{
slotActivateItemSelectionMode();
}

View File

@ -60,7 +60,7 @@
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="toolBar">
<property name="windowTitle">
<string>toolBar</string>
<string>MainToolBar</string>
</property>
<property name="iconSize">
<size>
@ -98,7 +98,7 @@
<bool>true</bool>
</property>
<property name="windowTitle">
<string>toolBar_2</string>
<string>EditModeTools</string>
</property>
<attribute name="toolBarArea">
<enum>LeftToolBarArea</enum>

File diff suppressed because it is too large Load Diff

View File

@ -388,16 +388,16 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
<message>
<source>Start from new page</source>
<translation></translation>
<source>Cut</source>
<translation></translation>
</message>
<message>
<source>Start new page</source>
<translation></translation>
<source>Copy</source>
<translation></translation>
</message>
<message>
<source>Keep top space</source>
<translation></translation>
<source>Print if empty</source>
<translation></translation>
</message>
</context>
<context>
@ -434,6 +434,14 @@ p, li { white-space: pre-wrap; }
<source>Create Horizontal Layout</source>
<translation></translation>
</message>
<message>
<source>Lock item geometry</source>
<translation></translation>
</message>
<message>
<source>Create Vertical Layout</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::ConnectionDesc</name>
@ -539,6 +547,26 @@ p, li { white-space: pre-wrap; }
<source>Use alternate background color</source>
<translation>使</translation>
</message>
<message>
<source>Keep footer together</source>
<translation></translation>
</message>
<message>
<source>Keep subdetail together</source>
<translation></translation>
</message>
<message>
<source>Slice last row</source>
<translation></translation>
</message>
<message>
<source>Start from new page</source>
<translation></translation>
</message>
<message>
<source>Start new page</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::DataBrowser</name>
@ -633,6 +661,10 @@ p, li { white-space: pre-wrap; }
<source>DataFooter</source>
<translation></translation>
</message>
<message>
<source>Print always</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::DataHeaderBand</name>
@ -640,6 +672,18 @@ p, li { white-space: pre-wrap; }
<source>DataHeader</source>
<translation></translation>
</message>
<message>
<source>Reprint on each page</source>
<translation></translation>
</message>
<message>
<source>Repeat on each row</source>
<translation></translation>
</message>
<message>
<source>Print always</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::DataSourceManager</name>
@ -671,6 +715,10 @@ p, li { white-space: pre-wrap; }
<source>invalid connection</source>
<translation></translation>
</message>
<message>
<source>Unknown parameter &quot;%1&quot; for variable &quot;%2&quot; found!</source>
<translation>&quot;%2&quot;&quot;%1&quot;!</translation>
</message>
</context>
<context>
<name>LimeReport::DataSourceModel</name>
@ -944,6 +992,30 @@ p, li { white-space: pre-wrap; }
<source>TitleAlignCenter</source>
<translation></translation>
</message>
<message>
<source>Layout</source>
<translation></translation>
</message>
<message>
<source>Table</source>
<translation></translation>
</message>
<message>
<source>Millimeters</source>
<translation></translation>
</message>
<message>
<source>Inches</source>
<translation></translation>
</message>
<message>
<source>Scale</source>
<translation></translation>
</message>
<message>
<source>Split</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::FlagsPropItem</name>
@ -969,7 +1041,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<source>AllLines</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -1061,6 +1133,10 @@ p, li { white-space: pre-wrap; }
<source>Watermark</source>
<translation></translation>
</message>
<message>
<source>Ext.</source>
<translation>.</translation>
</message>
</context>
<context>
<name>LimeReport::ItemLocationPropItem</name>
@ -1168,6 +1244,28 @@ p, li { white-space: pre-wrap; }
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::ObjectInspectorWidget</name>
<message>
<source>Clear</source>
<translation></translation>
</message>
<message>
<source>Filter</source>
<translation></translation>
</message>
<message>
<source>Translate properties</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::PDFExporter</name>
<message>
<source>Export to PDF</source>
<translation>PDF文件</translation>
</message>
</context>
<context>
<name>LimeReport::PageFooter</name>
<message>
@ -1219,14 +1317,14 @@ p, li { white-space: pre-wrap; }
<source>Form</source>
<translation></translation>
</message>
<message>
<source>PDF file name</source>
<translation>PDF </translation>
</message>
<message>
<source>Report file name</source>
<translation></translation>
</message>
<message>
<source>%1 file name</source>
<translation> %1</translation>
</message>
</context>
<context>
<name>LimeReport::PreviewReportWindow</name>
@ -1342,6 +1440,30 @@ p, li { white-space: pre-wrap; }
<source> of %1</source>
<translation> / %1</translation>
</message>
<message>
<source>toolBar_2</source>
<translation></translation>
</message>
<message>
<source>InsertTextItem</source>
<translation></translation>
</message>
<message>
<source>Add new TextItem</source>
<translation></translation>
</message>
<message>
<source>Selection Mode</source>
<translation></translation>
</message>
<message>
<source>Delete Item</source>
<translation></translation>
</message>
<message>
<source>Del</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::ProxyHolder</name>
@ -1806,15 +1928,63 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<source>printable</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>variable</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>replaceCRwithBR</source>
<translation></translation>
</message>
<message>
<source>hideIfEmpty</source>
<translation></translation>
</message>
<message>
<source>hideEmptyItems</source>
<translation></translation>
</message>
<message>
<source>useExternalPainter</source>
<translation>使</translation>
</message>
<message>
<source>layoutSpacing</source>
<translation></translation>
</message>
<message>
<source>printerName</source>
<translation></translation>
</message>
<message>
<source>fontLetterSpacing</source>
<translation></translation>
</message>
<message>
<source>hideText</source>
<translation></translation>
</message>
<message>
<source>option3</source>
<translation>3</translation>
</message>
<message>
<source>units</source>
<translation></translation>
</message>
<message>
<source>geometryLocked</source>
<translation></translation>
</message>
<message>
<source>printBehavior</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::RectMMPropItem</name>
<name>LimeReport::RectPropItem</name>
<message>
<source>width</source>
<translation></translation>
@ -1825,7 +1995,7 @@ p, li { white-space: pre-wrap; }
</message>
</context>
<context>
<name>LimeReport::RectPropItem</name>
<name>LimeReport::RectUnitPropItem</name>
<message>
<source>width</source>
<translation></translation>
@ -1870,7 +2040,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<source>Delete Report Page</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Edit Mode</source>
@ -1926,7 +2096,7 @@ p, li { white-space: pre-wrap; }
</message>
<message>
<source>Delete item</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>Zoom In</source>
@ -2132,6 +2302,22 @@ p, li { white-space: pre-wrap; }
<source>Dialog Designer Tools</source>
<translation></translation>
</message>
<message>
<source>Vertical layout</source>
<translation></translation>
</message>
<message>
<source>Lock selected items</source>
<translation></translation>
</message>
<message>
<source>Unlock selected items</source>
<translation></translation>
</message>
<message>
<source>Select one level items</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::ReportEnginePrivate</name>
@ -2163,6 +2349,10 @@ This preview is no longer valid.</source>
<source>Language %1 already exists</source>
<translation> %1 </translation>
</message>
<message>
<source>%1 file name</source>
<translation> %1</translation>
</message>
</context>
<context>
<name>LimeReport::ReportFooter</name>
@ -2299,6 +2489,22 @@ This preview is no longer valid.</source>
<source>Refresh</source>
<translation></translation>
</message>
<message>
<source>CSV</source>
<translation>CSV</translation>
</message>
<message>
<source>Separator</source>
<translation></translation>
</message>
<message>
<source>;</source>
<translation></translation>
</message>
<message>
<source>Use first row as header</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::ScriptBrowser</name>
@ -2413,7 +2619,7 @@ This preview is no longer valid.</source>
</message>
<message>
<source>DATE&amp;TIME</source>
<translation></translation>
<translation>&amp;</translation>
</message>
<message>
<source>CurrencySymbol</source>
@ -2471,6 +2677,10 @@ This preview is no longer valid.</source>
<source>datasourceName</source>
<translation></translation>
</message>
<message>
<source>RowIndex</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::SettingDialog</name>
@ -2478,10 +2688,6 @@ This preview is no longer valid.</source>
<source>Designer setting</source>
<translation></translation>
</message>
<message>
<source>Designer Setting</source>
<translation></translation>
</message>
<message>
<source>Default font</source>
<translation></translation>
@ -2498,10 +2704,6 @@ This preview is no longer valid.</source>
<source>Horizontal grid step</source>
<translation></translation>
</message>
<message>
<source>Report Setting</source>
<translation></translation>
</message>
<message>
<source>Suppress absent fields and variables warning</source>
<translation></translation>
@ -2511,8 +2713,32 @@ This preview is no longer valid.</source>
<translation></translation>
</message>
<message>
<source>Use dark theme</source>
<translation>使</translation>
<source>Designer settings</source>
<translation></translation>
</message>
<message>
<source>Theme</source>
<translation></translation>
</message>
<message>
<source>Report units</source>
<translation></translation>
</message>
<message>
<source>Script editor settings</source>
<translation></translation>
</message>
<message>
<source>Font</source>
<translation></translation>
</message>
<message>
<source>Indent size</source>
<translation></translation>
</message>
<message>
<source>Report settings</source>
<translation></translation>
</message>
</context>
<context>
@ -2605,6 +2831,10 @@ This preview is no longer valid.</source>
<source>Watermark</source>
<translation></translation>
</message>
<message>
<source>Hide if empty</source>
<translation></translation>
</message>
</context>
<context>
<name>LimeReport::TextItemEditor</name>
@ -2616,18 +2846,6 @@ This preview is no longer valid.</source>
<source>Content</source>
<translation></translation>
</message>
<message>
<source>Editor settings</source>
<translation></translation>
</message>
<message>
<source>Editor font</source>
<translation></translation>
</message>
<message>
<source>...</source>
<translation></translation>
</message>
<message>
<source>Ok</source>
<translation></translation>
@ -2929,5 +3147,41 @@ This preview is no longer valid.</source>
<source>Datasource manager not found</source>
<translation></translation>
</message>
<message>
<source>Export to PDF</source>
<translation>PDF文件</translation>
</message>
<message>
<source>VLayout</source>
<translation></translation>
</message>
<message>
<source>Dark</source>
<translation></translation>
</message>
<message>
<source>Light</source>
<translation></translation>
</message>
<message>
<source>Default</source>
<translation></translation>
</message>
<message>
<source>Millimeters</source>
<translation></translation>
</message>
<message>
<source>Inches</source>
<translation></translation>
</message>
<message>
<source>margin</source>
<translation></translation>
</message>
<message>
<source>&apos;&apos;</source>
<translation>&apos;&apos;</translation>
</message>
</context>
</TS>