Move App::Part to a separate global toolbar
This commit is contained in:
@@ -649,6 +649,7 @@ void Application::createStandardOperations()
|
||||
Gui::CreateMacroCommands();
|
||||
Gui::CreateViewStdCommands();
|
||||
Gui::CreateWindowStdCommands();
|
||||
Gui::CreateStructureCommands();
|
||||
Gui::CreateTestCommands();
|
||||
}
|
||||
|
||||
|
||||
@@ -397,6 +397,7 @@ SET(Command_CPP_SRCS
|
||||
CommandWindow.cpp
|
||||
CommandTest.cpp
|
||||
CommandView.cpp
|
||||
CommandStructure.cpp
|
||||
)
|
||||
SET(Command_SRCS
|
||||
${Command_CPP_SRCS}
|
||||
|
||||
@@ -61,6 +61,7 @@ void CreateFeatCommands(void);
|
||||
void CreateMacroCommands(void);
|
||||
void CreateViewStdCommands(void);
|
||||
void CreateWindowStdCommands(void);
|
||||
void CreateStructureCommands(void);
|
||||
void CreateTestCommands(void);
|
||||
|
||||
|
||||
|
||||
@@ -622,6 +622,12 @@ ToolBarItem* StdWorkbench::setupToolBars() const
|
||||
*view << "Std_ViewFitAll" << "Std_ViewFitSelection" << "Std_DrawStyle" << "Separator" << "Std_ViewAxo" << "Separator" << "Std_ViewFront"
|
||||
<< "Std_ViewTop" << "Std_ViewRight" << "Separator" << "Std_ViewRear" << "Std_ViewBottom"
|
||||
<< "Std_ViewLeft" << "Separator" << "Std_MeasureDistance" ;
|
||||
|
||||
// Structure
|
||||
ToolBarItem* structure = new ToolBarItem( root );
|
||||
structure->setCommand("Structure");
|
||||
*structure << "Std_Part";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user