Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Post Reply
sarlaa
Active Member
Posts: 47
Joined: Mon Aug 28, 2017 4:39 pm

Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Post by sarlaa » Tue Apr 10, 2018 3:24 pm

Hi,

I want to hide ViewList, Selection Filter, Clipboard Display from ToolBar.

For hiding BlockList I can do :

Code: Select all

var action = RGuiAction.getByScriptFile("scripts/Widgets/BlockList/BlockList.js");
action.setWidgetNames(["ViewMenu", "ViewToolsPanel", "WidgetsMatrixPanel"]);
But could you tell me how to hide ViewList, Selection Filter, Clipboard Display also from ToolBar (you can see the picture ToHideFromToolBar.PNG).

Thans in advance.
Attachments
ToHideFromToolBar.PNG
ToHideFromToolBar.PNG (1.7 KiB) Viewed 869 times

User avatar
andrew
Site Admin
Posts: 5644
Joined: Fri Mar 30, 2007 6:07 am

Re: Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Post by andrew » Tue Apr 10, 2018 3:51 pm

In the init function of one of your tools, you can do:

Code: Select all

RSettings.setValue("BlockList/VisibleInToolBar", false);
RSettings.setValue("ViewList/VisibleInToolBar", false);
RSettings.setValue("SelectionFilter/VisibleInToolBar", false);
RSettings.setValue("ClipboardDisplay/VisibleInToolBar", false);

sarlaa
Active Member
Posts: 47
Joined: Mon Aug 28, 2017 4:39 pm

Re: Hide ViewList, Selection Filter, Clipboard Display from ToolBar

Post by sarlaa » Tue Apr 10, 2018 4:00 pm

It works. Thanks !

Post Reply

Return to “QCAD Developers and Contributors”