~ubuntu-branches/ubuntu/raring/kstars/raring

« back to all changes in this revision

Viewing changes to kstars/indi/indigroup.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell, Jonathan Riddell, Harald Sitter
  • Date: 2012-11-19 16:07:49 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20121119160749-v7vdmo0iswx66dn8
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Harald Sitter ]
* Build dep on wcslib-dev (new dep)
* Build dep on libindi-dev >= 0.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#ifndef INDIGROUP_H_
15
15
#define INDIGROUP_H_
16
16
 
17
 
#include "indielement.h"
18
 
#include <qstring.h>
 
17
#include <indiproperty.h>
 
18
 
 
19
#include <QString>
 
20
#include <QList>
 
21
 
19
22
 
20
23
class INDI_P;
21
24
class INDI_D;
22
25
 
23
26
class QFrame;
24
27
class QVBoxLayout;
 
28
class QSpacerItem;
25
29
 
26
30
/* INDI group */
27
31
class INDI_G
28
32
{
29
33
public:
30
 
    INDI_G(INDI_D *parentDevice, const QString &inName);
 
34
    INDI_G(INDI_D *idv, const QString &inName);
31
35
    ~INDI_G();
32
36
 
 
37
 
 
38
    bool addProperty(INDI::Property *prob);
 
39
 
 
40
    bool removeProperty(const QString &propName);
 
41
 
 
42
    INDI_P * getProperty(const QString & propName);
 
43
    QFrame *getContainer() { return propertyContainer;}
 
44
    const QString & getName() { return name; }
 
45
 
 
46
    INDI_D *getDevice() { return dp;}
 
47
 
 
48
    QList<INDI_P*> getProperties() { return propList; }
 
49
 
 
50
    int size() { return propList.count(); }
 
51
 
 
52
private:
33
53
    QString       name;                 /* Group name */
34
 
    INDI_D      *dp;                    /* Parent device */
 
54
    INDI_D        *dp;                  /* Parent device */
35
55
    QFrame        *propertyContainer;   /* Properties container */
36
56
    QVBoxLayout   *propertyLayout;        /* Properties layout */
37
57
    QSpacerItem   *VerticalSpacer;      /* Vertical spacer */
38
58
 
39
 
    QList<INDI_P*> pl;                  /* malloced list of pointers to properties */
 
59
    QList<INDI_P*> propList;                    /* malloced list of pointers to properties */
40
60
 
41
 
    void addProperty(INDI_P *pp);
42
 
    bool removeProperty(INDI_P *pp);
43
61
};
44
62
 
45
63
#endif