mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-05 10:34:13 +02:00
d76f3528ae
Schemas now get saved with a UUID and do not have to be looked up according to the form. They can be renamed and it gets reflected in existing elements. The GUI for editing them is now much easier, e.g. forms can be reshuffled. A formula can be applied. Many options now also for conductors and sheets.
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*
|
|
Copyright 2006-2026 The QElectroTech Team
|
|
This file is part of QElectroTech.
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#ifndef COUNTERWARNING_H
|
|
#define COUNTERWARNING_H
|
|
|
|
#include "../numerotationcontext.h"
|
|
|
|
#include <QCoreApplication>
|
|
|
|
class QETProject;
|
|
class QWidget;
|
|
|
|
/**
|
|
@brief The CounterWarning class
|
|
Asks before the counter of an element numbering is set to a number which
|
|
elements of it have already: the next elements skip the numbers in use,
|
|
so the next number is not the one asked for. The user may go on or give
|
|
up.
|
|
*/
|
|
class CounterWarning
|
|
{
|
|
Q_DECLARE_TR_FUNCTIONS(CounterWarning)
|
|
|
|
public:
|
|
static bool confirm(QWidget *parent,
|
|
const QETProject *project,
|
|
const QString &title,
|
|
const NumerotationContext &proposed);
|
|
};
|
|
|
|
#endif // COUNTERWARNING_H
|