TelescopeDialog.cpp   TelescopeDialog.cpp 
skipping to change at line 147 skipping to change at line 147
{ {
//Slot # //Slot #
//int slotNumber = (i+1)%SLOT_COUNT;//Making sure slot 0 is last //int slotNumber = (i+1)%SLOT_COUNT;//Making sure slot 0 is last
//Make sure that this is initialized for all slots //Make sure that this is initialized for all slots
telescopeStatus[slotNumber] = StatusNA; telescopeStatus[slotNumber] = StatusNA;
//Read the telescope properties //Read the telescope properties
QString name; QString name;
ConnectionType connectionType; ConnectionType connectionType;
QString equinox;
QString host; QString host;
int portTCP; int portTCP;
int delay; int delay;
bool connectAtStartup; bool connectAtStartup;
QList<double> circles; QList<double> circles;
QString serverName; QString serverName;
QString portSerial; QString portSerial;
if(!telescopeManager->getTelescopeAtSlot(slotNumber, connect ionType, name, host, portTCP, delay, connectAtStartup, circles, serverName, portSerial)) if(!telescopeManager->getTelescopeAtSlot(slotNumber, connect ionType, name, equinox, host, portTCP, delay, connectAtStartup, circles, se rverName, portSerial))
continue; continue;
//Determine the server type //Determine the server type
QString connectionTypeLabel; QString connectionTypeLabel;
switch (connectionType) switch (connectionType)
{ {
case ConnectionInternal: case ConnectionInternal:
connectionTypeLabel = "local, Stellarium"; connectionTypeLabel = "local, Stellarium";
break; break;
case ConnectionLocal: case ConnectionLocal:
skipping to change at line 704 skipping to change at line 705
ui->pushButtonChangeStatus->setText("Disconnect"); ui->pushButtonChangeStatus->setText("Disconnect");
ui->pushButtonChangeStatus->setToolTip("Disconnect from the selected telescope"); ui->pushButtonChangeStatus->setToolTip("Disconnect from the selected telescope");
} }
void TelescopeDialog::updateStyle() void TelescopeDialog::updateStyle()
{ {
if (dialog) if (dialog)
{ {
StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance() .getGui()); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance() .getGui());
Q_ASSERT(gui); Q_ASSERT(gui);
const StelStyle pluginStyle = telescopeManager->getModuleSty QString style(gui->getStelStyle().htmlStyleSheet);
leSheet(gui->getStelStyle()); ui->textBrowserAbout->document()->setDefaultStyleSheet(style
dialog->setStyleSheet(pluginStyle.qtStyleSheet); );
ui->textBrowserAbout->document()->setDefaultStyleSheet(QStri
ng(pluginStyle.htmlStyleSheet));
} }
//Change the styles of all children, too
configurationDialog.updateStyle();
} }
void TelescopeDialog::checkBoxUseExecutablesToggled(bool useExecutables) void TelescopeDialog::checkBoxUseExecutablesToggled(bool useExecutables)
{ {
telescopeManager->setFlagUseServerExecutables(useExecutables); telescopeManager->setFlagUseServerExecutables(useExecutables);
} }
void TelescopeDialog::buttonBrowseServerDirectoryPressed() void TelescopeDialog::buttonBrowseServerDirectoryPressed()
{ {
QString newPath = QFileDialog::getExistingDirectory (0, QString("Sel ect a directory"), telescopeManager->getServerExecutablesDirectoryPath()); QString newPath = QFileDialog::getExistingDirectory (0, QString("Sel ect a directory"), telescopeManager->getServerExecutablesDirectoryPath());
 End of changes. 4 change blocks. 
9 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/