TelescopeConfigurationDialog.hpp   TelescopeConfigurationDialog.hpp 
/* /*
* Stellarium TelescopeControl Plug-in * Stellarium TelescopeControl Plug-in
* *
* Copyright (C) 2009 Bogdan Marinov (this file) * Copyright (C) 2009-2010 Bogdan Marinov (this file)
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 34 skipping to change at line 34
#include <QObject> #include <QObject>
#include <QHash> #include <QHash>
#include <QIntValidator> #include <QIntValidator>
#include <QStringList> #include <QStringList>
//#include "StelDialog.hpp" //#include "StelDialog.hpp"
#include "StelDialogTelescopeControl.hpp" #include "StelDialogTelescopeControl.hpp"
#include "TelescopeControlGlobals.hpp" #include "TelescopeControlGlobals.hpp"
using namespace TelescopeControlGlobals; using namespace TelescopeControlGlobals;
class Ui_telescopeConfigurationDialogForm; class Ui_telescopeConfigurationDialog;
class TelescopeControl; class TelescopeControl;
struct StelStyle; struct StelStyle;
class TelescopeConfigurationDialog : public StelDialogTelescopeControl class TelescopeConfigurationDialog : public StelDialogTelescopeControl
{ {
Q_OBJECT Q_OBJECT
public: public:
TelescopeConfigurationDialog(); TelescopeConfigurationDialog();
virtual ~TelescopeConfigurationDialog(); virtual ~TelescopeConfigurationDialog();
void languageChanged(); void languageChanged();
virtual void setStelStyle(const StelStyle& style); void updateStyle();
void initExistingTelescopeConfiguration(int slot); void initExistingTelescopeConfiguration(int slot);
void initNewTelescopeConfiguration(int slot); void initNewTelescopeConfiguration(int slot);
protected: protected:
//! Initialize the dialog widgets and connect the signals/slots //! Initialize the dialog widgets and connect the signals/slots
virtual void createDialogContent(); virtual void createDialogContent();
Ui_telescopeConfigurationDialogForm* ui; Ui_telescopeConfigurationDialog* ui;
private: private:
void initConfigurationDialog(); void initConfigurationDialog();
private slots: private slots:
void buttonSavePressed(void); void buttonSavePressed();
void buttonDiscardPressed(void); void buttonDiscardPressed();
void toggleTypeServer(bool); void toggleTypeLocal(bool);
void toggleTypeConnection(bool); void toggleTypeConnection(bool);
void toggleCircles(int); void toggleTypeVirtual(bool);
void deviceModelSelected(const QString&); void deviceModelSelected(const QString&);
signals: signals:
void saveChanges(QString name, TelescopeConnection type); void changesSaved(QString name, ConnectionType type);
void discardChanges(void); void changesDiscarded();
private: private:
QStringList deviceModelNames; QStringList deviceModelNames;
QIntValidator * tcpPortValidator;
QRegExpValidator * telescopeNameValidator; QRegExpValidator * telescopeNameValidator;
QRegExpValidator * hostNameValidator; QRegExpValidator * hostNameValidator;
QRegExpValidator * circleListValidator; QRegExpValidator * circleListValidator;
QRegExpValidator * serialPortValidator; QRegExpValidator * serialPortValidator;
int configuredSlot; int configuredSlot;
TelescopeControl * telescopeManager; TelescopeControl * telescopeManager;
}; };
 End of changes. 10 change blocks. 
11 lines changed or deleted 11 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/