kstars
indidriver.cpp
Go to the documentation of this file.
79 connect(localTreeWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), this, SLOT(makePortEditable(QTreeWidgetItem*,int)));
121 //QObject::connect(ksw->indiMenu(), SIGNAL(driverDisconnected(int)), this, SLOT(shutdownHost(int)));
123 QObject::connect(ui->disconnectHostB, SIGNAL(clicked()), this, SLOT(activateHostDisconnection()));
126 QObject::connect(ui->localTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, SLOT(updateLocalTab()));
127 QObject::connect(ui->clientTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, SLOT(updateClientTab()));
128 QObject::connect(ui->localTreeWidget, SIGNAL(expanded(const QModelIndex &)), this, SLOT(resizeDeviceColumn()));
146 foreach (QTreeWidgetItem *item, ui->clientTreeWidget->findItems(host->name, Qt::MatchExactly, 1))
163 foreach (QTreeWidgetItem *item, ui->localTreeWidget->findItems(device->tree_label, Qt::MatchExactly | Qt::MatchRecursive))
190 foreach (QTreeWidgetItem *item, ui->clientTreeWidget->findItems(host->name, Qt::MatchExactly,1))
207 foreach (QTreeWidgetItem *item, ui->localTreeWidget->findItems(device->tree_label, Qt::MatchExactly | Qt::MatchRecursive))
272 if (ui->clientTreeWidget->currentItem()->text(HOST_NAME_COLUMN) == host->name && ui->clientTreeWidget->currentItem()->text(HOST_PORT_COLUMN) == host->portnumber)
294 //device->state = (dev_request == IDevice::DEV_TERMINATE) ? IDevice::DEV_START : IDevice::DEV_TERMINATE;
330 //deviceManager = ksw->indiMenu()->startDeviceManager(processed_devices, ui->localR->isChecked() ? DeviceManager::M_LOCAL : DeviceManager::M_SERVER, ((uint) port));
331 deviceManager = ksw->indiMenu()->initDeviceManager("localhost", ((uint) port), ui->localR->isChecked() ? DeviceManager::M_LOCAL : DeviceManager::M_SERVER);
357 if (currentItem->text(HOST_NAME_COLUMN) == host->name && currentItem->text(HOST_PORT_COLUMN) == host->portnumber)
366 deviceManager = ksw->indiMenu()->initDeviceManager(host->hostname, host->portnumber.toUInt(), DeviceManager::M_CLIENT);
498 KMessageBox::error(0, i18n("Unable to find INDI Drivers directory: %1\nPlease make sure to set the correct path in KStars configuration", Options::indiDriversDir()));
624 QList<QTreeWidgetItem *> treeList = ui->localTreeWidget->findItems(groupName, Qt::MatchExactly);
641 bool INDIDriver::buildDriverElement(XMLEle *root, QTreeWidgetItem *DGroup, int groupType, char errmsg[])
739 QList<QTreeWidgetItem *> treeList = ui->localTreeWidget->findItems("Telescopes", Qt::MatchExactly);
791 QList<QTreeWidgetItem *> devList = ui->localTreeWidget->findItems(dev->tree_label, Qt::MatchExactly | Qt::MatchRecursive);
836 KMessageBox::error(0, i18n("Host: %1 Port: %2 already exists.", hostItem->name, hostItem->portnumber));
870 if (currentItem->text(HOST_NAME_COLUMN) == host->name && currentItem->text(HOST_PORT_COLUMN) == host->portnumber)
903 if (ui->clientTreeWidget->currentItem()->text(HOST_NAME_COLUMN) == ksw->data()->INDIHostsList[i]->name &&
904 ui->clientTreeWidget->currentItem()->text(HOST_PORT_COLUMN) == ksw->data()->INDIHostsList[i]->portnumber)
912 if (KMessageBox::warningContinueCancel( 0, i18n("Are you sure you want to remove the %1 client?", ui->clientTreeWidget->currentItem()->text(HOST_NAME_COLUMN)), i18n("Delete Confirmation"),KStandardGuiItem::del())!=KMessageBox::Continue)
931 file.setFileName( KStandardDirs::locateLocal( "appdata", "indihosts.xml" ) ); //determine filename in local user KDE directory tree.
935 QString message = i18n( "Unable to write to file 'indihosts.xml'\nAny changes to INDI hosts configurations will not be saved." );
981 IDevice::IDevice(const QString &inName, const QString &inLabel, const QString &inDriver, const QString &inVersion)
Definition: indiproperty.h:38
Definition: indidriver.h:54
bool buildDeviceGroup(XMLEle *root, char errmsg[])
Definition: indidriver.cpp:576
Definition: scope.h:25
void makePortEditable(QTreeWidgetItem *selectedItem, int column)
Definition: indidriver.cpp:83
Definition: indidriver.h:54
Definition: indidriver.h:105
Definition: indicommon.h:66
Definition: indicommon.h:66
Definition: indimenu.h:37
IDevice * findDeviceByLabel(const QString &label)
Definition: indidriver.cpp:962
Definition: indidriver.h:37
bool buildDriverElement(XMLEle *root, QTreeWidgetItem *DGroup, int groupType, char errmsg[])
Definition: indidriver.cpp:641
void processRemoteTree(IDevice::DeviceStatus dev_request)
Definition: indidriver.cpp:348
void appendManagedDevices(QList< IDevice * > &processed_devices)
Definition: devicemanager.cpp:192
Definition: devicemanager.h:31
Definition: indidriver.h:79
Definition: indicommon.h:66
Definition: indidriver.h:105
Definition: indidriver.h:106
bool isDeviceRunning(const QString &deviceLabel)
Definition: indidriver.cpp:446
Definition: indidriver.h:105
Definition: indidriver.h:55
Definition: indidevice.h:30
Definition: indidriver.h:106
Definition: indicommon.h:66
void newTelescope()
Definition: indidriver.h:55
Definition: indidriver.h:106
Definition: indicommon.h:66
IDevice(const QString &inName, const QString &inLabel, const QString &inDriver, const QString &inVersion)
Definition: indidriver.cpp:981
void processXMLDriver(QString &driverName)
Definition: indidriver.cpp:534
Definition: indicommon.h:66
Definition: devicemanager.h:31
Definition: indidriver.h:105
void newCCD()
Definition: indidriver.h:46
Definition: indicommon.h:66
void processLocalTree(IDevice::DeviceStatus dev_request)
Definition: indidriver.cpp:282
Definition: devicemanager.h:31
Definition: indidriver.h:55
Definition: indicommon.h:66
Definition: devicemanager.h:27
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
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.