mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-22 08:34:12 +02:00
42 lines
913 B
C++
42 lines
913 B
C++
#ifndef TERMINALNUMBERINGDIALOG_H
|
|
#define TERMINALNUMBERINGDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QMap>
|
|
|
|
class QETProject;
|
|
class QUndoCommand;
|
|
class QCheckBox;
|
|
|
|
namespace Ui {
|
|
class TerminalNumberingDialog;
|
|
}
|
|
|
|
/**
|
|
* @brief The TerminalNumberingDialog class
|
|
* Dialog to configure the automatic numbering of terminals.
|
|
*/
|
|
class TerminalNumberingDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TerminalNumberingDialog(QWidget *parent, QETProject *project);
|
|
~TerminalNumberingDialog();
|
|
|
|
// Getters for the user's choices
|
|
bool isXAxisPriority() const;
|
|
bool isAlphanumeric() const;
|
|
bool alsoNumberLetters() const;
|
|
QStringList excludedStrips() const;
|
|
|
|
QUndoCommand* getUndoCommand(QETProject *project) const;
|
|
|
|
private:
|
|
Ui::TerminalNumberingDialog *ui;
|
|
QETProject *m_project;
|
|
QMap<QString, QCheckBox*> m_stripCheckboxes;
|
|
};
|
|
|
|
#endif // TERMINALNUMBERINGDIALOG_H
|