add dialog to configure the autonumerotation context

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2164 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-05-18 18:39:53 +00:00
parent 6465e45278
commit 8e9ad0dec2
11 changed files with 672 additions and 46 deletions

View File

@@ -0,0 +1,41 @@
#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