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

Tweak UI design, refactor UI control logic, cleanup and reorganize code #261

Merged
merged 9 commits into from
Jul 20, 2018

Conversation

rdumusc
Copy link

@rdumusc rdumusc commented Jul 17, 2018

No description provided.

@rdumusc rdumusc requested a review from tribal-tec July 17, 2018 15:32
sourceComponent: buttonDelegate
}
// Can't be made a top-level item; this results in unexplained incorrect
// centering of buttons inside the Canevas.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo 'Canevas'

Copy link
Author

Choose a reason for hiding this comment

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

done

/** The different types of interaction. */
enum class Interaction
{
AUTO, // interaction is enabled automatically (default)
Copy link
Contributor

@tribal-tec tribal-tec Jul 20, 2018

Choose a reason for hiding this comment

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

lower-case values? auto does not work then probably. what does auto interaction mean? depending on content type?

Copy link
Author

Choose a reason for hiding this comment

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

will do, yes that's another thing which could be improved, AUTO is not clear. It serves only for zoomable contents where interaction mode can be changed by tap-and-hold to modify zoom.

@@ -120,7 +124,7 @@ class PixelStreamContent : public MultiChannelContent
const unsigned int version)
{
serialize_members_xml(ar, version);
_createActions(); // actions are not saved to xml file
_createKeyboard(); // actions are not saved to xml file
Copy link
Contributor

Choose a reason for hiding this comment

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

update comment?

Copy link
Author

Choose a reason for hiding this comment

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

in fact this had to be removed, thanks!

@@ -39,6 +39,11 @@

#include "ScreenLock.h"

ScreenLockPtr ScreenLock::create()
{
return ScreenLockPtr(new ScreenLock);
Copy link
Contributor

Choose a reason for hiding this comment

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

make_unique/shared?

Copy link
Author

Choose a reason for hiding this comment

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

doesn't work in this case because the constructor is private and make_unique/shared complains about that

_initMPIConnection();

_renderController->updateScene(Scene::create(config.surfaces));
_renderController.reset(new RenderController(*_config, *_provider,
Copy link
Contributor

Choose a reason for hiding this comment

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

make_shared/unique

Copy link
Author

Choose a reason for hiding this comment

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

done

@rdumusc rdumusc merged commit 7be14ab into BlueBrain:master Jul 20, 2018
@rdumusc rdumusc deleted the contextmenu2 branch July 20, 2018 13:47
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.

None yet

2 participants