~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/kst/extensions/js/bind_matrixcollection.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-06-30 19:11:30 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630191130-acumuar75bz4puty
Tags: 1.2.1-1ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                           bind_matrixcollection.h
 
3
                             -------------------
 
4
    begin                : Jul 27 2005
 
5
    copyright            : (C) 2005 The University of Toronto
 
6
    email                :
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef BIND_MATRIXCOLLECTION_H
 
19
#define BIND_MATRIXCOLLECTION_H
 
20
 
 
21
#include "bind_collection.h"
 
22
 
 
23
#include <kstmatrix.h>
 
24
 
 
25
#include <kjs/interpreter.h>
 
26
#include <kjs/object.h>
 
27
 
 
28
/* @class MatrixCollection
 
29
   @inherits Collection
 
30
   @description An array of Matrices.
 
31
*/
 
32
class KstBindMatrixCollection : public KstBindCollection {
 
33
  public:
 
34
    KstBindMatrixCollection(KJS::ExecState *exec, const KstMatrixList& matrixs);
 
35
    KstBindMatrixCollection(KJS::ExecState *exec);
 
36
    ~KstBindMatrixCollection();
 
37
 
 
38
    virtual KJS::Value length(KJS::ExecState *exec) const;
 
39
 
 
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;
 
43
 
 
44
  protected:
 
45
    QStringList _matrices;
 
46
    bool _isGlobal;
 
47
};
 
48
 
 
49
 
 
50
#endif
 
51
 
 
52
// vim: ts=2 sw=2 et