mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user