1
/***************************************************************************
2
bind_matrixcollection.h
5
copyright : (C) 2005 The University of Toronto
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef BIND_MATRIXCOLLECTION_H
19
#define BIND_MATRIXCOLLECTION_H
21
#include "bind_collection.h"
23
#include <kstmatrix.h>
25
#include <kjs/interpreter.h>
26
#include <kjs/object.h>
28
/* @class MatrixCollection
30
@description An array of Matrices.
32
class KstBindMatrixCollection : public KstBindCollection {
34
KstBindMatrixCollection(KJS::ExecState *exec, const KstMatrixList& matrixs);
35
KstBindMatrixCollection(KJS::ExecState *exec);
36
~KstBindMatrixCollection();
38
virtual KJS::Value length(KJS::ExecState *exec) const;
40
virtual QStringList collection(KJS::ExecState *exec) const;
41
virtual KJS::Value extract(KJS::ExecState *exec, const KJS::Identifier& item) const;
42
virtual KJS::Value extract(KJS::ExecState *exec, unsigned item) const;
45
QStringList _matrices;