• 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
guimanager.h
Go to the documentation of this file.
1 #ifndef GUIMANAGER_H
2 #define GUIMANAGER_H
3 
4 /* INDI frontend for KStars
5  Copyright (C) 2012 Jasem Mutlaq
6 
7  This application is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11  */
12 
13 /* INDI frontend for KStars
14  Copyright (C) 2012 Jasem Mutlaq
15 
16  This application is free software; you can redistribute it and/or
17  modify it under the terms of the GNU General Public
18  License as published by the Free Software Foundation; either
19  version 2 of the License, or (at your option) any later version.
20  */
21 
22 #include <QGridLayout>
23 #include <QFrame>
24 #include <QHBoxLayout>
25 #include <QLabel>
26 #include <QVBoxLayout>
27 #include <QTabWidget>
28 
29 #include <indibase.h>
30 
31 #include "clientmanager.h"
32 
33 class QLabel;
34 class QHBoxLayout;
35 class QVBoxLayout;
36 class QFrame;
37 class QString;
38 class QTextEdit;
39 class QTabWidget;
40 class QGridLayout;
41 class QPushButton;
42 
43 class INDI_D;
44 
45 
46 class GUIManager : public QWidget
47 {
48  Q_OBJECT
49 public:
50 
51  static GUIManager *Instance();
52 
53  void updateStatus();
54 
55 
56  INDI_D * findGUIDevice(const QString &deviceName);
57 
58  void addClient(ClientManager *cm);
59  void removeClient(ClientManager *cm);
60 
61  QList<INDI_D*> getDevices() { return guidevices; }
62 
63  int size() { return guidevices.size(); }
64 
65  private:
66  /*****************************************************************
67  * GUI stuff
68  ******************************************************************/
69  QVBoxLayout *mainLayout;
70  QTabWidget *mainTabWidget;
71  QTextEdit *msgST_w;
72  QPushButton *clearB;
73  QPushButton *closeB;
74  GUIManager(QWidget * parent = 0);
75 
76  static GUIManager * _GUIManager;
77  QList<ClientManager *> clients;
78  QList<INDI_D*> guidevices;
79 
80 
81  public slots:
82  void clearLog();
83  void buildDevice(DeviceInfo *di);
84  void removeDevice(DeviceInfo *di);
85 };
86 
87 #endif // GUIMANAGER_H
GUIManager::clearLog
void clearLog()
Definition: guimanager.cpp:115
GUIManager::buildDevice
void buildDevice(DeviceInfo *di)
Definition: guimanager.cpp:185
QWidget
clientmanager.h
GUIManager::size
int size()
Definition: guimanager.h:63
INDI_D
Definition: indidevice.h:30
GUIManager::addClient
void addClient(ClientManager *cm)
Definition: guimanager.cpp:125
GUIManager::removeClient
void removeClient(ClientManager *cm)
Definition: guimanager.cpp:143
GUIManager::Instance
static GUIManager * Instance()
Definition: guimanager.cpp:47
ClientManager
Definition: clientmanager.h:22
QLabel
GUIManager::updateStatus
void updateStatus()
Definition: guimanager.cpp:91
DeviceInfo
Definition: deviceinfo.h:18
QFrame
GUIManager::findGUIDevice
INDI_D * findGUIDevice(const QString &deviceName)
Definition: guimanager.cpp:102
GUIManager::getDevices
QList< INDI_D * > getDevices()
Definition: guimanager.h:61
GUIManager
Definition: guimanager.h:46
GUIManager::removeDevice
void removeDevice(DeviceInfo *di)
Definition: guimanager.cpp:167
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