Commit Graph

18 Commits

Author SHA1 Message Date
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