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

First pass at singleton with active objects #90

Merged
merged 1 commit into from
Aug 12, 2018

Conversation

cryos
Copy link
Member

@cryos cryos commented Aug 11, 2018

No description provided.

Copy link
Member

@ghutchis ghutchis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good for the commit to have slightly more detail on what an active object is...

Uses new class from the Avogadro libraries to manage active objects.
There is more detail in the avogadrolibs repository, but this is a very
limited first use to track global active objects in a running
application. The use of a singleton with active render widgets, etc,
enables the plugins to have a minimal API, and use the singleton API if
they need to gain access to things such as the active render widget to
grab the frame buffer to generate an image, etc.

Signed-off-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>
@cryos
Copy link
Member Author

cryos commented Aug 12, 2018

I will be extending this out significantly, but wanted to test it in packages in a restricted use case. I added more detail to the commit message, it is a pattern I use in a number of big Qt C++ projects, and mirrors aspects of QCoreApplication/QApplication singletons.

@cryos cryos merged commit f9d9386 into OpenChemistry:master Aug 12, 2018
@cryos cryos deleted the active-objects branch August 12, 2018 16:30
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.

2 participants