Discussion:
[Qt-creator] ModelEditor plugin
Jochen Becher
2015-08-31 20:56:19 UTC
Permalink
Hello,

I pushed change "I857be0652a852cc69a9729f64e67134fe630af00" to gerrit.
It contains a new model editor plugin I wrote. If you are interested how
it looks like please visit https://wiki.qt.io/ModelEditor.

Note: Patch Set 3 cannot be compiled with qbs yet. I am fixing it right
now.

Regards, Jochen
Jan Krause
2015-09-01 06:06:41 UTC
Permalink
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...

br
jan
Post by Jochen Becher
Hello,
I pushed change "I857be0652a852cc69a9729f64e67134fe630af00" to gerrit.
It contains a new model editor plugin I wrote. If you are interested how
it looks like please visit https://wiki.qt.io/ModelEditor.
Note: Patch Set 3 cannot be compiled with qbs yet. I am fixing it right
now.
Regards, Jochen
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Jochen Becher
2015-09-01 16:24:48 UTC
Permalink
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).

Regards, Jochen
Post by Jan Krause
br
jan
Post by Jochen Becher
Hello,
I pushed change "I857be0652a852cc69a9729f64e67134fe630af00" to gerrit.
It contains a new model editor plugin I wrote. If you are interested how
it looks like please visit https://wiki.qt.io/ModelEditor.
Note: Patch Set 3 cannot be compiled with qbs yet. I am fixing it right
now.
Regards, Jochen
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Alexander Drozdov
2015-09-02 01:15:36 UTC
Permalink
Post by Jochen Becher
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)

Joched, could you please provide HTTP link to the review?
Orgad Shaneh
2015-09-02 05:13:10 UTC
Permalink
Post by Alexander Drozdov
Post by Jochen Becher
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)
Joched, could you please provide HTTP link to the review?
https://codereview.qt-project.org/124781

Notice the dependency.

- Orgad
Tobias Hunger
2015-09-02 06:48:25 UTC
Permalink
https <https://codereview.qt-project.org/124781>://
<https://codereview.qt-project.org/124781>codereview.qt-project.org
<https://codereview.qt-project.org/124781>/124781
<https://codereview.qt-project.org/124781>

It and its dependencies is a huge piece of code:-)

Any help reviewing it would be greatly appreciated!

Best Regards
Tobias
Christian Gagneraud
2015-09-14 23:16:45 UTC
Permalink
Post by Jochen Becher
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)
Any chance to have vivid packages? Currently I cannot install the trusty
packages since on vivid, there's no libts (broken deps).

Could you tell me where I can download or clone your QtC source tree or
download binaries somewhere?

Krys
Post by Jochen Becher
Joched, could you please provide HTTP link to the review?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Ziller Eike
2015-09-15 05:34:19 UTC
Permalink
Post by Christian Gagneraud
Post by Jochen Becher
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)
Any chance to have vivid packages? Currently I cannot install the trusty
packages since on vivid, there's no libts (broken deps).
Could you tell me where I can download or clone your QtC source tree or
download binaries somewhere?
git clone —branch master git://code.qt.io/qt-creator/qt-creator.git
cd qt-creator
git fetch https://codereview.qt-project.org/qt-creator/qt-creator refs/changes/29/113829/14 && git cherry-pick FETCH_HEAD
git fetch https://codereview.qt-project.org/qt-creator/qt-creator refs/changes/81/124781/10 && git cherry-pick FETCH_HEAD

Br, Eike
Post by Christian Gagneraud
Krys
Post by Jochen Becher
Joched, could you please provide HTTP link to the review?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller, Senior Software Engineer | The Qt Company
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Christian Gagneraud
2015-09-22 22:26:06 UTC
Permalink
Post by Ziller Eike
Post by Christian Gagneraud
Post by Jochen Becher
Post by Jan Krause
looks great... :) ... is it part of the official qtc tool now? if not,
when? ...
Depends all on how fast the two related changes are accepted in gerrit
(Qt code review tool) and how long it needs until the next official
release of QtCreator (version 3.6 or 3.7 I assume).
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)
Any chance to have vivid packages? Currently I cannot install the trusty
packages since on vivid, there's no libts (broken deps).
Could you tell me where I can download or clone your QtC source tree or
download binaries somewhere?
git clone —branch master git://code.qt.io/qt-creator/qt-creator.git
cd qt-creator
git fetch https://codereview.qt-project.org/qt-creator/qt-creator refs/changes/29/113829/14 && git cherry-pick FETCH_HEAD
git fetch https://codereview.qt-project.org/qt-creator/qt-creator refs/changes/81/124781/10 && git cherry-pick FETCH_HEAD
Thanks a lot for the info.

