Snapshot Region

Snapshot Region - Extends SMath Studio with a region that makes canvas' snapshots - Сообщения

#1 Опубликовано: 18.09.2013 11:25:57
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Hi all,

Here there is a plugin to make single or multiple snapshots inside SMath Studio's worksheets without using external tools.

FEATURES:
- sets of snapshots (the set name is taken from the placeholder);
- progressive numbering for each set;
- save by context menu: selected frame / any frame of the set of the selected frame / any frame on the worksheet;
- each frame can keep or skip canvas' tile;
- pasting a text into the placeholder this will become a SMath string variable;
- hidden in SMath Viewer (by design).

Plugin languages: English Deutsch Italiano Español

PLEASE REPORT IN THIS TOPIC ANY ISSUE.


  • requirements: SMath Studio 0.96.5146 Nigthly build or later, .Net Framework 2.0;
  • installation: download the plugin from the gallery;
  • documentation: download and unzip the attached archive;
  • sources: if you want to see the plugin sources look in the SVN repository;
  • languages: if you want to have a new UI language look into the documentation's Language folder

SnapshotRegion_docs.7z (26 КиБ) скачан 192 раз(а).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 пользователям понравился этот пост
ioan92 18.09.2013 12:59:00, Martin Kraska 18.09.2013 13:45:00, Radovan Omorjan 18.09.2013 13:51:00, Вячеслав Мезенцев 19.09.2013 01:25:00
#2 Опубликовано: 18.09.2013 13:53:39
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Thanks for your efforts , but I am not quite sure what this plugin is supposed to do? I can put it on the page, make a set, save it as PNG snapshots.

On the other hand, I can resize it horizontally, but not vertically.

Regards,
radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 18.09.2013 14:05:19
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Hi omorr, thank you for your feedback

The plugin is intended for batch screenshots (I think could be useful for relations, handbooks, guides, websites...) =)

You don't see resize's placeholders or you really can't resize the region? For the first issue I've planned something without loosing the "dark look", if there are bugs let me know...


best regards,

Davide
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Опубликовано: 18.09.2013 14:51:34
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

As already said in PM: Sometimes dreams come true.
- I confirm the resizing problem.
- Area regions must be expanded, otherwise the snapshot contents is shifted by the amount of hidden vertical space.
- Would be fine if the choice of saving location could be kept or if the default would be the location of the sm-file.
- Would also be fine to launch the complete snapshot production upon save of the file.

I have asked in the past for such a feature. This provides an automated way for update of images used in any type of documents. You may link them to word or ni latex files. The idea was to automatically update all images of the pdf handbook without touching them, e.g. after new SMath releases or after bugfixes of plugins.

I am using the latex front end LyX for writing handbooks and the like. This program can embed external material, by describing what type of source generates the image, what program does open it and what image format it produces.
Thus you may click a snapshot in your editor, SMath is launched, youn can edit the contents, save and exit, and have the image updated. That can be as convenient as Mathcad used to be in former times.


snapshot.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Опубликовано: 18.09.2013 15:18:20
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Thank you Martin

Wrote

- Area regions must be expanded, otherwise the snapshot contents is shifted by the amount of hidden vertical space.


I don't understand or I can't replicate the issue (see the attchment)

Wrote

- Would be fine if the choice of saving location could be kept or if the default would be the location of the sm-file.


I'll do, it's quite easy

Wrote

- Would also be fine to launch the complete snapshot production upon save of the file.


I'll think to this, maybe I'll add a variable to enable/disable this feature, like in some plugin made by uni..


best regards,

Davide
2013-09-18 21_09_13-SMath Studio Desktop - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Опубликовано: 18.09.2013 15:50:25
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

In the example, the snippet region is collapsed, the contents of the exported file is from somewhere below the snapshot region.
example support reactions linear system.sm (34 КиБ) скачан 107 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#7 Опубликовано: 18.09.2013 16:19:08
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Davide, look at the first picture please - there is only one placeholder at the right side for resizing. I con not find the placeholder on tho bottom or at the right corner.

Martin, look at the second picture please. Where is this comming from . I just opened the file you attached to the previous post and this message box appeared. Is there any Maxima plugin in the development and not available at the moment?

Regards,
Radovan
maximaplugin.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#8 Опубликовано: 18.09.2013 17:16:15
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote


Is there any Maxima plugin in the development and not available at the moment?


Sorry for the confusion. LinSolve(2) is from Maxima, I forgot to switch that back to the snippet version LinSolve(1). Just remove the second argument, then the file should run.

