git-svn-id: svn://db.shs.com.ru/libs@586 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
43
test/qad/widgets/matrixedit.h
Normal file
43
test/qad/widgets/matrixedit.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#ifndef MATRIXEDIT_H
|
||||
#define MATRIXEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class MatrixEdit;
|
||||
}
|
||||
|
||||
class MatrixEdit: public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MatrixEdit(QWidget * parent = 0);
|
||||
~MatrixEdit();
|
||||
|
||||
bool isReadOnly() const;
|
||||
void setReadOnly(bool yes);
|
||||
|
||||
QVector<double> vector() const;
|
||||
QVector<QVector<double> > matrix() const;
|
||||
void setVector(const QVector<double> & v);
|
||||
void setMatrix(const QVector<QVector<double> > & v);
|
||||
|
||||
private:
|
||||
void setVectorMode(bool yes);
|
||||
void clear(bool ident = false);
|
||||
|
||||
Ui::MatrixEdit * ui;
|
||||
bool ro;
|
||||
|
||||
private slots:
|
||||
void on_spinRows_valueChanged(int cnt);
|
||||
void on_spinCols_valueChanged(int cnt);
|
||||
void on_buttonNull_clicked();
|
||||
void on_buttonIdentity_clicked();
|
||||
|
||||
signals:
|
||||
void changed();
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // MATRIXEDIT_H
|
||||
Reference in New Issue
Block a user