Commit Graph

24 Commits

Author SHA1 Message Date
Jochen Becher
05f7b92f0a ModelEditor: Introduce QMT_ASSERT
This change shall solve a lot of Coverity findings

Change-Id: I1e699f7363426e9b6008fc77d3f498fe3d968b4f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-07-11 20:17:55 +00:00
Leena Miettinen
290743fdd6 Doc: Describe synchronizing diagrams and Structure view
Change the UI text to use the name of the Structure view
instead of "Browser", which is a term not used in the documentation
or the model editor UI.

Change-Id: Id5654bc7f5c4a9c7147315333f60c88a9e667bbc
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-11-03 14:32:14 +00:00
Jochen Becher
4b01c6eb69 ModelEditor: Synchronize browser and diagram selection
Change-Id: Idfbf2db98123e00bc3cef13869a0535a35e41f42
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-27 09:41:34 +00:00
Jochen Becher
3e776dde5e ModelEditor: Zoom with Ctrl + mouse wheel
Change-Id: I2e703345a882f0dbd80a0957d5f28bd203f4f26b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-27 09:41:24 +00:00
Jochen Becher
80e5259999 ModelEditor: Implement zoom of diagrams.
All elements of a zoomed diagram must be dran anti-aliased. This change
removes the extra handling of drawing vertical or horizontal lines
without anti-alias. The complete graphics view is drawn anti-aliased
instead.

Change-Id: I6fc041b6d70da5a7a7bcb8e97d07990517380b90
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-06-24 16:58:30 +00:00
Nikita Baryshnikov
c2919c673b ModelEditor: fix compiler warning
this 'if' clause does not guard

Change-Id: If549d4a005dd41c9cc01a3bd7a774c47839aa202
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-18 06:59:42 +00:00
Jochen Becher
ea014b8436 ModelEditor: Disable menu item if no diagram is open
Change-Id: I95937f4533307364b6eb1fb42ab821c825883346
Task-number: QTCREATORBUG-15853
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-11 19:26:44 +00:00
Jochen Becher
4d91194e8f Modeling: Fix build with/without SVG
Change-Id: I5152571010fecaf91986a16ca71bf7b89fada064
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-26 12:25:18 +00:00
Jochen Becher
bbba9ccae3 ModelEditor: Export diagram as image, pdf or svg
Change-Id: I19be1de5f0c8414b4d76dbbbb68e71183b7ce08e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-24 17:22:38 +00:00
Jochen Becher
84761ec9f2 ModelEditor: Add UI for custom configuration path
Change-Id: I66fd8a8d89f2a75157d6bf4f6de2a81cc2c93aea
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-18 16:35:51 +00:00
Tobias Hunger
397e7f4843 Update License according to agreement with Free Qt Foundation
* Update files in src/plugins

Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-19 15:57:01 +00:00
Jochen Becher
57ceb15692 ModelEditor: Add action for inplace editing
Pressing "Return" activates inplace editing, Shift+Return activates
properties.

Change-Id: I67601a439d27f9d322a3a88f7706d26f75faaab8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-06 10:41:37 +00:00
Jochen Becher
36b3e3c897 ModelEditor: Sort toolbars by priority
Change-Id: I7b8adca90cb0956c0af7aec454b9e62df98e8ba5
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-04 12:19:39 +00:00
Jochen Becher
0750fd6de5 ModelEditor: Store last used toolbar in diagram
Opening a diagram will automatically show the toolbar which was lastly
used for that diagram.

Change-Id: Ia78225ca0bd3d9fbebfcfd22691bcc702e69e5ea
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-12-08 10:00:54 +00:00
Tobias Hunger
6d797a9097 Modeling: Fix warnings about hiding symbols
Change-Id: I434a80facf2d7550865277b32ce207908a50c48b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-16 11:17:34 +00:00
Jochen Becher
11eca8374b ModelEditor: Apply naming convention to enums
Change-Id: I215214965d4f6196d805b9001cf59d8cbf2c7c64
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-11 09:08:10 +00:00
Jochen Becher
5d3812af28 ModelEditor: Apply naming convention to getters
Change-Id: If9eaaf0dc54e26e4b7e2b8952efd951a9113f104
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-11 09:07:53 +00:00
Jochen Becher
06821596f0 ModelEditor: Apply naming convention to attributes
Change-Id: Ife37a542be9b9e721e988cb11d9498469b2226f0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-11-09 21:10:09 +00:00
Jochen Becher
d6ef70573d ModelEditor: Show scrollbar as needed in properties panel
Change-Id: I0f07dc713aa0faff8071134f183a4e3c9b1c796b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-10-12 16:39:36 +00:00
Jochen Becher
0954b38697 ModelEditor: Add new button to open parent diagram
If the currently open diagram has a parent diagram (that is: a diagram
in the package one hierarchy step up) it can now be opened by pressing a
button in the toolbar. Default short cut is Ctrl+Shift+P.

This change completes the navigation features.

Change-Id: Ie073676644a6283842b2bbb0d14aca1dfe2706e7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-30 18:54:13 +00:00
Jochen Becher
c39242c166 ModelEditor: Support editor's navigation history
For now only the id of the currently opened diagram is stored in the
navigation state. The position of scrollers is not saved.

Change-Id: Ic9b2237a0223596d1111c635f04f11e3951fd397
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-30 18:53:22 +00:00
Jochen Becher
963e3b4ffd ModelEditor: Show current diagram's name in editor's tool bar
It's not just a label but a ComboBox which shows the last recently
opened diagrams and its full package path to distinguish diagrams with
identical names.

Change-Id: I32db76dfb0f4b751493ffc0f4952258019140d2b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-30 18:53:09 +00:00
Jochen Becher
64760f0a8d ModelEditor: Remove diagram's specific document and editor
Only one document is created per .qmodel file and only one editor is
opened (splitting is not yet supported). The editor shows one diagram,
another diagram can be shown from the model tree.

Change-Id: Icd8211c14cb09203c52769a8ea1c90edb741ae51
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-30 17:54:08 +00:00
Jochen Becher
d92142f149 Add new ModelEditor plugin.
The plugin is based on the 'modelinglib' library. For features and
screenshots see https://wiki.qt.io/ModelEditor

Change-Id: I857be0652a852cc69a9729f64e67134fe630af00
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-16 12:13:36 +00:00