• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • indi
indigroup.h
Go to the documentation of this file.
1 /* INDI Group
2  Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com)
3 
4  This application is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  JM Changelog
10  2004-16-1: Start
11 
12  */
13 
14 #ifndef INDIGROUP_H_
15 #define INDIGROUP_H_
16 
17 #include <indiproperty.h>
18 
19 #include <QString>
20 #include <QList>
21 
22 
23 class INDI_P;
24 class INDI_D;
25 
26 class QFrame;
27 class QVBoxLayout;
28 class QSpacerItem;
29 
30 /* INDI group */
31 class INDI_G
32 {
33 public:
34  INDI_G(INDI_D *idv, const QString &inName);
35  ~INDI_G();
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:
53  QString name; /* Group name */
54  INDI_D *dp; /* Parent device */
55  QFrame *propertyContainer; /* Properties container */
56  QVBoxLayout *propertyLayout; /* Properties layout */
57  QSpacerItem *VerticalSpacer; /* Vertical spacer */
58 
59  QList<INDI_P*> propList; /* malloced list of pointers to properties */
60 
61 };
62 
63 #endif
INDI_G::addProperty
bool addProperty(INDI::Property *prob)
Definition: indigroup.cpp:55
INDI_P
Definition: indiproperty.h:38
INDI_G::getDevice
INDI_D * getDevice()
Definition: indigroup.h:46
INDI_G::getProperties
QList< INDI_P * > getProperties()
Definition: indigroup.h:48
INDI_G::~INDI_G
~INDI_G()
Definition: indigroup.cpp:48
INDI_D
Definition: indidevice.h:30
INDI_G::INDI_G
INDI_G(INDI_D *idv, const QString &inName)
Definition: indigroup.cpp:32
INDI_G
Definition: indigroup.h:31
INDI_G::getName
const QString & getName()
Definition: indigroup.h:44
INDI_G::getContainer
QFrame * getContainer()
Definition: indigroup.h:43
INDI_G::removeProperty
bool removeProperty(const QString &propName)
Definition: indigroup.cpp:74
INDI_G::getProperty
INDI_P * getProperty(const QString &propName)
Definition: indigroup.cpp:94
indiproperty.h
QFrame
INDI_G::size
int size()
Definition: indigroup.h:50
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal