-
-
Notifications
You must be signed in to change notification settings - Fork 69
feat: move display Godley table variable values as an attribute of Go… #662
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
Changes from all commits
6e7cf4d
552b985
bcb0789
2d94995
cbbd7b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -82,8 +82,13 @@ namespace minsky | |||||||||||||||||||||
| GodleyTableEditor editor{*this}; | ||||||||||||||||||||||
| /// for rendering the popup window | ||||||||||||||||||||||
| GodleyTableWindow popup{*this}; | ||||||||||||||||||||||
| void adjustPopupWidgets() {popup.adjustWidgets();} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /// whether to display values in this table | ||||||||||||||||||||||
| bool displayValues=false; | ||||||||||||||||||||||
| void toggleDisplayValues() {displayValues=!displayValues;} | ||||||||||||||||||||||
|
Comment on lines
+86
to
+88
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redraw the popup when this flag changes.
Suggested fix- void toggleDisplayValues() {displayValues=!displayValues;}
+ void toggleDisplayValues()
+ {
+ displayValues=!displayValues;
+ popup.requestRedraw();
+ }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Popups no longer use this code. I'll add a ticket to refactor this member away.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| void adjustPopupWidgets() {popup.adjustWidgets();} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| /// scale icon until it's height or width matches \a h or \a w depending on which is minimum | ||||||||||||||||||||||
| void scaleIcon(float w, float h); | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Popups no longer use this code, but rather HTML table rendering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should remove the no longer used popup member, but that is for a later refactor.