2016-07-13 14:57:27 +00:00
|
|
|
/*
|
2023-01-01 17:05:57 +01:00
|
|
|
Copyright 2006-2023 The QElectroTech Team
|
2016-07-13 14:57:27 +00:00
|
|
|
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 AUTONUMBERINGDOCKWIDGET_H
|
2017-02-03 19:26:13 +00:00
|
|
|
#define AUTONUMBERINGDOCKWIDGET_H
|
2016-07-13 14:57:27 +00:00
|
|
|
|
2020-12-10 18:44:03 +01:00
|
|
|
#include "../../projectview.h"
|
|
|
|
#include "../../qetproject.h"
|
2020-12-08 19:57:35 +01:00
|
|
|
|
2016-07-13 14:57:27 +00:00
|
|
|
#include <QDockWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class AutoNumberingDockWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class AutoNumberingDockWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-08-05 02:06:59 +00:00
|
|
|
explicit AutoNumberingDockWidget(QWidget *parent = nullptr);
|
2017-08-05 02:10:01 +00:00
|
|
|
~AutoNumberingDockWidget() override;
|
2016-07-13 14:57:27 +00:00
|
|
|
|
|
|
|
void setContext();
|
|
|
|
void setProject(QETProject*, ProjectView*);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setActive();
|
|
|
|
void setConductorActive(DiagramView*);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_m_conductor_cb_activated(int);
|
|
|
|
void on_m_element_cb_activated(int);
|
|
|
|
void on_m_folio_cb_activated(int);
|
|
|
|
void conductorAutoNumChanged();
|
|
|
|
void elementAutoNumChanged();
|
|
|
|
void folioAutoNumChanged();
|
|
|
|
void clear();
|
2017-03-01 15:03:56 +00:00
|
|
|
void projectClosed();
|
2016-07-13 14:57:27 +00:00
|
|
|
|
2017-03-01 15:03:56 +00:00
|
|
|
void on_m_configure_pb_clicked();
|
|
|
|
|
2016-07-13 14:57:27 +00:00
|
|
|
signals:
|
|
|
|
void folioAutoNumChanged(QString);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::AutoNumberingDockWidget *ui;
|
2017-03-01 15:03:56 +00:00
|
|
|
QETProject* m_project = nullptr;
|
|
|
|
ProjectView* m_project_view = nullptr;
|
2016-07-13 14:57:27 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUTONUMBERINGDOCKWIDGET_H
|