• 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
indimenu.h
Go to the documentation of this file.
1 /* INDI frontend for KStars
2  Copyright (C) 2012 Jasem Mutlaq
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 
10 #ifndef INDIMENU_H_
11 #define INDIMENU_H_
12 
13 #include "indielement.h"
14 #include "devicemanager.h"
15 
16 #include <QGridLayout>
17 #include <QFrame>
18 #include <QHBoxLayout>
19 #include <QLabel>
20 #include <QVBoxLayout>
21 #include <QTabWidget>
22 
23 class INDI_D;
24 
25 
26 class QLabel;
27 class QHBoxLayout;
28 class QVBoxLayout;
29 class QFrame;
30 class QString;
31 class QTextEdit;
32 class QTabWidget;
33 class QGridLayout;
34 
35 class KStars;
36 
37 class INDIMenu : public QWidget
38 {
39  Q_OBJECT
40 public:
41  INDIMenu(QWidget * parent = 0);
42  ~INDIMenu();
43 
44  KStars *ksw;
45 
46  QList<DeviceManager*> managers;
47 
48  /*****************************************************************
49  * GUI stuff
50  ******************************************************************/
51  QVBoxLayout *mainLayout;
52  QTabWidget *mainTabWidget;
53  QTextEdit *msgST_w;
54 
55  void updateStatus();
56  QString getUniqueDeviceLabel(const QString &deviceName);
57 
58  INDI_D * findDevice(const QString &deviceName);
59  INDI_D * findDeviceByLabel(const QString &label);
60 
61  void setCurrentDevice(const QString &device) { currentDevice = device; }
62  QString getCurrentDevice() { return currentDevice; }
63 
64  DeviceManager* startDeviceManager(QList<IDevice *> &processed_devices, DeviceManager::ManagerMode inMode, uint inPort);
65  DeviceManager* initDeviceManager(QString inHost, uint inPort, DeviceManager::ManagerMode inMode);
66  void stopDeviceManager(QList<IDevice *> &processed_devices);
67 
68  private:
69  QPushButton *clearB;
70  QPushButton *closeB;
71  QString currentDevice;
72 
73  public slots:
74  void removeDeviceManager(DeviceManager *deviceManager);
75  void clearLog();
76 
77 
78 };
79 
80 #endif
devicemanager.h
INDIMenu::clearLog
void clearLog()
Definition: indimenu.cpp:198
INDIMenu::stopDeviceManager
void stopDeviceManager(QList< IDevice * > &processed_devices)
Definition: indimenu.cpp:123
INDIMenu::initDeviceManager
DeviceManager * initDeviceManager(QString inHost, uint inPort, DeviceManager::ManagerMode inMode)
Definition: indimenu.cpp:110
INDIMenu::INDIMenu
INDIMenu(QWidget *parent=0)
Definition: indimenu.cpp:58
QWidget
INDIMenu::findDeviceByLabel
INDI_D * findDeviceByLabel(const QString &label)
Definition: indimenu.cpp:169
INDIMenu::~INDIMenu
~INDIMenu()
Definition: indimenu.cpp:90
INDIMenu::mainTabWidget
QTabWidget * mainTabWidget
Definition: indimenu.h:52
KStars
This is the main window for KStars.
Definition: kstars.h:94
INDIMenu
Definition: indimenu.h:37
INDIMenu::msgST_w
QTextEdit * msgST_w
Definition: indimenu.h:53
INDIMenu::getUniqueDeviceLabel
QString getUniqueDeviceLabel(const QString &deviceName)
Definition: indimenu.cpp:180
INDI_D
Definition: indidevice.h:30
INDIMenu::getCurrentDevice
QString getCurrentDevice()
Definition: indimenu.h:62
INDIMenu::findDevice
INDI_D * findDevice(const QString &deviceName)
Definition: indimenu.cpp:159
INDIMenu::setCurrentDevice
void setCurrentDevice(const QString &device)
Definition: indimenu.h:61
INDIMenu::updateStatus
void updateStatus()
Definition: indimenu.cpp:99
INDIMenu::ksw
KStars * ksw
Definition: indimenu.h:44
INDIMenu::removeDeviceManager
void removeDeviceManager(DeviceManager *deviceManager)
Definition: indimenu.cpp:133
QLabel
INDIMenu::managers
QList< DeviceManager * > managers
Definition: indimenu.h:46
INDIMenu::mainLayout
QVBoxLayout * mainLayout
Definition: indimenu.h:51
DeviceManager
Definition: devicemanager.h:27
INDIMenu::startDeviceManager
DeviceManager * startDeviceManager(QList< IDevice * > &processed_devices, DeviceManager::ManagerMode inMode, uint inPort)
QFrame
DeviceManager::ManagerMode
ManagerMode
Definition: devicemanager.h:31
indielement.h
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 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