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

Add combo_box prompt #163 #164

Merged
merged 2 commits into from
Jun 19, 2015
Merged

Add combo_box prompt #163 #164

merged 2 commits into from
Jun 19, 2015

Conversation

jmthomas
Copy link
Contributor

No description provided.

@jmthomas
Copy link
Contributor Author

The way we implemented message_box was with a Qt::MessageBox class. It only supports horizontal buttons so adding vertical buttons would require constructing an entirely different box with a vertical layout. That's not so bad but what should the API look like? The current api is message_box(titile, *buttons). I don't want to break the existing API and the splat is eating all the parameters. I could just add a new method vertical_message_box(title, *buttons). Thoughts?

@ghost
Copy link

ghost commented Jun 18, 2015

new method vertical_message_box

@jmthomas
Copy link
Contributor Author

I spent some time making them look similar to the Qt::MessageBox with white message over a standard grey background. Then I did some refactoring to helper methods which I renamed to underscores so they won't be accidentally used. As I was doing this I wondered about adding scroll to hold many buttons or supporting a grid layout but I figure the combo_box can handle those use cases.

@ghost
Copy link

ghost commented Jun 19, 2015

Looks good. 👍

jmthomas added a commit that referenced this pull request Jun 19, 2015
@jmthomas jmthomas merged commit e00d19b into master Jun 19, 2015
@jmthomas jmthomas deleted the add_combo_box_prompt branch June 19, 2015 16:59
ghost pushed a commit that referenced this pull request Aug 12, 2021
Merge in COSMOSEE/base from fortify_ruby to master

* commit '018cd1fc4ce7673f3f7a86414b4788acb78e6e5c':
  Fix Ruby fortify warnings
  Fix remaining platform issues
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

Successfully merging this pull request may close these issues.

1 participant