UI to select different tools for right and left click

I’m working a specialized paint web application (for designing Minecraft structures). I would like for the user to be able to assign different tools to the left and right mouse buttons. (I don’t intend to override the default right-click behavior other than this.)

I have a traditional tool palette. I’ve been experimenting with a way to indicate that the user has selected one tool for the left mouse button and another tool for the right mouse button:

enter image description here

The left and right tool indicators are differentiated in three ways:

  • Position (left vs right)
  • A tiny L or R.
  • Contrasting (though meaningless) colors.

In order to select a tool, the user clicks on the tool icon with either the left or right mouse button, and that button will be bound to that tool.

The right-click tool functionality is (very) convenient, but not essential. Users who can’t or don’t want to right-click can use the left button exclusively. In addition, when the cursor is over the canvas, then the appropriate cursor icon for the left tool will be displayed unless the user is actively using the right tool.

Does this UI make sense? I’m not nearly at the stage of user testing yet, but I wanted a sanity check because I don’t think I’ve seen this pattern before. An alternative would be to have a separate tool palette for right clicking, but I’m concerned that this could be confusing and inconvenient.

Right thread implementation in frequently invoked method

I am fresh in c++

But actually what I am interested in :

I have such method

void VideoRender::updateData(const std::string &i_obj_path, const std::string &i_pngPath, const uint i_subIndex) {     std::shared_ptr<FrameManager> container = std::make_shared<FrameManager>();      std::thread th1(&VideoRender::thread_task1, this, i_obj_path.c_str(), i_subIndex, container);     std::thread th2(&VideoRender::thread_task2, this, i_pngPath, container);      th1.join();     th2.join();      fifo.enqueue(container); } 

As you can see, this method is executing 2 task in 2 different threads and then join them. I invoke this method 20 times per second.

What bothers me: that 20 times per second I create 2 threads…

Question is: if this implementation in c++ looks ok? Because I think I should to use something like ThreadPool or some Handler that will run in another thread and I will push the task‘s there…

If am I right?

Right thread implementation in frequently invoked method

I am fresh in c++

But actually what I am interested in :

I have such method

void VideoRender::updateData(const std::string &i_obj_path, const std::string &i_pngPath, const uint i_subIndex) {     std::shared_ptr<FrameManager> container = std::make_shared<FrameManager>();      std::thread th1(&VideoRender::thread_task1, this, i_obj_path.c_str(), i_subIndex, container);     std::thread th2(&VideoRender::thread_task2, this, i_pngPath, container);      th1.join();     th2.join();      fifo.enqueue(container); } 

As you can see, this method is executing 2 task in 2 different threads and then join them. I invoke this method 20 times per second.

What bothers me: that 20 times per second I create 2 threads…

Question is: if this implementation in c++ looks ok? Because I think I should to use something like ThreadPool or some Handler that will run in another thread and I will push the task‘s there…

If am I right?

Getting error in RendererFactory.php right after the installation

Right after succesful installation I can´t open Magento admin because I´m getting: C:\xampp\htdocs\www\vendor\magento\module-developer\Model\View\Page\Config\RendererFactory.php on line 70

(From debug.log)

Same error appears when I try to load homepage.

Line 69 & 70: return $ this->objectManager->create( $ this->rendererTypes[$ renderer],

Thanks for advice.

There are many of the right methods

There are many of the right methods that permit you to in getting best body and to get length 0 figures like a movie star. You need to attempt out these methods that can in reality assist you in getting exceptional movie star smile that you constantly dreams of.

Pram is a piece of writing author, marketer, freelancer and complete time blogger who write for numerous niches. Please evaluation his site and phone him in case you are interested by getting the item advertising and marketing…

There are many of the right methods

Ubuntu 18.04.02, default (Gnome) spin, live session: am I right in thinking one can’t change theme, fonts?

I’m trying out the default (Gnome) spin of Ubuntu and I’m liking it a lot so far, except that it seems I can’t change the theme or the fonts. Now, Gnome lockdown hasn’t gone so far that I will not be able to change those things if I actually install Ubuntu – right?