Search and replace : Diagram properties can be changed (and mass changed) through the search and replace widget.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5564 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-10-21 09:54:59 +00:00
parent 0bc34cfb6d
commit 94dc195028
16 changed files with 1163 additions and 166 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2006-2017 The QElectroTech Team
Copyright 2006-2018 The QElectroTech Team
This file is part of QElectroTech.
QElectroTech is free software: you can redistribute it and/or modify
@@ -21,7 +21,6 @@
#include "borderproperties.h"
#include "qetgraphicsitem/conductor.h"
#include "diagramcontent.h"
#include "titleblockproperties.h"
#include "qet.h"
#include "qetgraphicsitem/qetshapeitem.h"
#include "conductorprofile.h"
@@ -273,31 +272,7 @@ class ResetConductorCommand : public QUndoCommand {
Diagram *diagram;
};
/**
This command changes the title block properties for a particular diagram.
*/
class ChangeTitleBlockCommand : public QUndoCommand {
// constructors, destructor
public:
ChangeTitleBlockCommand(Diagram *, const TitleBlockProperties &, const TitleBlockProperties &, QUndoCommand * = nullptr);
~ChangeTitleBlockCommand() override;
private:
ChangeTitleBlockCommand(const ChangeTitleBlockCommand &);
// methods
public:
void undo() override;
void redo() override;
// attributes
private:
/// modified diagram
Diagram *diagram;
/// properties before the change
TitleBlockProperties old_titleblock;
/// properties after the change
TitleBlockProperties new_titleblock;
};
/**
This command changes the border properties of a particular diagram.