@@ -554,11 +554,13 @@ void QgisApp::createActions()
554
554
mActionSelect = new QAction (QIcon (myIconPath+" /mActionSelect.png" ), tr (" Select Features" ), this );
555
555
mActionSelect ->setStatusTip (tr (" Select Features" ));
556
556
connect (mActionSelect , SIGNAL (triggered ()), this , SLOT (select ()));
557
+ mActionSelect ->setEnabled (false );
557
558
//
558
559
mActionOpenTable = new QAction (QIcon (myIconPath+" /mActionOpenTable.png" ), tr (" Open Table" ), this );
559
560
// mActionOpenTable->setShortcut(tr("Ctrl+O","Open Table"));
560
561
mActionOpenTable ->setStatusTip (tr (" Open Table" ));
561
562
connect (mActionOpenTable , SIGNAL (triggered ()), this , SLOT (attributeTable ()));
563
+ mActionOpenTable ->setEnabled (false );
562
564
//
563
565
mActionMeasure = new QAction (QIcon (myIconPath+" /mActionMeasure.png" ), tr (" Measure Line " ), this );
564
566
mActionMeasure ->setShortcut (tr (" Ctrl+M" ," Measure a Line" ));
@@ -617,44 +619,54 @@ void QgisApp::createActions()
617
619
mActionCapturePoint ->setShortcut (tr (" ." ," Capture Points" ));
618
620
mActionCapturePoint ->setStatusTip (tr (" Capture Points" ));
619
621
connect (mActionCapturePoint , SIGNAL (triggered ()), this , SLOT (capturePoint ()));
622
+ mActionCapturePoint ->setEnabled (false );
620
623
//
621
624
mActionCaptureLine = new QAction (QIcon (myIconPath+" /mActionCaptureLine.png" ), tr (" Capture Line" ), this );
622
625
mActionCaptureLine ->setShortcut (tr (" /" ," Capture Lines" ));
623
626
mActionCaptureLine ->setStatusTip (tr (" Capture Lines" ));
624
627
connect (mActionCaptureLine , SIGNAL (triggered ()), this , SLOT (captureLine ()));
628
+ mActionCaptureLine ->setEnabled (false );
625
629
//
626
630
mActionCapturePolygon = new QAction (QIcon (myIconPath+" /mActionCapturePolygon.png" ), tr (" Capture Polygon" ), this );
627
631
mActionCapturePolygon ->setShortcut (tr (" Ctrl+/" ," Capture Polygons" ));
628
632
mActionCapturePolygon ->setStatusTip (tr (" Capture Polygons" ));
629
633
connect (mActionCapturePolygon , SIGNAL (triggered ()), this , SLOT (capturePolygon ()));
634
+ mActionCapturePolygon ->setEnabled (false );
630
635
//
631
636
mActionDeleteSelected = new QAction (QIcon (myIconPath+" /mActionDeleteSelected.png" ), tr (" Delete Seleced" ), this );
632
637
mActionDeleteSelected ->setStatusTip (tr (" Delete Selected" ));
633
638
connect (mActionDeleteSelected , SIGNAL (triggered ()), this , SLOT (deleteSelected ()));
639
+ mActionDeleteSelected ->setEnabled (false );
634
640
//
635
641
mActionAddVertex = new QAction (QIcon (myIconPath+" /mActionAddVertex.png" ), tr (" Add Vertex" ), this );
636
642
mActionAddVertex ->setStatusTip (tr (" Add Vertex" ));
637
643
connect (mActionAddVertex , SIGNAL (triggered ()), this , SLOT (addVertex ()));
644
+ mActionAddVertex ->setEnabled (false );
638
645
//
639
646
mActionDeleteVertex = new QAction (QIcon (myIconPath+" /mActionDeleteVertex.png" ), tr (" Delete Vertex" ), this );
640
647
mActionDeleteVertex ->setStatusTip (tr (" Delete Vertex" ));
641
648
connect (mActionDeleteVertex , SIGNAL (triggered ()), this , SLOT (deleteVertex ()));
649
+ mActionDeleteVertex ->setEnabled (false );
642
650
//
643
651
mActionMoveVertex = new QAction (QIcon (myIconPath+" /mActionMoveVertex.png" ), tr (" Move Vertex" ), this );
644
652
mActionMoveVertex ->setStatusTip (tr (" Move Vertex" ));
645
653
connect (mActionMoveVertex , SIGNAL (triggered ()), this , SLOT (moveVertex ()));
654
+ mActionMoveVertex ->setEnabled (false );
646
655
647
656
mActionEditCut = new QAction (QIcon (myIconPath+" /mActionEditCut.png" ), tr (" Cut Features" ), this );
648
657
mActionEditCut ->setStatusTip (tr (" Cut selected features" ));
649
658
connect (mActionEditCut , SIGNAL (triggered ()), this , SLOT (editCut ()));
659
+ mActionEditCut ->setEnabled (false );
650
660
651
661
mActionEditCopy = new QAction (QIcon (myIconPath+" /mActionEditCopy.png" ), tr (" Copy Features" ), this );
652
662
mActionEditCopy ->setStatusTip (tr (" Copy selected features" ));
653
663
connect (mActionEditCopy , SIGNAL (triggered ()), this , SLOT (editCopy ()));
664
+ mActionEditCopy ->setEnabled (false );
654
665
655
666
mActionEditPaste = new QAction (QIcon (myIconPath+" /mActionEditPaste.png" ), tr (" Paste Features" ), this );
656
667
mActionEditPaste ->setStatusTip (tr (" Paste selected features" ));
657
668
connect (mActionEditPaste , SIGNAL (triggered ()), this , SLOT (editPaste ()));
669
+ mActionEditPaste ->setEnabled (false );
658
670
}
659
671
660
672
void QgisApp::createActionGroups ()
0 commit comments