Skip to content
Permalink
Browse files
Move toggle/save/rollback/cancel edits slots from private to public
  • Loading branch information
dakcarto committed Dec 31, 2012
1 parent ba5b90a commit ce98348250734fc50536646ce97a663156b81722
Showing with 40 additions and 40 deletions.
  1. +40 −40 src/app/qgisapp.h
@@ -441,6 +441,46 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
*/
void removingLayers( QStringList );

//! starts/stops editing mode of the current layer
void toggleEditing();

//! starts/stops editing mode of a layer
bool toggleEditing( QgsMapLayer *layer, bool allowCancel = true );

/** Save edits for active vector layer and start new transactions
* @note added in 1.9 */
void saveActiveLayerEdits();

//! Save edits of a layer
void saveEdits( QgsMapLayer *layer, bool leaveEditable = true );

/** Cancel edits for a layer
* @note added in 1.9 */
void cancelEdits( QgsMapLayer *layer, bool leaveEditable = true );

//! Save current edits for selected layer(s) and start new transaction(s)
void saveEdits();

/** Save edits for all layers and start new transactions
* @note added in 1.9 */
void saveAllEdits( bool verifyAction = true );

/** Rollback current edits for selected layer(s) and start new transaction(s)
* @note added in 1.9 */
void rollbackEdits();

/** Rollback edits for all layers and start new transactions
* @note added in 1.9 */
void rollbackAllEdits( bool verifyAction = true );

/** Cancel edits for selected layer(s) and toggle off editing
* @note added in 1.9 */
void cancelEdits();

/** Cancel all edits for all layers and toggle off editing
* @note added in 1.9 */
void cancelAllEdits( bool verifyAction = true );

void updateUndoActions();

//! cuts selected features on the active layer to the clipboard
@@ -788,46 +828,6 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
//! refresh map canvas
void refreshMapCanvas();

//! starts/stops editing mode of the current layer
void toggleEditing();

//! starts/stops editing mode of a layer
bool toggleEditing( QgsMapLayer *layer, bool allowCancel = true );

/** Save edits for active vector layer and start new transactions
* @note added in 1.9 */
void saveActiveLayerEdits();

//! Save edits of a layer
void saveEdits( QgsMapLayer *layer, bool leaveEditable = true );

/** Cancel edits for a layer
* @note added in 1.9 */
void cancelEdits( QgsMapLayer *layer, bool leaveEditable = true );

//! Save current edits for selected layer(s) and start new transaction(s)
void saveEdits();

/** Save edits for all layers and start new transactions
* @note added in 1.9 */
void saveAllEdits( bool verifyAction = true );

/** Rollback current edits for selected layer(s) and start new transaction(s)
* @note added in 1.9 */
void rollbackEdits();

/** Rollback edits for all layers and start new transactions
* @note added in 1.9 */
void rollbackAllEdits( bool verifyAction = true );

/** Cancel edits for selected layer(s) and toggle off editing
* @note added in 1.9 */
void cancelEdits();

/** Cancel all edits for all layers and toggle off editing
* @note added in 1.9 */
void cancelAllEdits( bool verifyAction = true );

/** Dialog for verification of action on many edits
* @note added in 1.9 */
bool verifyEditsActionDialog( QString act, QString upon );

0 comments on commit ce98348

Please sign in to comment.