Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move toggle/save/rollback/cancel edits slots from private to public
  • Loading branch information
dakcarto committed Dec 31, 2012
1 parent ba5b90a commit ce98348
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions src/app/qgisapp.h
Expand Up @@ -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
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit ce98348

Please sign in to comment.