Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 1, 2016
1 parent cb88269 commit 062aa9a
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 209 deletions.
Expand Up @@ -742,7 +742,6 @@ def okPressed(self):
if self.alg is not None:
self.close()


def cancelPressed(self):
self.alg = None
self.close()
Expand Up @@ -69,6 +69,7 @@ def unload(self):
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts"))
'''


class CreateScriptCollectionPluginAction(ToolboxAction):

def __init__(self):
Expand Down Expand Up @@ -99,4 +100,3 @@ def execute(self):
scriptFile = os.path.join(scriptsFolder, os.path.basename(script.descriptionFile))
with open(scriptFile, "w") as f:
f.write(script.script)

Expand Up @@ -50,7 +50,7 @@ def __init__(self):
CreateNewScriptAction.SCRIPT_PYTHON),
AddScriptFromFileAction(),
GetScriptsAction(),
CreateScriptCollectionPluginAction(),])
CreateScriptCollectionPluginAction(), ])
self.contextMenuActions = \
[EditScriptAction(EditScriptAction.SCRIPT_PYTHON),
DeleteScriptAction(DeleteScriptAction.SCRIPT_PYTHON)]
Expand Down
18 changes: 9 additions & 9 deletions src/plugins/globe/qgsglobefrustumhighlight.h
Expand Up @@ -28,17 +28,17 @@ namespace osgEarth

class QgsGlobeFrustumHighlightCallback : public osg::NodeCallback
{
public:
QgsGlobeFrustumHighlightCallback( osg::View* view, osgEarth::Terrain* terrain, QgsMapCanvas* mapCanvas, QColor color );
~QgsGlobeFrustumHighlightCallback();
public:
QgsGlobeFrustumHighlightCallback( osg::View* view, osgEarth::Terrain* terrain, QgsMapCanvas* mapCanvas, QColor color );
~QgsGlobeFrustumHighlightCallback();

void operator()( osg::Node*, osg::NodeVisitor* ) override;
void operator()( osg::Node*, osg::NodeVisitor* ) override;

private:
osg::View* mView;
osgEarth::Terrain* mTerrain;
QgsRubberBand* mRubberBand;
osgEarth::SpatialReference* mSrs;
private:
osg::View* mView;
osgEarth::Terrain* mTerrain;
QgsRubberBand* mRubberBand;
osgEarth::SpatialReference* mSrs;
};

#endif // QGSGLOBEFRUSTUMHIGHLIGHT_H
96 changes: 48 additions & 48 deletions src/plugins/globe/qgsglobevectorlayerproperties.h
Expand Up @@ -28,54 +28,54 @@ class QListWidgetItem;

class QgsGlobeVectorLayerConfig : public QObject
{
public:
enum RenderingMode
{
RenderingModeRasterized,
RenderingModeModelSimple,
RenderingModeModelAdvanced
};

QgsGlobeVectorLayerConfig( QObject* parent = 0 )
: QObject( parent )
, renderingMode( RenderingModeRasterized )
, altitudeClamping( osgEarth::Symbology::AltitudeSymbol::CLAMP_TO_TERRAIN )
, altitudeTechnique( osgEarth::Symbology::AltitudeSymbol::TECHNIQUE_DRAPE )
, altitudeBinding( osgEarth::Symbology::AltitudeSymbol::BINDING_VERTEX )
, verticalOffset( 0.0 )
, verticalScale( 0.0 )
, clampingResolution( 0.0 )
, extrusionEnabled( false )
, extrusionHeight( "10" )
, extrusionFlatten( false )
, extrusionWallGradient( 0.5 )
, labelingEnabled( false )
, labelingDeclutter( false )
, lightingEnabled( true )
{
}

RenderingMode renderingMode;
osgEarth::Symbology::AltitudeSymbol::Clamping altitudeClamping;
osgEarth::Symbology::AltitudeSymbol::Technique altitudeTechnique;
osgEarth::Symbology::AltitudeSymbol::Binding altitudeBinding;

float verticalOffset;
float verticalScale;
float clampingResolution;

bool extrusionEnabled;
QString extrusionHeight;
bool extrusionFlatten;
float extrusionWallGradient;

bool labelingEnabled;
QString labelingField;
bool labelingDeclutter;

bool lightingEnabled;

static QgsGlobeVectorLayerConfig* getConfig( QgsVectorLayer* layer );
public:
enum RenderingMode
{
RenderingModeRasterized,
RenderingModeModelSimple,
RenderingModeModelAdvanced
};

QgsGlobeVectorLayerConfig( QObject* parent = 0 )
: QObject( parent )
, renderingMode( RenderingModeRasterized )
, altitudeClamping( osgEarth::Symbology::AltitudeSymbol::CLAMP_TO_TERRAIN )
, altitudeTechnique( osgEarth::Symbology::AltitudeSymbol::TECHNIQUE_DRAPE )
, altitudeBinding( osgEarth::Symbology::AltitudeSymbol::BINDING_VERTEX )
, verticalOffset( 0.0 )
, verticalScale( 0.0 )
, clampingResolution( 0.0 )
, extrusionEnabled( false )
, extrusionHeight( "10" )
, extrusionFlatten( false )
, extrusionWallGradient( 0.5 )
, labelingEnabled( false )
, labelingDeclutter( false )
, lightingEnabled( true )
{
}

RenderingMode renderingMode;
osgEarth::Symbology::AltitudeSymbol::Clamping altitudeClamping;
osgEarth::Symbology::AltitudeSymbol::Technique altitudeTechnique;
osgEarth::Symbology::AltitudeSymbol::Binding altitudeBinding;

float verticalOffset;
float verticalScale;
float clampingResolution;

bool extrusionEnabled;
QString extrusionHeight;
bool extrusionFlatten;
float extrusionWallGradient;

bool labelingEnabled;
QString labelingField;
bool labelingDeclutter;

bool lightingEnabled;

static QgsGlobeVectorLayerConfig* getConfig( QgsVectorLayer* layer );
};


Expand Down

0 comments on commit 062aa9a

Please sign in to comment.