diff --git a/libs/graphic/graphic_conf.cpp b/libs/graphic/graphic_conf.cpp
index 2d6c255..f2383ed 100644
--- a/libs/graphic/graphic_conf.cpp
+++ b/libs/graphic/graphic_conf.cpp
@@ -135,6 +135,42 @@ void GraphicConf::on_checkFill_toggled(bool on) {
}
+void GraphicConf::on_spinLineWidthGraphicAll_valueChanged(double value) {
+ for (auto & g: graphics) {
+ if (qRound(value) == value)
+ g.pen.setWidth(qRound(value));
+ else
+ g.pen.setWidthF(value);
+ }
+ QSignalBlocker bl(ui->spinLineWidthGraphic);
+ ui->spinLineWidthGraphic->setValue(value);
+}
+
+
+void GraphicConf::on_spinPointWidthGraphicAll_valueChanged(double value) {
+ for (auto & g: graphics)
+ g.pointWidth = value;
+ QSignalBlocker bl(ui->spinPointWidthGraphic);
+ ui->spinPointWidthGraphic->setValue(value);
+}
+
+
+void GraphicConf::on_checkLinesAll_toggled(bool on) {
+ for (auto & g: graphics)
+ g.lines = on;
+ QSignalBlocker bl(ui->checkLines);
+ ui->checkLines->setChecked(on);
+}
+
+
+void GraphicConf::on_checkPointsAll_toggled(bool on) {
+ for (auto & g: graphics)
+ g.points = on;
+ QSignalBlocker bl(ui->checkPoints);
+ ui->checkPoints->setChecked(on);
+}
+
+
void GraphicConf::on_buttonExport_clicked() {
emit exportClicked();
}
diff --git a/libs/graphic/graphic_conf.h b/libs/graphic/graphic_conf.h
index fe9b7d0..7892d5c 100644
--- a/libs/graphic/graphic_conf.h
+++ b/libs/graphic/graphic_conf.h
@@ -104,6 +104,10 @@ private slots:
void on_checkLines_toggled(bool on);
void on_checkPoints_toggled(bool on);
void on_checkFill_toggled(bool on);
+ void on_spinLineWidthGraphicAll_valueChanged(double value);
+ void on_spinPointWidthGraphicAll_valueChanged(double value);
+ void on_checkLinesAll_toggled(bool on);
+ void on_checkPointsAll_toggled(bool on);
void on_buttonExport_clicked();
signals:
diff --git a/libs/graphic/graphic_conf.ui b/libs/graphic/graphic_conf.ui
index 0118387..7b74abe 100644
--- a/libs/graphic/graphic_conf.ui
+++ b/libs/graphic/graphic_conf.ui
@@ -9,8 +9,8 @@
0
0
- 387
- 507
+ 645
+ 849
@@ -66,31 +66,8 @@
-
-
-
- QFormLayout::AllNonFixedFieldsGrow
-
-
-
-
-
-
- 0
- 0
-
-
-
- Background color:
-
-
-
- -
-
-
- true
-
-
-
- -
+
+
-
@@ -103,13 +80,49 @@
- -
+
-
true
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 40
+ 10
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Background color:
+
+
+
+ -
+
+
+ true
+
+
+
@@ -228,8 +241,166 @@
-
-
-
-
+
+
-
+
+
+ All graphics
+
+
+
-
+
+
+ Lines width:
+
+
+ true
+
+
+
+ -
+
+
+ 2
+
+
+ 1.000000000000000
+
+
+
+ -
+
+
+ Points width:
+
+
+ true
+
+
+
+ -
+
+
+ 2
+
+
+ 999.990000000000009
+
+
+ 1.000000000000000
+
+
+
+
+
+
+ -
+
+
+ Graphics
+
+
+
+ QFormLayout::AllNonFixedFieldsGrow
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ -
+
+
+ Color:
+
+
+
+ -
+
+
+ true
+
+
+
+ -
+
+
+ Style:
+
+
+
+ -
+
+
+ -
+
+
+ Lines width:
+
+
+ true
+
+
+
+ -
+
+
+ 2
+
+
+ 1.000000000000000
+
+
+
+ -
+
+
+ Points width:
+
+
+ true
+
+
+
+ -
+
+
+ 2
+
+
+ 999.990000000000009
+
+
+ 1.000000000000000
+
+
+
+ -
+
+
+ Fill:
+
+
+ true
+
+
+
+ -
+
+
+ true
+
+
+
+
+
+
+ -
Grid
@@ -342,112 +513,6 @@
- -
-
-
- Graphics
-
-
-
- QFormLayout::AllNonFixedFieldsGrow
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- -
-
-
- Color:
-
-
-
- -
-
-
- true
-
-
-
- -
-
-
- Style:
-
-
-
- -
-
-
- -
-
-
- Lines width:
-
-
- true
-
-
-
- -
-
-
- 2
-
-
- 1.000000000000000
-
-
-
- -
-
-
- Points width:
-
-
- true
-
-
-
- -
-
-
- 2
-
-
- 999.990000000000009
-
-
- 1.000000000000000
-
-
-
- -
-
-
- Fill:
-
-
- true
-
-
-
- -
-
-
- true
-
-
-
-
-
-
-
diff --git a/libs/graphic/lang/qad_graphic_en.ts b/libs/graphic/lang/qad_graphic_en.ts
index bbbcedf..61ede3f 100644
--- a/libs/graphic/lang/qad_graphic_en.ts
+++ b/libs/graphic/lang/qad_graphic_en.ts
@@ -4,200 +4,209 @@
Graphic
-
+
Autofit
-
+
Cursor axis
-
+
Free
-
-
+
+
Only expand Y
-
+
Only expand X
-
+
Fullscreen
-
+
Border inputs
-
+
Legend
-
+
Pause
-
+
Configure ...
-
+
Save image ...
-
+
Save to Image ...
-
+
Export to CSV ...
-
+
Export to CSV current view ...
-
+
Export to CSV current view
-
+
+ Leave fullscreen
+
+
+
+
+ Esc
+
+
+
+
Record graphic
-
+
Clear
-
+
Close
-
+
Cursor: ( ; )
-
-
+
+
Snap trace
-
-
+
+
Cursor:
-
+
Selection
-
+
Size
-
-
-
- Range
-
-
+ Range
+
+
+
+
+
Length
-
-
+
+
Cursor
-
-
+
+
Export graphics
-
+
Can`t open file "%1"!
-
+
ms
-
+
s
-
+
m
-
+
h
-
+
Save Image
-
-
+
y(x)
-
+
Select decimal point
-
+
Decimal point:
-
+
Save GIF
-
+
Check all
@@ -240,160 +249,167 @@
-
+
Background color:
-
+
Text color:
-
+
Graphics
-
+
Export to CSV...
-
-
+
+
Color:
-
-
+
+
Style:
-
+
+
Lines width:
-
+
+ All graphics
+
+
+
+
+
Points width:
-
+
Fill:
-
+
Grid
-
+
Width:
-
+
Step X:
-
+
Step Y:
-
+
Auto X
-
+
Auto Y
-
-
+
+
30
-
-
+
+
50
-
+
Margins
-
-
-
-
-
+
+
+
+
+
px
-
+
All:
-
+
Right:
-
+
Left:
-
+
Bottom:
-
+
Top:
-
+
NoPen
-
+
Solid
-
+
Dash
-
+
Dot
-
+
Dash-Dot
-
+
Dash-Dot-Dot
diff --git a/libs/graphic/lang/qad_graphic_ru.ts b/libs/graphic/lang/qad_graphic_ru.ts
index 41f0f96..c72b1af 100644
--- a/libs/graphic/lang/qad_graphic_ru.ts
+++ b/libs/graphic/lang/qad_graphic_ru.ts
@@ -4,7 +4,7 @@
Graphic
-
+
Autofit
Автомасштаб
@@ -13,12 +13,12 @@
Сетка
-
+
Cursor axis
Плавающие оси
-
+
Free
Свободный
@@ -31,56 +31,66 @@
Трассировка по Y
-
-
+
+
Only expand Y
Только расширять Y
-
+
Only expand X
Только расширять X
-
+
Fullscreen
Во весь экран
-
+
Border inputs
Граничные поля ввода
-
+
Legend
Легенда
-
+
Pause
Пауза
-
+
Configure ...
Настроить ...
-
+
Save image ...
Сохранить изображение ...
-
+
Save to Image ...
Сохранить как изображение ...
-
+
Export to CSV ...
Экспорт в CSV ...
+
+
+ Leave fullscreen
+ Покинуть полноэкранный режим
+
+
+
+ Esc
+
+
Save to Image...
Сохранить как изображение ...
@@ -90,12 +100,12 @@
Экспорт в CSV...
-
+
Export to CSV current view ...
Экспорт в CSV видимой части ...
-
+
Export to CSV current view
Экспорт в CSV видимой части
@@ -104,28 +114,28 @@
Экспорт графиков ...
-
+
Record graphic
Запись графика
-
+
Clear
Очистить
-
+
Close
Закрыть
-
+
Cursor: ( ; )
Курсор: ( ; )
-
-
+
+
Snap trace
Трассировка с привязкой
@@ -134,98 +144,97 @@
Свободная трассировка
-
-
+
+
Cursor:
Курсор:
-
+
Selection
Выделение
-
+
Size
Размер
-
-
+
+
Range
Диапазон
-
-
+
+
Length
Длина
-
-
+
+
Cursor
Курсор
-
-
+
+
Export graphics
Экспорт графиков
-
+
Can`t open file "%1"!
Невозможно открыть файл "%1"!
-
+
ms
мс
-
+
s
сек
-
+
m
мин
-
+
h
ч
-
+
Save Image
Сохранить изображение
-
-
+
y(x)
-
+
Select decimal point
Выберите десятичный разделитель
-
+
Decimal point:
Десятичный разделитель:
-
+
Save GIF
Сохранить GIF
-
+
Check all
Выбрать все
@@ -268,91 +277,98 @@
Легенда
-
+
Background color:
Цвет фона:
-
+
Text color:
Цвет текста:
-
+
Graphics
Графики
-
+
Export to CSV...
Экспорт в CSV...
-
-
+
+
Color:
Цвет:
-
-
+
+
Style:
Стиль:
-
+
+
Lines width:
Толщина линий:
-
+
+ All graphics
+ Все графики
+
+
+
+
Points width:
Толщина точек:
-
+
Fill:
Заливка:
-
+
Grid
Сетка
-
+
Width:
Толщина:
-
+
Step X:
Шаг X:
-
+
Step Y:
Шаг Y:
-
+
Auto X
Авто X
-
+
Auto Y
Авто Y
-
-
+
+
30
-
-
+
+
50
@@ -361,71 +377,71 @@
Автоматический шаг
-
+
Margins
Поля
-
-
-
-
-
+
+
+
+
+
px
пикс
-
+
All:
Все:
-
+
Right:
Правое:
-
+
Left:
Левое:
-
+
Bottom:
Нижнее:
-
+
Top:
Верхнее:
-
+
NoPen
НетЛинии
-
+
Solid
Сплошная
-
+
Dash
Штриховая
-
+
Dot
Пунктирная
-
+
Dash-Dot
ШтрихПунктирная
-
+
Dash-Dot-Dot
ШтрихПунктирПунктирная