QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
folioautonumbering.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 The QElectroTech Team
3 This file is part of QElectroTech.
4
5 QElectroTech is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 QElectroTech is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef FOLIOAUTONUMBERING_H
19#define FOLIOAUTONUMBERING_H
20
21#include "../numerotationcontext.h"
22
23#include <QWidget>
24
25class NumPartEditorW;
26class QAbstractButton;
27class QETProject;
28
29namespace Ui {
31}
32
33class FolioAutonumberingW : public QWidget
34{
35 Q_OBJECT
36
37 //METHODS
38 public:
39 explicit FolioAutonumberingW(QETProject *project, QWidget *parent = nullptr);
40 ~FolioAutonumberingW() override;
41
42 void setContext (QList <QString> autonums);
44 QString autoNumSelected();
45 int newFoliosNumber();
47 int fromFolio();
48 int toFolio();
49
50 // SIGNALS
51 signals:
54
55 //SLOTS
56 private slots:
60 void on_buttonBox_clicked(QAbstractButton *);
62 void applyEnable (bool = true);
63
64 //ATTRIBUTES
65 private:
67 Ui::FolioAutonumberingW *ui;
68 QList <NumPartEditorW *> num_part_list_;
70 void updateFolioList();
71};
72
73#endif // FOLIOAUTONUMBERING_H
Definition folioautonumbering.h:34
void on_m_new_tabs_sb_valueChanged(int)
FolioAutonumberingW::on_m_new_tabs_sb_valueChanged Enable Apply if any new folio is to be created.
Definition folioautonumbering.cpp:147
void setContext(QList< QString > autonums)
FolioAutonumberingW::setContext construct autonums in the comboBox selected in the autonum_chooser Qc...
Definition folioautonumbering.cpp:55
void m_autonumber_tabs_rb_clicked()
QString autoNumSelected()
FolioAutonumberingW::autoNumSelected returns the current autonum selected.
Definition folioautonumbering.cpp:64
int fromFolio()
FolioAutonumberingW::fromFolio returns the current "From Folio" index.
Definition folioautonumbering.cpp:73
Ui::FolioAutonumberingW * ui
Definition folioautonumbering.h:67
NumerotationContext toNumContext() const
void on_buttonBox_clicked(QAbstractButton *)
SelectAutonumW::on_buttonBox_clicked Action on buttonBox clicked.
Definition folioautonumbering.cpp:178
void on_m_autonumber_tabs_rb_clicked()
FolioAutonumberingW::on_m_autonumber_tabs_rb_clicked Enable From ComboBox, fill From ComboBox.
Definition folioautonumbering.cpp:127
QList< NumPartEditorW * > num_part_list_
Definition folioautonumbering.h:68
~FolioAutonumberingW() override
Definition folioautonumbering.cpp:46
void on_m_from_cb_currentIndexChanged(int)
FolioAutonumberingW::on_m_from_cb_currentIndexChanged Enable To ComboBox.
Definition folioautonumbering.cpp:157
QETProject * project_
Definition folioautonumbering.h:66
bool newFolios
Definition folioautonumbering.h:46
void applyEnable(bool=true)
SelectAutonumW::applyEnable enable/disable the apply button.
Definition folioautonumbering.cpp:217
int toFolio()
FolioAutonumberingW::toFolio returns the current "To Folio" index.
Definition folioautonumbering.cpp:82
void updateFolioList()
FolioAutonumberingW::updateFolioList update Folio List in From and To ComboBox.
Definition folioautonumbering.cpp:99
NumerotationContext m_context
Definition folioautonumbering.h:69
void on_m_create_new_tabs_rb_clicked()
FolioAutonumberingW::on_m_create_new_tabs_rb_clicked Enable New Tabs SpinBox.
Definition folioautonumbering.cpp:114
int newFoliosNumber()
FolioAutonumberingW::newFoliosNumber returns the number of folios to create.
Definition folioautonumbering.cpp:91
The NumPartEditorW class This class represent a single part num widget. By this widget,...
Definition numparteditorw.h:37
Definition numerotationcontext.h:31
Definition qetproject.h:62
Definition autonumberingdockwidget.h:26