The plugin is going to go public soon. One of our students is doing a great job with the coding work, I am doing the specification/docs and the testing. We just want to have the user interface (functions) to settle a bit. You find some doc preview in the SVN activebook. You can use the waiting time to install Maxima (plugin developed and tested under win only).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#9 Опубликовано: 18.09.2013 17:32:18
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

Davide, look at the first picture please - there is only one placeholder at the right side for resizing. I con not find the placeholder on tho bottom or at the right corner.


No, there are 3 placeholders, you can't see them because the background is close to black. From my smartphone and from my notebook (with sloping LCD) I can see both the bottom placeholders... don't worry, I'll make something - BTW if you move the pointer over the bottom-left corner or over the half width of the bottom edge the mouse cursor will change.

Wrote

In the example, the snippet region is collapsed, the contents of the exported file is from somewhere below the snapshot region.

Thank you, that's my lack


Thank you both
resizingsnapshot.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Опубликовано: 18.09.2013 18:33:34
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

UPDATED

- fixed vertical shift when the frame is below collapsed regions;
- change of background behind resize's placeholders (when the region is focused);
- default save folders on dialogs is desktop for new documents, otherwise worksheet's path;
- added Italian and German translations.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#11 Опубликовано: 19.09.2013 06:36:34
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Wrote

Wrote


Is there any Maxima plugin in the development and not available at the moment?


Sorry for the confusion. LinSolve(2) is from Maxima, I forgot to switch that back to the snippet version LinSolve(1). Just remove the second argument, then the file should run.

The plugin is going to go public soon. One of our students is doing a great job with the coding work, I am doing the specification/docs and the testing. We just want to have the user interface (functions) to settle a bit. You find some doc preview in the SVN activebook. You can use the waiting time to install Maxima (plugin developed and tested under win only).



I am very pleased to know this and also looking forward to the many times mentioned possibility of Maxima plugin for SMath.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#12 Опубликовано: 19.09.2013 08:19:25
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Davide,

I suppose you figured out how to use Greenshot and to see the resize arrow because you deleted the question in your previous post (You are right, I am using it as well). Just in the Preferences set to see the mouse and increase the the time delay in order to have enough time to change the mouse appereance.

Regards,
Radovan
screenshotplugin.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 19.09.2013 08:36:00
#13 Опубликовано: 19.09.2013 08:39:23
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

Just in the Preferences set to see the mouse and increase the the time delay in order to have enough time to change the mouse appereance


Thank you Radovan, that's exactly what I need

My first rude solution was to press "more resolutely " the stamp key, I've missed that setting
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Опубликовано: 19.09.2013 18:21:00
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

UPDATED

- changed top and bottom ribbon height (better look on tag wrap and region resize);
- small fixes.

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Опубликовано: 20.09.2013 08:50:29
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

UPDATED

- can export the canvas tile (off by default).

* if you need to update sheets where there are Snaphot Regions, add inside the worksheet code the attribute

tile="False"

2013-09-20 14_49_01-C__Users_Davide_Desktop_test.sm - Notepad++.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Опубликовано: 22.09.2013 15:24:44
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Currently, the snapshot region is fine, if you have dedicated SMath documents for generating these snapshots. However, if you want to use these documents as parts of the help system (e.g. Activebook) then the current region formatting is a little distracting. Would it be possible to hav an (optional) less dominantly structuring design, lets say like proposed in this post?

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#17 Опубликовано: 22.09.2013 17:18:14
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

AFAIK a real frame (with empty body) is not possible with custom regions, but I may be wrong;
To let the region easily editable I can add a control to collapse the region in a smaller one; BTW this don't let you know what's the exported region, so if something change requiring more width or height you need to expand again the region before resizing it...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#18 Опубликовано: 23.09.2013 19:57:18
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

UPDATED

- compact mode;
- fixed frame position when descriptions are shown.
[edit & updated] - forced transparent background on resizing.


* if you need to update sheets where there are Snaphot Regions, add inside the worksheet code the attribute

compact="False"
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Martin Kraska 25.09.2013 12:32:00
#19 Опубликовано: 25.09.2013 12:34:12
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

I'd propose to expand and collapse the region just by clicking on it. So far, such mouse action would not do anything, thus it would not harm but avoid using the context menu.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#20 Опубликовано: 25.09.2013 13:14:13
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

I can do it, but are you sure? if you want just to resize the region and you go outside the placeholders, the region will resize (just to ask, I agree with the "less things as possible" approach)...

[edit] I'm thinking about a visual change on mouse over...
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений