OcularDialog.hpp   OcularDialog.hpp 
skipping to change at line 23 skipping to change at line 23
* *
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _OCULARDIALOG_HPP_ #ifndef _OCULARDIALOG_HPP_
#define _OCULARDIALOG_HPP_ #define _OCULARDIALOG_HPP_
#include <QObject> #include <QObject>
#include "StelDialogOculars.hpp" #include "CCD.hpp"
#include "Ocular.hpp" #include "Ocular.hpp"
#include "PropertyBasedTableModel.hpp"
#include "StelDialogOculars.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include "Telescope.hpp"
#include <QSqlRecord>
class Ui_ocularDialogForm; class Ui_ocularDialogForm;
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 QSqlRecord; class QStandardItemModel;
class QSqlTableModel;
QT_END_NAMESPACE QT_END_NAMESPACE
class OcularDialog : public StelDialogOculars class OcularDialog : public StelDialogOculars
{ {
Q_OBJECT Q_OBJECT
public: public:
OcularDialog(QSqlTableModel *CCDsTableModel, QSqlTableModel *oculars TableModel, QSqlTableModel *telescopesTableModel); OcularDialog(QList<CCD *>* ccds, QList<Ocular *>* oculars, QList<Tel escope *>* telescopes);
virtual ~OcularDialog(); virtual ~OcularDialog();
void languageChanged(); void languageChanged();
void updateStyle();
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
void setOculars(QList<Ocular*> theOculars); void setOculars(QList<Ocular*> theOculars);
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 CCDSelected(const QModelIndex &index);
void ocularSelected(const QModelIndex &index);
void telescopeSelected(const QModelIndex &index);
void updateCCD();
void updateOcular();
void updateTelescope();
signals: signals:
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();
void updateActionMapping(const QString& actionName, const QString& n ewMapping);
Ui_ocularDialogForm* ui; Ui_ocularDialogForm* ui;
private slots: private slots:
void keyBindingTextTogglePluginChanged(const QString& newString);
void keyBindingTextTogglePluginConfigChanged(const QString& newStrin
g);
void keyBindingTextToggleCrosshairChanged(const QString& newString);
void keyBindingTextToggleTelradChanged(const QString& newString);
void keyBindingTextNextCCDChanged(const QString& newString);
void keyBindingTextNextOcularChanged(const QString& newString);
void keyBindingTextNextTelescopeChanged(const QString& newString);
void keyBindingTextPreviousCCDChanged(const QString& newString);
void keyBindingTextPreviousOcularChanged(const QString& newString);
void keyBindingTextPreviousTelescopeChanged(const QString& newString
);
void scaleImageCircleStateChanged(int state); void scaleImageCircleStateChanged(int state);
private: private:
QDataWidgetMapper *CCDMapper; QDataWidgetMapper* ccdMapper;
QSqlTableModel *CCDsTableModel; QList<CCD *>* ccds;
QDataWidgetMapper *ocularMapper; PropertyBasedTableModel* ccdTableModel;
QSqlTableModel *ocularsTableModel; QDataWidgetMapper* ocularMapper;
QDataWidgetMapper *telescopeMapper; QList<Ocular *>* oculars;
QSqlTableModel *telescopesTableModel; PropertyBasedTableModel* ocularTableModel;
QIntValidator *validatorOcularAFOV; QDataWidgetMapper* telescopeMapper;
QDoubleValidator *validatorOcularEFL; QList<Telescope *>* telescopes;
QDoubleValidator *validatorTelescopeDiameter; PropertyBasedTableModel* telescopeTableModel;
QDoubleValidator *validatorTelescopeFL; QIntValidator* validatorOcularAFOV;
QRegExpValidator *validatorName; QDoubleValidator* validatorOcularEFL;
QIntValidator *validatorPositiveInt; QDoubleValidator* validatorTelescopeDi
QDoubleValidator *validatorPositiveDouble; ameter;
QDoubleValidator* validatorTelescopeFL
;
QRegExpValidator* validatorName;
QIntValidator* validatorPositiveInt
;
QDoubleValidator* validatorPositiveDou
ble;
}; };
#endif // _OCULARDIALOG_HPP_ #endif // _OCULARDIALOG_HPP_
 End of changes. 12 change blocks. 
27 lines changed or deleted 41 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/