Gui: convert indentations to spaces
This commit is contained in:
@@ -17,53 +17,53 @@
|
||||
Class for creating a Coin3D representation of a coordinate system.</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="getElementPicked" Const="true">
|
||||
<Documentation>
|
||||
<Documentation>
|
||||
<UserDocu>getElementPicked(pickedPoint) -> str\n
|
||||
Returns the picked element name.\n
|
||||
pickedPoint : coin.SoPickedPoint</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getDetailPath" Const="true">
|
||||
<Documentation>
|
||||
<Documentation>
|
||||
<UserDocu>getDetailPath(subname, path) -> coin.SoDetail or None\n
|
||||
Returns Coin detail of a subelement.
|
||||
Note: Not fully implemented. Currently only returns None.\n
|
||||
subname : str\n String reference to the subelement.
|
||||
path: coin.SoPath\n Output Coin path leading to the returned element detail.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="AxisLength">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="AxisLength">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set the axis length.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="AxisLength" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="LineWidth">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="AxisLength" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="LineWidth">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set the axis line width for rendering.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="LineWidth" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="PointSize">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="LineWidth" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="PointSize">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set the origin point size for rendering.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="PointSize" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="Scale">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="PointSize" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="Scale">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set auto scaling factor, 0 to disable.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Scale" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="Plane">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="Scale" Type="Float" />
|
||||
</Attribute>
|
||||
<Attribute Name="Plane">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set axis plane size and distance to axis line.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Plane" Type="Tuple" />
|
||||
</Attribute>
|
||||
<Attribute Name="Labels">
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="Plane" Type="Tuple" />
|
||||
</Attribute>
|
||||
<Attribute Name="Labels">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set axis component names as a dictionary.
|
||||
Available keys are:
|
||||
'O': origin
|
||||
@@ -73,14 +73,14 @@ Available keys are:
|
||||
'XY': xy plane
|
||||
'XZ': xz plane
|
||||
'YZ': yz plane</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Labels" Type="Dict" />
|
||||
</Attribute>
|
||||
<Attribute Name="Node" ReadOnly='true'>
|
||||
<Documentation>
|
||||
</Documentation>
|
||||
<Parameter Name="Labels" Type="Dict" />
|
||||
</Attribute>
|
||||
<Attribute Name="Node" ReadOnly='true'>
|
||||
<Documentation>
|
||||
<UserDocu>Get the Coin3D node.</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Node" Type="Object" />
|
||||
</Attribute>
|
||||
</Documentation>
|
||||
<Parameter Name="Node" Type="Object" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -107,7 +107,7 @@ bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object,
|
||||
|
||||
void Gui::GUIApplicationNativeEventAware::postMotionEvent(std::vector<int> motionDataArray)
|
||||
{
|
||||
auto currentWidget(focusWidget());
|
||||
auto currentWidget(focusWidget());
|
||||
if (!currentWidget) {
|
||||
return;
|
||||
}
|
||||
@@ -121,7 +121,7 @@ void Gui::GUIApplicationNativeEventAware::postMotionEvent(std::vector<int> motio
|
||||
|
||||
void Gui::GUIApplicationNativeEventAware::postButtonEvent(int buttonNumber, int buttonPress)
|
||||
{
|
||||
auto currentWidget(focusWidget());
|
||||
auto currentWidget(focusWidget());
|
||||
if (!currentWidget) {
|
||||
return;
|
||||
}
|
||||
@@ -130,11 +130,11 @@ void Gui::GUIApplicationNativeEventAware::postButtonEvent(int buttonNumber, int
|
||||
buttonEvent->setButtonNumber(buttonNumber);
|
||||
if (buttonPress)
|
||||
{
|
||||
buttonEvent->setButtonStatus(Spaceball::BUTTON_PRESSED);
|
||||
buttonEvent->setButtonStatus(Spaceball::BUTTON_PRESSED);
|
||||
}
|
||||
else
|
||||
{
|
||||
buttonEvent->setButtonStatus(Spaceball::BUTTON_RELEASED);
|
||||
buttonEvent->setButtonStatus(Spaceball::BUTTON_RELEASED);
|
||||
}
|
||||
this->postEvent(currentWidget, buttonEvent);
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ Node_Block *TopBlock=nullptr;
|
||||
|
||||
// error func
|
||||
void yyerror(char *errorinfo)
|
||||
{ ActFilter->addError(errorinfo); }
|
||||
{ ActFilter->addError(errorinfo); }
|
||||
|
||||
|
||||
// for VC9 (isatty and fileno not supported anymore)
|
||||
|
||||
@@ -256,39 +256,39 @@ Separator {
|
||||
}
|
||||
|
||||
<?xml version="1.0"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<linearGradient id="red" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="35" y2="80">
|
||||
<stop offset="0" stop-color="rgb(255,0,0)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(255,0,0)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="blue" gradientUnits="userSpaceOnUse" x1="100" y1="50" x2="0" y2="50">
|
||||
<stop offset="0" stop-color="rgb(0,0,255)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(0,0,255)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="yellow" gradientUnits="userSpaceOnUse" x1="0" y1="100" x2="40" y2="20">
|
||||
<stop offset="0" stop-color="rgb(255,255,0)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(255,255,0)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<path id="triangle1" d="M0 0 L100 50 L0 100 z"/>
|
||||
<defs>
|
||||
<linearGradient id="red" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="35" y2="80">
|
||||
<stop offset="0" stop-color="rgb(255,0,0)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(255,0,0)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="blue" gradientUnits="userSpaceOnUse" x1="100" y1="50" x2="0" y2="50">
|
||||
<stop offset="0" stop-color="rgb(0,0,255)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(0,0,255)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="yellow" gradientUnits="userSpaceOnUse" x1="0" y1="100" x2="40" y2="20">
|
||||
<stop offset="0" stop-color="rgb(255,255,0)" stop-opacity="1"/>
|
||||
<stop offset="1" stop-color="rgb(255,255,0)" stop-opacity="0"/>
|
||||
</linearGradient>
|
||||
<path id="triangle1" d="M0 0 L100 50 L0 100 z"/>
|
||||
<filter id="colorAdd">
|
||||
<feComposite in="SourceGraphic" in2="BackgroundImage" operator="arithmetic" k2="1" k3="1"/>
|
||||
<feComposite in="SourceGraphic" in2="BackgroundImage" operator="arithmetic" k2="1" k3="1"/>
|
||||
</filter>
|
||||
<filter id="Matrix1">
|
||||
<feColorMatrix type="matrix" values="
|
||||
1 0 0 0 0
|
||||
0 1 0 0 0
|
||||
0 0 1 0 0
|
||||
1 1 1 1 0
|
||||
0 0 0 0 1
|
||||
"/>
|
||||
<feColorMatrix type="matrix" values="
|
||||
1 0 0 0 0
|
||||
0 1 0 0 0
|
||||
0 0 1 0 0
|
||||
1 1 1 1 0
|
||||
0 0 0 0 1
|
||||
"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<g filter="url(#Matrix1)">
|
||||
<use xlink:href="#triangle1" fill="url(#blue)"/>
|
||||
<use xlink:href="#triangle1" fill="url(#yellow)" filter="url(#colorAdd)"/>
|
||||
<use xlink:href="#triangle1" fill="url(#red)" filter="url(#colorAdd)"/>
|
||||
<use xlink:href="#triangle1" fill="url(#blue)"/>
|
||||
<use xlink:href="#triangle1" fill="url(#yellow)" filter="url(#colorAdd)"/>
|
||||
<use xlink:href="#triangle1" fill="url(#red)" filter="url(#colorAdd)"/>
|
||||
</g>
|
||||
</svg>
|
||||
*/
|
||||
|
||||
@@ -88,7 +88,7 @@ RotTransDragger::RotTransDragger()
|
||||
// $(SO_DRAGGER_DIR)/rotTransDragger.iv"
|
||||
if (SO_KIT_IS_FIRST_INSTANCE())
|
||||
readDefaultParts("SoNavigationDraggerLayout.iv",
|
||||
NavigationDraggerLayout,
|
||||
NavigationDraggerLayout,
|
||||
strlen(NavigationDraggerLayout));
|
||||
|
||||
// Fields that always show current state of the dragger.
|
||||
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
|
||||
/// returns for Close and Help button
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ static View3DInventorRiftViewer *window=0;
|
||||
|
||||
void oculusSetTestScene(View3DInventorRiftViewer *window)
|
||||
{
|
||||
assert(window);
|
||||
assert(window);
|
||||
// An example scene.
|
||||
static const char * inlineSceneGraph[] = {
|
||||
"#Inventor V2.1 ascii\n",
|
||||
@@ -185,17 +185,17 @@ void oculusSetTestScene(View3DInventorRiftViewer *window)
|
||||
void oculusStop()
|
||||
{
|
||||
//SoDB::finish();
|
||||
if(window){
|
||||
delete window;
|
||||
window = 0;
|
||||
if(window){
|
||||
delete window;
|
||||
window = 0;
|
||||
ovr_Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool oculusUp(void)
|
||||
{
|
||||
return window!=0;
|
||||
return window!=0;
|
||||
}
|
||||
|
||||
View3DInventorRiftViewer* oculusStart(void)
|
||||
@@ -211,14 +211,14 @@ View3DInventorRiftViewer* oculusStart(void)
|
||||
qDebug() << "Could not initialize Oculus SDK.";
|
||||
return 0;
|
||||
}
|
||||
if(window)
|
||||
return window;
|
||||
if(window)
|
||||
return window;
|
||||
|
||||
window = new View3DInventorRiftViewer;
|
||||
window->show();
|
||||
|
||||
|
||||
return window;
|
||||
return window;
|
||||
//return app.exec();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderPy"
|
||||
Name="ViewProviderDocumentObjectPy"
|
||||
Twin="ViewProviderDocumentObject"
|
||||
TwinPointer="ViewProviderDocumentObject"
|
||||
Include="Gui/ViewProviderDocumentObject.h"
|
||||
Namespace="Gui"
|
||||
FatherInclude="Gui/ViewProviderPy.h"
|
||||
FatherNamespace="Gui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
|
||||
<UserDocu>This is the ViewProvider base class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="update">
|
||||
<Documentation>
|
||||
<UserDocu>Update the view representation of the object</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Object">
|
||||
<Documentation>
|
||||
<PythonExport
|
||||
Father="ViewProviderPy"
|
||||
Name="ViewProviderDocumentObjectPy"
|
||||
Twin="ViewProviderDocumentObject"
|
||||
TwinPointer="ViewProviderDocumentObject"
|
||||
Include="Gui/ViewProviderDocumentObject.h"
|
||||
Namespace="Gui"
|
||||
FatherInclude="Gui/ViewProviderPy.h"
|
||||
FatherNamespace="Gui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
|
||||
<UserDocu>This is the ViewProvider base class</UserDocu>
|
||||
</Documentation>
|
||||
<Methode Name="update">
|
||||
<Documentation>
|
||||
<UserDocu>Update the view representation of the object</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Object">
|
||||
<Documentation>
|
||||
<UserDocu>Set/Get the associated data object</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Object" Type="Object" />
|
||||
</Attribute>
|
||||
<Attribute Name="ForceUpdate">
|
||||
<Documentation>
|
||||
<UserDocu>Reference count to force update visual</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="ForceUpdate" Type="Boolean" />
|
||||
</Attribute>
|
||||
<Attribute Name="Document" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Return the document the view provider is part of</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Document" Type="Object" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
</Documentation>
|
||||
<Parameter Name="Object" Type="Object" />
|
||||
</Attribute>
|
||||
<Attribute Name="ForceUpdate">
|
||||
<Documentation>
|
||||
<UserDocu>Reference count to force update visual</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="ForceUpdate" Type="Boolean" />
|
||||
</Attribute>
|
||||
<Attribute Name="Document" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Return the document the view provider is part of</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Document" Type="Object" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderDocumentObjectPy"
|
||||
Name="ViewProviderLinkPy"
|
||||
Twin="ViewProviderLink"
|
||||
TwinPointer="ViewProviderLink"
|
||||
Include="Gui/ViewProviderLink.h"
|
||||
Namespace="Gui"
|
||||
FatherInclude="Gui/ViewProviderDocumentObjectPy.h"
|
||||
FatherNamespace="Gui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Zheng, Lei" EMail="realthunder.dev@gmail.com" />
|
||||
<UserDocu>This is the ViewProviderLink class</UserDocu>
|
||||
</Documentation>
|
||||
<PythonExport
|
||||
Father="ViewProviderDocumentObjectPy"
|
||||
Name="ViewProviderLinkPy"
|
||||
Twin="ViewProviderLink"
|
||||
TwinPointer="ViewProviderLink"
|
||||
Include="Gui/ViewProviderLink.h"
|
||||
Namespace="Gui"
|
||||
FatherInclude="Gui/ViewProviderDocumentObjectPy.h"
|
||||
FatherNamespace="Gui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="Zheng, Lei" EMail="realthunder.dev@gmail.com" />
|
||||
<UserDocu>This is the ViewProviderLink class</UserDocu>
|
||||
</Documentation>
|
||||
<Attribute Name="DraggingPlacement">
|
||||
<Documentation>
|
||||
<UserDocu>Get/set dragger placement during dragging</UserDocu>
|
||||
@@ -31,5 +31,5 @@
|
||||
</Documentation>
|
||||
<Parameter Name="LinkView" Type="Object" />
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
\brief The FreeCAD Graphical interface layer
|
||||
|
||||
This namespace includes the grafical interface of FreeCAD like:
|
||||
- The main window
|
||||
- 3D View
|
||||
- Tree
|
||||
- The main window
|
||||
- 3D View
|
||||
- Tree
|
||||
|
||||
and so on......
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user