But I have been unlucky so far, last time the build succeed, but QtC was
visually broken and would crash when trying to access tools->options.
This was at: "6cac3b7 DiffEditor: Add indication on failure"

Have now rebased on top of: "e5f3c55 Static.pro: Remove unnecessary
evals", will see if it works now.

Chris
Post by Ziller Eike
Br, Eike
Post by Christian Gagneraud
Krys
Post by Jochen Becher
Joched, could you please provide HTTP link to the review?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Orgad Shaneh
2015-09-23 17:29:11 UTC
Permalink
Post by Ziller Eike
Post by Christian Gagneraud
Post by Alexander Drozdov
After review done, most wanted peoples can try it via
http://download.qt.io/snapshots/qtcreator/master/latest/ or via
https://launchpad.net/~adrozdoff/+archive/ubuntu/qtcreator-git ;-)
Any chance to have vivid packages? Currently I cannot install the trusty
packages since on vivid, there's no libts (broken deps).
Could you tell me where I can download or clone your QtC source tree or
download binaries somewhere?
git clone —branch master git://code.qt.io/qt-creator/qt-creator.git
cd qt-creator
git fetch https://codereview.qt-project.org/qt-creator/qt-creator
refs/changes/29/113829/14 && git cherry-pick FETCH_HEAD
git fetch https://codereview.qt-project.org/qt-creator/qt-creator
refs/changes/81/124781/10 && git cherry-pick FETCH_HEAD
Thanks a lot for the info.
But I have been unlucky so far, last time the build succeed, but QtC was
visually broken and would crash when trying to access tools->options.
This was at: "6cac3b7 DiffEditor: Add indication on failure"
Have now rebased on top of: "e5f3c55 Static.pro: Remove unnecessary
evals", will see if it works now.
Notice that the plugin is already merged, so you can download the snapshot
installer <http://download.qt.io/snapshots/qtcreator/master/latest/> to try
it out.

- Orgad
Alexander Drozdov
2015-09-30 01:27:39 UTC
Permalink
Post by Christian Gagneraud
Any chance to have vivid packages? Currently I cannot install the trusty
packages since on vivid, there's no libts (broken deps).
Sorry, I have no vivid installed at all and can't test package before
uploading.


You can use official binaries.
--
WBR, Alexander Drozdov
http://htrd.su
Christian Gagneraud
2015-10-05 21:26:52 UTC
Permalink
Post by Jochen Becher
Hello,
I pushed change "I857be0652a852cc69a9729f64e67134fe630af00" to gerrit.
It contains a new model editor plugin I wrote. If you are interested how
it looks like please visit https://wiki.qt.io/ModelEditor.
Note: Patch Set 3 cannot be compiled with qbs yet. I am fixing it right
now.
Hi Jochen,

Any plan for adding new features?

Random thoughts after using it for a real case:
- print support
- SVG export
- Support for "real" state machine (not activities)

Thanks a lot for this wonderful plugin!
Krys
Post by Jochen Becher
Regards, Jochen
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Cristian Adam
2015-10-06 05:22:51 UTC
Permalink
Post by Christian Gagneraud
- print support
- SVG export
- Support for "real" state machine (not activities)
Thanks a lot for this wonderful plugin!
Krys
The first two could be delegated to another tool. One could export to
PlantUML <https://en.wikipedia.org/wiki/PlantUML>,
and from there export to SVG etc.

Cheers,
Cristian.
Jochen Becher
2015-10-06 16:39:14 UTC
Permalink
Hi

Instead of implementing an exporter to PlantUML (which in fact would
lead to complete different diagram layout) it is much easier to
implement print support, SVG export and other exporters directly.

I already implemented a small tool which loads a model and exports
diagrams as png, svg or PDF files. Its not released yet but I will do in
future. And I will add functions to export into these formats from
ModelEditor plugin. Printing is also not a big deal.

Today you can print by pressing "Ctrl-C" on a diagram when nothing is
selected on the diagram. This will copy the whole diagram into the
clipboard using 300dpi. Paste it into any program which is able to print
images.

The real state machine is already planned (see Wiki page). Currently the
possibility of having numbered relations is still missing. I want to
implement customizable relations first. After that state machines should
not be difficult.

Sequence diagrams are a different story. Currently I only support canvas
diagrams where everything is layouted by coordinates. Sequence diagrams
need a dynamic layout engine which is much more complex.

