mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
42 lines
768 B
C
42 lines
768 B
C
|
#ifndef NUMPARTEDITORW_H
|
||
|
#define NUMPARTEDITORW_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include <QValidator>
|
||
|
#include "numerotationcontext.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class NumPartEditorW;
|
||
|
}
|
||
|
|
||
|
class NumPartEditorW : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
//METHODS
|
||
|
public:
|
||
|
explicit NumPartEditorW(QWidget *parent = 0);
|
||
|
NumPartEditorW (NumerotationContext &, int, QWidget *parent=0);
|
||
|
~NumPartEditorW();
|
||
|
|
||
|
enum type {unit,ten,hundred,string,folio};
|
||
|
NumerotationContext toNumContext();
|
||
|
|
||
|
private slots:
|
||
|
void on_type_combo_activated(int);
|
||
|
void on_value_field_textChanged();
|
||
|
void on_increase_spinBox_valueChanged();
|
||
|
void setType (NumPartEditorW::type t);
|
||
|
|
||
|
signals:
|
||
|
void changed ();
|
||
|
|
||
|
private:
|
||
|
Ui::NumPartEditorW *ui;
|
||
|
QValidator *intValidator;
|
||
|
QString type_str;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // NUMPARTEDITORW_H
|