OcularDialog.hpp   OcularDialog.hpp 
/* /*
* Copyright (C) 2009 Timothy Reaves * Copyright (C) 2009 Timothy Reaves
* Copyright (C) 2011 Bogdan Marinov
* *
* 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.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _OCULARDIALOG_HPP_ #ifndef _OCULARDIALOG_HPP_
#define _OCULARDIALOG_HPP_ #define _OCULARDIALOG_HPP_
#include <QObject> #include <QObject>
#include "CCD.hpp" #include "CCD.hpp"
#include "Ocular.hpp" #include "Ocular.hpp"
#include "PropertyBasedTableModel.hpp" #include "PropertyBasedTableModel.hpp"
#include "StelDialog.hpp" #include "StelDialog.hpp"
skipping to change at line 41 skipping to change at line 42
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QDataWidgetMapper; class QDataWidgetMapper;
class QDoubleValidator; class QDoubleValidator;
class QIntValidator; class QIntValidator;
class QRegExpValidator; class QRegExpValidator;
class QModelIndex; class QModelIndex;
class QStandardItemModel; class QStandardItemModel;
QT_END_NAMESPACE QT_END_NAMESPACE
class Oculars;
class OcularDialog : public StelDialog class OcularDialog : public StelDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
OcularDialog(QList<CCD *>* ccds, QList<Ocular *>* oculars, QList<Tel escope *>* telescopes); OcularDialog(Oculars* plugin, QList<CCD *>* ccds, QList<Ocular *>* o culars, QList<Telescope *>* telescopes);
virtual ~OcularDialog(); virtual ~OcularDialog();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
void setOculars(QList<Ocular*> theOculars);
void updateStyle(); void updateStyle();
public slots: public slots:
void closeWindow(); void closeWindow();
void deleteSelectedCCD(); void deleteSelectedCCD();
void deleteSelectedOcular(); void deleteSelectedOcular();
void deleteSelectedTelescope(); void deleteSelectedTelescope();
void insertNewCCD(); void insertNewCCD();
void insertNewOcular(); void insertNewOcular();
void insertNewTelescope(); void insertNewTelescope();
void languageChanged(); void moveUpSelectedSensor();
void moveUpSelectedOcular();
void moveUpSelectedTelescope();
void moveDownSelectedSensor();
void moveDownSelectedOcular();
void moveDownSelectedTelescope();
void retranslate();
signals: signals:
void requireSelectionChanged(bool state); void requireSelectionChanged(bool state);
void scaleImageCircleChanged(bool state); void scaleImageCircleChanged(bool state);
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_ocularDialogForm* ui; Ui_ocularDialogForm* ui;
private slots: private slots:
void keyBindingTogglePluginChanged(const QString& newString); void keyBindingTogglePluginChanged(const QString& newString);
void keyBindingPopupNavigatorConfigChanged(const QString& newString) ; void keyBindingPopupNavigatorConfigChanged(const QString& newString) ;
void initAboutText();
void requireSelectionStateChanged(int state); void requireSelectionStateChanged(int state);
void scaleImageCircleStateChanged(int state); void scaleImageCircleStateChanged(int state);
private: private:
Oculars* plugin;
QDataWidgetMapper* ccdMapper; QDataWidgetMapper* ccdMapper;
QList<CCD *>* ccds; QList<CCD *>* ccds;
PropertyBasedTableModel* ccdTableModel; PropertyBasedTableModel* ccdTableModel;
QDataWidgetMapper* ocularMapper; QDataWidgetMapper* ocularMapper;
QList<Ocular *>* oculars; QList<Ocular *>* oculars;
PropertyBasedTableModel* ocularTableModel; PropertyBasedTableModel* ocularTableModel;
QDataWidgetMapper* telescopeMapper; QDataWidgetMapper* telescopeMapper;
QList<Telescope *>* telescopes; QList<Telescope *>* telescopes;
PropertyBasedTableModel* telescopeTableModel; PropertyBasedTableModel* telescopeTableModel;
QIntValidator* validatorOcularAFOV; QIntValidator* validatorOcularAFOV;
 End of changes. 8 change blocks. 
4 lines changed or deleted 15 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/