mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-28 12:19:59 +01:00
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:
41
sources/ui/selectautonumw.h
Normal file
41
sources/ui/selectautonumw.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef SELECTAUTONUMW_H
|
||||
#define SELECTAUTONUMW_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "diagram.h"
|
||||
#include "ui/numparteditorw.h"
|
||||
|
||||
namespace Ui {
|
||||
class SelectAutonumW;
|
||||
}
|
||||
|
||||
class SelectAutonumW : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
//METHODS
|
||||
public:
|
||||
explicit SelectAutonumW(const QList <Diagram *> &, QWidget *parent = 0);
|
||||
~SelectAutonumW();
|
||||
|
||||
private:
|
||||
void initDiagramChooser();
|
||||
void setCurrentContext ();
|
||||
NumerotationContext toNumContext() const;
|
||||
|
||||
//SLOT
|
||||
private slots:
|
||||
void on_add_button_clicked();
|
||||
void on_remove_button_clicked();
|
||||
void on_diagram_chooser_activated();
|
||||
void on_buttonBox_clicked(QAbstractButton *);
|
||||
void applyEnable (bool = true);
|
||||
|
||||
//ATTRIBUTS
|
||||
private:
|
||||
Ui::SelectAutonumW *ui;
|
||||
const QList <Diagram *> diagram_list;
|
||||
QList <NumPartEditorW *> num_part_list_;
|
||||
};
|
||||
|
||||
#endif // SELECTAUTONUMW_H
|
||||
Reference in New Issue
Block a user