[Gui] Add new Selection Filter functionality (#2)
* [Gui] Add Selection Filters * [Gui] Add Selection Filters to Toolbar * [Gui] Add Selection Filter Icons * [Gui] Add 4 new Selection filter Icon Files * [Gui] Update Context Menu * [Gui] Add default Selection Filter icon * [Gui] Update resource.qrc with new icon * [Gui] Add SelectFilter dropdown toolbar * [Gui] Update Content Menu and Toolbar * [Gui] Icon changed to Plain SVG * [Gui] edge-selection icon as Plain SVG * [Gui] vertex-selection icon as Plain SVG * [Gui] selection-filter.svg replace metadata
This commit is contained in:
@@ -584,8 +584,10 @@ void StdWorkbench::setupContextMenu(const char* recipient, MenuItem* item) const
|
||||
measure->setCommand("Measure");
|
||||
*measure << "View_Measure_Toggle_All" << "View_Measure_Clear_All";
|
||||
|
||||
*item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle" << StdViews << measure
|
||||
<< "Separator" << "Std_ViewDockUndockFullscreen";
|
||||
|
||||
*item << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle"
|
||||
<< StdViews << measure << "Std_SelectFilter" << "Separator"
|
||||
<< "Std_ViewDockUndockFullscreen";
|
||||
|
||||
if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) > 0) {
|
||||
*item << "Separator" << "Std_SetAppearance" << "Std_ToggleVisibility"
|
||||
@@ -792,7 +794,7 @@ ToolBarItem* StdWorkbench::setupToolBars() const
|
||||
<< "Separator" << "Std_SelBack" << "Std_SelForward" << "Std_LinkSelectActions"
|
||||
<< "Separator" << "Std_TreeViewActions" << "Std_ViewIsometric" << "Separator" << "Std_ViewFront"
|
||||
<< "Std_ViewTop" << "Std_ViewRight" << "Separator" << "Std_ViewRear" << "Std_ViewBottom"
|
||||
<< "Std_ViewLeft" << "Separator" << "Std_MeasureDistance" ;
|
||||
<< "Std_ViewLeft" << "Std_SelectFilter" << "Separator" << "Std_MeasureDistance" ;
|
||||
|
||||
// Structure
|
||||
auto structure = new ToolBarItem( root );
|
||||
@@ -816,7 +818,8 @@ ToolBarItem* StdWorkbench::setupCommandBars() const
|
||||
view->setCommand("Standard views");
|
||||
*view << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_ViewIsometric" << "Separator"
|
||||
<< "Std_ViewFront" << "Std_ViewRight" << "Std_ViewTop" << "Separator"
|
||||
<< "Std_ViewRear" << "Std_ViewLeft" << "Std_ViewBottom";
|
||||
<< "Std_ViewRear" << "Std_ViewLeft" << "Std_ViewBottom" << "Std_SelectFilter";
|
||||
|
||||
// Special Ops
|
||||
auto macro = new ToolBarItem( root );
|
||||
macro->setCommand("Special Ops");
|
||||
|
||||
Reference in New Issue
Block a user