Commit Graph

5 Commits

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