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

QML dynamic status bar #3

Open
juliandoerner opened this issue May 5, 2015 · 7 comments
Open

QML dynamic status bar #3

juliandoerner opened this issue May 5, 2015 · 7 comments
Assignees
Milestone

Comments

@juliandoerner
Copy link

juliandoerner commented May 5, 2015

Reopening old Issue in relevant Repo
limetext/lime#486

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/13197753-qml-dynamic-status-bar?utm_campaign=plugin&utm_content=tracker%2F15718991&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F15718991&utm_medium=issues&utm_source=github).
@zoli
Copy link
Member

zoli commented Apr 22, 2016

  • Responding to view.set_status, view.get_status, view.erase_status
  • Responding to status_message
  • Showing tab size
  • Showing the display syntax
  • Showing the line and column

For view status we don't have any events or callbacks currently so it should be rendered in qml render loop or something like that.
For frontend status_message we can add a call in StatusMessage or like view status render it in a loop.
tab size and syntax are settings, we should add callback for them.
We should listen to OnSelectionModified event for line and column.

@zoli
Copy link
Member

zoli commented Apr 22, 2016

Ok now I added OnStatusChanged event and we should listen to that for rendering each view status messages. limetext/backend@24f823d

@zoli zoli added this to the v0.1 milestone Jul 27, 2016
@zoli zoli mentioned this issue Jul 27, 2016
Closed
14 tasks
@zoli zoli self-assigned this Jul 28, 2016
@zoli
Copy link
Member

zoli commented Jul 28, 2016

frontend status, syntax and tab size are implemented by 688d31c.

Will also add view status message and line col soon.

@ricochet1k
Copy link
Member

ricochet1k commented Aug 1, 2016

Added comments to 688d31c.

Also, as a general implementation note, "pushing" data through Call("func", data) is not the best idea, because when the qml frontend restarts all that pushed data is lost. A better solution would be to have the status messages as a public Field in the window struct and call the qmlChanged() function on it instead.

@zoli
Copy link
Member

zoli commented Aug 4, 2016

I don't understand why should qml restart?

@ricochet1k
Copy link
Member

Whenever you save a .qml file, there is code in the loop function that shuts down and restarts the frontend. It is extremely helpful when developing the .qml code.

zoli added a commit that referenced this issue Dec 21, 2017
@zoli
Copy link
Member

zoli commented Dec 22, 2017

Finishing this depends on limetext/backend#127.

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

No branches or pull requests

3 participants