Skip to content
Permalink
Browse files

Add missing Layer Definition in Layer menu

  • Loading branch information
NathanW2 committed Mar 10, 2014
1 parent 3c38721 commit fc6cd5428a7c0df6f1152b0c5ac46d7f7af27b6f
Showing with 13 additions and 3 deletions.
  1. +4 −0 src/app/qgisapp.cpp
  2. +9 −3 src/ui/qgisapp.ui
@@ -1072,6 +1072,7 @@ void QgisApp::createActions()
connect( mActionCancelEdits, SIGNAL( triggered() ), this, SLOT( cancelEdits() ) );
connect( mActionCancelAllEdits, SIGNAL( triggered() ), this, SLOT( cancelAllEdits() ) );
connect( mActionLayerSaveAs, SIGNAL( triggered() ), this, SLOT( saveAsFile() ) );
connect( mActionSaveLayerDefinition, SIGNAL( triggered() ), this, SLOT( saveAsLayerDefinition() ) );
connect( mActionRemoveLayer, SIGNAL( triggered() ), this, SLOT( removeLayer() ) );
connect( mActionDuplicateLayer, SIGNAL( triggered() ), this, SLOT( duplicateLayers() ) );
connect( mActionSetLayerCRS, SIGNAL( triggered() ), this, SLOT( setLayerCRS() ) );
@@ -8346,6 +8347,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionToggleEditing->setEnabled( false );
mActionToggleEditing->setChecked( false );
mActionSaveLayerEdits->setEnabled( false );
mActionSaveLayerDefinition->setEnabled( false );
mActionLayerSaveAs->setEnabled( false );
mActionLayerProperties->setEnabled( false );
mActionLayerSubsetString->setEnabled( false );
@@ -8442,6 +8444,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionIdentify->setEnabled( true );
mActionSelectByExpression->setEnabled( true );
mActionOpenTable->setEnabled( true );
mActionSaveLayerDefinition->setEnabled( true );
mActionLayerSaveAs->setEnabled( true );
mActionCopyFeatures->setEnabled( layerHasSelection );
mActionFeatureAction->setEnabled( layerHasActions );
@@ -8610,6 +8613,7 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mUndoWidget->dockContents()->setEnabled( false );
mActionUndo->setEnabled( false );
mActionRedo->setEnabled( false );
mActionSaveLayerDefinition->setEnabled( true );
mActionLayerSaveAs->setEnabled( true );
mActionAddFeature->setEnabled( false );
mActionDeleteSelected->setEnabled( false );
@@ -17,7 +17,7 @@
<x>0</x>
<y>0</y>
<width>1050</width>
<height>27</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="mProjectMenu">
@@ -145,6 +145,7 @@
<addaction name="mActionAllEdits"/>
<addaction name="separator"/>
<addaction name="mActionLayerSaveAs"/>
<addaction name="mActionSaveLayerDefinition"/>
<addaction name="mActionRemoveLayer"/>
<addaction name="mActionDuplicateLayer"/>
<addaction name="mActionSetLayerCRS"/>
@@ -2161,13 +2162,18 @@ Acts on currently active editable layer</string>
<action name="mActionResetUIdefaults">
<property name="text">
<string>Reset UI defaults</string>
</property>
</action>
</property>
</action>
<action name="mActionAddLayerDefinition">
<property name="text">
<string>Add from Layer Definition File..</string>
</property>
</action>
<action name="mActionSaveLayerDefinition">
<property name="text">
<string>Save As Layer Definition File..</string>
</property>
</action>
</widget>
<resources>
<include location="../../images/images.qrc"/>

0 comments on commit fc6cd54

Please sign in to comment.
You can’t perform that action at this time.