Regards, Jochen
Post by Christian Gagneraud
- print support
- SVG export
- Support for "real" state machine (not activities)
Thanks a lot for this wonderful plugin!
Krys
The first two could be delegated to another tool. One could export to
PlantUML,
and from there export to SVG etc.
Cheers,
Cristian.
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Christian Gagneraud
2015-10-07 01:40:59 UTC
Permalink
Post by Jochen Becher
Hi
[...]
Post by Jochen Becher
Today you can print by pressing "Ctrl-C" on a diagram when nothing is
selected on the diagram. This will copy the whole diagram into the
clipboard using 300dpi. Paste it into any program which is able to print
images.
I wasn't aware of this, thanks for the tip. This will make my life
easier as so far i used the desktop snapshot approach...
Post by Jochen Becher
The real state machine is already planned (see Wiki page). Currently the
possibility of having numbered relations is still missing. I want to
May I ask what do you mean by "numbered" relations?

Another missing feature is the ability to add self-relation in class
diagrams (like the parent property of the QObject class)
Post by Jochen Becher
implement customizable relations first. After that state machines should
not be difficult.
For state diagram, it would be very nice to have something that follows
the specificities of the Qt State machine framework and can export to
SCXML. Support for code generation could be added later then.

https://blog.qt.io/blog/category/scxml/
http://security.hsr.ch/mse/projects/2011_Code_Generator_for_UML_State_Machines.pdf
Post by Jochen Becher
Sequence diagrams are a different story. Currently I only support canvas
diagrams where everything is layouted by coordinates. Sequence diagrams
need a dynamic layout engine which is much more complex.
Really? You could maybe use a simpler approach where the user can place
lifeline freely on the canvas. A bit like "Gnomw Dia" does.

Chris
Post by Jochen Becher
Regards, Jochen
Post by Christian Gagneraud
- print support
- SVG export
- Support for "real" state machine (not activities)
Thanks a lot for this wonderful plugin!
Krys
The first two could be delegated to another tool. One could export to
PlantUML,
and from there export to SVG etc.
Cheers,
Cristian.
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Jochen Becher
2015-10-07 17:03:49 UTC
Permalink
Post by Christian Gagneraud
Post by Jochen Becher
The real state machine is already planned (see Wiki page). Currently the
possibility of having numbered relations is still missing. I want to
May I ask what do you mean by "numbered" relations?
Mixed it up. I want to implement auto-numbering for relations in
sequence diagrams not state charts.
Post by Christian Gagneraud
Another missing feature is the ability to add self-relation in class
diagrams (like the parent property of the QObject class)
One of the hidden features - I need to write some user documentation :)

Self-Relation is currently limited to associations between classes (I
should allow self-dependencies for activity diagrams but that will be
part of the customizable relations feature). Start a new assoziation,
press "Shift" to create a new intermediate-point while dragging the
assoziation. Create another intermediate-point and drop the assoziation
at the same class.

BTW, you can always add more points by Shift + Left-Click over a
relation and deleting a point by pressing Ctrl + Left-Click over a
point.

If you simply drag an assoziation and drop it over the same class you
will not get a self-assoziation intentionally.
Post by Christian Gagneraud
Post by Jochen Becher
implement customizable relations first. After that state machines should
not be difficult.
For state diagram, it would be very nice to have something that follows
the specificities of the Qt State machine framework and can export to
SCXML. Support for code generation could be added later then.
https://blog.qt.io/blog/category/scxml/
http://security.hsr.ch/mse/projects/2011_Code_Generator_for_UML_State_Machines.pdf
Please remember that this is an open source tool so you are welcome to
implement some features :)
Post by Christian Gagneraud
Post by Jochen Becher
Sequence diagrams are a different story. Currently I only support canvas
diagrams where everything is layouted by coordinates. Sequence diagrams
need a dynamic layout engine which is much more complex.
Really? You could maybe use a simpler approach where the user can place
lifeline freely on the canvas. A bit like "Gnomw Dia" does.
At least one need some good layout helpers to insert and remove
relations in sequence diagrams and move other relations up and down as
needed.

I will start implementing life-lines for canvas diagrams which also help
on activity diagrams.

Regards, Jochen
Christian Gagneraud
2015-10-08 00:41:08 UTC
Permalink
Post by Jochen Becher
Hello,
I pushed change "I857be0652a852cc69a9729f64e67134fe630af00" to gerrit.
It contains a new model editor plugin I wrote. If you are interested how
it looks like please visit https://wiki.qt.io/ModelEditor.
Hi Jochen,

Is your "modeleditor.qmodel" file (as shown on the wiki page) available
for download somewhere? I couldn't find it in QtC source code.
I think it would be nice if it was available for everyone to see (maybe
as an attachment to the wiki page), as you're the author of the tool,
you might be as well the best user to show off the capabilities of this
tool! ;)

Best regards,
Chris
Post by Jochen Becher
Note: Patch Set 3 cannot be compiled with qbs yet. I am fixing it right
now.
Regards, Jochen
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Loading...