Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget for showing Tool code #52

Closed
spine-o-bot opened this issue Feb 3, 2021 · 2 comments
Closed

Widget for showing Tool code #52

spine-o-bot opened this issue Feb 3, 2021 · 2 comments
Assignees
Labels
Feature Possible new feature UI
Milestone

Comments

@spine-o-bot
Copy link

In GitLab by @PekkaSavolainen on May 4, 2018, 13:56

There needs to be a window that shows the code of a Tool (main script) when a Tool is selected. Maybe a QTextBrowser could do the job. Do not enable editing the code in Spine Toolbox yet (a separate issue is needed for this).

@manuelma

@spine-o-bot spine-o-bot added Feature Possible new feature UI labels Feb 3, 2021
@spine-o-bot spine-o-bot added this to the V0.6 milestone Feb 3, 2021
@spine-o-bot
Copy link
Author

In GitLab by @manuelma on May 21, 2018, 10:28

Somewhat related:
In Commit 638940a and 9b4c125 I add a QToolButton to the Tool's subwindow item. When pressed, it displays a pop-up menu with a few options regarding the selected Tool Template. These options are: 'Edit' (in internal widget), 'Open descriptor file' and 'Open main program file' (in external editor).
Is this enough? Maybe I'll add another option that says 'View main program code' and show the code in a QTextBrowser.
I'm thinking this is a great opportunity to implement custom syntax highlighting for the Spine Model (dicussion during last day in Helsinki)

@PekkaSavolainen
Copy link
Member

We now have a text editor in Tool spec editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Possible new feature UI
Projects
None yet
Development

No branches or pull requests

2 participants