DateTimeDialog.hpp   DateTimeDialog.hpp 
/* /*
* Stellarium * Stellarium
* Copyright (C) 2008 Nigel Kerr * Copyright (C) 2008 Nigel Kerr
* Copyright (C) 2012 Timothy Reaves
* *
* 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 _DATETIMEDIALOG_HPP_ #ifndef _DATETIMEDIALOG_HPP_
#define _DATETIMEDIALOG_HPP_ #define _DATETIMEDIALOG_HPP_
#include <QObject> #include <QObject>
#include "StelDialog.hpp" #include "StelDialog.hpp"
class Ui_dateTimeDialogForm; class Ui_dateTimeDialogForm;
skipping to change at line 39 skipping to change at line 40
{ {
Q_OBJECT Q_OBJECT
public: public:
DateTimeDialog(); DateTimeDialog();
~DateTimeDialog(); ~DateTimeDialog();
double newJd(); double newJd();
bool valid(int y, int m, int d, int h, int min, int s); bool valid(int y, int m, int d, int h, int min, int s);
//! Notify that the application style changed //! Notify that the application style changed
void styleChanged(); void styleChanged();
public slots: public slots:
void languageChanged(); void retranslate();
//! update the editing display with new JD. //! update the editing display with new JD.
void setDateTime(double newJd); void setDateTime(double newJd);
void close(); void close();
signals:
//! signals that a new, valid JD is available.
void dateTimeChanged(double newJd);
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 connectSpinnerEvents() const;
void disconnectSpinnerEvents()const;
private slots: private slots:
//! year slider or dial changed //! year slider or dial changed
void yearChanged(int ny); void yearChanged(int ny);
//! year slider or dial changed //! year slider or dial changed
void monthChanged(int nm); void monthChanged(int nm);
//! year slider or dial changed //! year slider or dial changed
void dayChanged(int nd); void dayChanged(int nd);
//! year slider or dial changed //! year slider or dial changed
void hourChanged(int nh); void hourChanged(int nh);
 End of changes. 5 change blocks. 
6 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/