mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-22 16:44:14 +02:00
Extend terminal numbering dialog with letter numbering and strip selection
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
#define TERMINALNUMBERINGDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QMap>
|
||||
|
||||
class QETProject;
|
||||
class QUndoCommand;
|
||||
class QCheckBox;
|
||||
|
||||
namespace Ui {
|
||||
class TerminalNumberingDialog;
|
||||
@@ -19,17 +21,21 @@ class TerminalNumberingDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TerminalNumberingDialog(QWidget *parent = nullptr);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user