Laurent Trinques
9afef79629
Update Copyright date
2023-01-01 17:05:57 +01:00
luz paz
1994235bc5
Fix various typos in source documentation and comments (cont.)
...
Found via `codespell`
2022-12-04 20:46:32 +01:00
joshua
0d90defcfe
Remove unused include
2022-09-28 21:54:02 +02:00
joshua
ea1ede9cb3
Remove unnecessary assert
...
Just call :
void DynamicTextFieldEditor::disconnectConnections()
instead of use an assert if there is an active connection.
2022-09-28 21:53:30 +02:00
joshua
ffc2a7a7d7
Fix warning
2022-09-26 21:48:08 +02:00
joshua
3e75bedef0
Fix crash
...
https://qelectrotech.org/forum/viewtopic.php?pid=16647#p16647
2022-09-26 21:40:47 +02:00
joshua
5a497cd6b5
Element editor : improve code
...
Better use of signal partsAdded and partsRemoved
2022-07-26 16:17:47 +02:00
joshua
cae7cbdbd8
Import dxf is managed by undo command
2022-07-24 20:58:00 +02:00
joshua
6e81451b46
Add import dxf feature
...
Use dxf2elmt to import dxf.
See https://github.com/antonioaja/dxf2elmt
2022-07-23 21:54:23 +02:00
Tadeáš Pilař
1a2fea84ff
Add 'Other' option for slave device contact type
...
This option alows for displaying XRef without contact drawing.
This is useful for spliting one physical part into multiple
logical elements when the slave element is not a switch.
2022-06-23 05:41:33 +02:00
joshua
a2b73ea2bc
Definitely fix the rotation problem :)
...
Only use space for every rotation
2022-05-25 21:47:31 +02:00
Laurent Trinques
bf32219154
Fix previous workaround
...
Now the shortcut for the rotate action is key_space and use key_R to
rotate terminal on the fly before placing it in the drawing.
2022-05-25 17:39:49 +02:00
Laurent Trinques
6a669f1399
Fix previous workaround
...
Because strange behaviour with Qt::key_space if used for keyPressEvent
and also in shortcut.
Now the shortcut for the rotate action is ctrl + R and key_space to
rotate terminal on the fly before placing it in the drawing.
2022-05-25 13:47:22 +02:00
joshua
4ab1ed7fc9
Fix previous workaround
...
The rotate action shortcut was 'space' before this commit and so the
keyPressEvent with space key was never propagated because always grabbed
by the rotate action.
Now the shortcut for the rotate action is ctrl + space.
Note that even if rotate exist in element editor, this doesn't work well
because the rotation is not well managed by the save/load from elmt
file.
2022-05-22 21:05:54 +02:00
Laurent Trinques
db8c76c184
Element::Thumbnail WIP
2022-05-15 14:29:01 +02:00
joshua
021aea1d8b
Add the new element type : thumbnail
...
This type must be used for element who goal is to display a
thumbnail/front view of an element, notably used for cabinet contents
view and placement.
2022-05-13 20:02:29 +02:00
Adrien Allain
ccfb46b354
Implemented QET coding style (replaced 4 space with tab)
2021-09-14 09:35:14 +02:00
Adrien Allain
c640d96bca
* Added the m_rotate_action to qetelementeditor.ui * Adding QAction to qetelementeditor.cpp and connecting it to new slot RotateElementsCommand defined in editorcommands.cpp
...
* Some types of elements need to specialize the setRotation method in order to behave correctly :
- PartTerminal needs to call setOrientation
- PartLine, PartRectangle and PartPolygon need a different rotation center.
2021-09-14 09:35:14 +02:00
joshua
fdbfca9a8c
Change ElementData enum
...
Change enum value 'ground' from enum 'function' to enum 'type'
2021-05-21 19:15:26 +02:00
joshua
12c0dbd8d1
Minor gui change
2021-05-11 18:20:19 +02:00
joshua
74dcf96e4b
Element editor: make element text option "keep visual rotation" editable.
2021-05-08 22:14:15 +02:00
joshua
09c0929040
Element editor gui fix
...
When select a primitive an unparented windows appear and can't be
deleted. Fix it.
2021-04-30 20:27:24 +02:00
joshua
11b8ef927b
Revert "Merge branch 'XMLPropertiesNew'"
...
**Break a lot of thing.**
This reverts commit 1db1800572 , reversing
changes made to 4c563821e8 .
2021-03-11 19:52:50 +01:00
joshua
1db1800572
Merge branch 'XMLPropertiesNew'
2021-03-09 19:09:31 +01:00
Simon De Backer
4c563821e8
[Qt6] ad QCloseEvent to Widgets
2021-03-07 20:23:07 +01:00
joshua
38a825865c
Fix ftbfs on debian buster
2021-03-07 12:18:30 +01:00
Martin Marmsoler
ea793125a5
move m_change_connections to ElementItemEditor, so it must not be defined by every editor it self
2021-03-05 20:59:36 +01:00
Martin
bc88f2ec2e
reimplement Priv function, so the ElementEditor gets called automatically
2021-03-05 17:38:51 +01:00
joshua
faf4235bed
Terminal element info
...
Provide only useful information for terminal
2021-03-03 21:28:22 +01:00
joshua
be2067148e
Element editor : add terminal properties editable
2021-02-21 19:40:33 +01:00
joshua
8f85cacb06
QetElementEditor : Use elementData class
2021-02-21 19:40:33 +01:00
joshua
a1779d1a7a
Rewrite terminaleditor with ui file.
...
Write terminal editor with ui file.
The terminalData::type of a terminal can be edited with the terminal
editor.
2021-02-21 19:40:33 +01:00
joshua
24ec94d73e
QetElementEditor : rewrite gui with ui file
2021-02-21 19:40:32 +01:00
Laurent Trinques
ef58f34c14
Update Copyright date
2021-02-20 12:13:46 +01:00
joshua
30858f9a4d
Minor fix :
...
Combobox "information of element" don't display the real information set
to the dynamic text field
2021-02-15 18:53:22 +01:00
joshua
2513961cd6
Revert "Update Copyright date"
...
This reverts commit d04bccc384 .
2021-02-06 19:00:48 +01:00
Laurent Trinques
d04bccc384
Update Copyright date
2021-02-06 18:33:42 +01:00
joshua
e1b98ce5b5
Revert "QetElementEditor : rewrite gui with ui file"
...
This reverts commit e3db2bc898 .
2021-02-01 19:52:15 +01:00
joshua
e3db2bc898
QetElementEditor : rewrite gui with ui file
2021-01-30 19:34:21 +01:00
joshua
20cd0366eb
Update typo
2021-01-28 19:14:26 +01:00
joshua
bb82a616de
Minor fix : widget lose focus each time user tip
...
Each time a QUndoCommand is pushed to a QUndoStack, the current focused
widget lose focus.
So each time user change a value in a widget (for exemple a QSpinBox)
the widget lose focus and user will have to click again in the widget to
gain focus and continue to edit.
The workaround is to call the method focus of the current widget each
time we push a undo command
2021-01-21 19:35:38 +01:00
joshua
0a616088ea
Dynamic text field editor : move kcolorbutton from ui file to cpp file
...
Kcolorbutton is not available in Qt6 for now.
We move it from the ui file to the cpp file for choose at compilation if
qet must use kcolorbutton or not.
2021-01-07 18:56:25 +01:00
Simon De Backer
d3093f495b
Revert "Mod DynamicTextFieldEditor"
...
This reverts commit f6d777e2f7 .
it is preferable to keep the gui in the ui file
QT6 will have to wait.
2021-01-04 20:37:17 +01:00
Simon De Backer
0cc3099908
Mod TextEditor
...
the ui file is written in the TextEditor class
Add switch for KF5 (QT6)
2020-12-18 17:39:00 +01:00
joshua
546db38683
Fix fail to build
2020-12-17 23:39:04 +01:00
Simon De Backer
f6d777e2f7
Mod DynamicTextFieldEditor
...
the ui file is written in the Dynamic Text Field Editor class
Add switch for KF5 (QT6)
2020-12-17 21:42:18 +01:00
Simon De Backer
cb37c1c2fe
Add switch for KF5 (QT6) and Mod Cmake
...
if we want to test QET on QT6, KF5 must be removed from the code,
this switch is for that,
this is for testing only
2020-12-16 23:06:08 +01:00
Simon De Backer
6da9c58458
Wip Fix preprocessor on Cmake
2020-12-10 21:19:45 +01:00
Simon De Backer
d15443cf93
Wip Fix preprocessor on Cmake
2020-12-10 18:49:35 +01:00
Simon De Backer
d0c129478e
Mod Cmake en preprocessor
2020-12-10 00:08:26 +01:00